/* Agentilo — landing page */

:root {
  --bg: #050507;
  --bg-2: #0b0b10;
  --ink: #f3f1ec;
  --ink-2: rgba(243, 241, 236, .68);
  --ink-3: rgba(243, 241, 236, .42);
  --line: rgba(243, 241, 236, .1);
  --line-2: rgba(243, 241, 236, .18);

  /* The app's own palette (Components.swift) */
  --green: #4dd97a;
  --amber: #ffc23d;
  --red: #ff5c54;
  --claude: #d97757;
  --codex: #8ca6ff;
  --blue: #2337ff;

  --spectrum: linear-gradient(90deg, #4dd97a, #c9e14b 30%, #ffc23d 52%, #ff8a3d 74%, #ff5c54);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --sans: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --notch-scale: 1;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--amber); color: #111; }
a { color: inherit; }
img, svg { display: block; }
code { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.spacer { flex: 1; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ── Atmosphere ─────────────────────────────────────────── */

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .07;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}
.aura {
  position: fixed; left: 50%; top: -38vh; z-index: 0; pointer-events: none;
  width: min(1400px, 160vw); aspect-ratio: 1; translate: -50% 0;
  background:
    radial-gradient(closest-side, rgba(35, 55, 255, .32), transparent 70%),
    conic-gradient(from 200deg, rgba(77, 217, 122, .16), rgba(255, 194, 61, .14), rgba(255, 92, 84, .16), rgba(35, 55, 255, .2), rgba(77, 217, 122, .16));
  filter: blur(60px);
  border-radius: 50%;
  opacity: var(--aura, 1);
  transition: opacity .8s var(--ease);
}

/* ── Top bar ─────────────────────────────────────────────── */

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter) 28px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 7, .92), rgba(5, 5, 7, .6) 55%, transparent);
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.topnav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.topnav .gh { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); color: var(--ink); margin-left: 6px; }
.topnav .gh svg { width: 16px; height: 16px; }
/* The notch sits in the middle of the bar: keep links clear of it. */
@media (max-width: 1080px) { .topnav a:not(.gh) { display: none; } }
@media (max-width: 560px) { .brand span { display: none; } .topnav .gh .stars { display: none; } .topnav .gh { padding: 8px; } }

/* ── The notch ───────────────────────────────────────────── */

.notch-stage {
  position: fixed; left: 50%; top: 0; z-index: 50;
  translate: -50% 0;
  transform-origin: 50% 0;
  scale: var(--notch-scale);
  font-family: var(--ui);
  pointer-events: none;
}
@media (min-width: 1280px) and (min-height: 760px) { :root { --notch-scale: 1.15; } }
@media (max-width: 700px) { :root { --notch-scale: .62; } }
@media (max-width: 420px) { :root { --notch-scale: .54; } }

.notch {
  --w: 300px; --h: 34px; --r: 12px;
  position: relative;
  width: var(--w); height: var(--h);
  background: #000;
  border-radius: 0 0 var(--r) var(--r);
  transition: width .62s var(--ease), height .62s var(--ease), border-radius .62s var(--ease), box-shadow .62s var(--ease);
  pointer-events: auto;
  cursor: default;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 10px 40px -10px rgba(0, 0, 0, .9);
}
/* Concave ears where the notch meets the top edge. */
.notch::before, .notch::after {
  content: ""; position: absolute; top: 0; width: 10px; height: 10px;
}
.notch::before { left: -10px; background: radial-gradient(circle at 0 100%, transparent 9.5px, #000 10px); }
.notch::after { right: -10px; background: radial-gradient(circle at 100% 100%, transparent 9.5px, #000 10px); }

.notch.open {
  --w: 640px; --h: 218px; --r: 30px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 30px 80px -20px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(35, 55, 255, .45);
}
.notch.open[data-scene="limits"] { --h: 204px; }
.notch.open[data-scene="agents"] { --h: 256px; }
.notch.open[data-scene="approval"] { --w: 600px; --h: 196px; }
.notch.open[data-scene="activity"] { --w: 680px; --h: 196px; }
.notch.open[data-scene="switch"] { --h: 212px; }
.notch.open[data-scene="quiet"] { --w: 600px; --h: 190px; }
.notch.open[data-scene="reports"] { --w: 680px; --h: 206px; }

.notch-pill {
  position: absolute; inset: 0 0 auto; height: 34px;
  display: flex; align-items: center; justify-content: space-between;
  transition: opacity .3s;
}
.notch.open .notch-pill { opacity: 0; transition-duration: .15s; }
.wing { width: 56px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.notch-gap { flex: 1; }
.ring {
  --p: .5; --c: var(--green);
  width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 360deg), rgba(255, 255, 255, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 3px));
  transition: --p 1s var(--ease);
}
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.pill-pct { font: 600 13px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--amber); letter-spacing: 0; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); display: none; }

/* A working agent: the left wing swaps the ring for a spinner and the turn time. */
.spin, .pill-time { display: none; }
.spin { position: relative; width: 14px; height: 14px; }
.spin i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--claude); border-right-color: var(--claude); animation: spin .9s linear infinite; }
.spin b { position: absolute; top: -5px; right: -7px; min-width: 10px; padding: 0 2px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: #000; font: 800 7.5px/10px var(--ui); text-align: center; }
.pill-time { font: 600 12px/1 var(--ui); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .55); }
.notch-stage.working .wing-left .ring { display: none; }
.notch-stage.working .spin, .notch-stage.working .pill-time { display: block; }
@keyframes spin { to { rotate: 1turn; } }
.notch[data-scene="agents"] .pill-dot, .notch[data-scene="approval"] .pill-dot { display: block; animation: pulse 1.4s ease-in-out infinite; }

