/* Eagle Eye site. Values mirror design/tokens.json one to one. */
:root {
  --ink: #0a0a09;
  --ink-raised: #11100d;
  --gold: #d9b35b;
  --gold-bright: #f3dc9a;
  --gold-dim: #8a7440;
  --pearl: #cfd8ff;
  --text: #ece4d0;
  --text-dim: #a59d89;
  --line: rgba(217, 179, 91, 0.22);
  --display: "Cinzel", "Trajan Pro", serif;
  --serif: "Cormorant Garamond", Garamond, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --h1: clamp(2.2rem, 1.2rem + 3.6vw, 4rem);
  --h2: clamp(1.6rem, 1.1rem + 2vw, 2.8rem);
  --lead: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --body: 1.15rem;
  --label: 0.72rem;
  --code: 0.92rem;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --glow: 0 0 28px rgba(217, 179, 91, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
i { font-style: normal; color: var(--gold-dim); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 14px; font-family: var(--display); }
.skip:focus { left: 8px; }

/* ── nav ───────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(to bottom, rgba(10,10,9,0.92), rgba(10,10,9,0.55) 70%, rgba(10,10,9,0));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease);
}
.nav.scrolled { background: rgba(10,10,9,0.86); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand span { font-family: var(--display); font-weight: 500; letter-spacing: 0.28em; font-size: 0.86rem; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); }
.nav-links > a:not(.btn):not(.star-pill) {
  font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
  min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s;
}
.nav-links > a:not(.btn):not(.star-pill):hover { color: var(--gold-bright); }
.star-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text);
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s;
}
.star-pill:hover { border-color: var(--gold); color: var(--gold-bright); }
.star-count { font-family: var(--mono); letter-spacing: 0; color: var(--gold); padding-left: 8px; border-left: 1px solid var(--line); }

/* ── buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.2s var(--ease), color 0.2s, box-shadow 0.3s var(--ease), border-color 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.72rem; }
.btn-gold { background: var(--gold); color: #17130a; box-shadow: 0 0 0 rgba(217,179,91,0); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: var(--glow); }
.btn-ghost { border: 1px solid rgba(217,179,91,0.55); color: var(--gold-bright); }
.btn-ghost:hover { border-color: var(--gold-bright); box-shadow: var(--glow); }
.btn:active { transform: scale(0.98); }

/* ── hero ──────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 88px var(--gutter) 72px; text-align: center; isolation: isolate;
}
.sand { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.eye-slot { width: min(540px, 82vw, calc(46svh * 1.667)); aspect-ratio: 200 / 120; margin-bottom: clamp(16px, 3vh, 40px); display: grid; place-items: center; }
.eye-fallback { width: 100%; height: auto; opacity: 0.9; }
.js-sand .eye-fallback { opacity: 0; }
.hero-copy { max-width: 1040px; display: flex; flex-direction: column; align-items: center; }
h1 {
  margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--h1); line-height: 1.08; letter-spacing: 0.02em;
  color: #f0d690; text-wrap: balance;
}
.lead { margin: 18px 0 0; max-width: 44ch; font-size: var(--lead); line-height: 1.45; color: var(--text); text-wrap: pretty; }
.install {
  margin-top: 30px; display: flex; align-items: center; gap: 4px; max-width: 100%;
  background: var(--ink-raised); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 22px;
  box-shadow: inset 0 0 24px rgba(217,179,91,0.05);
}
.install code { font-size: var(--code); color: var(--text); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.install code::-webkit-scrollbar { display: none; }
.install .prompt { color: var(--gold-dim); }
.install .cmd { color: var(--gold-bright); }
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 16px; margin-left: 8px;
  border: 0; border-radius: 999px; background: rgba(217,179,91,0.1); color: var(--gold);
  font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.copy:hover { background: rgba(217,179,91,0.2); color: var(--gold-bright); }
.copy.done { color: var(--ink); background: var(--gold); }
.hero-ctas { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.fine { margin: 18px 0 0; font-family: var(--display); font-size: var(--label); letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-cue span { width: 1px; height: 30px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ── shared section type ───────────────────────── */
section:not(.hero) { padding: clamp(80px, 12vw, 150px) var(--gutter) 0; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.label { margin: 0 0 14px; font-family: var(--display); font-size: var(--label); letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); text-align: center; }
h2 { margin: 0 auto; font-family: var(--display); font-weight: 500; font-size: var(--h2); line-height: 1.15; letter-spacing: 0.03em; color: var(--text); text-align: center; text-wrap: balance; }
h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 1.12rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); }
.link { color: var(--gold); border-bottom: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.link:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ── the eye frame ─────────────────────────────── */
.frame { position: relative; margin: clamp(32px, 5vw, 56px) 0 0; padding: 10px; }
.frame::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(90deg, transparent, rgba(217,179,91,0.5), transparent) top / 100% 1px no-repeat,
              linear-gradient(90deg, transparent, rgba(217,179,91,0.5), transparent) bottom / 100% 1px no-repeat,
              linear-gradient(180deg, transparent, rgba(217,179,91,0.35), transparent) left / 1px 100% no-repeat,
              linear-gradient(180deg, transparent, rgba(217,179,91,0.35), transparent) right / 1px 100% no-repeat;
}
.tick { position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; border-width: 0; }
.tick.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.tick.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.tick.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.tick.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.frame-inner { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.frame-inner iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; padding: 18px 4px 0; color: var(--text-dim); font-size: 1.05rem; }
figcaption b { color: var(--gold); font-weight: 500; }
.screens { margin: 34px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; font-family: var(--display); font-size: var(--label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.screens i { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-dim); }
.screens em { flex-basis: 100%; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; letter-spacing: 0; text-transform: none; color: var(--text-dim); }

/* ── how ───────────────────────────────────────── */
.steps { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px); counter-reset: none; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.step .num { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--gold); opacity: 0.9; margin-bottom: 16px; }
.step p { margin: 10px 0 18px; color: var(--text-dim); }
.step p code, .how-more code { font-size: 0.86em; color: var(--gold-bright); }
.step pre { margin: auto 0 0; padding: 16px 18px; background: var(--ink-raised); border: 1px solid var(--line); overflow-x: auto; font-size: 0.8rem; line-height: 1.6; color: var(--text); }
.step pre .c { color: var(--gold-dim); }
.how-more { margin: 36px 0 0; text-align: center; color: var(--text-dim); }

