/* Crewdeck — black glass over a living core (matches the desktop app) */
:root {
  --bg: #000;
  --ink-1: #eef0f5;
  --ink-2: #c3c7d1;
  --ink-3: #9aa0ad;
  --ink-4: #737a87;
  --line: rgb(255 255 255 / .07);
  --line-strong: rgb(255 255 255 / .12);
  --fill: rgb(255 255 255 / .035);
  --fill-2: rgb(255 255 255 / .06);
  --claude: #f0a46b;
  --codex: #6fb7ff;
  --local: #7fe0c2;
  --glow: 0 0 7px rgb(255 255 255 / .13);
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink-2);
  font-family: "Geist", "Segoe UI Variable", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--local); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.mono { font-family: "Geist Mono", ui-monospace, "Cascadia Code", monospace; }
h1, h2, h3 { color: var(--ink-1); text-shadow: var(--glow); }

/* Living core: three blurred orbs, one per agent */
.core { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb.c { width: 38vmax; height: 38vmax; background: var(--claude); left: 48%; top: -14vmax; opacity: .26; animation: drift-a 26s ease-in-out infinite alternate; }
.orb.x { width: 34vmax; height: 34vmax; background: var(--codex); left: 72%; top: 18vmax; opacity: .2; animation: drift-b 31s ease-in-out infinite alternate; }
.orb.l { width: 28vmax; height: 28vmax; background: #eef1f6; left: 30%; top: 26vmax; opacity: .08; animation: drift-a 36s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-10vmax, -5vmax) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

/* Glass */
.glass {
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.lockup { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.word { font-family: "Oxanium", sans-serif; font-weight: 800; letter-spacing: .12em; color: var(--ink-1); line-height: 1; text-shadow: var(--glow); }
.top .word { font-size: 1rem; }
.sub { font-family: "Geist Mono", ui-monospace, monospace; font-size: .72rem; color: var(--ink-4); margin-top: .2rem; }
.sub b { font-weight: 400; color: var(--ink-2); }
.gt, .cur { color: var(--local); }
.cur { animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cur { animation: none; } }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.75rem); font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-3); }
.nav a:hover { color: var(--ink-1); }
.nav .pill { color: var(--ink-1); border: 1px solid var(--line-strong); padding: .4rem .85rem; border-radius: 999px; background: var(--fill); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding-top: clamp(3rem, 9vw, 6.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero-mark { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); }
.hero-mark svg { width: clamp(64px, 10vw, 104px); height: auto; flex: none; filter: drop-shadow(0 10px 30px rgb(0 0 0 / .6)); }
.hero h1 { margin: 0; }
.hero h1 .word { display: block; font-size: clamp(2.5rem, 9vw, 6.4rem); letter-spacing: .1em; }
.hero h1 .sub { font-size: clamp(.85rem, 1.6vw, 1.15rem); margin-top: .6rem; font-weight: 400; text-shadow: none; }
.tagline { margin: clamp(2rem, 5vw, 3rem) 0 0; font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.15; font-weight: 600; color: var(--ink-1); letter-spacing: -0.02em; max-width: 22ch; text-shadow: var(--glow); }
.lede { margin: 1.1rem 0 0; max-width: 40rem; color: var(--ink-3); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; font-size: 1rem; padding: .8rem 1.25rem; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--ink-1); background: var(--fill-2); }
.btn:hover { background: rgb(255 255 255 / .1); }
.btn-primary { background: var(--ink-1); color: #000; border-color: var(--ink-1); }
.btn-primary:hover { background: #fff; }
.btn svg { flex: none; }

/* App preview */
.preview { margin-top: clamp(3rem, 7vw, 4.5rem); padding: 1rem; }
.win-bar { display: flex; align-items: center; gap: .5rem; padding: .1rem .35rem .85rem; font-size: .8rem; color: var(--ink-4); }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / .14); }
.win-bar span { margin-left: .5rem; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 760px) { .lanes { grid-template-columns: 1fr; } }
.lane { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: rgb(0 0 0 / .35); }
.lane-head { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink-1); font-size: .95rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.lane-head small { margin-left: auto; font-family: "Geist Mono", monospace; font-size: .72rem; color: var(--ink-4); font-weight: 400; }
.lane p { margin: .7rem 0 0; font-size: .9rem; color: var(--ink-3); line-height: 1.5; }
.meter { margin-top: .9rem; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .07); overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); background: var(--c); opacity: .85; }
.meter-label { display: flex; justify-content: space-between; margin-top: .4rem; font-size: .72rem; color: var(--ink-4); font-family: "Geist Mono", monospace; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
.section .intro { margin: .9rem 0 0; max-width: 38rem; color: var(--ink-3); }

.decks { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 0; }
.decks li { display: grid; grid-template-columns: 2.5rem 13rem 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.decks li:first-child { border-top: 1px solid var(--line); }
.decks svg { width: 2.5rem; height: auto; }
.decks strong { color: var(--ink-1); font-weight: 600; font-size: 1.1rem; }
.decks span { color: var(--ink-3); }
@media (max-width: 680px) { .decks li { grid-template-columns: 2.5rem 1fr; } .decks li span { grid-column: 2; } }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.feature h3 { margin: 0; font-size: 1.08rem; font-weight: 600; }
.feature p { margin: .35rem 0 0; color: var(--ink-3); font-size: .98rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 1.1rem 1.1rem 1.2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--fill); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--c); color: var(--c); font-family: "Geist Mono", monospace; font-size: .8rem; }
.steps strong { display: block; margin-top: .75rem; color: var(--ink-1); font-weight: 600; }
.steps span { display: block; margin-top: .25rem; font-size: .93rem; color: var(--ink-3); line-height: 1.5; }

