/* OpenAgentFleet landing — tokens first, both themes, then components. */

:root {
  color-scheme: light;
  --bg: #f3f5f9;
  --bg-2: #e8edf5;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: #cdd6e3;
  --line-strong: #a7b4c8;
  --text: #10151d;
  --text-soft: #3c4757;
  --text-muted: #5c6a7e;
  --text-dim: #7f8ca0;
  --accent: #b45309;
  --accent-hi: #d97706;
  --accent-soft: rgba(180, 83, 9, .12);
  --accent-ink: #ffffff;
  --cool: #0369a1;
  --cool-soft: rgba(3, 105, 161, .14);
  --good: #15803d;
  --warn: #c2410c;
  --shadow: 0 30px 80px -30px rgba(16, 21, 29, .35), 0 2px 6px rgba(16, 21, 29, .06);
  --shadow-soft: 0 12px 40px -18px rgba(16, 21, 29, .25);
  --show-dark: none;
  --show-light: block;
  --wall: radial-gradient(120% 90% at 20% 0%, #2b3a5e 0%, #16203a 45%, #0c1225 100%);
  --wall-panel: rgba(9, 13, 26, .78);
  --win: #f5f7fb;
  --win-bar: #e7ebf3;
  --win-text: #1a2230;
  --win-muted: #6a778c;
  --win-line: #d5dce8;
  --term: #0d1220;
  --term-text: #cfe3d6;
  --term-prompt: #f5a524;
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f17;
    --bg-2: #0f1520;
    --surface: #131a26;
    --surface-2: #182131;
    --line: #26314a;
    --line-strong: #3a4a66;
    --text: #e8edf4;
    --text-soft: #c3ccd9;
    --text-muted: #8a97ab;
    --text-dim: #66748a;
    --accent: #f5a524;
    --accent-hi: #ffbe4d;
    --accent-soft: rgba(245, 165, 36, .16);
    --accent-ink: #1a1206;
    --cool: #38bdf8;
    --cool-soft: rgba(56, 189, 248, .16);
    --good: #22c55e;
    --warn: #f97316;
    --shadow: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .4);
    --shadow-soft: 0 16px 50px -20px rgba(0, 0, 0, .7);
    --show-dark: block;
    --show-light: none;
    --win: #1b2231;
    --win-bar: #222b3d;
    --win-text: #e6ebf3;
    --win-muted: #8b98ad;
    --win-line: #2d3850;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-2: #0f1520;
  --surface: #131a26;
  --surface-2: #182131;
  --line: #26314a;
  --line-strong: #3a4a66;
  --text: #e8edf4;
  --text-soft: #c3ccd9;
  --text-muted: #8a97ab;
  --text-dim: #66748a;
  --accent: #f5a524;
  --accent-hi: #ffbe4d;
  --accent-soft: rgba(245, 165, 36, .16);
  --accent-ink: #1a1206;
  --cool: #38bdf8;
  --cool-soft: rgba(56, 189, 248, .16);
  --good: #22c55e;
  --warn: #f97316;
  --shadow: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .4);
  --shadow-soft: 0 16px 50px -20px rgba(0, 0, 0, .7);
  --show-dark: block;
  --show-light: none;
  --win: #1b2231;
  --win-bar: #222b3d;
  --win-text: #e6ebf3;
  --win-muted: #8b98ad;
  --win-line: #2d3850;
}

