/* FairWitnessAI homepage — dark cinematic (approved concept) */
:root {
  --navy: #070d1a;
  --navy-2: #0b1426;
  --navy-3: #111c33;
  --navy-card: #101a30;
  --ivory: #f3efe6;
  --ivory-dim: #c9c2b4;
  --gold: #c9a227;
  --gold-soft: #e0c56a;
  --blue: #1a6dff;
  --blue-hot: #3d8bff;
  --blue-glow: rgba(26, 109, 255, 0.35);
  --ok: #3ecf8e;
  --bad: #e25555;
  --line: rgba(243, 239, 230, 0.14);
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", "Source Sans 3", system-ui, sans-serif;
  --container: min(1180px, calc(100% - 2.5rem));
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.home {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ivory-dim);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-hot); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue-hot); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: var(--container); margin-inline: auto; }

/* ——— Header ——— */
.home-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  background: linear-gradient(to bottom, rgba(7, 13, 26, 0.85), transparent);
}
.home-header.is-scrolled {
  position: fixed;
  background: rgba(7, 13, 26, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; width: var(--container); margin-inline: auto;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ivory);
}
.brand-seal {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.45);
}
.brand-seal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-ui); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 0.68rem; color: var(--ivory-dim); letter-spacing: 0.02em; max-width: 22ch;
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--ivory); padding: 0.45rem 0.7rem; border-radius: 6px; cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ivory-dim); text-decoration: none; font-size: 0.92rem; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); }

/* ——— Buttons ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.85rem 1.35rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 8px 28px var(--blue-glow);
}
.btn-primary:hover { background: var(--blue-hot); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(0,0,0,0.35); color: var(--ivory); border-color: rgba(243,239,230,0.35);
}
.btn-ghost:hover { border-color: var(--ivory); color: #fff; }
.btn svg { width: 1em; height: 1em; }

/* ——— Hero ——— */
.hero-cine {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 7.5rem 0 4rem;
  overflow: hidden;
}
.hero-cine::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg,
      rgba(7,13,26,0.94) 0%,
      rgba(7,13,26,0.82) 38%,
      rgba(7,13,26,0.55) 58%,
      rgba(7,13,26,0.72) 100%),
    url("../img/hero-desk.jpg") center / cover no-repeat;
  z-index: 0;
}
.hero-cine::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 75% 45%, rgba(26,109,255,0.12), transparent 60%);
  z-index: 1; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center;
  width: var(--container); margin-inline: auto;
}
.hero-seal {
  width: 168px; height: 168px; margin: 0 0 2.25rem 14px;
  position: relative; border-radius: 50%;
}
.hero-seal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hero-seal::before, .hero-seal::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-seal::before { inset: -8px; border: 1px solid rgba(201, 162, 39, 0.45); }
.hero-seal::after { inset: -16px; border: 1px solid rgba(201, 162, 39, 0.2); }
@media (max-width: 560px) { .hero-seal { width: 120px; height: 120px; } }
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.85rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ivory);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero-copy h1 .gold {
  color: var(--gold);
  display: block;
  margin-top: 0.35rem;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--ivory-dim);
  max-width: 34rem;
  margin-bottom: 1.1rem;
}
.hero-identity {
  margin-bottom: 1.75rem;
}
.hero-identity strong {
  display: block;
  color: var(--ivory);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.hero-identity em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.15rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Evidence stage (laptop / dual pane) */
.hero-stage {
  position: relative;
  perspective: 1400px;
}
.laptop-frame {
  background: linear-gradient(160deg, #243148, #0c1424);
  border: 1px solid rgba(243,239,230,0.28);
  border-radius: 14px 14px 8px 8px;
  padding: 0.7rem 0.7rem 1.1rem;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.65),
    0 0 40px rgba(26,109,255,0.18),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.12);
  transform: rotateY(-4deg) rotateX(1deg);
}
.laptop-bezel {
  background: #05080f;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}
.dual-pane {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 340px;
}
.pane-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.pane-ai {
  background: #f7f5f1;
  color: #2a2e35;
  border-right: 1px solid #ddd6c8;
}
.pane-ai .pane-label { color: #6b7178; background: #efece6; }
.pane-pr {
  background: linear-gradient(180deg, #0e1730, #0a1224);
  color: var(--ivory);
}
.pane-pr .pane-label {
  color: var(--gold-soft);
  background: rgba(201,162,39,0.08);
  border-bottom-color: rgba(201,162,39,0.2);
}
.ai-chat {
  padding: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.45;
}
.ai-meta {
  display: flex; align-items: center; gap: 0.4rem;
  color: #6b7178; margin-bottom: 0.65rem; font-weight: 600;
}
.ai-bubble {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.ai-bubble p + p { margin-top: 0.4rem; }
.illus-note {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9285;
  margin-top: 0.55rem;
}

/* Evidence timeline */
.evidence-timeline {
  padding: 0.75rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ev-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  position: relative;
  padding-bottom: 0.85rem;
}
.ev-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 10px; top: 22px; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), rgba(26,109,255,0.15));
}
.ev-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue);
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(26,109,255,0.2);
  z-index: 1;
}
.ev-dot svg { width: 11px; height: 11px; color: #fff; }
.ev-body strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ivory);
  font-weight: 700;
}
.ev-body span {
  font-size: 0.68rem;
  color: var(--ivory-dim);
  line-height: 1.35;
}
.ev-chip {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.58rem;
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgba(62,207,142,0.12);
  color: var(--ok);
  border: 1px solid rgba(62,207,142,0.25);
}
.stage-caption {
  text-align: center;
  font-size: 0.72rem;
  color: var(--ivory-dim);
  margin-top: 0.85rem;
  letter-spacing: 0.04em;
}

