/* Isomer design system: shared by site-teaser/ and site/ (copied; keep identical).
   Dark only, thin HUD styling. Colours derived from the brand X banner, pushed darker and cooler. */
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-900-subset.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-300-subset.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* Dark only. */
:root {
  --bg: #07080b;
  --grid: #141824;
  --ink: #eceef3;
  --text: #c4c8d2;
  --mono-ink: #a3a9b7;
  --muted: #868c9a;
  --dim: #7a808f;
  --accent: #86c5ff;
  --on-accent: #07080b;
  --accent-hover: #a9d6ff;
  --glow: rgba(134, 197, 255, .10);
  --surface: #0c0e14;
  --line: #20263a;
  --line-strong: #323a57;
  --deco: #31425f;
  --deco-dot: #86c5ff;
  --hud: #34415e;
  --amber: #c9a961;
  --amber-line: rgba(255, 214, 107, .22);
  --danger: #ff9e94;
  --thin: "Space Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: "Inter Tight", "Helvetica Neue", "Arial Black", Arial, system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 2px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --cell: 32px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Grid that emerges from the dark: masked to fade toward the edges. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cpath d='M16 10v12M10 16h12' stroke='%23323e5c' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--cell) * 4) calc(var(--cell) * 4), var(--cell) var(--cell), var(--cell) var(--cell);
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 0%, rgba(0,0,0,.45) 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 0%, rgba(0,0,0,.45) 45%, transparent 85%);
}
/* Vignette + static film grain (inline SVG noise, no requests). */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 75% at 50% 45%, transparent 40%, rgba(0,0,0,.6) 100%);
}
/* Scanlines (static) + one slow, faint scan band (transform only). */
html::before {
  content: ""; position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}
.hud::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; height: 18vh; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(134, 197, 255, .03), transparent);
  transform: translateY(-20vh);
  animation: scan 10s linear 2.4s infinite;
}
@keyframes scan { to { transform: translateY(120vh); } }

/* HUD: thin corner brackets framing the viewport + one tiny label. */
.hud { position: fixed; inset: clamp(.75rem, 2.2vw, 1.5rem); z-index: 2; pointer-events: none; }
.hud-c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--hud); }
.hud-c.tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-c.tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-c.bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-c.br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hud-label {
  position: absolute; right: 30px; top: 2px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--dim);
}
.hud-label::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: .6em; vertical-align: 1px;
  background: var(--accent); opacity: .75;
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hud-tag {
  margin: 0 0 .5rem; text-align: left;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
}

html::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); background-size: 180px 180px;
  opacity: .045;
}

a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--bg); color: var(--ink); padding: .5rem .75rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Logo: hexagon mark + lowercase wordmark */
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--mono-ink); text-decoration: none;
  font-family: var(--display); font-weight: 900;
  font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1;
}
.logo svg { width: 1.5em; height: 1.5em; flex: none; }
.logo:hover { color: var(--ink); }
.mark-line { fill: none; stroke: currentColor; stroke-width: 18; stroke-linejoin: round; }
.mark-node { fill: currentColor; }
.mark-core { fill: var(--accent); }

/* Single decorative dashed hexagon, behind the headline, breathing slowly. */
.deco {
  position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 41vh;
  width: min(78vw, 560px); height: auto;
  transform: translate(-50%, -50%);
  opacity: .5;
  animation: breathe 14s ease-in-out infinite alternate;
}
.deco-line { fill: none; stroke: var(--deco); stroke-width: .5; stroke-dasharray: 2 4; }
.deco-dot { fill: var(--deco-dot); opacity: .5; transform-box: fill-box; transform-origin: center; animation: forming 4.5s ease-in-out infinite alternate; }
@keyframes breathe {
  from { opacity: .35; transform: translate(-50%, -50%) rotate(-4deg); }
  to   { opacity: .7;  transform: translate(-50%, -50%) rotate(4deg); }
}
@keyframes forming {
  from { opacity: .25; transform: scale(.6); }
  to   { opacity: .8; transform: scale(1.15); }
}

/* Teaser */
.teaser {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 6rem) var(--pad) 2.5rem;
}
.teaser::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 41vh; width: min(100%, 900px); height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse closest-side, var(--glow), transparent);
}
.teaser .logo { margin-bottom: clamp(2rem, 6vh, 3.25rem); font-size: .95rem; color: var(--muted); }
.teaser .logo:hover { color: var(--ink); }