/* ------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code, pre, .mono { font-family: var(--font-mono); font-variant-ligatures: none; }
code { font-size: .9em; background: var(--bg-2); padding: .1em .4em; border-radius: 5px; color: var(--text-soft); }
.only-dark { display: var(--show-dark); }
.only-light { display: var(--show-light); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(20px, 5vw, 56px); padding-right: clamp(20px, 5vw, 56px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6.8rem); line-height: .96; letter-spacing: -.035em; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 640; }
p { margin: 0; }
.eyebrow {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.5; color: var(--text-soft); max-width: 34em; }
.fine { font-size: .92rem; color: var(--text-muted); }
.fine a { color: var(--text-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  padding: 13px 20px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hi); }
.btn.ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--text-muted); background: var(--surface); }
.btn.small { padding: 8px 14px; font-size: .9rem; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text-soft); white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2s ease-out infinite; }
.chip.live { color: var(--text); }
.chip.cool { border-color: var(--cool); color: var(--cool); background: var(--cool-soft); }
.chip.cool .dot { background: var(--cool); box-shadow: 0 0 0 0 var(--cool); }
.chip.warn { border-color: transparent; background: var(--accent-soft); color: var(--accent); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 40%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* ------------------------------------------------------------ header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  height: 64px; padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; }
.brand img { height: 30px; width: auto; }
.top-nav { display: flex; gap: 26px; justify-content: center; }
.top-nav a { text-decoration: none; color: var(--text-muted); font-size: .92rem; font-weight: 500; }
.top-nav a:hover { color: var(--text); }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-soft); display: grid; place-items: center; cursor: pointer;
}
.theme-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-btn svg { grid-area: 1 / 1; }
.theme-btn .ico-sun, .theme-btn .ico-moon { display: none; }
:root[data-theme="light"] .theme-btn .ico-sun { display: block; }
:root[data-theme="light"] .theme-btn .ico-auto { display: none; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: block; }
:root[data-theme="dark"] .theme-btn .ico-auto { display: none; }
@media (max-width: 900px) { .top { grid-template-columns: 1fr auto; } .top-nav { display: none; } }

/* ------------------------------------------------------------ hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px);
  align-items: center; padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(48px, 8vh, 96px);
}
.hero-copy .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-copy .lede { margin-top: 24px; }
.hint { margin-top: 22px; font-size: .9rem; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; animation: ping 1.8s ease-out infinite; }
.hero-stage { position: relative; min-width: 0; }
.stage-chrome { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.chip.drive { border-color: var(--cool); color: var(--cool); background: var(--cool-soft); opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .25s ease; }
.hero-stage.driving .chip.drive { opacity: 1; transform: none; }
.hero-stage.driving .desk { box-shadow: var(--shadow), 0 0 0 3px var(--cool); cursor: none; }
.hero-stage.driving .cursor.agent { opacity: .35; }
.hero-stage.driving .cursor.human { opacity: 1; }

.ticker {
  margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  font-family: var(--font-mono); font-size: .76rem; overflow: hidden;
}
.ticker-head { display: grid; grid-template-columns: 44px 1fr; padding: 6px 12px; color: var(--text-dim); border-bottom: 1px solid var(--line); letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.ticker-lines { list-style: none; margin: 0; padding: 4px 0; height: 88px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.ticker-lines li { display: grid; grid-template-columns: 44px 1fr; padding: 3px 12px; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .35s ease; }
.ticker-lines li .n { color: var(--text-dim); }
.ticker-lines li .k { color: var(--accent); }
.ticker-lines li.op { color: var(--cool); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
}

/* ------------------------------------------------------------ the mock desktop */
.desk {
  position: relative; aspect-ratio: 16 / 10; width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--wall); box-shadow: var(--shadow); container-type: inline-size;
  font-family: var(--font-body); color: var(--win-text); user-select: none;
  transition: box-shadow .25s ease;
}
.desk .panel {
  position: absolute; left: 0; right: 0; top: 0; height: 5.2cqw; background: var(--wall-panel);
  display: flex; align-items: center; gap: 2cqw; padding: 0 2cqw; color: #d7deea; font-size: 1.9cqw;
  backdrop-filter: blur(6px);
}
.desk .panel .apps { display: inline-flex; align-items: center; gap: 1cqw; }
.desk .panel .apps i { width: 2.2cqw; height: 2.2cqw; border-radius: 30%; background: linear-gradient(135deg, #f5a524, #ff7a1a); display: inline-block; }
.desk .panel .clock { margin-left: auto; font-family: var(--font-mono); opacity: .85; }
.desk .panel .host { font-family: var(--font-mono); opacity: .6; }
.win {
  position: absolute; border-radius: 1.2cqw; overflow: hidden; background: var(--win); color: var(--win-text);
  box-shadow: 0 2.5cqw 6cqw -2cqw rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, opacity .3s ease;
  transform-origin: 50% 50%;
}
.win.behind { transform: scale(.985); filter: saturate(.85) brightness(.92); }
.win-bar { height: 4cqw; background: var(--win-bar); display: flex; align-items: center; gap: .9cqw; padding: 0 1.4cqw; font-size: 1.65cqw; color: var(--win-muted); border-bottom: 1px solid var(--win-line); }
.win-bar .t { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: #c9d1de; }
.win-bar .t:nth-child(1) { background: #ff5f57; } .win-bar .t:nth-child(2) { background: #febc2e; } .win-bar .t:nth-child(3) { background: #28c840; }
.win-bar .title { margin-left: .6cqw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.win-url { height: 4cqw; display: flex; align-items: center; gap: 1cqw; padding: 0 1.4cqw; border-bottom: 1px solid var(--win-line); font-size: 1.7cqw; }
.win-url .field { flex: 1; height: 2.9cqw; border-radius: 1.4cqw; background: var(--bg-2); border: 1px solid var(--win-line); display: flex; align-items: center; padding: 0 1.2cqw; font-family: var(--font-mono); color: var(--win-muted); gap: .8cqw; overflow: hidden; white-space: nowrap; }
.win-url .field.focus { border-color: var(--accent); box-shadow: 0 0 0 .35cqw var(--accent-soft); color: var(--win-text); }
.win-url .field .caret { width: .18cqw; height: 1.9cqw; background: var(--accent); animation: blink 1s steps(1) infinite; }
.win-body { position: absolute; inset: 8cqw 0 0 0; padding: 2cqw 2.4cqw; font-size: 1.8cqw; line-height: 1.45; overflow: hidden; }
.win.noaddr .win-body { inset: 4cqw 0 0 0; }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: 3.2cqw; letter-spacing: -.02em; margin-bottom: 1.2cqw; }
.page-sub { color: var(--win-muted); font-size: 1.6cqw; margin-bottom: 1.6cqw; }
.note-row { display: flex; gap: 1cqw; margin-bottom: 1.4cqw; }
.note-input { flex: 1; height: 3.6cqw; border: 1px solid var(--win-line); border-radius: .8cqw; padding: 0 1.2cqw; display: flex; align-items: center; color: var(--win-muted); background: var(--surface); overflow: hidden; white-space: nowrap; gap: .3cqw; }
.note-input.focus { border-color: var(--accent); box-shadow: 0 0 0 .35cqw var(--accent-soft); color: var(--win-text); }
.note-input .caret { width: .18cqw; height: 2cqw; background: var(--accent); animation: blink 1s steps(1) infinite; }
.btn-mini { height: 3.6cqw; padding: 0 1.6cqw; border-radius: .8cqw; background: var(--accent); color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; font-size: 1.7cqw; }
.btn-mini.ghost { background: transparent; border: 1px solid var(--win-line); color: var(--win-text); }
.btn-mini.pressed { transform: scale(.96); filter: brightness(.9); }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: .9cqw; }
.notes li { border: 1px solid var(--win-line); border-radius: .8cqw; padding: 1cqw 1.2cqw; display: flex; justify-content: space-between; gap: 1cqw; background: var(--surface); }
.notes li .meta { color: var(--win-muted); font-size: 1.4cqw; font-family: var(--font-mono); }
.notes li.new { animation: rise .4s ease; border-color: var(--accent); }
.win.term { background: var(--term); color: var(--term-text); }
.win.term .win-bar { background: #151c2e; color: #8f9bb3; border-color: #1f2840; }
.win.term .win-body { font-family: var(--font-mono); font-size: 1.65cqw; line-height: 1.5; padding: 1.6cqw 2cqw; inset: 4cqw 0 0 0; white-space: pre-wrap; word-break: break-all; }
.win.term .pr { color: var(--term-prompt); }
.win.term .dim { color: #7c8aa5; }
.win.term .caret { display: inline-block; width: .6cqw; height: 1.7cqw; background: var(--term-text); vertical-align: -.2cqw; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hn { font-size: 1.55cqw; }
.hn .hn-bar { background: #ff6600; color: #111; font-weight: 700; padding: .6cqw 1.2cqw; border-radius: .5cqw; margin-bottom: 1.2cqw; display: flex; gap: 1.5cqw; }
.hn ol { margin: 0; padding-left: 2.6cqw; display: grid; gap: .7cqw; color: var(--win-text); }
.hn ol span { display: block; color: var(--win-muted); font-size: 1.3cqw; }

.cursor {
  position: absolute; left: 0; top: 0; width: 3.4cqw; height: 3.4cqw; z-index: 20; pointer-events: none;
  transform: translate(60cqw, 40cqw); transition: transform .6s cubic-bezier(.3, .7, .25, 1), opacity .3s ease;
  filter: drop-shadow(0 .4cqw .8cqw rgba(0, 0, 0, .45));
}
.cursor.human { opacity: 0; transition: transform .05s linear, opacity .3s ease; }
.cursor svg { width: 100%; height: 100%; display: block; }
.cursor .ripple { position: absolute; left: -1.3cqw; top: -1.3cqw; width: 6cqw; height: 6cqw; border-radius: 50%; border: .3cqw solid var(--accent); opacity: 0; transform: scale(.3); }
.cursor.human .ripple { border-color: var(--cool); }
.cursor.click .ripple { animation: ripple .55s ease-out; }
@keyframes ripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1); } }
.desk.instant .cursor, .desk.instant .win { transition: none; }

/* ------------------------------------------------------------ scroll story */
.story { display: grid; grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.story-steps { display: flex; flex-direction: column; }
.step { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 10vh 0; max-width: 30em; }
.step h2 { margin-bottom: 18px; }
.step p { color: var(--text-soft); font-size: 1.08rem; }
.step { opacity: .35; transition: opacity .3s ease; }
.step.active { opacity: 1; }
.story-sticky { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; align-items: center; }
.stage { position: relative; width: 100%; --p: 0; }
.stage .desk { width: 100%; }
.marks { position: absolute; inset: 0; pointer-events: none; }
.mark {
  position: absolute; transform: translate(-50%, -50%) scale(0); opacity: 0;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.mark.hot { background: var(--cool); color: #fff; }
.tree {
  position: absolute; right: -2%; top: 8%; width: 42%; max-width: 360px; padding: 12px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft); font-family: var(--font-mono); font-size: 11.5px; color: var(--text-soft);
  opacity: 0; transform: translateX(16px); backdrop-filter: blur(8px);
}
.tree-head { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.tree pre { margin: 0; white-space: pre; line-height: 1.5; overflow: hidden; }
.tree .r { color: var(--accent); }
.action-card {
  position: absolute; left: 4%; bottom: -6%; width: 62%; max-width: 440px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55; color: var(--text-soft); opacity: 0; transform: translateY(18px);
}
.action-card pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.action-card .k { color: var(--accent); }
.action-card .s { color: var(--text); }
.fleet { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.fleet-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4%; }
.fleet-grid .cell { position: relative; min-width: 0; }
.fleet-grid .desk { width: 100%; box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .6); transform: translateY(12px) scale(.94); opacity: 0; }
.fleet-grid .name {
  position: absolute; left: 6%; bottom: 6%; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 5px; background: rgba(9, 13, 26, .75); color: #e8edf4; z-index: 5;
}
.fleet-grid .name b { color: var(--accent-hi); font-weight: 600; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 6; }
.arcs path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.arcs circle { fill: var(--accent); }
.handoffs { position: absolute; inset: 0; z-index: 7; }
.handoff {
  position: absolute; transform: translate(-50%, -50%); max-width: 46%;
  font-family: var(--font-mono); font-size: 11px; line-height: 1.4; padding: 6px 9px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-soft); box-shadow: var(--shadow-soft); opacity: 0;
}
.handoff b { color: var(--accent); font-weight: 600; }
.operator { position: absolute; left: 3%; top: 3%; opacity: 0; transform: translateY(-6px); }
.stage.takeover .desk { box-shadow: var(--shadow), 0 0 0 3px var(--cool); }

@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; }
  .story-sticky { position: sticky; top: 64px; height: auto; padding: 10px 0 14px; background: linear-gradient(var(--bg) 85%, transparent); z-index: 5; order: -1; }
  .story-steps .step { min-height: 62vh; padding: 6vh 0; }
  .tree { width: 52%; font-size: 10px; }
  .action-card { width: 78%; font-size: 11px; bottom: -4%; }
}

/* ------------------------------------------------------------ bands */
.band { padding-top: clamp(72px, 12vh, 160px); padding-bottom: clamp(72px, 12vh, 160px); }
.band-copy h2 { margin-bottom: 20px; }
.band-copy p { color: var(--text-soft); font-size: 1.08rem; max-width: 34em; }
.band-copy.center { text-align: center; margin: 0 auto 36px; }
.band-copy.center p { margin: 0 auto; }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.facts li { padding-left: 18px; position: relative; color: var(--text-soft); font-size: 1rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 2px; background: var(--accent); }
.facts strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------ trailer */
.trailer { padding-top: clamp(40px, 8vh, 96px); }
.trailer h2 em { font-style: normal; color: var(--accent); }
.trailer-frame {
  position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #04060c;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow), 0 0 120px -40px var(--accent);
}
.trailer-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #04060c; }
.trailer-play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-bottom: 6.5%;
  border: 0; cursor: pointer; color: var(--accent-ink); font: inherit;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0) 55%, rgba(4, 6, 12, .55));
}
.trailer-play[hidden] { display: none; }
.tp-disc {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--accent);
  box-shadow: 0 0 0 10px rgba(245, 165, 36, .22), 0 20px 50px -10px rgba(0, 0, 0, .6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tp-disc svg { margin-left: 5px; }
.tp-label {
  margin-bottom: 27px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: rgba(4, 6, 12, .6); padding: 8px 14px; border-radius: 999px;
}
.trailer-play:hover .tp-disc, .trailer-play:focus-visible .tp-disc { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(245, 165, 36, .26), 0 20px 50px -10px rgba(0, 0, 0, .6); }
.trailer-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.trailer-links { text-align: center; margin-top: 18px; }
@media (max-width: 600px) { .trailer-play { padding-bottom: 4%; gap: 10px; justify-content: flex-end; padding-right: 4%; } .tp-disc { width: 52px; height: 52px; box-shadow: 0 0 0 6px rgba(245, 165, 36, .22); } .tp-disc svg { width: 20px; height: 20px; margin-left: 3px; } .tp-label { display: none; } }

.reveal { opacity: .4; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* models */
.models { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.orbit { position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto; width: 100%; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  display: grid; place-items: center; align-content: center; gap: 4px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted);
}
.orbit-core { min-height: 0; overflow: visible; }
.orbit-core img { height: 13cqw; width: auto; }
.orbit-core span { font-size: clamp(9px, 2.4cqw, 12px); }
.ring { position: absolute; inset: 0; animation: spin 60s linear infinite; }
.ring::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line-strong); }
.node {
  position: absolute; left: 50%; top: 50%; --a: calc(var(--i) * 45deg);
  transform: translate(-50%, -50%) rotate(var(--a)) translate(41cqw, 0) rotate(calc(-1 * var(--a)));
  font-family: var(--font-mono); font-size: 12px; padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-soft);
  animation: counterspin 60s linear infinite;
}
.orbit { container-type: inline-size; }
.node[style*="--i:7"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterspin { from { transform: translate(-50%, -50%) rotate(var(--a)) translate(41cqw, 0) rotate(calc(-1 * var(--a))); } to { transform: translate(-50%, -50%) rotate(var(--a)) translate(41cqw, 0) rotate(calc(-1 * var(--a) - 360deg)); } }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } .orbit { max-width: 380px; } }

