/* ==========================================================================
   Eaon — eaon.dev
   Warm editorial-technical. A soft serif (Fraunces) for display against a
   terminal mono (Plex Mono) — crafted software for people who live in the
   terminal. Warm espresso dark, cream text, coral + a sparing amber, and a
   whisper of film grain. Deliberately authored — no cold-neutral-plus-one-
   accent AI defaults, no glows behind everything.
   ========================================================================== */

:root {
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif; /* smaller UI headings */
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: "Space Grotesk", "IBM Plex Sans", sans-serif; /* the logo wordmark */

  /* Warm espresso neutrals */
  --bg: #17120d;
  --bg-2: #1e1811;
  --surface: #221b13;
  --surface-2: #2b2218;
  --surface-3: #362b1f;

  --border: rgba(244, 236, 220, 0.09);
  --border-2: rgba(244, 236, 220, 0.15);
  --border-3: rgba(244, 236, 220, 0.22);

  --text: #f4ecdd;
  --text-2: #b3a48e;
  --text-3: #83745f;

  /* Brand + a sparing second accent */
  --coral: #f1704f;
  --coral-bright: #ff8768;
  --coral-soft: #f5a488;
  --coral-dim: rgba(241, 112, 79, 0.13);
  --gold: #e6b25e;
  --gold-dim: rgba(230, 178, 94, 0.14);
  --ink: #1b1109; /* dark text on coral */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 44px 88px -28px rgba(0, 0, 0, 0.8), 0 14px 36px -10px rgba(0, 0, 0, 0.55);
  --glow-coral: 0 8px 30px -10px rgba(241, 112, 79, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --wrap: 1140px;
  --r: 15px;
  --r-sm: 10px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain — subtle tactility, a human touch */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 760px; }

::selection { background: rgba(241, 112, 79, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------- Type -------------------------------- */
/* Big display = warm serif with a little softness for character */
.display {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.012em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.squig { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--coral); } /* accent word */

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  padding: 7px 15px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 12px 20px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 150ms var(--ease-out), background-color 150ms var(--ease-out),
    border-color 150ms var(--ease-out), box-shadow 200ms var(--ease-out), color 150ms var(--ease-out);
  white-space: nowrap;
}
.btn__icon { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--coral, .btn--butter, .btn--ink { background: var(--coral); color: var(--ink); font-weight: 600; box-shadow: var(--glow-coral); }
.btn--aqua { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 15px 26px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn--coral:hover, .btn--butter:hover, .btn--ink:hover { background: var(--coral-bright); transform: translateY(-1px); box-shadow: 0 12px 40px -10px rgba(241, 112, 79, 0.55); }
  .btn--aqua:hover, .btn--ghost:hover { background: var(--surface-3); border-color: var(--border-3); transform: translateY(-1px); }
}

.iconbtn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); cursor: pointer;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.iconbtn svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); } }

/* -------------------------------- Nav --------------------------------- */
.nav { position: sticky; top: 0; z-index: 100; padding: 15px 0; transition: background-color 250ms var(--ease-out), border-color 250ms var(--ease-out), backdrop-filter 250ms var(--ease-out); border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(23, 18, 13, 0.74); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--shadow-sm); flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font-family: var(--font-brand); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2); transition: color 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); } }
.nav__socials { display: flex; gap: 8px; }

/* ------------------------------ Blocks -------------------------------- */
.block { position: relative; padding: 108px 0; }
.block--rt { border-top: 1px solid var(--border); }
.block--paper, .block--ink, .block--coral { background: var(--bg); }
.block--butter, .block--aqua { background: var(--bg-2); }

