/* astrodock.ai
 *
 * The tokens are the dashboard's (apps/admin/src/App.css) so the site and the
 * product read as one thing: the same near-black ground, the same mint accent,
 * Saira over IBM Plex Mono, the same 14px corners and mint glow. The dashboard
 * ships a starfield at --stars: .4; this page turns it up, because a marketing
 * page is allowed to be a poster and a dashboard is not.
 *
 * Dark only, deliberately. A product page should commit.
 */

:root {
  --bg-root: #0a0e15;
  --bg-deep: #06090f;
  --surface: #0f141d;
  --surface-2: #141b26;
  --field: #0c121b;
  --line: #222d3b;
  --line-soft: #19212c;

  --text: #f1f5fa;
  --text-2: #b6c4d4;
  --text-3: #8595a8;

  --accent: #2fe6a8;
  --accent-2: #13c98c;
  --accent-ink: #06120d;
  --accent-dim: rgba(47, 230, 168, .12);
  --info: #5ad3ff;

  --r: 14px;
  --r-sm: 9px;
  --r-lg: 16px;
  --shadow: 0 16px 50px rgba(0, 0, 0, .55);

  --font: 'Saira', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --shell: clamp(1.15rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-root);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: min(72rem, 100%); margin: 0 auto; padding: 0 var(--shell); }
.wrap.narrow { width: min(46rem, 100%); }
.center { text-align: center; }
.narrow-p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.spacer { flex: 1; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── the sky ──────────────────────────────────────────────────────── */

.starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(255,255,255,.42), transparent 60%),
    radial-gradient(1.6px 1.6px at 44% 32%, rgba(255,255,255,.38), transparent 60%),
    radial-gradient(1.1px 1.1px at 88% 46%, rgba(255,255,255,.34), transparent 60%),
    radial-gradient(1.5px 1.5px at 24% 62%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(1.2px 1.2px at 62% 74%, rgba(255,255,255,.34), transparent 60%),
    radial-gradient(1.3px 1.3px at 8% 86%, rgba(255,255,255,.26), transparent 60%),
    radial-gradient(1.1px 1.1px at 92% 88%, rgba(255,255,255,.30), transparent 60%);
  opacity: .8;
  pointer-events: none;
}

/* the dock light: a mint bloom behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70vh;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(47, 230, 168, .16), transparent 70%);
  pointer-events: none;
}

/* ── topbar ───────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 21, .72);
  border-bottom: 1px solid var(--line-soft);
}

.topbar .wrap { display: flex; align-items: center; gap: 1.25rem; height: 62px; }

.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--text); text-decoration: none;
  font-weight: 600; letter-spacing: -.01em; font-size: 1.02rem;
}

/* The dashboard's docking mark, drawn the same way here. */
.logo-mark { width: 26px; height: 26px; flex: none; color: var(--accent); }

.logo-mark .orbit-dot {
  transform-origin: 17px 17px;
  color: var(--text);
}
@media (prefers-reduced-motion: no-preference) {
  .logo-mark .orbit-dot { animation: orbit 6s linear infinite; }
  @keyframes orbit { to { transform: rotate(360deg); } }
}

.logo-text { font-weight: 700; font-size: 15px; letter-spacing: .6px; color: var(--text); }
.logo-text-dim { color: var(--text-3); font-weight: 500; }

.navlink { color: var(--text-2); text-decoration: none; font-size: .92rem; }
.navlink:hover { color: var(--text); }

.navbtn {
  font-size: .88rem; font-weight: 600;
  padding: .42rem .9rem; border-radius: var(--r-sm);
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(47,230,168,.28); text-decoration: none;
}
.navbtn:hover { background: rgba(47,230,168,.18); }

@media (max-width: 34rem) { .navlink { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
}

h1 em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 34px rgba(47, 230, 168, .35);
}