/* teach */
.teach { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.teach-visual { display: grid; gap: 10px; }
.rec { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.rec-head { display: flex; align-items: center; gap: 9px; padding: 9px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); border-bottom: 1px solid var(--line); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: blink 1.2s steps(1) infinite; }
.rec-events { list-style: none; margin: 0; padding: 6px 0; font-family: var(--font-mono); font-size: 13px; }
.rec-events li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 6px 14px; align-items: baseline; }
.rec-events .ev { color: var(--accent); }
.rec-events .lbl { color: var(--text); }
.rec-events .role { color: var(--text-dim); font-size: 11px; }
.arrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); text-align: center; position: relative; }
.arrow::before, .arrow::after { content: ""; position: absolute; top: 50%; width: calc(50% - 60px); height: 1px; background: var(--line); }
.arrow::before { left: 0; } .arrow::after { right: 0; }
.skill { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--text); overflow-x: auto; }
.skill .c { color: var(--text-dim); }
@media (max-width: 900px) { .teach { grid-template-columns: 1fr; } .teach-visual { order: 2; } }

/* companion */
.companion { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.phone-scene { position: relative; min-height: 560px; display: grid; place-items: center; }
.phone {
  width: min(280px, 68vw); aspect-ratio: 600 / 1298; border-radius: 40px; overflow: hidden; background: #000;
  border: 9px solid #0e1320; box-shadow: var(--shadow); position: relative; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.oaf { position: absolute; left: 0; bottom: 4%; width: clamp(120px, 20vw, 190px); height: auto; z-index: 1; transform: rotate(-4deg); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
.alert-card {
  position: absolute; right: 0; top: 10%; width: min(280px, 72vw); padding: 14px 16px; border-radius: 14px; z-index: 3;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px;
  animation: float 6s ease-in-out infinite;
}
.alert-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); }
.alert-card strong { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.01em; }
.alert-card p { font-size: .9rem; color: var(--text-soft); }
.thinking { display: inline-flex; gap: 5px; padding-top: 2px; }
.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s ease-in-out infinite; }
.thinking span:nth-child(2) { animation-delay: .15s; } .thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .companion { grid-template-columns: 1fr; } .phone-scene { min-height: 520px; } }