.notch-body {
  position: absolute; inset: 0;
  padding: 40px 28px 18px;
  opacity: 0; transition: opacity .2s;
  color: #fff; font-size: 11px; line-height: 1.3; letter-spacing: 0;
  overflow: hidden;
}
.notch.open .notch-body { opacity: 1; transition: opacity .35s .22s; }
.scene {
  position: absolute; inset: 40px 28px 18px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity .3s, translate .45s var(--ease), visibility 0s .3s;
}
.scene.on { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .35s .08s, translate .5s .08s var(--ease), visibility 0s; }

.notch .logo { width: 22px; height: 22px; flex: none; color: #fff; }
.acct { display: flex; align-items: center; gap: 8px; }
.acct b { display: block; font-size: 13px; font-weight: 600; }
.acct small { display: block; font-size: 10px; color: rgba(255, 255, 255, .35); }
.acct small.dim, .acct small.amber { display: inline; }
.plan { font-size: 9px; font-weight: 600; padding: 2px 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); }
.dim { color: rgba(255, 255, 255, .55); }
.faint { color: rgba(255, 255, 255, .35); }
.green { color: var(--green); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.notch small { font-size: 10px; font-variant-numeric: tabular-nums; }

.win { display: flex; flex-direction: column; gap: 5px; }
.win-head { display: flex; align-items: baseline; gap: 6px; }
.win-head > span:first-child { font-weight: 500; color: rgba(255, 255, 255, .85); }
.pct { font: 700 13px/1 var(--ui); color: var(--green); font-variant-numeric: tabular-nums; }
.pace { font-style: normal; font-weight: 600; font-size: 10px; color: var(--green); }
.pct.amber, .pace.amber { color: var(--amber); }
.pct.red, .pace.red { color: var(--red); }
.meter, .pg-meter { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); --c: var(--green); }
.meter.amber, .pg-meter.amber { --c: var(--amber); }
.meter.red, .pg-meter.red { --c: var(--red); }
.meter i, .pg-meter i {
  position: absolute; inset: 0 auto 0 0; border-radius: inherit;
  width: max(6px, calc(var(--f, 0) * 100%));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c), #fff 25%), var(--c));
  transition: width 1.1s var(--ease), background .4s;
}
.notch:not(.open) .meter i { width: 6px; }
.meter u, .pg-meter u {
  position: absolute; top: -2px; bottom: -2px; left: calc(var(--x, 0) * 100%);
  width: 1.5px; background: rgba(255, 255, 255, .7); border-radius: 1px;
}

.live { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.live b { font-weight: 500; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 194, 61, .5); } 50% { opacity: .55; box-shadow: 0 0 0 4px rgba(255, 194, 61, 0); } }
.pager { position: absolute; left: 50%; bottom: -10px; translate: -50% 0; display: flex; gap: 5px; }
.pager i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.pager i.on { background: rgba(255, 255, 255, .85); }

