/* ============================================================
   EyeUp — design system: tokens + primitives
   The drafting table at night: obsidian ground, an etched
   reference grid, ice-white geometry, one optic-magenta accent.
   ============================================================ */

/* --- Self-hosted Space Grotesk (OFL, see fonts/SpaceGrotesk-OFL.txt) ---
   Self-hosted on purpose: this site claims it tracks nothing, so it
   must not hand every visitor's IP to a font CDN. No third-party
   request is made from any page. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens: dark, deliberately. The game is dark, the site is the
   game. One ground, everywhere (a toggle that stranded visitors in
   light mode on sub-pages is a bug the studio has shipped before). --- */
:root {
  color-scheme: dark;

  --bg: #0B0C10;
  --panel: #12141B;

  --ice: #F4F6FA;      /* truth ice-white: headings, geometry */
  --text: #EDF1F7;
  --muted: #8A90A0;
  --faint: #565B69;

  --accent: #E84FB0;   /* optic magenta */
  --accent-2: #FF7FCB;
  --accent-grad: linear-gradient(135deg, #E84FB0, #FF7FCB);
  --accent-ink: #0B0C10;
  --mint: #5BE3A8;     /* the sparing data-pop */

  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .09);
  --border: rgba(255, 255, 255, .12);
  --border-2: rgba(255, 255, 255, .22);
  --hi: rgba(255, 255, 255, .10);
  --grid-line: rgba(244, 246, 250, .035);

  --shadow-1: 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, .45);
  --glow: 0 0 28px rgba(232, 79, 176, .4);
  --glow-lg: 0 0 40px rgba(232, 79, 176, .45), 0 8px 24px rgba(0, 0, 0, .5);

  --r-card: 24px;
  --r-btn: 14px;
  --r-pill: 999px;

  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 24px;
  --s-6: 32px; --s-7: 48px;  --s-8: 64px;  --s-9: 80px;  --s-10: 104px;

  --blur-1: 8px; --blur-2: 18px; --blur-3: 40px;
  --maxw: 1200px;

  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- Base ---------------------------------------------------- */
* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ice);
  margin: 0;
}
p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; display: block; }

::selection { background: rgba(232, 79, 176, .35); }

/* mint focus, per the design system sheet */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--panel);
  color: var(--text);
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-6);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Type scale ---------------------------------------------- */
.display { font-size: clamp(44px, 6.5vw, 76px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.display-2 { font-size: clamp(38px, 5.5vw, 64px); line-height: 1.03; letter-spacing: -.02em; text-wrap: balance; }
.h1 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.05; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.h3 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.15; }

.body-lg { font-size: 20px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.small { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.faint { color: var(--faint); }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.mono { font-family: var(--mono); }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* --- The ground: etched drafting grid ------------------------- */
.ground {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}
.ground__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}
.ground__glow {
  position: absolute;
  left: 50%;
  top: 40px;
  width: min(900px, 110vw);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 79, 176, .07), transparent 75%);
  filter: blur(var(--blur-3));
}

/* --- Hairline primitives: the reveal as decorative language ---- */
.hairline--guess {
  position: absolute;
  width: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 79, 176, .8);
}
.hairline--true {
  position: absolute;
  width: 1px;
  background: var(--ice);
}
.hairline--dashed {
  position: absolute;
  height: 0;
  border-top: 1.5px dashed var(--accent);
}
.hairline-note {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

/* --- Glass surface ------------------------------------------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  backdrop-filter: blur(var(--blur-2)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-2)) saturate(140%);
  box-shadow: inset 0 1px 0 var(--hi);
}
/* Below-the-fold cards skip the blur: with only the faint grid behind
   them the difference is invisible, and ~15 blurred surfaces is a real
   compositing cost on low-end mobiles. */
.glass--flat {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* --- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 26px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, border-color .2s, color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: var(--glow);
}
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 0 34px rgba(232, 79, 176, .55); }

.btn-secondary {
  background: var(--glass);
  border-color: var(--border-2);
  color: var(--text);
  backdrop-filter: blur(var(--blur-1));
  -webkit-backdrop-filter: blur(var(--blur-1));
  padding: 15px 24px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-2); }

.btn-pill { border-radius: var(--r-pill); padding: 9px 18px; font-size: 14px; }

/* --- App Store badge (official artwork) ------------------------ */
.badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.store-badge { display: inline-block; border-radius: 13px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { filter: brightness(1.12); }
.badge-note {
  font-size: 13px;
  color: var(--faint);
  text-align: center;
  margin-top: var(--s-4);
}

/* --- Chips ---------------------------------------------------- */
.chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--faint);
}
.chip--bright {
  font-size: 14px;
  color: var(--text);
  border-color: var(--border-2);
  padding: 7px 16px;
}
.chip--ghost { border-style: dashed; }

/* --- FAQ disclosure ------------------------------------------ */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }

.faq-item { border-radius: var(--r-btn); padding: 0 24px; }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 20px 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ice);
  list-style: none;
  cursor: pointer;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  font-family: var(--display);
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  text-wrap: pretty;
}

/* --- Wordmark + studio seal ---------------------------------- */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--ice);
}
.wordmark:hover { color: var(--ice); }
.wordmark .dot { color: var(--accent); }
.wordmark--sm { font-size: 17px; }

.forged-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 7px 16px;
  transition: color .2s, border-color .2s;
}
.forged-seal strong { color: var(--text); font-weight: 600; }
.forged-seal:hover { color: var(--accent); border-color: var(--accent); }
.forged-seal:hover strong { color: var(--accent); }

/* --- Motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