/* org chart */
.orgband { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.org-scene { display: grid; justify-items: center; gap: 22px; min-width: 0; }
.orgtree, .orgtree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.orgtree ul { position: relative; padding-top: 24px; }
.orgtree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 24px; border-left: 1px solid var(--line-strong); }
.orgtree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px 6px 0; }
.orgtree > li { padding-top: 0; }
.orgtree li::before, .orgtree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 24px; border-top: 1px solid var(--line-strong); }
.orgtree li::before { right: 50%; }
.orgtree li::after { left: 50%; border-left: 1px solid var(--line-strong); }
.orgtree li:first-child::before, .orgtree li:last-child::after { border: 0 none; }
.orgtree li:last-child::before { border-right: 1px solid var(--line-strong); border-radius: 0 10px 0 0; }
.orgtree li:first-child::after { border-radius: 10px 0 0 0; }
.orgtree li:only-child::before { display: none; }
.orgtree li:only-child::after { border-top: 0; border-radius: 0; }
.orgtree > li::before, .orgtree > li::after { display: none; }
.onode {
  width: clamp(112px, 12vw, 158px); padding: 10px 11px; border-radius: 12px; display: grid; gap: 2px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft); position: relative;
}
.onode .av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--line);
}
.onode .on-name { font-family: var(--font-display); font-weight: 620; font-size: .95rem; letter-spacing: -.01em; color: var(--text); }
.onode .on-sub { font-size: .72rem; color: var(--text-muted); }
.onode .on-work { margin-top: 5px; font-family: var(--font-mono); font-size: .68rem; color: var(--accent); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onode .on-work.idle { color: var(--text-dim); }
.onode .live-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: ping 2s ease-out infinite; }
.onode.you { width: auto; min-width: 150px; text-align: center; justify-items: center; border-color: var(--accent); background: var(--accent-soft); }
.onode.you .av { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.onode.busy { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.onode.ext { border-style: dashed; }
.onode.cc .av { background: color-mix(in srgb, #d97757 22%, var(--surface)); color: #c15f3c; border-color: transparent; font-size: 13px; }
.onode.cx .av { background: var(--cool-soft); color: var(--cool); border-color: transparent; }
.ticket-card {
  width: min(320px, 86vw); padding: 14px 16px; border-radius: 14px; display: grid; gap: 7px; justify-self: end;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.ticket-card strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.01em; }
.ticket-card p { font-size: .88rem; color: var(--text-soft); }
.chip.pass { border-color: transparent; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); font-weight: 600; }
@media (max-width: 900px) { .orgband { grid-template-columns: 1fr; } .ticket-card { justify-self: center; } }
@media (max-width: 480px) {
  .orgtree li { padding-left: 3px; padding-right: 3px; }
  .onode { width: 104px; padding: 8px; }
  .onode .on-sub { font-size: .64rem; }
  .onode .on-work { font-size: .6rem; }
}

/* sealed */
.sealed-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.seal { display: grid; place-items: center; gap: 22px; }
.seal-ring { width: min(300px, 70vw); aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; animation: spin 40s linear infinite; }
.seal-ring::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); }
.seal-ring.inner { width: 68%; animation-direction: reverse; animation-duration: 26s; }
.seal-key { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; padding: 8px 12px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); animation: counterspin-simple 26s linear infinite; }
@keyframes counterspin-simple { to { transform: rotate(-360deg); } }
.seal-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.seal-tags span { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); }
@media (max-width: 900px) { .sealed-grid { grid-template-columns: 1fr; } }