/* ── paths ─────────────────────────────────────── */
.paths-grid { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.divider { background: linear-gradient(180deg, transparent, rgba(217,179,91,0.6), transparent); }
.path { display: flex; flex-direction: column; align-items: flex-start; }
.path-kicker { margin: 0 0 14px; font-family: var(--display); font-size: var(--label); letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.path h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem); letter-spacing: 0.04em; text-transform: none; color: var(--text); line-height: 1.25; }
.path-paid h3 { color: var(--gold-bright); }
.path ul { margin: 20px 0 30px; padding: 0; list-style: none; color: var(--text-dim); }
.path li { position: relative; padding-left: 22px; margin: 8px 0; }
.path li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(217,179,91,0.7); }
.path .btn { margin-top: auto; }

/* ── proof ─────────────────────────────────────── */
.proof { text-align: center; }
.proof-lead { margin: 18px auto 0; max-width: 46ch; color: var(--text-dim); font-size: var(--lead); line-height: 1.45; }
.stats { margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column-reverse; align-items: center; gap: 6px; }
.stat dt { font-family: var(--display); font-size: var(--label); letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-dim); }
.stat dd { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); line-height: 1; color: var(--gold); text-shadow: 0 0 32px rgba(217,179,91,0.35); }
number-flow { --number-flow-char-height: 1em; }

/* ── footer ────────────────────────────────────── */
.foot { margin-top: clamp(100px, 14vw, 180px); padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.foot nav a { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s; }
.foot nav a:hover { color: var(--gold-bright); }
.foot p { flex-basis: 100%; margin: 0; color: var(--gold-dim); font-size: 0.95rem; }

/* ── reveal (GSAP sets the start state; without JS everything is visible) ── */
.js .reveal { opacity: 0; }

/* ── phone ─────────────────────────────────────── */
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .nav { height: 58px; }
  .brand span { display: none; }
  .star-pill { padding: 0 12px; }
  .hero { padding-top: 76px; justify-content: flex-start; }
  .eye-slot { width: 86vw; margin-top: 2vh; }
  .install { padding-left: 16px; width: 100%; }
  .install code { font-size: 0.8rem; }
  .copy { padding: 0 12px; }
  .copy-label { display: none; }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .frame-inner { aspect-ratio: 390 / 640; }
  .steps { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(217,179,91,0.6), transparent); }
  .path .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .foot { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; }
  .js .reveal { opacity: 1; }
}
