:root {
  --bg:        oklch(0.97 0.008 75);
  --bg-2:      oklch(0.94 0.012 75);
  --bg-3:      oklch(0.91 0.015 75);
  --ink:       oklch(0.18 0.01 60);
  --ink-2:     oklch(0.32 0.01 60);
  --ink-3:     oklch(0.55 0.01 60);
  --ink-4:     oklch(0.72 0.008 60);
  --hair:      oklch(0.88 0.01 75);
  --hair-2:    oklch(0.82 0.012 75);
  --accent:    oklch(0.72 0.18 45);
  --accent-2:  oklch(0.62 0.18 40);
  --accent-soft: color-mix(in oklch, oklch(0.72 0.18 45) 16%, transparent);
  --mono:      "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:      "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.link-underline { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ─── layout primitives ─── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "ss01" 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ─── nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: #F0E2C8;
  flex: none; overflow: hidden;
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-weight: 700; font-size: 17px; letter-spacing: -0.025em;
}
.nav .brand-name { font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.nav-link:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em; cursor: pointer; border: 0;
  transition: transform 80ms ease, background 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: color-mix(in oklch, var(--ink) 88%, var(--accent)); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hair-2); }
.btn-ghost:hover { background: color-mix(in oklch, var(--ink) 4%, transparent); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 12px; }