.row-head { display: flex; align-items: center; gap: 8px; }
.row-head b { font-size: 13px; font-weight: 600; }
.row-head small { margin-left: 4px; }
.sym { font: 600 11px/1 var(--mono); color: rgba(255, 255, 255, .55); }
.agents { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.agents li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.agents li.waiting { background: rgba(255, 194, 61, .08); box-shadow: inset 0 0 0 1px rgba(255, 194, 61, .18); }
.agents li.done { opacity: .6; }
.agents .logo { width: 18px; height: 18px; }
.agents b { display: block; font-size: 11.5px; font-weight: 500; }
.agents small { color: rgba(255, 255, 255, .45); }
.state { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; }

.cmd {
  margin: 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); font: 500 12px/1.4 var(--mono); color: #fff;
  white-space: pre-wrap;
}
.approve { display: flex; align-items: center; gap: 8px; }
.approve button {
  font: 600 11px/1 var(--ui); border: 0; border-radius: 99px; padding: 8px 14px; color: #fff;
  background: rgba(255, 255, 255, .1); cursor: default;
}
.approve .btn-allow { background: var(--green); color: #04210f; }
.approve .btn-deny { color: var(--red); }
.notch.open[data-scene="approval"] .btn-allow { animation: allow 3.2s 1.2s var(--ease) infinite; }
@keyframes allow { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(.92); } 84% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(77, 217, 122, .25); } }
.timeout { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.timeout i { display: block; height: 100%; width: 80%; background: var(--amber); transform-origin: 0 0; }
.notch.open[data-scene="approval"] .timeout i { animation: drain 48s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }

.activity { display: grid; grid-template-columns: 64px 1fr 120px; gap: 18px; align-items: start; height: 100%; }
.streak b, .today b { display: block; font: 700 26px/1.1 var(--ui); font-variant-numeric: tabular-nums; margin: 2px 0; }
.today b { font-size: 18px; }
.streak small, .today small { display: block; }
.today dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 10px; }
.today dt { color: rgba(255, 255, 255, .45); }
.today dd { margin: 0; font-variant-numeric: tabular-nums; }
.heat-head { display: flex; margin-bottom: 6px; }
.heat { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2.5px; }
.heat i { aspect-ratio: 1; border-radius: 2px; background: rgba(255, 255, 255, .06); transition: background .4s; }
.heat i[data-l="1"] { background: rgba(77, 217, 122, .25); }
.heat i[data-l="2"] { background: rgba(77, 217, 122, .45); }
.heat i[data-l="3"] { background: rgba(77, 217, 122, .7); }
.heat i[data-l="4"] { background: var(--green); }
.heat i.today { box-shadow: 0 0 0 1px #fff; }

/* Switch accounts */
.switch { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 7px 10px; border-radius: 9px; background: rgba(255, 255, 255, .07); }
.switch .swap { color: var(--green); font-weight: 700; }
.switch b { font-weight: 500; }
.copy-btn { position: relative; display: grid; font-size: 10px; font-weight: 600; }
.copy-btn span { grid-area: 1 / 1; text-align: right; transition: opacity .25s; }
.copy-btn span + span { opacity: 0; color: var(--green); }
.notch.open[data-scene="switch"] .copy-btn span:first-child { animation: copied-out 3.6s 1.4s infinite; }
.notch.open[data-scene="switch"] .copy-btn span + span { animation: copied-in 3.6s 1.4s infinite; }
@keyframes copied-out { 0%, 10%, 55%, 100% { opacity: 1; } 15%, 50% { opacity: 0; } }
@keyframes copied-in { 0%, 10%, 55%, 100% { opacity: 0; } 15%, 50% { opacity: 1; } }

/* Quiet */
.quiet { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.menu { list-style: none; margin: 0; padding: 4px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.menu li { padding: 6px 9px; border-radius: 6px; color: rgba(255, 255, 255, .8); }
.menu li.on { background: rgba(77, 125, 255, .55); color: #fff; }
.menu li.on::after { content: "✓"; float: right; }
.menu li.sep { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 6px 6px; color: rgba(255, 255, 255, .55); }
.quiet-facts { margin: 2px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; align-content: start; }
.quiet-facts dt { color: rgba(255, 255, 255, .45); }
.quiet-facts dd { margin: 0; display: flex; align-items: center; gap: 6px; }
.quiet-facts code { font: 500 10px/1 var(--mono); color: #fff; }

/* Reports */
.reports { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 22px; height: 100%; }
.rep-total { display: flex; flex-direction: column; gap: 3px; }
.rep-total b { font: 700 26px/1.1 var(--ui); font-variant-numeric: tabular-nums; }
.rep-total > span:not(.open-btn) { margin-top: 6px; }
.open-btn { margin-top: auto; align-self: flex-start; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 10px; font-weight: 600; }
.rep-list { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 1fr auto; row-gap: 4px; }
.bar em { font-style: normal; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.bar i { grid-column: 1 / -1; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--green) calc(var(--f) * 100%), rgba(255, 255, 255, .12) 0); }
.notch.open[data-scene="reports"] .bar i { animation: grow .9s .25s var(--ease) both; }
@keyframes grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Alert drops out of the notch */
.alert {
  position: absolute; left: 50%; top: 0; z-index: -1;
  display: flex; align-items: center; gap: 12px;
  width: 340px; padding: 44px 18px 14px;
  background: #000; color: #fff; border-radius: 0 0 24px 24px;
  translate: -50% -100%; opacity: 0;
  transition: translate .7s var(--ease), opacity .3s;
  box-shadow: 0 24px 60px -20px rgba(255, 92, 84, .35), 0 20px 50px -20px rgba(0, 0, 0, .9);
}
.alert b { display: block; font-size: 13px; font-weight: 600; }
.alert small { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); }
.alert-ring { --p: .9; --c: var(--red); width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--p) * 360deg), rgba(255, 255, 255, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.2px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4.2px), #000 calc(100% - 4px)); }
.notch-stage.alerting .alert { translate: -50% 0; opacity: 1; }
.notch-stage.alerting .alert-ring { animation: ringfill 1.2s .3s var(--ease) both; }
@keyframes ringfill { from { --p: .74; } to { --p: .9; } }
.alert-done { width: 420px; align-items: flex-start; box-shadow: 0 24px 60px -20px rgba(77, 217, 122, .3), 0 20px 50px -20px rgba(0, 0, 0, .9); }
.alert-done .logo { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.alert-done p { margin: 5px 0 0; font-size: 11px; line-height: 1.35; color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.alert-done .dot { margin: 6px 0 0 auto; }
.notch-stage.alerting .alert-done { translate: -50% -100%; opacity: 0; }
.notch-stage.finished .alert-done { translate: -50% 0; opacity: 1; }

/* ── Hero ────────────────────────────────────────────────── */

main { position: relative; z-index: 1; }
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 140px var(--gutter) 0;
  position: relative;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px;
  padding: 7px 14px 7px 10px; border-radius: 99px; border: 1px solid var(--line-2);
  font-size: 13px; color: var(--ink-2); background: rgba(255, 255, 255, .03); backdrop-filter: blur(8px);
}
.kdot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.headline { font-size: clamp(48px, 10.4vw, 168px); font-weight: 500; line-height: .92; letter-spacing: -.055em; }
.headline .line { display: block; }
.headline .serif { font-size: 1.04em; letter-spacing: -.035em; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .06em .08em; }
.word { display: inline-block; opacity: 0; translate: 0 .5em; filter: blur(12px); transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.headline .serif .word { background: inherit; -webkit-background-clip: text; background-clip: text; }
.ready .word { opacity: 1; translate: 0 0; filter: blur(0); }
.lede { max-width: 640px; margin: 32px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.6; }
.lede em { font-family: var(--serif); font-size: 1.15em; color: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; font-size: .92em; vertical-align: 1px; }
.chip svg { width: 15px; height: 15px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; text-decoration: none;
  font: 500 16px/1 var(--sans); letter-spacing: -.01em;
  transform: translate(var(--mx), var(--my));
  transition: transform .4s var(--ease-out), background .3s, box-shadow .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; margin-top: -2px; }
.btn-primary { background: var(--ink); color: #0a0a0c; box-shadow: 0 0 0 0 rgba(255, 194, 61, 0), 0 10px 40px -10px rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, .08), 0 18px 60px -12px rgba(255, 194, 61, .5); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); }
.hint { margin: 28px 0 0; font-size: 13px; color: var(--ink-3); font-family: var(--mono); }
.hint .arrow { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.wordmark {
  width: 100%; margin-top: auto; padding-top: 80px; overflow: hidden;
  font: 600 clamp(80px, 23vw, 380px)/.8 var(--sans); letter-spacing: -.07em;
  text-align: center; user-select: none;
}
.wordmark span {
  display: block; translate: 0 18%;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 241, 236, .14);
  background: linear-gradient(90deg, transparent calc(var(--sweep, 0) * 100% - 30%), rgba(255, 194, 61, .9) calc(var(--sweep, 0) * 100%), transparent calc(var(--sweep, 0) * 100% + 30%));
  -webkit-background-clip: text; background-clip: text;
}

/* ── Marquee ─────────────────────────────────────────────── */

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg); position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 38s linear infinite; font: 400 clamp(22px, 3vw, 36px)/1 var(--serif); font-style: italic; color: var(--ink-2); }
.marquee-track i { font-style: normal; color: var(--amber); font-size: .7em; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Tour ────────────────────────────────────────────────── */

.tour { position: relative; padding: 0 var(--gutter); }
.chapter {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: 880px; margin: 0 auto;
  padding: 320px 0 18vh;
  opacity: .14; transition: opacity .6s var(--ease);
}
.chapter.active { opacity: 1; }
.ch-num { font: 500 13px/1 var(--mono); color: var(--amber); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 22px; }
.chapter h2 { font-size: clamp(38px, 6vw, 84px); line-height: .98; }
.chapter h2 em { font-style: normal; color: var(--ink-3); }
.chapter p:not(.ch-num) { max-width: 620px; margin: 26px 0 0; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-2); }
.facts li { padding-top: 10px; border-top: 1px solid var(--line); }
.facts code { color: var(--ink); }
.tag { display: inline-block; margin-right: 8px; font: 600 12px/1 var(--ui); padding: 5px 10px; border-radius: 99px; }
.tag.green { background: rgba(77, 217, 122, .14); color: var(--green); }
.tag.amber { background: rgba(255, 194, 61, .14); color: var(--amber); }
.tag.red { background: rgba(255, 92, 84, .14); color: var(--red); }
.rail {
  position: sticky; top: 50vh; float: left; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 14px; translate: 0 -50%;
  font: 500 11px/1 var(--mono); color: var(--ink-3);
}
.rail li { display: flex; align-items: center; gap: 10px; transition: color .3s; }
.rail li::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.rail li.on { color: var(--ink); }
.rail li.on::before { width: 34px; background: var(--amber); }
@media (max-width: 1100px) { .rail { display: none; } }

/* ── Sections ────────────────────────────────────────────── */

.section-head { max-width: 880px; margin: 0 auto 56px; text-align: center; }
.eyebrow { font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--amber); margin: 0 0 20px; }
.section-head h2 { font-size: clamp(40px, 6.4vw, 92px); }
.section-head p:not(.eyebrow) { color: var(--ink-2); max-width: 580px; margin: 22px auto 0; font-size: 18px; }

.try, .cli, .privacy { padding: 20vh var(--gutter) 12vh; position: relative; }

/* Pace playground */
.playground { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
@media (max-width: 820px) { .playground { grid-template-columns: 1fr; } }
.pg-card, .pg-controls, .card, .terminal {
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--line); border-radius: 28px;
}
.pg-card { padding: 34px; background: #000; box-shadow: 0 40px 100px -40px rgba(35, 55, 255, .5); font-family: var(--ui); }
.pg-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pg-title { color: rgba(255, 255, 255, .85); font-weight: 500; }
.pg-pct { font: 700 44px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--c, var(--green)); transition: color .3s; letter-spacing: -.02em; }
.pg-pace { font-style: normal; font-weight: 600; color: var(--c, var(--green)); transition: color .3s; }
.pg-card { --c: var(--green); }
.pg-card.amber { --c: var(--amber); }
.pg-card.red { --c: var(--red); }
.pg-meter { height: 14px; margin-top: 26px; }
.pg-meter i { transition: width .15s linear, background .3s; }
.pg-meter u { top: -6px; bottom: -6px; width: 2px; transition: left .15s linear; }
.pg-legend { position: relative; display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .35); font-variant-numeric: tabular-nums; }
.pg-tick-label { position: absolute; left: calc(var(--x, .4) * 100%); translate: -50% 0; white-space: nowrap; color: rgba(255, 255, 255, .7); transition: left .15s linear; }
.pg-note { margin: 26px 0 0; color: rgba(255, 255, 255, .6); font-size: 15px; min-height: 3em; }
.pg-controls { padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 30px; }
.pg-controls label { display: grid; grid-template-columns: 1fr auto; gap: 14px 10px; font-size: 14px; color: var(--ink-2); }
.pg-controls output { font: 500 14px/1 var(--mono); color: var(--ink); }
.pg-controls input { grid-column: 1 / -1; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); transition: box-shadow .2s; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(255, 194, 61, .2); }