/* console */
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); transform-style: preserve-3d; }
.frame-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.frame-bar em { font-style: normal; margin-left: 10px; transition: opacity .3s; }

/* start */
.start-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 36px; }
.code { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.copy { font: inherit; letter-spacing: .04em; text-transform: none; font-size: 12px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text-soft); cursor: pointer; }
.copy:hover { color: var(--text); border-color: var(--line-strong); }
.copy.done { color: var(--good); border-color: var(--good); }
.code pre { margin: 0; padding: 16px; font-size: 13.5px; line-height: 1.7; color: var(--text); overflow-x: auto; }
.code .p { color: var(--accent); user-select: none; }
.code .c { color: var(--text-dim); }
.code .fine { padding: 0 16px 14px; }

/* footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); margin-top: 24px; color: var(--text-muted); font-size: .92rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--text); }
.foot-brand .mono { font-size: 11px; color: var(--text-dim); border: 1px solid var(--line); padding: 2px 7px; border-radius: 999px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { text-decoration: none; color: var(--text-muted); }
.foot nav a:hover { color: var(--text); }

/* ------------------------------------------------------------ depth */
/* hero: a grid floor running away from you, and the stage leaning toward the pointer */
.hero { position: relative; isolation: isolate; }
.hero-floor {
  position: absolute; z-index: -1; left: -30%; right: -30%; bottom: -18%; height: 68%; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line-strong) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line-strong) 70%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(520px) rotateX(74deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 88%); mask-image: linear-gradient(to top, #000 10%, transparent 88%);
  animation: floor-run 4.5s linear infinite; opacity: .55;
}
@keyframes floor-run { to { background-position: 0 64px, 0 64px; } }
.hero-glow {
  position: absolute; z-index: -1; width: 46vw; aspect-ratio: 1; right: -6vw; top: -4vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); filter: blur(10px);
  animation: glow-drift 14s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translate(-6vw, 5vw) scale(1.15); } }
