/* Postflight landing page.
   Instrument-panel palette: near-black navy, a single amber accent,
   off-white text, monospace for anything the user types. */

:root {
  --bg:        #0a0f1a;
  --surface:   #101725;
  --surface-2: #141d2e;
  --border:    #222e42;
  --border-lit:#31415c;
  --text:      #e9eef6;
  --muted:     #93a1b5;
  --amber:     #ffb300;
  --amber-ink: #0a0f1a;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;

  --radius: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--amber);
  background: rgba(255, 179, 0, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

svg { display: block; }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s-4);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-2);
  background: var(--amber);
  color: var(--amber-ink);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: var(--s-3); }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 60px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
}
/* The one aviation touch in the header: an amber marker, like a panel light. */
.wordmark::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 179, 0, 0.6);
  vertical-align: middle;
}

.topbar nav { display: flex; align-items: center; gap: var(--s-1); }
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding: 10px var(--s-3);
  border-radius: var(--radius);
  transition: color 180ms var(--ease);
}
.topbar nav a:hover { color: var(--text); }
.topbar nav .btn-ghost { color: var(--text); }

/* Secondary nav links are noise on a small screen; the GitHub button stays. */
@media (max-width: 640px) {
  .topbar nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-4);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
              color 180ms var(--ease);
}

.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: #ffc333; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-lit);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }

/* ---------- hero ---------- */

.hero { padding-block: var(--s-7) var(--s-6); }

.hero-grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}

/* The install command is a single nowrap line. Without an explicit zero
   minimum, its intrinsic width sets the grid track's floor and pushes the
   layout wider than the viewport. */
.hero-copy { min-width: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-3);
}
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--amber); }

h1 {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 700;
}

.lede {
  margin-top: var(--s-4);
  font-size: clamp(17px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 54ch;
}

.install { margin-top: var(--s-5); }

.install-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}

.install-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-2);
}

.install-label-alt { margin-top: var(--s-4); }

.install-note {
  margin-top: var(--s-2);
  font-size: 14px;
  color: var(--muted);
}

/* This is the primary CTA, so the whole command has to be readable. A single
   scrolling line hides the half that tells you what you're piping into bash. */
.install-cmd {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: none;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  padding: var(--s-2);
}

.copy-btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 72px;
  padding-inline: var(--s-3);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-lit);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.copy-btn:hover { background: var(--border); }
.copy-btn.is-copied { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.fineprint { margin-top: var(--s-4); font-size: 14px; color: var(--muted); }

/* ---------- the approval-flow mockup ---------- */

.demo { margin: 0; }

.thread {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--s-4);
}

.bubble {
  max-width: 92%;
  padding: var(--s-3);
  border-radius: 14px;
  font-size: 14px;
}
.bubble p + p { margin-top: var(--s-2); }

.bubble.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.bubble.me {
  align-self: flex-end;
  background: rgba(255, 179, 0, 0.14);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-bottom-right-radius: 4px;
}
.bubble.me code { background: none; padding: 0; font-size: 15px; font-weight: 500; }

.bubble-meta {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.bubble-meta + p { margin-top: var(--s-2); }
p + .bubble-meta { margin-top: var(--s-3); }

.draft { color: var(--text); }
.draft code { font-size: 0.85em; }

.link-ish { color: var(--amber); font-family: var(--mono); font-size: 13px; }

.demo figcaption {
  margin-top: var(--s-3);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---------- sections ---------- */

.section-h {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
}

.section-sub {
  margin-top: var(--s-3);
  color: var(--muted);
  max-width: 60ch;
}

.pillars, .how, .limits { padding-block: var(--s-7); }

/* Anchor targets otherwise land flush against the 60px sticky header. */
#how, #limits { scroll-margin-top: 76px; }
.pillars, .limits { border-top: 1px solid var(--border); }
.pillars { background: linear-gradient(180deg, #0c1220 0%, var(--bg) 100%); }

.pillar-grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-4);
}

.pillar-icon { width: 24px; height: 24px; color: var(--amber); margin-bottom: var(--s-3); }
.pillar h3 { font-size: 18px; font-weight: 600; }
.pillar p { margin-top: var(--s-2); color: var(--muted); font-size: 15px; }

/* ---------- the five steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-1);
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-3);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 1px solid var(--border); }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--amber);
  padding-top: 3px;
}

/* ::before, h3 and p are three separate grid items. Without pinning the text
   to column 2, the paragraph auto-places into row 2 of the narrow number
   column and wraps one word per line. */
.steps h3, .steps p { grid-column: 2; }

.steps h3 { font-size: 17px; font-weight: 600; }
.steps p { margin-top: var(--s-2); color: var(--muted); font-size: 15px; max-width: 68ch; }

/* ---------- honest limits ---------- */

.limit-list {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}

.limit-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  padding: var(--s-4);
  color: var(--muted);
  font-size: 15px;
}
.limit-list strong { color: var(--text); display: block; margin-bottom: var(--s-1); font-weight: 600; }

.limits-more { margin-top: var(--s-4); font-size: 15px; color: var(--muted); }

/* ---------- closing ---------- */

.closing { padding-block: var(--s-8); border-top: 1px solid var(--border); }
.closing-inner { text-align: center; }
.closing h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 700; }
.closing p { margin: var(--s-3) auto 0; color: var(--muted); max-width: 52ch; }
.closing .cta-row { justify-content: center; margin-top: var(--s-5); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border); padding-block: var(--s-5); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 14px;
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--amber); text-decoration: underline; }

/* ---------- breakpoints ---------- */

@media (min-width: 768px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .limit-list { grid-template-columns: repeat(2, 1fr); }
  .steps li { grid-template-columns: 56px 1fr; }
}

@media (min-width: 1024px) {
  .hero { padding-block: var(--s-8) var(--s-7); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