/* Terminal */
.terminal { max-width: 920px; margin: 0 auto; overflow: hidden; background: #08080b; box-shadow: 0 40px 120px -50px rgba(255, 194, 61, .25); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 12px/1 var(--mono); color: var(--ink-3); }
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: #2a2a30; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; margin-right: auto; translate: -30px 0; }
.term { margin: 0; padding: 26px 28px 30px; min-height: 420px; font: 400 14px/1.7 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) { .term { font-size: 12px; padding: 20px; min-height: 460px; } }
.term .p { color: var(--green); } .term .c { color: var(--ink); } .term .k { color: var(--codex); } .term .s { color: var(--amber); } .term .n { color: #ff8a3d; } .term .d { color: var(--ink-3); }
.term .cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Privacy */
.cards { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { padding: 28px; min-height: 280px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: border-color .4s, translate .5s var(--ease-out); }
.card::after { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 80%; background: radial-gradient(closest-side, rgba(35, 55, 255, .28), transparent); opacity: 0; transition: opacity .5s; }
.card:hover { border-color: var(--line-2); translate: 0 -4px; }
.card:hover::after { opacity: 1; }
.card-num { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.card h3 { margin-top: auto; font-size: 24px; letter-spacing: -.025em; line-height: 1.1; }
.card p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* Install */
.install { padding: 18vh var(--gutter) 14vh; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; }
.install-icon { width: clamp(150px, 18vw, 220px); margin-bottom: 40px; filter: drop-shadow(0 30px 60px rgba(35, 55, 255, .55)) drop-shadow(0 0 40px rgba(255, 138, 61, .25)); animation: float 6s ease-in-out infinite; }
.install-icon img { width: 100%; height: auto; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.install h2 { font-size: clamp(44px, 7vw, 104px); }
.install > p { color: var(--ink-2); font-size: 18px; margin: 22px 0 0; max-width: 540px; }
.brew { max-width: 640px; width: 100%; margin: 64px auto 0; text-align: left; }
.brew-label { font: 500 12px/1 var(--mono); color: var(--amber); text-transform: uppercase; letter-spacing: .06em; }
.brew .copy { margin-top: 14px; padding: 16px 18px; }
.brew .copy code { font-size: 15px; }
.brew p { margin: 12px 0 0; color: var(--ink-3); font-size: 14px; }
.or { margin: 40px 0 0; font: 500 12px/1 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.steps { text-align: left; max-width: 640px; width: 100%; margin: 20px auto 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; }
.steps li { counter-increment: s; position: relative; padding: 20px 0 20px 52px; border-top: 1px solid var(--line); color: var(--ink-2); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 22px; font: 500 12px/1 var(--mono); color: var(--amber); }
.steps b { color: var(--ink); font-weight: 500; }
.copy {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: #000;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s;
}
.copy:hover { border-color: rgba(255, 255, 255, .4); }
.copy code { flex: 1; font-size: 13px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copy-label { font: 500 12px/1 var(--mono); color: var(--ink-3); flex: none; }
.copy.copied .copy-label { color: var(--green); }

/* Footer */
.footer { position: relative; z-index: 1; padding: 0 var(--gutter) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-mark {
  font: 600 clamp(80px, 22vw, 360px)/.8 var(--sans); letter-spacing: -.07em; text-align: center;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 6vw 0 3vw; opacity: .9; user-select: none;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); }
.footer-row p { margin: 0; max-width: 560px; }
.footer-row nav { display: flex; gap: 20px; }
.footer-row a { text-decoration: none; color: var(--ink-2); }
.footer-row a:hover { color: var(--ink); }

/* Reveal on scroll */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease-out), translate 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
.hero .reveal { transition-delay: calc(.9s + var(--d, 0s)); }

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