.lede { margin: 0 0 1.75rem; font-size: 1.09rem; color: var(--text-2); max-width: 42ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.center-row { justify-content: center; }

.btn {
  display: inline-block;
  padding: .78rem 1.5rem;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: 0 8px 26px rgba(47, 230, 168, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(47, 230, 168, .3); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.fineprint { margin: 1.1rem 0 0; font-size: .85rem; color: var(--text-3); }

/* ── the hero demo (the only motion on the page) ──────────────────── */

.demo { position: relative; }

.demo-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pane-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .6rem .85rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}

.dot { width: 9px; height: 9px; border-radius: 50%; background: #2b3746; flex: none; }

.pane-title {
  margin-left: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-3);
}

.term-body {
  margin: 0;
  padding: 1rem 1.1rem;
  min-height: 15.5rem;
  font-family: var(--mono);
  font-size: .8rem;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.ln { display: block; }
.ln.prompt { color: var(--text); font-weight: 500; }
.ln.note   { color: var(--text-3); }
.ln.cmd    { color: var(--info); }
.ln.ok     { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .ln.in { animation: lineIn 260ms ease both; }
  @keyframes lineIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
}

/* the app arrives: tucked behind the terminal until the deploy succeeds */
.demo .browser {
  position: absolute;
  right: -.5rem;
  bottom: -2.25rem;
  width: min(21rem, 86%);
  opacity: 0;
  transform: translateY(14px) scale(.97);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .demo .browser { transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
}

.demo.landed .browser { opacity: 1; transform: none; }

/* Two screens stacked in the same frame: the platform's sign-in, then the app the
   agent built. The second replaces the first once the demo reaches it. */
.browser-body {
  position: relative;
  padding: 1.1rem;
  background: var(--bg-deep);
  min-height: 13.5rem;
}

.screen { }
@media (prefers-reduced-motion: no-preference) {
  .screen { transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
}

.screen-app {
  position: absolute;
  inset: 1.1rem;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.demo.signed-in .screen-login { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.demo.signed-in .screen-app { opacity: 1; transform: none; pointer-events: auto; }

.screen-login { text-align: center; }

.mini-mark { width: 26px; height: 26px; margin: .2rem auto .7rem; color: var(--accent); display: block; }

.mini-title { margin: 0 0 .85rem; font-size: .9rem; font-weight: 600; }

.mini-field {
  height: 30px; margin-bottom: .5rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.mini-btn {
  margin-top: .35rem; padding: .45rem;
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-size: .82rem; font-weight: 600;
}

.mini-note { margin: .8rem 0 0; font-size: .68rem; line-height: 1.45; color: var(--text-3); }

/* the on-call app the agent built */
.app-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .55rem; margin-bottom: .7rem;
  border-bottom: 1px solid var(--line-soft);
}
.app-name { font-size: .82rem; font-weight: 600; }
.app-user { font-family: var(--mono); font-size: .64rem; color: var(--text-3); }

.app-now {
  display: grid; gap: .12rem;
  padding: .65rem .75rem; margin-bottom: .7rem;
  border-radius: var(--r-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(47, 230, 168, .25);
}
.app-now-label {
  font-family: var(--mono); font-size: .56rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
}
.app-now-who { font-size: .84rem; font-weight: 600; }
.app-now-until { font-size: .66rem; color: var(--text-3); }

.app-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .38rem; }
.app-rows li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .72rem;
  padding: .3rem .1rem;
  border-bottom: 1px solid var(--line-soft);
}
.app-rows li:last-child { border-bottom: 0; }
.app-who { flex: 1; color: var(--text-2); }
.app-when { font-family: var(--mono); font-size: .62rem; color: var(--text-3); }

.av { width: 17px; height: 17px; border-radius: 50%; flex: none; }
.av-1 { background: linear-gradient(140deg, #5ad3ff, #2f7fe6); }
.av-2 { background: linear-gradient(140deg, #ffbe5c, #e6852f); }
.av-3 { background: linear-gradient(140deg, #b98cff, #7a4fe6); }

@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo .browser { position: static; width: 100%; margin-top: 1rem; opacity: 1; transform: none; }
}

/* ── bands ────────────────────────────────────────────────────────── */

.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; border-top: 1px solid var(--line-soft); }
.band.alt { background: var(--bg-deep); }

.kicker {
  margin: 0 0 .8rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.028em;
}

h2.big { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.035em; }

.body { margin: 0 0 1rem; color: var(--text-2); font-size: 1.03rem; }
.body.dim { color: var(--text-3); font-size: .95rem; }

code {
  font-family: var(--mono);
  font-size: .88em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: .1em .35em;
  border-radius: 5px;
}

.txtlink {
  display: inline-block; margin-top: .6rem;
  color: var(--accent); text-decoration: none; font-weight: 500; font-size: .95rem;
}
.txtlink:hover { text-decoration: underline; text-underline-offset: 3px; }

.split, .split-even {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 56rem) { .split, .split-even { grid-template-columns: 1fr; } }

/* ── the AGENTS.md artifact ───────────────────────────────────────── */

.artifact {
  margin: 0;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.artifact figcaption {
  padding: .6rem .95rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--text-3);
}

.artifact pre {
  margin: 0;
  padding: 1.1rem;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
}

.c-h { color: var(--text); font-weight: 500; }
.c-d { color: var(--info); }
.c-k { color: var(--accent); }

/* ── grids ────────────────────────────────────────────────────────── */

.grid4 {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.grid3 {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}
.grid3.tight { margin-top: 1.75rem; }

/* two heavier statements side by side, for the runtime choice */
.two-up {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  padding: 1.5rem;
}
.feature h3 { margin: 0 0 .55rem; font-size: 1.08rem; font-weight: 600; }
.feature p { margin: 0; color: var(--text-2); font-size: .96rem; }

/* the three-beat config illustration */
.stack { display: grid; gap: .75rem; }

.mini-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .95rem 1.1rem;
}
.mini-panel.warn { border-color: rgba(255, 190, 92, .4); background: rgba(255, 190, 92, .06); }

.mp-label {
  display: block;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .45rem;
}

.mp-code {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--text-2);
  background: none;
  padding: 0;
}
.mini-panel.warn .mp-code { color: #ffbe5c; }

.cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem;
}

.cell h3 { margin: 0 0 .45rem; font-size: 1.02rem; font-weight: 600; }
.cell p { margin: 0; color: var(--text-3); font-size: .93rem; }

/* ── steps ────────────────────────────────────────────────────────── */

.steps { margin-top: 2.5rem; display: grid; gap: 1rem; }

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.35rem;
}

.step-n {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(47,230,168,.28);
  font-family: var(--mono);
  font-size: .82rem;
}

.step h3 { margin: .1rem 0 .5rem; font-size: 1.02rem; font-weight: 600; }
.step p { margin: .55rem 0 0; color: var(--text-3); font-size: .93rem; }

.cmd {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .55rem .7rem;
  overflow-x: auto;
}

.cmd code {
  background: none; padding: 0; color: var(--text-2);
  font-size: .78rem; white-space: nowrap;
}

.copy {
  margin-left: auto; flex: none;
  font-family: var(--font); font-size: .74rem; font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
}
.copy:hover { color: var(--text); border-color: var(--text-3); }
.copy.done { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }

/* ── chips ────────────────────────────────────────────────────────── */

.chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center;
  margin: 1.6rem 0 .5rem;
}

.chip {
  font-family: var(--mono);
  font-size: .74rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-3);
}

/* ── limits ───────────────────────────────────────────────────────── */

.limits p { margin: 0 0 1.1rem; color: var(--text-2); font-size: .98rem; }
.limits strong { color: var(--text); font-weight: 600; }

/* ── closer ───────────────────────────────────────────────────────── */

.closer {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.closer::before {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 60vh;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 100%, rgba(47, 230, 168, .13), transparent 70%);
  pointer-events: none;
}

/* ── footer ───────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line-soft); padding: 2rem 0 3rem; background: var(--bg-deep); }

.foot .wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.4rem;
  font-size: .88rem;
}

.foot a { color: var(--text-3); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .brand.small { font-size: .92rem; }
.foot-note { color: var(--text-3); font-family: var(--mono); font-size: .76rem; }

@media (max-width: 40rem) { .foot .spacer { display: none; } }