/* ─── hero ─── */
.hero { padding: 84px 0 40px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(48px, 6.2vw, 84px);
  line-height: 0.96; letter-spacing: -0.035em; font-weight: 700;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  padding: 0 4px;
}
.hero-sub {
  font-size: 19px; line-height: 1.45; color: var(--ink-2);
  max-width: 520px; text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 18px; margin-top: 36px; flex-wrap: wrap;
  color: var(--ink-3);
}
.hero-meta div { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.hero-meta svg { color: var(--ink); }

.hero-symbol {
  position: relative; z-index: 1;
  width: 100%; max-width: 540px;
  display: grid; place-items: center;
}
.hero-contact {
  width: 100%; max-width: 500px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--hair);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 30px 60px -22px rgba(20,15,8,0.20),
    0 12px 24px -10px rgba(20,15,8,0.10);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.hc-head, .hc-foot {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.hc-head .hc-eye, .hc-foot .hc-eye {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 600;
}
.hc-foot .hc-eye { color: var(--accent-2); }
.hc-head .hc-time { margin-left: auto; color: var(--ink-3); font-weight: 500; }
.hc-foot .hc-meta { margin-left: auto; color: var(--ink-3); }
.hc-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
  animation: hc-blink 1.6s ease-out infinite;
}
.hc-foot .hc-dot { background: var(--accent); }
@keyframes hc-blink {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}
.hc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 8px;
}
.th {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2622;
  opacity: 1;
  filter: brightness(0.35) saturate(0.5);
  transition: opacity 200ms ease, filter 200ms ease;
}
/* a handful of placeholder "freeze frame" looks for the dim thumbnails */
.th.t-a { background: linear-gradient(125deg, #3a3530 0%, #524740 100%); }
.th.t-b { background: linear-gradient(140deg, #2f3a44 0%, #455866 100%); }
.th.t-c { background: linear-gradient(120deg, #463528 0%, #5c4636 100%); }
.th.t-d { background: linear-gradient(130deg, #3a3a3a 0%, #4a4a4a 100%); }
.th::after {
  /* subtle scanlines / film texture */
  content: ""; position: absolute; inset: 0; opacity: 0.18;
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.18) 50%, transparent 50%);
  background-size: 100% 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* matches: bright, ringed, with a pill */
.th.match {
  opacity: 1; filter: saturate(1);
  box-shadow: 0 0 0 2px var(--accent) inset, 0 6px 14px -6px rgba(20,15,8,0.25);
}
.th-pill {
  position: absolute; top: 5px; left: 5px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  height: 16px; padding: 0 6px; border-radius: 4px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 8px; font-weight: 600;
  letter-spacing: 0.1em;
}
.th img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* sweep highlight that travels across the matches — review-in-progress feel */
.th.match { animation: match-sweep 4.2s ease-in-out infinite; }
.th.match:nth-of-type(2) { animation-delay: 0s; }
.th.match:nth-of-type(4) { animation-delay: 0.5s; }
.th.match:nth-of-type(6) { animation-delay: 1.0s; }
.th.match:nth-of-type(8) { animation-delay: 1.5s; }
.th.match:last-of-type   { animation-delay: 2.0s; }
@keyframes match-sweep {
  0%, 60%, 100% {
    box-shadow: 0 0 0 2px var(--accent) inset, 0 6px 14px -6px rgba(20,15,8,0.25);
  }
  10% {
    box-shadow:
      0 0 0 2px var(--accent) inset,
      0 0 0 6px color-mix(in oklch, var(--accent) 22%, transparent),
      0 6px 14px -6px rgba(20,15,8,0.25);
  }
}

/* phone wrapper used by every step's visual */
.record-stack,
.detect-stack,
.review-stack {
  position: relative; width: 100%; max-width: 540px;
  display: flex; align-items: center; justify-content: center;
}

/* phone frame */
.phone {
  --phone-w: 296px;
  --phone-h: 612px;
  --phone-r: 44px;
  width: var(--phone-w);
  background: #0c0a08;
  padding: 9px;
  border-radius: var(--phone-r);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 0 0 1px rgba(0,0,0,0.4),
    0 30px 60px -22px rgba(20,15,8,0.45),
    0 12px 24px -10px rgba(20,15,8,0.25);
  position: relative;
  flex: none;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px;
  background: #050402; z-index: 2;
}
.phone .screen {
  position: relative;
  border-radius: calc(var(--phone-r) - 9px);
  overflow: hidden;
  background: var(--bg-2);
  height: var(--phone-h);
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }
/* float card */
.float-card {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--hair);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 14px 40px -10px rgba(20,15,8,0.18);
  display: flex; align-items: center; gap: 12px;
  font-size: 12px;
}
.float-card .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.float-card .stack { display: flex; flex-direction: column; gap: 2px; }
.float-card .stack b { font-weight: 700; letter-spacing: -0.01em; }
.float-card .stack span { color: var(--ink-3); font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }

.hero .fc-1 { top: 64px; left: -28px; }
.hero .fc-2 { bottom: 90px; right: -24px; }
.fc-2 svg { color: var(--accent-2); }

/* ─── steps section ─── */
.steps {
  padding: 120px 0 60px;
  position: relative;
}
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center;
  padding: 80px 0;
  position: relative;
}
.step:first-of-type { padding-top: 24px; }
.step + .step { border-top: 1px solid var(--hair); }
.step:nth-of-type(even) .step-copy { order: 2; }
.step:nth-of-type(even) .step-visual { order: 1; }

.step-copy { max-width: 480px; }
.step-num {
  display: inline-flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); color: var(--ink-3);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.step-num .big {
  font-size: 56px; font-weight: 600; color: var(--ink);
  line-height: 1; letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}
.step-copy h3 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.02; letter-spacing: -0.03em; font-weight: 700;
}
.step-copy h3 .accent { color: var(--accent-2); }
.step-copy .lede {
  font-size: 18px; line-height: 1.5; color: var(--ink-2);
  margin: 0 0 26px; text-wrap: pretty;
}
.step-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.step-points li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; line-height: 1.45; color: var(--ink-2);
}
.step-points .marker {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  display: grid; place-items: center;
  margin-top: 1px;
  color: var(--ink);
}
.step-points b { color: var(--ink); font-weight: 600; }

/* step visual layouts */
.step-visual { position: relative; min-height: 640px;
  display: flex; align-items: center; justify-content: center; }


/* ─── closing CTA ─── */
.cta {
  margin: 80px 32px 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: 80px 64px;
  position: relative; overflow: hidden;
  max-width: 1240px;
  margin-left: auto; margin-right: auto;
}
.cta-inner { position: relative; max-width: 720px; }
.cta .eyebrow { color: color-mix(in oklch, var(--bg) 70%, transparent); }
.cta h2 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.0; letter-spacing: -0.035em; font-weight: 700;
  text-wrap: balance;
}
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: color-mix(in oklch, var(--bg) 75%, transparent); font-size: 18px; max-width: 520px; line-height: 1.5; }
.cta .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.cta .btn-accent { color: #fff; }

/* ─── footer ─── */
.foot {
  padding: 40px 0 56px;
  color: var(--ink-3);
  font-size: 13px;
}
.foot-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.foot-version { font-size: 11px; letter-spacing: 0.06em; color: var(--ink-4); }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: var(--ink); }

/* ─── responsive ─── */
@media (max-width: 900px) {
  .nav-links .nav-link { display: none; }
  .hero { padding: 56px 0 24px; }
  .hero-grid, .step { grid-template-columns: 1fr; gap: 40px; }
  .step:nth-of-type(even) .step-copy,
  .step:nth-of-type(even) .step-visual { order: initial; }
  .step-visual { min-height: 0; }
  .hero .fc-1, .hero .fc-2 { display: none; }
  .cta { padding: 56px 28px; margin: 60px 16px 24px; border-radius: 22px; }
}