/* ——— Story: Problem / Solution ——— */
.story-split {
  background: var(--navy-2);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr 1fr;
  gap: 1.75rem;
  align-items: center;
}
.story-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--ivory);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.story-panel .gold-line {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  display: block;
}
.story-panel p { margin-bottom: 1rem; max-width: 36ch; }
.portrait-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 1.25rem;
  max-width: 280px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.portrait-wrap img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}
.torn-card {
  position: relative;
  background: #f0e6d2;
  color: #2c2418;
  padding: 1.5rem 1.35rem 1.75rem;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  clip-path: polygon(
    0% 2%, 3% 0%, 8% 3%, 14% 0%, 22% 2%, 30% 0%, 40% 3%, 52% 0%,
    62% 2%, 72% 0%, 82% 3%, 90% 0%, 97% 2%, 100% 0%,
    100% 100%, 0% 100%
  );
}
.torn-card::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    transparent, transparent 27px,
    rgba(44,36,24,0.08) 27px, rgba(44,36,24,0.08) 28px
  );
  pointer-events: none;
  opacity: 0.5;
}
.torn-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  position: relative; z-index: 1;
}
.torn-card ul {
  list-style: none;
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.7;
}
.torn-card li::before {
  content: "□ ";
  color: #8a7350;
}

/* ——— Workflow strip ——— */
.workflow {
  background: var(--navy);
  border-block: 1px solid var(--line);
  padding: 2.75rem 0;
}
.workflow h2 {
  font-family: var(--font-display);
  color: var(--ivory);
  text-align: center;
  font-size: 1.85rem;
  margin-bottom: 0.4rem;
}
.workflow .sub {
  text-align: center;
  color: var(--ivory-dim);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.workflow-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.wf-item {
  text-align: center;
  padding: 0.5rem;
}
.wf-icon {
  width: 48px; height: 48px;
  margin: 0 auto 0.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ivory);
  background: rgba(255,255,255,0.02);
}
.wf-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.wf-item strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ivory);
  font-weight: 600;
  line-height: 1.3;
}