.hero-stage {
  --rx: 4deg; --ry: -9deg; transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.hero-stage .stage-chrome { transform: translateZ(40px); }
.hero-stage .ticker { transform: translateZ(70px); box-shadow: var(--shadow); }
.hero-stage.driving { --rx: 0deg; --ry: 0deg; }
.hero-agents { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .88rem; color: var(--text-muted); }
.hero-agents .ha { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); font-weight: 500; }
.hero-agents img { width: 16px; height: 16px; }

/* logos drawn as masks, so they take the theme's ink */
.logo-hermes {
  display: inline-block; width: 46px; height: 46px; background: var(--text);
  -webkit-mask: url(assets/agents/hermes.svg) center / contain no-repeat; mask: url(assets/agents/hermes.svg) center / contain no-repeat;
}
.logo-hermes.sm { width: 16px; height: 16px; }
.logo-webhook { display: inline-grid; place-items: center; width: 46px; height: 46px; color: var(--cool); }
.logo-webhook svg { width: 40px; height: 40px; }

/* sections tip up out of the page */
.reveal { transform: perspective(900px) translateY(26px) rotateX(9deg); transform-origin: 50% 100%; }

/* models: the orbit laid flat in space, nodes standing up as they pass */
.orbit { perspective: 900px; aspect-ratio: 1 / .78; }
.orbit-3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(58deg); }
.orbit-3d .ring { transform-style: preserve-3d; }
.orbit .orbit-core { z-index: 2; width: 28%; top: 44%; box-shadow: var(--shadow); }
.orbit .orbit-core::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -22%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); filter: blur(4px); }
.orbit-3d .node { animation-name: counterspin3d; }
@keyframes counterspin3d {
  from { transform: translate(-50%, -50%) rotate(var(--a)) translate(41cqw, 0) rotate(calc(-1 * var(--a))) rotateX(-58deg); }
  to { transform: translate(-50%, -50%) rotate(var(--a)) translate(41cqw, 0) rotate(calc(-1 * var(--a) - 360deg)) rotateX(-58deg); }
}