/* Kntrl */
.kntrl-title { font-family: "Geist Mono", ui-monospace, monospace; font-weight: 400 !important; letter-spacing: 0 !important; }
.kntrl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; margin-top: 2.25rem; }
@media (max-width: 860px) { .kntrl-grid { grid-template-columns: 1fr; } }
.kntrl-grid p { margin: 0 0 1rem; color: var(--ink-3); max-width: 34rem; }
.kntrl-grid p strong { color: var(--ink-1); font-weight: 600; }
.term { padding: 1.1rem 1.2rem 1.25rem; font-family: "Geist Mono", ui-monospace, monospace; font-size: .86rem; line-height: 1.75; color: var(--ink-3); overflow-x: auto; }
.term .cap { display: block; color: var(--ink-4); font-size: .72rem; margin-bottom: .6rem; }
.term .cmd { color: var(--ink-1); }
.term .r { display: grid; grid-template-columns: 5.5rem 1fr; white-space: nowrap; }
.term .r b { font-weight: 400; color: var(--c); }
.term .note { color: var(--ink-4); }

.road { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; gap: 0; }
.road li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.road .when { font-family: "Geist Mono", monospace; font-size: .8rem; padding-top: .2rem; color: var(--ink-4); }
.road .when.now { color: var(--local); }
.road strong { color: var(--ink-1); font-weight: 600; }
.road span { color: var(--ink-3); }

/* Download */
.get { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding: clamp(1.5rem, 4vw, 2.75rem); align-items: center; }
@media (max-width: 820px) { .get { grid-template-columns: 1fr; } }
.get h2 { margin: 0; }
.get p { color: var(--ink-3); margin: .8rem 0 0; }
.need { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.need li { display: flex; gap: .65rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.need li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--local); margin-top: .6rem; }
.need small { color: var(--ink-4); display: block; font-size: .85rem; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .9rem; color: var(--ink-4); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
footer a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
footer a:hover { color: var(--ink-1); }

/* Download page */
.dl { min-height: 70vh; display: grid; align-content: center; padding-top: 3rem; padding-bottom: 4rem; }
.dl .glass { padding: clamp(1.5rem, 5vw, 3rem); max-width: 40rem; }
.dl h1 { margin: 1.25rem 0 0; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.dl p { color: var(--ink-3); }

/* MilePost product bar */
.mpbar { border-bottom: 1px solid var(--line); background: rgb(255 255 255 / .02); font-size: .8rem; }
.mpbar .wrap { padding-top: .45rem; padding-bottom: .45rem; }
.mpbar a { color: var(--ink-3); text-decoration: none; }
.mpbar a:hover { color: var(--ink-1); }
#features .intro { margin-bottom: 0; }
