/* ==========================================================
   NEXUS AI — website
   Apple-style product page: big type, calm space, one hero moment.
   ========================================================== */

:root {
  --black: #000;
  --night: #0d0d12;
  --night-2: #16161d;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --teal: #5fd0e4;

  /* light sections (redefined in dark mode) */
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --tile: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --link: #6d4aff;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1080px;
  --ease: cubic-bezier(.22, .8, .24, 1);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #000000;
    --paper-2: #0b0b0f;
    --tile: #16161c;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: #2c2c33;
    --link: #b39dff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #000000; --paper-2: #0b0b0f; --tile: #16161c;
  --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #86868b; --line: #2c2c33; --link: #b39dff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(52px + env(safe-area-inset-top, 0px)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(0,0,0,.72); backdrop-filter: saturate(180%) blur(20px); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
kbd {
  font: 500 .8em/1 var(--sans);
  display: inline-grid; place-items: center;
  min-width: 1.7em; height: 1.7em; padding: 0 .35em; margin: 0 .1em;
  border-radius: .4em; border: 1px solid currentColor; opacity: .85;
}
:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--wrap), 100% - 44px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 44px); text-align: center; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 21px; font-weight: 600; color: var(--link); margin-bottom: 10px; letter-spacing: .004em; }
.display {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.035em;
}
.display.sm { font-size: clamp(32px, 4.6vw, 48px); }
.lede {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -.012em;
}
.narrow .lede { margin-inline: auto; }
.fine { margin-top: 14px; font-size: 12px; color: var(--ink-3); letter-spacing: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #f5f5f7;
}
.nav-inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 52px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 24px; height: 24px; color: #f5f5f7; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 13px; }
.nav-links a { color: rgba(245, 245, 247, .78); transition: color .2s; letter-spacing: -.005em; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  background: #f5f5f7; color: #000;
  padding: 5px 13px; border-radius: 980px;
  transition: background .2s;
}
.nav-cta:hover { background: #fff; }
@media (max-width: 680px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  padding: 12px 22px; border-radius: 980px;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; margin-top: -2px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 8px 30px -10px rgba(139, 92, 246, .7); }
.btn-primary:hover { background: #7c4df0; transform: translateY(-1px); }
.btn-primary:active { transform: scale(.98); }
.btn-lg { font-size: 19px; padding: 15px 30px; margin-top: 34px; }
.link-chevron { color: var(--violet-soft); font-size: 17px; }
.link-chevron::after { content: " ›"; }
.link-chevron:hover { text-decoration: underline; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  background: var(--black);
  color: #f5f5f7;
  padding: clamp(56px, 9vw, 110px) 0 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 1100px; height: 900px; left: 50%; top: 420px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(124, 77, 255, .28), rgba(124, 77, 255, 0) 70%);
  pointer-events: none;
}
.hero-copy { text-align: center; width: min(900px, 100% - 44px); margin-inline: auto; }
.orbit-logo { width: 150px; height: 150px; display: block; margin: 0 auto 18px; animation: logo-in 1.4s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(.82); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.hero-kicker { font-size: 21px; font-weight: 600; color: #f5f5f7; display: inline-flex; align-items: center; gap: 10px; letter-spacing: .004em; }
.version-pill { font-size: 12px; font-weight: 500; letter-spacing: 0; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); color: #c7c7cc; }
.hero h1 {
  margin-top: 10px;
  font-size: clamp(48px, 9.4vw, 112px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #ffffff 30%, #b9b0d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero-lede { margin: 24px auto 0; max-width: 30em; font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: #a1a1a6; font-weight: 500; letter-spacing: -.012em; }
.hero-actions { margin-top: 34px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-fine { margin-top: 18px; font-size: 13px; color: #86868b; letter-spacing: -.005em; }

/* Stage: scroll-linked tilt → flat. --p goes 0 → 1 via script. */
.stage { --p: 0; perspective: 1600px; margin: clamp(48px, 7vw, 80px) auto 0; width: min(1240px, 100% - 32px); padding-bottom: clamp(60px, 9vw, 120px); }
.device {
  transform-origin: 50% 0;
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(.86 + var(--p) * .14)) translateY(calc((1 - var(--p)) * 30px));
  border-radius: clamp(10px, 1.4vw, 18px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 40px 120px -20px rgba(124, 77, 255, calc(.25 + var(--p) * .2)),
    0 30px 60px -30px rgba(0,0,0,.9);
  overflow: hidden;
  will-change: transform;
}

/* ---------- The app mock (1em = 1/120 of its width) ---------- */
.device { container-type: inline-size; }
.app {
  font-size: calc(100cqw / 120);
  aspect-ratio: 120 / 74;
  display: grid; grid-template-columns: 23em 1fr 33em; gap: .8em;
  padding: .8em;
  background: linear-gradient(180deg, #0f1116, #0a0b0f);
  color: #e8e8ee;
  letter-spacing: 0;
  line-height: 1.3;
  font-family: var(--sans);
}
.app * { font-size: inherit; }
.app-side, .app-main, .app-ai { background: #12141a; border: .1em solid #23262f; border-radius: 1.2em; padding: 1.4em; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.lights { display: flex; gap: .6em; }
.lights i { width: 1.2em; height: 1.2em; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.app-brand { display: flex; align-items: center; gap: .8em; margin-top: 2em; }
.app-brand b { font-size: 1.6em; letter-spacing: .12em; }
.app-brand em { font-style: normal; color: #8fdcec; }
.app-logo { width: 2.8em; height: 2.8em; border-radius: .8em; display: grid; place-items: center; background: linear-gradient(135deg, #2a2160, #171a33); font-weight: 800; font-size: 1.3em; color: #c4b5fd; }
.tag { font-size: 1em; padding: .2em .6em; border: .1em solid #2c303a; border-radius: .5em; color: #8a8f9c; margin-left: auto; }
.ws-pick { margin-top: 1.4em; display: flex; gap: 1em; align-items: center; padding: 1em; border-radius: 1em; background: #181b22; border: .1em solid #262a33; }
.ws-pick small { display: block; font-size: .85em; color: #7b8190; letter-spacing: .08em; }
.ws-pick b { font-size: 1.2em; }
.ico-folder { width: 2.6em; height: 2.2em; border-radius: .5em; border: .15em solid #79d3e4; flex: none; }
.ico-folder.sm { width: 1.6em; height: 1.3em; border-radius: .3em; }
.ico-branch, .ico-term { width: 1.5em; height: 1.5em; border-radius: .3em; border: .15em solid #9aa0ad; }
.side-h { margin-top: 1.8em; font-size: .95em !important; letter-spacing: .14em; color: #7b8190; text-transform: uppercase; display: flex; }
.side-h em { margin-left: auto; font-style: normal; color: #8fdcec; letter-spacing: .05em; text-transform: none; }
.side-item { display: flex; align-items: center; gap: 1em; padding: .8em 1em; border-radius: .8em; margin-top: .4em; font-size: 1.25em; color: #cfd2da; }
.side-item kbd { margin-left: auto; border: 0; font-size: .8em; color: #6c7180; }
.side-item.on { background: #18232a; border: .1em solid #2b4b55; color: #fff; }
.tree, .convos { display: flex; flex-direction: column; gap: .7em; margin-top: .9em; font-size: 1.2em; color: #b9bdc7; padding-left: .5em; }
.convos span { padding: .4em .5em; border-radius: .5em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convos .on { background: #1c1f27; color: #fff; }
.side-foot { margin-top: auto; font-size: 1.1em; color: #9ba0ac; display: flex; gap: .6em; align-items: center; }
.dot-g, .dot-o { width: .7em; height: .7em; border-radius: 50%; background: #4ade80; display: inline-block; flex: none; }
.dot-o { background: #f0a35b; }

.app-main { padding: 0; }
.app-top { display: flex; align-items: center; gap: 1.2em; padding: 1.2em 1.6em; border-bottom: .1em solid #1f222a; font-size: 1.15em; color: #7b8190; }
.crumb b { color: #e8e8ee; }
.branch-pill { padding: .3em .9em; border: .1em solid #2c303a; border-radius: 99em; color: #cfd2da; }
.runtime { margin-left: auto; display: flex; align-items: center; gap: .5em; color: #6ee7a0; border: .1em solid #1f4d33; border-radius: 99em; padding: .3em .9em; background: #0f1f17; font-size: .9em; letter-spacing: .08em; text-transform: uppercase; }
.app-tabs { display: flex; justify-content: space-between; padding: 1em 1.6em; border-bottom: .1em solid #1f222a; }
.tab { font-size: 1.2em; padding: .5em 1em; border-radius: .7em; color: #a7abb6; border: .1em solid #262a33; }
.tab.on { background: #18232a; border-color: #2b4b55; color: #fff; }
.app-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9em; padding: 2em; }
.code-badge { width: 5em; height: 5em; border-radius: 1.4em; display: grid; place-items: center; background: #15242b; border: .1em solid #2b4b55; color: #8fdcec; font-size: 1.4em; font-weight: 700; }
.app-empty small { letter-spacing: .3em; color: #8fdcec; text-transform: uppercase; font-size: 1em; margin-top: .6em; }
.app-empty b { font-size: 3.2em; letter-spacing: -.03em; }
.app-empty p { font-size: 1.25em; color: #9ba0ac; }
.empty-btns { display: flex; gap: .8em; margin-top: 1em; }
.empty-btns span { font-size: 1.2em; padding: .7em 1.2em; border-radius: .8em; border: .1em solid #2c303a; color: #d6d9e0; }
.empty-btns .b-teal { background: linear-gradient(180deg, #7fdcef, #4fbfd6); color: #062028; border: 0; font-weight: 600; box-shadow: 0 0 2em rgba(95, 208, 228, .35); }
.app-status { display: flex; justify-content: space-between; padding: .9em 1.6em; border-top: .1em solid #1f222a; font-size: 1em; color: #7b8190; font-family: var(--mono); }
.app-status span:first-child { color: #6ee7a0; display: flex; gap: .5em; align-items: center; }

.ai-head { display: flex; align-items: center; gap: 1em; }
.ai-head b { display: block; font-size: 1.3em; letter-spacing: .12em; text-transform: uppercase; }
.ai-head small { color: #8a8f9c; font-size: 1.1em; }
.spark { width: 2.8em; height: 2.8em; border-radius: .9em; display: grid; place-items: center; background: #181d26; border: .1em solid #2b4b55; color: #8fdcec; font-size: 1.3em; }
.spark.big { width: 3.6em; height: 3.6em; font-size: 1.6em; margin-bottom: .4em; }
.plus { margin-left: auto; width: 2.6em; height: 2.6em; border-radius: .7em; border: .15em solid #f0b429; display: grid; place-items: center; font-size: 1.4em; }
.agent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-top: 1em; }
.ag { font-size: 1.2em; display: flex; align-items: center; gap: .5em; padding: .75em .9em; border-radius: .8em; border: .1em solid #262a33; background: #15171d; color: #d6d9e0; }
.ag b { margin-left: auto; width: 1.4em; height: 1.4em; border-radius: .35em; background: #5fd0e4; color: #062028; display: grid; place-items: center; font-size: .85em; }
.ag.on { border-color: #2b6a78; background: #14232a; }
.ai-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6em; padding: 1em; }
.ai-empty b { font-size: 2em; letter-spacing: -.02em; }
.ai-empty p { font-size: 1.15em; color: #9ba0ac; max-width: 24em; }
.quick { display: flex; flex-direction: column; gap: .6em; }
.quick span { font-size: 1.15em; padding: .9em 1.1em; border-radius: .9em; background: #15171d; border: .1em solid #262a33; color: #e0e2e8; }
.composer { margin-top: .9em; padding: 1.1em; height: 6.5em; border-radius: 1.1em; border: .1em solid #2c303a; background: #101217; color: #6c7180; font-size: 1.15em; position: relative; }
.send { position: absolute; right: .8em; bottom: .8em; width: 2.4em; height: 2.4em; border-radius: .7em; background: #2b6a78; color: #cdf4fb; display: grid; place-items: center; }

/* Mobile: show the main and AI columns only, the mock stays readable */
@media (max-width: 640px) {
  .app { grid-template-columns: 1fr 1fr; aspect-ratio: 120 / 120; font-size: calc(100cqw / 62); }
  .app-side { display: none; }
  .app-empty b { font-size: 2.2em; }
  .empty-btns span:last-child { display: none; }
}

/* ==========================================================
   AGENTS
   ========================================================== */
.agents { background: var(--paper); padding: clamp(90px, 12vw, 160px) 0; }
.agent-row { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.agent-card {
  background: var(--paper-2); border-radius: 24px; padding: 30px 26px 26px;
  transition: transform .4s var(--ease);
}
.agent-card:hover { transform: translateY(-4px); }
.agent-badge {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px; color: #fff;
  background: var(--a);
  box-shadow: 0 10px 24px -10px var(--a);
  letter-spacing: 0;
}
.agent-badge.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; box-shadow: none; }
.agent-card h3 { margin-top: 26px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.agent-card p { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
@media (max-width: 820px) { .agent-row { grid-template-columns: repeat(2, 1fr); } }

.compare {
  margin-top: 28px; padding: clamp(28px, 4vw, 56px);
  border-radius: 32px;
  background: var(--night); color: #f5f5f7;
  position: relative; overflow: hidden; isolation: isolate;
}
.compare::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(139,92,246,.28), transparent); }
.compare-head h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.compare-head p { margin-top: 10px; color: #a1a1a6; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  font: 500 15px/1 var(--sans); letter-spacing: -.01em;
  padding: 11px 18px 11px 14px; border-radius: 99px;
  border: 1px solid #33333b; background: transparent; color: #c7c7cc;
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  transition: background .25s, border-color .25s, color .25s, transform .15s;
}
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--a); transition: background .25s; }
.chip[aria-pressed="true"] { background: color-mix(in srgb, var(--a) 18%, transparent); border-color: color-mix(in srgb, var(--a) 60%, transparent); color: #fff; }
.chip[aria-pressed="true"]::before { background: var(--a); }
.chip:active { transform: scale(.96); }
.prompt-bar {
  margin-top: 22px; display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 18px; border-radius: 18px;
  background: #1a1a22; border: 1px solid #2c2c35;
  font-size: 17px;
}
.prompt-ico { color: var(--teal); }
.prompt-text { flex: 1; color: #e5e5ea; }
.prompt-send { width: 34px; height: 34px; border-radius: 10px; background: var(--violet); display: grid; place-items: center; color: #fff; flex: none; }
.answers { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.answer {
  background: #15151c; border: 1px solid #26262e; border-top: 3px solid var(--a);
  border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
  animation: answer-in .5s var(--ease) both;
}
.answer[hidden] { display: none; }
@keyframes answer-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.answer header { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.answer p { color: #c7c7cc; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; }
.answer code { font-family: var(--mono); font-size: 13px; background: #24242d; padding: 1px 5px; border-radius: 5px; color: #e5e5ea; }
.answer footer { margin-top: auto; font-size: 12px; color: #86868b; letter-spacing: 0; }
.compare .fine { color: #6e6e73; }

/* ==========================================================
   WORKSPACE (bento)
   ========================================================== */
.workspace { background: var(--paper-2); padding: clamp(90px, 12vw, 160px) 0; }
.bento { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  background: var(--tile); border-radius: 28px;
  padding: 34px; display: flex; flex-direction: column; gap: 10px;
  min-height: 300px; overflow: hidden;
}
.tile h3 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; max-width: 16em; }
.tile p { color: var(--ink-2); font-size: 17px; max-width: 26em; }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 36px; }
.tile-full { grid-column: 1 / -1; min-height: 0; }
.tile-full .tile-copy { flex: 0 0 32%; }
.tile-full .quick-list { flex-direction: row; }
.tile-full .quick-list span { flex: 1; }
.tile-wide .tile-copy { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tile-dark { background: var(--night); color: #f5f5f7; }
.tile-dark p { color: #a1a1a6; }

.mini-explorer { flex: 1; max-width: 330px; background: #12141a; border: 1px solid #23262f; border-radius: 18px; padding: 14px; font-size: 14px; color: #c9ccd4; display: flex; flex-direction: column; gap: 4px; letter-spacing: 0; }
.mx-search { padding: 9px 12px; border: 1px solid #2a2d36; border-radius: 10px; color: #7b8190; margin-bottom: 6px; }
.mx-row { padding: 7px 10px; border-radius: 8px; display: flex; gap: 8px; align-items: center; color: #9ba0ac; }
.mx-row .f { color: #d6d9e0; }
.mx-row.in { padding-left: 30px; color: #d6d9e0; }
.mx-row.sel { background: #18232a; outline: 1px solid #2b4b55; }
.ft { font: 600 9px/1 var(--mono); padding: 4px 5px; border-radius: 4px; color: #0b0b0f; }
.ft.ts { background: #7ab8ff; } .ft.py { background: #ffd166; } .ft.md { background: #c4b5fd; }

.mini-term { margin: auto 0 0; padding: 18px; border-radius: 16px; background: #050507; border: 1px solid #23232b; font: 13px/1.7 var(--mono); color: #d6d9e0; white-space: pre-wrap; letter-spacing: 0; }
.mini-term .pr { color: #8fdcec; } .mini-term .br { color: #a78bfa; } .mini-term .c { color: #86868b; } .mini-term .ok { color: #4ade80; }
.cursor { display: inline-block; width: 8px; height: 15px; background: #e5e5ea; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tile-dark kbd { color: #f5f5f7; }

.big-stat { font-size: 120px; font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(135deg, var(--violet), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: auto; padding-bottom: 14px; }

.usage { margin-top: auto; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.usage div { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; font-size: 14px; letter-spacing: 0; }
.usage span { color: var(--ink-2); }
.usage i { height: 8px; border-radius: 99px; background: var(--paper-2); position: relative; overflow: hidden; }
.usage i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--a); border-radius: inherit; transform-origin: left; transition: transform 1.2s var(--ease); }
.usage b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tile:not(.seen) .usage i::after { transform: scaleX(0); }

.convo-list { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; font-size: 14px; letter-spacing: 0; }
.convo-list span { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); }
.convo-list span:first-child { border: 1px solid var(--line); color: var(--ink-3); margin-bottom: 4px; }
.convo-list .on { background: var(--paper-2); color: var(--ink); font-weight: 500; }

.quick-list { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.quick-list span { display: flex; flex-direction: column; padding: 16px 20px; border-radius: 16px; background: var(--paper-2); border: 1px solid transparent; transition: border-color .2s, transform .2s var(--ease); }
.quick-list span:hover { border-color: var(--violet); transform: translateX(4px); }
.quick-list b { font-size: 16px; font-weight: 600; }
.quick-list small { font-size: 14px; color: var(--ink-2); letter-spacing: -.005em; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .tile-full { flex-direction: column; align-items: stretch; }
  .tile-full .quick-list { flex-direction: column; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .mini-explorer { max-width: none; }
  .tile { padding: 28px; min-height: 0; }
  .big-stat { font-size: 96px; }
}

/* ==========================================================
   PRIVACY
   ========================================================== */
.privacy { background: var(--black); color: #f5f5f7; padding: clamp(100px, 13vw, 180px) 0; position: relative; overflow: hidden; isolation: isolate; }
.privacy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 900px; height: 600px; transform: translate(-50%, -40%); background: radial-gradient(closest-side, rgba(95, 208, 228, .16), transparent); }
.privacy .lede { color: #a1a1a6; }
.shield { width: 76px; height: 76px; margin: 0 auto 30px; color: var(--teal); }
.shield svg { width: 100%; height: 100%; }
.privacy-points { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; text-align: left; border-top: 1px solid #2c2c33; padding-top: 36px; }
.privacy-points h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.privacy-points p { margin-top: 6px; color: #a1a1a6; font-size: 16px; }
@media (max-width: 640px) { .privacy-points { grid-template-columns: 1fr; gap: 24px; } }

/* ==========================================================
   SPECS
   ========================================================== */
.specs { background: var(--paper); padding: clamp(80px, 10vw, 130px) 0; }
.spec-table { margin: 40px 0 0; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: minmax(160px, 1fr) 2.4fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.spec-table dd { margin: 0; font-size: 17px; color: var(--ink-2); line-height: 1.65; }
.keys { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.keys kbd { color: var(--ink); }
@media (max-width: 640px) { .spec-table > div { grid-template-columns: 1fr; gap: 6px; } }

/* ==========================================================
   DOWNLOAD
   ========================================================== */
.download { background: var(--paper-2); padding: clamp(100px, 13vw, 170px) 0; }
.dl-mark { width: 128px; height: 128px; display: block; margin: 0 auto 34px; border-radius: 30px; box-shadow: 0 24px 50px -18px rgba(76, 40, 180, .55); }
.dl-detail { margin-top: 16px; font-size: 14px; color: var(--ink-3); letter-spacing: -.005em; }
.dl-detail.attention { color: var(--link); font-weight: 500; }
.soon { margin-top: 40px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.soon span { font-size: 14px; color: var(--ink-3); padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); letter-spacing: -.005em; }
.soon b { color: var(--ink); font-weight: 600; margin-right: 4px; }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { background: var(--paper-2); color: var(--ink-3); font-size: 12px; line-height: 1.5; letter-spacing: -.005em; padding: 0 0 26px; }
.foot-note { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; }
.foot-bar nav { display: flex; gap: 0; }
.foot-bar nav a { color: var(--ink-2); padding: 0 10px; border-left: 1px solid var(--line); }
.foot-bar nav a:first-child { border-left: 0; padding-left: 0; }
.foot-bar nav a:hover { text-decoration: underline; color: var(--ink); }

/* ---------- Reveal on scroll (headings only, subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.seen { opacity: 1; transform: none; }

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