/* org chart: tipped back in space, cards rising in order, tickets dropping down the lines */
.org-scene { perspective: 1200px; }
.orgtree { transform: rotateX(14deg) rotateY(var(--ory, -8deg)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.orgtree ul { transform-style: preserve-3d; }
.orgtree li { transform-style: preserve-3d; }
.onode { transition: transform .7s cubic-bezier(.2, .7, .2, 1), opacity .7s ease, box-shadow .3s ease; transition-delay: calc(var(--d, 0) * 140ms + 120ms); }
.org-scene:not(.in) .onode { opacity: 0; transform: translateZ(-120px) translateY(20px); }
.org-scene.in .onode { transform: translateZ(18px); }
.org-scene.in .onode:hover { transform: translateZ(46px); box-shadow: var(--shadow); transition-delay: 0s; }
.onode .av img { width: 16px; height: 16px; }
.orgtree ul::after {
  content: ""; position: absolute; left: calc(50% - 3px); top: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 1px var(--accent); animation: ticket-drop 2.6s cubic-bezier(.5, 0, .7, 1) infinite; opacity: 0;
}
.orgtree ul ul::after { animation-delay: 1.3s; }
@keyframes ticket-drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateY(24px); opacity: 0; } }
.ticket-card { transform: translateZ(0); }