/* ------------------------------- Hero --------------------------------- */
.hero { position: relative; background: var(--bg); padding: 60px 0 88px; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr 1.02fr; gap: 60px; align-items: center; }
.hero__title { font-size: clamp(46px, 6.8vw, 82px); margin: 24px 0 26px; line-height: 1.0; letter-spacing: -0.015em; }
.hero__sub { font-size: clamp(17px, 1.7vw, 19px); color: var(--text-2); max-width: 33em; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero__meta { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.js-dl { display: none; align-items: center; gap: 6px; }
.js-dl.is-on { display: inline-flex; }
.js-dl b { color: var(--text-2); font-weight: 600; }

/* Product shot — floats on a warm surface, real soft shadow */
.scene { position: relative; }
.scene__win { position: relative; z-index: 1; }
.appwin {
  position: relative; display: grid; grid-template-columns: 172px 1fr;
  height: 404px; background: #191512; border: 1px solid var(--border-2);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.appwin__lights { position: absolute; top: 15px; left: 16px; display: flex; gap: 8px; z-index: 5; }
.light { width: 11px; height: 11px; border-radius: 50%; }
.light--r { background: #ff5f57; } .light--y { background: #febc2e; } .light--g { background: #28c840; }
.sb { background: #130f0b; border-right: 1px solid var(--border); padding: 46px 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.4; color: var(--text); overflow: hidden; }
.sb__head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; }
.sb__mark { width: 18px; height: 18px; border-radius: 5px; overflow: hidden; flex: none; }
.sb__mark svg { width: 100%; height: 100%; }
.sb__word { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 14px; }
.sb__row { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text); }
.sb__row svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
.sb__row--on { background: rgba(255, 255, 255, 0.06); }
.sb__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); padding: 12px 8px 5px; }
.sb__chat { padding: 6px 8px; border-radius: 8px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb__chat--sel { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.pane { display: flex; flex-direction: column; min-width: 0; background: #191512; }
.pane__top { height: 50px; display: flex; align-items: center; padding: 8px 16px 0; }
.modelpick { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); background: transparent; border: none; }
.modelpick svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pane__chat { flex: 1; padding: 6px 20px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.msg { display: flex; }
.msg--user { justify-content: flex-end; }
.bubble { background: var(--surface-2); border: 1px solid var(--border); padding: 9px 13px; border-radius: 14px; font-size: 13px; max-width: 78%; color: var(--text); }
.msg--ai { gap: 10px; align-items: flex-start; }
.msg__dot { width: 20px; height: 20px; border-radius: 6px; overflow: hidden; flex: none; margin-top: 1px; }
.msg__dot svg { width: 100%; height: 100%; }
.msg__body { font-size: 13px; color: var(--text); line-height: 1.55; }
.msg__body p { min-height: 1em; }
.type-caret { display: inline-block; width: 6px; height: 1em; transform: translateY(2px); background: var(--coral); margin-left: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer { margin: 12px 16px 16px; display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px 11px 16px; }
.composer__ph { flex: 1; color: var(--text-3); font-size: 14px; }
.composer__send { width: 30px; height: 30px; border-radius: 8px; background: var(--coral); color: var(--ink); border: none; display: grid; place-items: center; flex: none; }
.composer__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------- Marquee (quiet) -------------------------- */
.marquee { overflow: hidden; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: 30px; white-space: nowrap; animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; }
.marquee__track i { color: var(--gold); opacity: 0.6; font-style: normal; font-size: 8px; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------- Section heads --------------------------- */
.head { max-width: 720px; margin: 0 auto 62px; text-align: center; }
.head .eyebrow { display: inline-block; margin-bottom: 20px; color: var(--gold); }
.head__title { font-size: clamp(30px, 4vw, 46px); }
.head__lead { margin-top: 20px; font-size: 18px; color: var(--text-2); }

/* ------------------------------ Stats band ---------------------------- */
.stats__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.stat { display: none; }
.stat.is-on { display: block; }
.stat__num { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(60px, 9vw, 104px); line-height: 0.86; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat__label { font-family: var(--font-mono); font-size: 14px; margin-top: 12px; color: var(--text-3); }
.stats__cta { max-width: 40ch; }
.stats__cta h3 { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.06; letter-spacing: -0.012em; margin-bottom: 18px; }
.stats__cta p { margin-bottom: 26px; color: var(--text-2); }

/* ------------------------------ Feature grid -------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.fcard {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 30px 28px;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .fcard:hover { transform: translateY(-3px); border-color: var(--border-2); background: var(--surface-2); box-shadow: var(--shadow); } }
.fcard__ic { width: 42px; height: 42px; border-radius: 10px; background: var(--coral-dim); border: 1px solid rgba(241, 112, 79, 0.2); display: grid; place-items: center; margin-bottom: 22px; }
.fcard__ic svg { width: 21px; height: 21px; fill: none; stroke: var(--coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 11px; }
.fcard p { color: var(--text-2); font-size: 15px; }
.fcard--tall p + p { margin-top: 10px; }
.fcard kbd { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-3); color: var(--text); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 6px; }
.grid__more { text-align: center; margin-top: 48px; }

/* --------------------------- Local band ------------------------------- */
.local__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.local h2 { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(29px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.014em; }
.local__lead { margin: 22px 0 28px; color: var(--text-2); font-size: 17px; }
.checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.checks li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; color: var(--text); }
.checks .ck { width: 24px; height: 24px; flex: none; border-radius: 7px; background: var(--coral-dim); border: 1px solid rgba(241, 112, 79, 0.22); display: grid; place-items: center; margin-top: 1px; }
.checks .ck svg { width: 14px; height: 14px; fill: none; stroke: var(--coral); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.term { background: #0c0906; border: 1px solid var(--border-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.term__title { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); margin-left: 8px; }
.term__body { font-family: var(--font-mono); font-size: 13px; line-height: 1.9; color: #d3ccbe; padding: 20px 22px; overflow-x: auto; }
.c-dim { color: var(--text-3); } .c-key { color: var(--coral); } .c-ok { color: #6cbf88; }

/* ------------------------------ Use cases ----------------------------- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--r); padding: 32px; transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case:hover { border-color: var(--border-2); background: var(--surface-2); } }
.case__n { display: inline-block; font-family: var(--font-serif); font-optical-sizing: auto; font-style: italic; font-weight: 500; font-size: 30px; line-height: 1; color: var(--gold); margin-bottom: 18px; }
.case h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.16; letter-spacing: -0.01em; margin-bottom: 11px; }
.case p { color: var(--text-2); font-size: 15.5px; }

/* --------------------------- Open source band ------------------------- */
.oss__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 58px; align-items: center; }
.oss h2 { font-size: clamp(31px, 4.6vw, 52px); line-height: 1.0; letter-spacing: -0.018em; }
.oss p { margin: 24px 0 30px; font-size: 18px; color: var(--text-2); max-width: 42ch; }
.oss__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.repo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 26px; font-family: var(--font-mono); font-size: 14px; color: var(--text); box-shadow: var(--shadow); }
.repo__top { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.repo__top svg { width: 22px; height: 22px; fill: var(--text); }
.repo__name { font-weight: 600; }
.repo__row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--border); color: var(--text-2); }
.repo__row span:last-child { color: var(--gold); }

/* ------------------------------ Download ------------------------------ */
.download { position: relative; overflow: hidden; }
.download__inner { text-align: center; max-width: 640px; margin: 0 auto; position: relative; z-index: 2; }
.download__mark { display: block; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2); box-shadow: var(--glow-coral); }
.download__mark svg { width: 100%; height: 100%; }
.download__title { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(36px, 5vw, 58px); line-height: 1.0; letter-spacing: -0.018em; }
.download__sub { color: var(--text-2); font-size: 19px; margin: 20px auto 34px; max-width: 34ch; }
.download__req { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); margin-top: 22px; }

/* -------------------------------- FAQ --------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; transition: border-color 180ms var(--ease-out); }
.faq__item[open] { border-color: var(--border-2); }
.faq__item summary { list-style: none; cursor: pointer; padding: 21px 24px; font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: 18px; letter-spacing: -0.008em; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color 140ms var(--ease-out); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; font-weight: 400; line-height: 1; color: var(--text-3); transition: transform 220ms var(--ease-out), color 140ms var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--coral); }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover { color: var(--coral-soft); } }
.faq__item p { padding: 0 24px 22px; font-size: 15.5px; color: var(--text-2); max-width: 66ch; }
.faq__item p a { color: var(--coral-soft); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 164, 136, 0.4); transition: text-decoration-color 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .faq__item p a:hover { text-decoration-color: var(--coral-soft); } }

/* ------------------------------ Footer -------------------------------- */
.footer { background: var(--bg-2); color: var(--text); padding: 66px 0 42px; border-top: 1px solid var(--border); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer__brand { max-width: 30ch; }
.footer__brandrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer__brandrow .brand__mark { width: 34px; height: 34px; }
.footer__word { font-family: var(--font-brand); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.footer__tag { font-size: 14px; color: var(--text-3); line-height: 1.55; }
.footer__socials { display: flex; gap: 9px; margin-top: 20px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 15px; padding: 6px 0; color: var(--text-2); transition: color 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--text); } }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
/* The site's one hidden entry point (→ the invite-only login) — must read as plain text,
   at rest and on hover. Keyboard focus still shows the normal outline (a11y), which is fine. */
.footer__ghost { color: inherit; }
.footer__ghost:hover { color: inherit; }

/* ==================== FEATURES PAGE ==================== */
.fhero { position: relative; background: var(--bg); padding: 68px 0 80px; overflow: hidden; }
.fhero__inner { position: relative; z-index: 1; max-width: 780px; }
.fhero__title { font-size: clamp(42px, 6vw, 76px); margin: 22px 0 24px; line-height: 1.0; letter-spacing: -0.016em; }
.fhero__sub { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-2); max-width: 42ch; margin-bottom: 32px; }
.fhero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.subhead { max-width: 720px; margin: 0 0 50px; }
.subhead .eyebrow { display: inline-block; margin-bottom: 18px; color: var(--gold); }
.subhead h2 { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.016em; }
.subhead p { margin-top: 18px; font-size: 17px; color: var(--text-2); max-width: 58ch; }

.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; margin: 0 0 66px; }
.spot:last-child { margin-bottom: 0; }
.spot--flip .spot__text { order: 2; }
.spot__text h3 { font-family: var(--font-serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(23px, 3vw, 32px); line-height: 1.08; letter-spacing: -0.014em; margin-bottom: 16px; }
.spot__text p { font-size: 16px; color: var(--text-2); margin-bottom: 14px; }
.spot__text p:last-child { margin-bottom: 0; }

.mock { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); padding: 14px; color: var(--text); font-family: var(--font-mono); font-size: 13px; box-shadow: var(--shadow-lg); }
.mock__bar { display: flex; gap: 7px; margin-bottom: 14px; }
.mock__bar .light { width: 10px; height: 10px; }
.pick__search { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; color: var(--text-3); margin-bottom: 10px; }
.pick__grp { font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); padding: 9px 8px 4px; }
.pick__row { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; color: var(--text-2); }
.pick__row--on { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.pick__row .bdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pick__row .chk { margin-left: auto; color: var(--coral); }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmp__col { background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 12px; }
.cmp__hd { display: flex; align-items: center; gap: 7px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.cmp__hd .bdot { width: 8px; height: 8px; border-radius: 50%; }
.cmp__ln { height: 7px; border-radius: 4px; background: var(--surface-3); margin: 7px 0; }
.cmp__ln.s { width: 68%; } .cmp__ln.m { width: 88%; }
.pal__input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 11px 12px; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.pal__input kbd { font-family: var(--font-mono); font-size: 11px; background: var(--bg); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.pal__row { padding: 9px 10px; border-radius: 8px; color: var(--text-2); display: flex; align-items: center; gap: 9px; }
.pal__row--on { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.pal__row .k { margin-left: auto; color: var(--text-3); font-size: 11px; }

/* --------------------------- Scroll reveal ---------------------------- */
.reveal { opacity: 0; }
.reveal.in { animation: reveal-in 0.7s var(--ease-out) both; }
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------------------- Responsive ------------------------------ */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .scene { max-width: 540px; margin: 0 auto; }
  .local__inner, .oss__inner { grid-template-columns: 1fr; gap: 38px; }
  .grid, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .spot, .spot--flip .spot__text { grid-template-columns: 1fr; order: 0; }
  .spot { gap: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav__links, .nav__socials { display: none; }
  .block { padding: 74px 0; }
  .hero { padding: 36px 0 62px; }
  .grid, .grid--2, .cases { grid-template-columns: 1fr; }
  .appwin { grid-template-columns: 1fr; height: auto; }
  .sb { display: none; }
  .hero__cta .btn { flex: 1; }
  .stats__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .cmp { grid-template-columns: 1fr; }
}

/* --------------------------- Reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; }
  .marquee__track { animation: none; }
  .type-caret { animation: none; }
}