/* ——— Where it stands today (interim claims-safe copy) ——— */
.standing {
  background: var(--navy-2);
  border-block: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.standing h2 {
  font-family: var(--font-display);
  color: var(--ivory);
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.4rem;
}
.standing .sub {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
}
.standing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.standing-col {
  background: var(--navy-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.standing-col h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.standing-col ul { list-style: disc; padding-left: 1.1rem; }
.standing-col li { margin-bottom: 0.7rem; font-size: 0.95rem; }
.dev-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-soft);
}
.dev-note { margin-top: 1rem; font-size: 0.85rem; font-style: italic; }
.standing-cta { justify-content: center; margin-top: 2rem; }

/* ——— Comparison ——— */
.compare {
  background: #ebe6dc;
  color: #2a2e35;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  position: relative;
}
.compare h2 {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #12151a;
  margin-bottom: 2rem;
}
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.compare-col {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #d9d2c4;
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.compare-col h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 1rem;
  color: #12151a;
}
.compare-col.pr-side {
  background: linear-gradient(180deg, #0f1830, #0a1224);
  color: var(--ivory-dim);
  border-color: #1a2744;
}
.compare-col.pr-side h3 { color: var(--ivory); }
.compare-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: #8a8274;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.12em;
}
.compare-list {
  list-style: none;
  margin-top: 1rem;
}
.compare-list li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  align-items: start;
}
.mark-x { color: var(--bad); font-weight: 800; }
.mark-ok { color: var(--ok); font-weight: 800; }
.compare-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: #5c564c;
  max-width: 48rem;
  margin-inline: auto;
}
.mini-timeline {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(243,239,230,0.12);
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}
.mini-timeline .ev-item { padding-bottom: 0.55rem; }
.mini-timeline .ev-body strong { font-size: 0.72rem; }
.chat-mock {
  background: #f7f5f1;
  border: 1px solid #e4ddd0;
  border-radius: 8px;
  padding: 0.85rem;
  font-size: 0.85rem;
  color: #3d4248;
  margin-bottom: 0.75rem;
}
.chat-mock .bubble {
  background: #fff;
  border: 1px solid #e4ddd0;
  border-radius: 8px;
  padding: 0.65rem;
}

/* ——— Future / SHIELD ——— */
.future {
  position: relative;
  min-height: 70vh;
  display: flex; align-items: center;
  padding: 5rem 0;
  overflow: hidden;
}
.future::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,13,26,0.55) 0%, rgba(7,13,26,0.72) 45%, rgba(7,13,26,0.88) 100%),
    url("../img/shield-landscape.jpg") center / cover no-repeat;
}
.future-inner {
  position: relative; z-index: 1;
  width: var(--container); margin-inline: auto;
  display: flex; justify-content: flex-end;
}
.future-copy {
  max-width: 34rem;
  text-align: left;
}
.future-copy .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.1);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.future-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.future-copy p { margin-bottom: 1.5rem; color: var(--ivory-dim); }

/* ——— Footer ——— */
.home-footer {
  background: #050910;
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 2rem;
  color: var(--ivory-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  width: var(--container);
  margin-inline: auto;
}
.home-footer h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 0.75rem;
}
.home-footer a {
  display: block;
  color: var(--ivory-dim);
  text-decoration: none;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.home-footer a:hover { color: var(--ivory); }
.footer-copy {
  width: var(--container);
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .hero-grid, .story-grid, .compare-grid, .workflow-row, .footer-grid, .standing-grid {
    grid-template-columns: 1fr;
  }
  .laptop-frame { transform: none; }
  .dual-pane { grid-template-columns: 1fr; min-height: 0; }
  .pane-ai { border-right: none; border-bottom: 1px solid #ddd6c8; }
  .compare-vs {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0.5rem 0;
  }
  .future-inner { justify-content: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .workflow-row { grid-template-columns: repeat(2, 1fr); }
  .portrait-wrap { max-width: 100%; }
  .torn-card { transform: none; max-width: 28rem; margin-inline: auto; }
}

@media (max-width: 560px) {
  .workflow-row { grid-template-columns: 1fr 1fr; }
  .hero-cine { padding-top: 6rem; min-height: auto; }
}