/* Slow sequential reveal. Pure CSS: ends visible, so no-JS shows everything. */
@keyframes emerge {
  from { opacity: 0; filter: blur(10px); transform: translateY(6px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}
.teaser > .logo, .teaser .headline span, .teaser > .mono-line,
.teaser > .waitlist, .teaser > .cta, .teaser > .pill, .teaser > .fineprint {
  animation: emerge .9s cubic-bezier(.2, .6, .2, 1) both;
}
.teaser > .logo { animation-delay: .05s; }
.teaser .headline span:first-child { animation: emerge 1s cubic-bezier(.2, .6, .2, 1) .3s both, glitch .3s steps(4) 1.05s 1; }
.teaser .headline .accent { animation: emerge 1s cubic-bezier(.2, .6, .2, 1) .6s both, glitch .3s steps(4) 1.35s 1; }
.teaser > .mono-line { animation-delay: 1.05s; }
.teaser > .waitlist, .teaser > .cta { animation-delay: 1.3s; animation-duration: .8s; }
.teaser > .pill { animation-delay: 1.4s; animation-duration: .8s; }
.teaser > .fineprint { animation-delay: 1.45s; animation-duration: .8s; }
.scramble { color: var(--mono-ink); }
.headline {
  margin: 0;
  font-family: var(--thin); font-weight: 300;
  font-size: clamp(1.65rem, 5.1vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: .015em;
  color: var(--ink);
  text-wrap: balance;
}
.headline span { display: block; }
.headline .accent { color: var(--accent); text-shadow: 0 0 22px rgba(134, 197, 255, .28); }
/* One brief (~300ms) chromatic flicker as each headline line resolves. */
@keyframes glitch {
  0%   { text-shadow: -2px 0 rgba(255, 70, 140, .55), 2px 0 rgba(70, 220, 255, .55); transform: translateX(1px); }
  25%  { text-shadow: 2px 0 rgba(255, 70, 140, .5), -2px 0 rgba(70, 220, 255, .5); transform: translateX(-1px); clip-path: inset(10% 0 45% 0); }
  50%  { text-shadow: -1px 0 rgba(255, 70, 140, .4), 1px 0 rgba(70, 220, 255, .4); transform: none; clip-path: inset(55% 0 5% 0); }
  75%  { text-shadow: 1px 0 rgba(255, 70, 140, .3), -1px 0 rgba(70, 220, 255, .3); clip-path: none; }
  100% { transform: none; clip-path: none; }
}
.mono-line {
  margin: 1.25rem 0 0; letter-spacing: .04em;
  font-family: var(--mono); font-size: .9rem;
  color: var(--mono-ink);
}

/* Waitlist */
.waitlist { width: 100%; max-width: 29rem; margin-top: 2.25rem; }
.waitlist form { margin: 0; }
.field-row {
  display: flex; align-items: center; gap: .4rem;
  padding: .3rem .3rem .3rem .85rem;
  background: rgba(10, 13, 20, .85);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(134, 197, 255, .35), 0 0 28px rgba(134, 197, 255, .18);
}
.prompt { flex: none; font-family: var(--mono); font-size: .9rem; line-height: 1; color: var(--accent); }
.prompt::before { content: ">"; }
.prompt::after {
  content: ""; display: inline-block; width: .55em; height: 2px; margin-left: .3em; vertical-align: -1px;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
.field-row:focus-within .prompt::after { animation: none; opacity: 0; }
.field-row input[type="email"] {
  flex: 1; min-width: 0;
  background: transparent; border: 0; color: var(--ink);
  font-family: var(--mono); font-size: .92rem;
  caret-color: var(--accent);
  padding: .72rem .35rem;
}
.field-row input[type="email"]::placeholder { color: var(--muted); }
.field-row input[type="email"]:focus,
.field-row input[type="email"]:focus-visible { outline: none; }
.btn {
  flex: none;
  appearance: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: 1px;
  font-family: var(--mono); font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .85rem 1.1rem;
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 0 18px rgba(134, 197, 255, .3); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); font-weight: 600; padding: .55rem .9rem; }
.btn-ghost:hover { background: rgba(134, 197, 255, .1); border-color: var(--accent); }
.btn-link { display: inline-block; text-decoration: none; }
.hp, .offscreen { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Cloudflare Turnstile mount point: empty unless the check needs a visible interaction. */
.ts-slot { max-width: 100%; overflow: hidden; }
.ts-slot iframe { max-width: 100%; }

.status { min-height: 1.4em; margin: .6rem 0 0; font-size: .875rem; color: var(--muted); }
.status.is-error { color: var(--danger); }

.pill {
  display: inline-block;
  margin: 1rem 0 0;
  padding: .22rem .7rem;
  background: transparent; color: var(--amber);
  border: 1px solid var(--amber-line);
  border-radius: 1px;
  font-family: var(--mono); font-weight: 400;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.4;
}
.pill::before { content: "[ " / ""; opacity: .6; }
.pill::after { content: " ]" / ""; opacity: .6; }
.fineprint { margin: 1rem 0 0; font-size: .75rem; color: var(--dim); }
.fineprint a { color: var(--dim); }

.success {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: left;
}
.success:focus { outline: none; }
.success h2 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.success p { margin: 0 0 .9rem; font-size: .875rem; color: var(--muted); }
.ref-row { display: flex; gap: .5rem; align-items: stretch; }
.ref-row code {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: .8rem;
  padding: .6rem .7rem;
  background: var(--bg); border: 1px solid var(--line); border-radius: 1px;
  color: var(--accent);
  overflow-x: auto; white-space: nowrap;
}

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; justify-content: center;
  padding: 1.25rem var(--pad) 1.75rem;
  font-size: .72rem; color: var(--dim);
  text-align: center;
}
.site-footer a { color: var(--dim); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .sep { opacity: .5; }
.site-footer p { margin: 0; }

/* Header (privacy, 404, full site) */
.site-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: var(--pad);
}
.site-header .logo { font-size: 1.25rem; }
.site-header nav { display: flex; gap: 1.1rem; font-size: .875rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* Prose pages */
.prose {
  position: relative; z-index: 1;
  flex: 1;
  width: 100%; max-width: 40rem;
  margin: 0 auto;
  padding: 1rem var(--pad) 4rem;
}
.prose h1 { font-family: var(--thin); font-weight: 300; color: var(--ink); font-size: clamp(1.75rem, 5vw, 2.5rem); letter-spacing: .01em; line-height: 1.1; margin: 1rem 0 .5rem; }
.prose h2 { color: var(--ink); font-weight: 700; font-size: 1rem; margin: 2rem 0 .5rem; }
.prose p, .prose li { font-size: .95rem; }
.prose ul { padding-left: 1.2rem; }
.prose .meta { font-family: var(--mono); font-size: .78rem; color: var(--mono-ink); }
.prose code { font-family: var(--mono); font-size: .85em; color: var(--accent); }
.center { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }

/* Full-site sections */
.hero-full { min-height: 78vh; min-height: 78dvh; }
.cta { margin: 2rem 0 0; }
.section {
  position: relative; z-index: 1;
  width: 100%; max-width: 64rem; margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
}
.section .eyebrow { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin: 0 0 .75rem; }
.section h2 { font-family: var(--thin); font-weight: 300; color: var(--ink); font-size: clamp(1.5rem, 3.6vw, 2.25rem); letter-spacing: .01em; line-height: 1.1; margin: 0 0 1rem; }
.section p { max-width: 40rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { padding: 1.25rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.card h3 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.card .step { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin: 0 0 .5rem; }
.card p { font-size: .9rem; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; }
.section-waitlist { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-waitlist .waitlist { margin-top: 1rem; }
.placeholder { outline: 1.5px dashed var(--accent); outline-offset: 4px; }

@media (max-width: 480px) {
  .site-footer p { flex-basis: 100%; }
  .site-footer .sep:has(+ p) { display: none; }

  .field-row { flex-wrap: wrap; }
  .field-row input[type="email"] { flex: 1 1 0; }
  .field-row .btn { flex: 1 1 100%; }
  .hud-label { display: none; }
  .btn { width: 100%; }
  .ref-row { flex-direction: column; }
  .deco { width: 90vw; top: 36vh; }
  .teaser::before { top: 36vh; height: 320px; }
  .site-header nav { gap: .8rem; }
  .mono-line { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