/* your agents: a turning ring of cards */
.agents .band-copy.center h2 { max-width: 20em; margin-left: auto; margin-right: auto; }
.carousel-scene {
  --card-w: 176px; --card-h: 214px; --r: 290px;
  position: relative; height: calc(var(--card-h) + 110px); perspective: 1100px; display: grid; place-items: center;
  margin: 10px auto 34px; cursor: grab; touch-action: pan-y; user-select: none; outline: none;
}
.carousel-scene:active { cursor: grabbing; }
.carousel-scene:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 24px; }
.carousel { position: relative; width: var(--card-w); height: var(--card-h); transform-style: preserve-3d; transform: rotateX(-5deg); }
.acard {
  position: absolute; inset: 0; padding: 18px 16px; border-radius: 18px; display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, var(--accent) 8%), var(--surface));
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  will-change: transform, opacity;
}
.acard::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--bg); opacity: var(--dim, 0); pointer-events: none; }
.acard-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 6px; }
.acard-logo img { width: 42px; height: 42px; object-fit: contain; }
.acard.desktop .acard-logo img { width: auto; height: 46px; }
.acard strong { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -.015em; }
.acard .acard-where { font-size: .8rem; color: var(--text-muted); }
.acard code { margin-top: 6px; font-size: .72rem; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); }
.acard.claude { border-color: color-mix(in srgb, #d97757 45%, var(--line)); }
.acard.codex { border-color: color-mix(in srgb, #7a9dff 45%, var(--line)); }
.acard.openclaw { border-color: color-mix(in srgb, #ff4d4d 40%, var(--line)); }
.acard.desktop { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.carousel-floor {
  position: absolute; left: 50%; bottom: 18px; width: min(760px, 96%); height: 90px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 75%); filter: blur(6px); pointer-events: none;
}
.agents-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.agents-grid .facts { margin-top: 0; }
.term3d {
  border-radius: 14px; overflow: hidden; background: var(--term); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transform: perspective(1100px) rotateY(-10deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.term3d:hover { transform: perspective(1100px) rotateY(0) rotateX(0); }
.term3d-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: color-mix(in srgb, var(--term) 80%, #fff 6%); font-family: var(--font-mono); font-size: 11.5px; color: #8b98ad; }
.term3d-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4a66; }
.term3d-bar em { font-style: normal; margin-left: 8px; }
.term3d pre { margin: 0; padding: 14px 16px 16px; min-height: 13.5em; font-size: 12.5px; line-height: 1.65; color: var(--term-text); white-space: pre-wrap; }
.term3d .p { color: var(--term-prompt); }
.term3d .ok { color: #4ade80; }
.term3d .dim { color: #7f8ca0; }
.term3d .cur { display: inline-block; width: .55em; height: 1.1em; vertical-align: -2px; background: var(--term-text); animation: blink 1s steps(1) infinite; }
.fine.tm { margin-top: 28px; text-align: center; font-size: .78rem; color: var(--text-dim); }
.flat .carousel { transform: none; width: 100%; height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flat .acard { position: relative; inset: auto; transform: none; min-height: var(--card-h); }
.flat.carousel-scene { height: auto; perspective: none; cursor: default; }
.flat .carousel-floor { display: none; }
@media (max-width: 900px) {
  .agents-grid { grid-template-columns: 1fr; }
  .term3d { transform: none; }
}
@media (max-width: 560px) {
  .carousel-scene { --card-w: 132px; --card-h: 176px; --r: 170px; }
  .acard { padding: 12px 10px; border-radius: 14px; }
  .acard-logo { width: 50px; height: 50px; }
  .acard-logo img, .acard-logo .logo-hermes, .logo-webhook { width: 32px; height: 32px; }
  .acard strong { font-size: .95rem; }
  .acard code { font-size: .62rem; }
  .acard.desktop .acard-logo img { height: 34px; }
  .flat .carousel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orgtree { transform: rotateX(10deg); }
}

/* the console: a few real screens behind tabs */
.console-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 18px; }
.console-tabs button {
  font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); transition: background .2s, color .2s, border-color .2s;
}
.console-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.console-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.console-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shots { position: relative; aspect-ratio: 1800 / 1125; background: var(--surface-2); overflow: hidden; }
.shot { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.02); transition: opacity .5s ease, transform .8s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.shot.on { opacity: 1; transform: none; pointer-events: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* the console frame: glare that follows the pointer */
.frame { position: relative; }
.frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glare, 0); transition: opacity .3s ease;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .16), transparent 45%);
}

/* support */
.coins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); max-width: 980px; margin: 0 auto; perspective: 1400px; }
.coin {
  position: relative; display: grid; gap: 18px; align-content: start; padding: clamp(20px, 3vw, 30px); border-radius: 22px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--surface) 90%, var(--coin) 10%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--coin) 35%, var(--line)); box-shadow: var(--shadow-soft);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}
.coin.xrp { --coin: #23a1f0; }
.coin.btc { --coin: #f7931a; }
.coin:hover { transform: translateY(-4px) rotateX(3deg); box-shadow: var(--shadow); }
.coin::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: .55;
  background: radial-gradient(420px circle at 15% 0%, color-mix(in srgb, var(--coin) 18%, transparent), transparent 60%);
}
.coin > * { position: relative; }
.coin-head { display: flex; align-items: center; gap: 14px; }
.coin-head h3 { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.1; margin: 0; }
.coin-head .chip { margin-left: auto; }
.coin-sub { font-size: .82rem; color: var(--text-muted); }
.coin-mark {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--coin) 80%, #fff 20%), var(--coin));
  box-shadow: 0 10px 24px -12px var(--coin);
}
.qr-tile { justify-self: center; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(0, 0, 0, .45); }
.qr-tile img { display: block; width: clamp(150px, 20vw, 190px); height: auto; image-rendering: pixelated; }
.coin-fields { display: grid; gap: 12px; margin: 0; }
.coin-fields dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 5px; }
.coin-fields dd { margin: 0; display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.coin-fields code { flex: 1; min-width: 0; font-size: .82rem; color: var(--text); overflow-wrap: anywhere; user-select: all; }
.coin-fields code.tag { font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
.coin-fields .copy { flex: none; }
.coin-warn { margin: 0; font-size: .88rem; color: var(--text-soft); padding: 11px 13px; border-radius: 12px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.coin-warn strong { color: var(--text); }
.coin-note { margin: 0; font-size: .88rem; color: var(--text-muted); }
@media (max-width: 760px) { .coins { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ring, .node, .seal-ring, .seal-key, .alert-card, .ticket-card, .live-dot, .thinking span, .pulse, .chip .dot, .rec-dot,
  .hero-floor, .hero-glow, .orgtree ul::after, .term3d .cur { animation: none !important; }
  .hero-stage, .orgtree, .term3d, .coin { transform: none !important; }
  .org-scene .onode { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .win, .step { transition: none; }
}
