/* Self-hosted fonts. Variable files cover the weights we use. */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* Firekeeper landing mock: noctty-inspired layout, Firekeeper ember identity.
   Dark first; light follows prefers-color-scheme or the toggle. No build step. */
:root {
  color-scheme: dark;
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: #0c0a09;
  --fg: #f5f0ea;
  --muted: #a8a29e;
  --faint: #78716c;
  --surface: #151210;
  --surface-2: #1c1815;
  --border: #292420;
  --border-strong: #3d3630;
  --ember: #f97316;
  --ember-soft: rgba(249, 115, 22, .14);
  --ember-hover: #fb8a3c;
  --on-ember: #1a0e06;
  --primary: #f5f0ea;
  --on-primary: #0c0a09;
  --term-bg: #110f0d;
  --term-fg: #e7e0d8;
  --ok: #86b58f;

  --shell: min(1152px, 100% - 48px);
  --gutter: clamp(20px, 4vw, 48px);
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px;
  --ease: cubic-bezier(.25, 1, .5, 1);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #ffffff; --fg: #1c1917; --muted: #6b625a; --faint: #8a8076;
    --surface: #faf8f6; --surface-2: #f4f1ed; --border: #ebe6e0; --border-strong: #d6ccc0;
    --ember: #c2410c; --ember-soft: rgba(194, 65, 12, .08); --ember-hover: #a8370a; --on-ember: #fff;
    --primary: #1c1917; --on-primary: #fafaf9;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --fg: #1c1917; --muted: #6b625a; --faint: #8a8076;
  --surface: #faf8f6; --surface-2: #f4f1ed; --border: #ebe6e0; --border-strong: #d6ccc0;
  --ember: #c2410c; --ember-soft: rgba(194, 65, 12, .08); --ember-hover: #a8370a; --on-ember: #fff;
  --primary: #1c1917; --on-primary: #fafaf9;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease), color .15s var(--ease); }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
code, kbd, pre { font-family: var(--font-mono); }
p code, li code, td code { font-size: max(12px, .86em); background: var(--surface-2); border: 1px solid var(--border); padding: 1px 5px; border-radius: 4px; }
kbd {
  display: inline-block; font: 500 12px/1 var(--font-mono); color: var(--fg);
  background: var(--surface-2); border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 4px 6px; vertical-align: 1px;
}
h1, h2, h3 { font-weight: 500; margin: 0; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Skip link: off-screen until keyboard focus (sr-only alone stays clipped on :focus). */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; margin: 8px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary); font: 500 14px/1 var(--font-sans);
  text-decoration: none; border: 0;
}
.skip:focus, .skip:focus-visible {
  left: var(--gutter); outline: 2px solid var(--ember); outline-offset: 3px;
}

/* The rail: one bordered column down the page, sections separated by full-width rules */
.rail { width: var(--shell); margin: 0 auto; border-inline: 1px solid var(--border); }
.section { padding: clamp(64px, 9vw, 112px) var(--gutter) clamp(48px, 6vw, 72px); border-top: 1px solid var(--border); }
.section:first-child { border-top: 0; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.nav .rail { display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 var(--gutter); border-inline-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: 20px; height: 20px; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: inline-block; padding: 8px 10px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: var(--r-sm); }
.nav ul a:hover { color: var(--fg); background: var(--surface-2); }
.nav ul a.btn { display: inline-flex; border-radius: 999px; height: 34px; padding: 0 14px; font-size: 14px; color: var(--on-primary); background: var(--primary); }
.nav ul a.btn:hover { color: var(--on-primary); background: color-mix(in srgb, var(--primary) 85%, var(--bg)); }
.theme { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; color: var(--muted); border-radius: var(--r-sm); cursor: pointer; }
.theme:hover { color: var(--fg); background: var(--surface-2); }
.theme svg { width: 16px; height: 16px; }
@media (max-width: 760px) { .nav .opt { display: none; } }
@media (max-width: 420px) { .nav ul { gap: 0; } .nav .gh { display: none; } }

/* Buttons and command pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px;
  font: 500 15px/1 var(--font-sans); border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, var(--bg)); }
.btn-ember { background: var(--ember); color: var(--on-ember); }
.btn-ember:hover { background: var(--ember-hover); }
.btn-outline { border-color: var(--border-strong); color: var(--fg); background: transparent; }
.btn-outline:hover { background: var(--surface-2); }

.cmd {
  display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 6px 0 16px;
  font: 400 13.5px/1 var(--font-mono); color: var(--fg); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
}
.cmd .p { color: var(--faint); user-select: none; }
.cmd code { overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding: 12px 0; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd.block { border-radius: var(--r-md); background: var(--surface-2); border-color: var(--border); }
.copy { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 0; border-radius: 999px; background: none; color: var(--faint); cursor: pointer; }
.copy:hover { color: var(--fg); background: var(--surface-2); }
.copy svg { width: 15px; height: 15px; }
.copy[data-copied] { color: var(--ok); }
@media (pointer: coarse) { .copy { width: 40px; height: 40px; } }

/* Hero */
.hero { padding-top: clamp(56px, 10vw, 112px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 4px 12px 4px 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; background: var(--surface); text-decoration: none; }
.eyebrow b { font-weight: 500; color: var(--fg); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.active { background: var(--ember); box-shadow: 0 0 0 3px var(--ember-soft); }
.dot.input { background: transparent; box-shadow: inset 0 0 0 2px var(--ember); }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.hero h1 span { display: block; color: var(--muted); }
.lede { margin: 24px 0 0; max-width: 36em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); }
.lede code { font-size: .84em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.cta .cmd { flex: 0 1 430px; }
.meta { margin: 16px 0 0; font-size: 13px; color: var(--faint); }
.agents { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.agents li { font-size: 13px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.agents li:first-child { border: 0; padding-left: 0; color: var(--faint); }
@media (max-width: 480px) { .eyebrow b { display: none; } }
@media (max-width: 560px) {
  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn, .cta .cmd { width: 100%; flex: none; }
}

/* Media frames: rounded media card (no fake OS window chrome). */
.frame { margin: 56px 0 0; }
.window { overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--r-lg); background: var(--term-bg); box-shadow: 0 40px 80px -40px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.2); }
.slot {
  position: relative; display: grid; place-items: center; aspect-ratio: var(--ar, 16 / 10); width: 100%;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(249,115,22,.08), transparent 60%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,.018) 14px 15px),
    var(--term-bg);
  color: var(--term-fg);
}
.slot::after { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(249,115,22,.35); border-radius: 8px; pointer-events: none; }
.slot .label { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: center; padding: 24px; text-align: center; max-width: 46ch; }
.slot .kind { font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ember); padding: 5px 8px; border: 1px solid rgba(249,115,22,.4); border-radius: 4px; }
.slot .what { font-size: clamp(15px, 1.6vw, 19px); font-weight: 500; color: #f5f0ea; }
.slot .spec { font: 12px/1.5 var(--font-mono); color: #8f867d; }
.slot video, .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slot.has-media::after { content: none; }
figcaption { margin-top: 14px; font-size: 13px; color: var(--faint); }
figcaption code { font-size: 12px; }
@media (max-width: 560px) {
  .slot .spec { display: none; }
  .slot::after { inset: 8px; }
}

/* Under-hero steps (noctty-style step strip) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.steps li { position: relative; padding-top: 20px; }
.steps li:first-child::before { content: ""; position: absolute; top: -1px; left: 0; width: 40%; height: 1px; background: var(--ember); }
.steps h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.steps p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 0; } .steps li { padding: 16px 0; border-bottom: 1px solid var(--border); } .steps li:first-child::before { width: 64px; } }

/* Feature sections: title left, copy right, media full width below */
.feature-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 48px; align-items: start; }
.feature-head h2, .section > h2, .split > h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
.feature-head p { margin: 0 0 14px; color: var(--muted); font-size: 16px; }
.feature-head p:first-child b { color: var(--fg); font-weight: 500; }
.kicker { display: block; margin-bottom: 14px; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.keys { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.keys li { display: inline-flex; align-items: center; gap: 8px; }
.feature .frame { margin-top: 40px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 820px) { .feature-head { grid-template-columns: 1fr; } }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.pair .frame { margin: 0; }
@media (max-width: 820px) { .pair { grid-template-columns: 1fr; } }

/* "Also in the box" grid */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.cells > div { padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.cells > div:nth-child(3n) { border-right: 0; }
.cells > div:nth-last-child(-n+3) { border-bottom: 0; }
.cells h3 { font-size: 15px; margin-bottom: 6px; }
.cells p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells > div:nth-child(3n) { border-right: 1px solid var(--border); }
  .cells > div:nth-child(2n) { border-right: 0; }
  .cells > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .cells > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 560px) {
  .cells { grid-template-columns: 1fr; }
  .cells > div { border-right: 0 !important; border-bottom: 1px solid var(--border) !important; }
  .cells > div:last-child { border-bottom: 0 !important; }
}

/* Providers table */
.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 500; white-space: nowrap; }
td { color: var(--muted); }
td.y { color: var(--fg); }
.note { margin: 16px 0 0; font-size: 13px; color: var(--faint); max-width: 72ch; }

/* Two-column prose split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.split > h2 { grid-column: 1 / -1; }
.split p { margin: 0 0 14px; color: var(--muted); }
.split h3 { font-size: 16px; margin: 0 0 8px; }
.split .block + .block { margin-top: 28px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Install rows */
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.rows { margin-top: 40px; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 24px; padding: 20px; border-top: 1px solid var(--border); background: var(--surface); }
.row:first-child { border-top: 0; }
.row h3 { font-size: 15px; }
.row h3 small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--faint); }
.row p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.row .cmd + .cmd { margin-top: 8px; }
@media (max-width: 680px) { .row { grid-template-columns: minmax(0, 1fr); } }
.row > * { min-width: 0; }
.after { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.after div { padding: 14px 16px; font-size: 13px; color: var(--muted); border: 1px solid var(--border); border-radius: var(--r-md); }
.after strong { display: block; margin-bottom: 4px; font-weight: 500; color: var(--fg); }
@media (max-width: 900px) { .after { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.tier.featured { border-color: color-mix(in srgb, var(--ember) 55%, var(--border)); background: linear-gradient(180deg, var(--ember-soft), transparent 55%), var(--surface); }
.tier .tag { position: absolute; top: -11px; left: 20px; padding: 3px 9px; font: 600 11px/1.2 var(--font-sans); letter-spacing: .02em; color: var(--on-ember); background: var(--ember); border-radius: 999px; }
.tier h3 { font-size: 15px; }
.tier .for { margin: 0; font-size: 13px; color: var(--faint); }
.price { margin-top: 14px; font-size: 36px; font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price s { font-size: 20px; color: var(--faint); margin-right: 6px; text-decoration-thickness: 1px; }
.price .from { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.price small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.tier ul { margin: 14px 0 20px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.tier li { position: relative; padding-left: 18px; }
.tier li + li { margin-top: 6px; }
.tier li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--faint); }
.tier .btn { margin-top: auto; width: 100%; }
@media (max-width: 1040px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.fine { margin: 24px 0 0; font-size: 13px; color: var(--muted); max-width: 80ch; }
.fine + .fine { margin-top: 8px; }

/* Privacy list */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 32px; }
.facts div { padding: 18px 0 22px; border-top: 1px solid var(--border); }
.facts h3 { font-size: 15px; margin-bottom: 6px; }
.facts p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.callout { margin-top: 24px; padding: 16px 18px; font-size: 14px; color: var(--muted); border: 1px solid var(--border); border-left: 2px solid var(--ember); border-radius: var(--r-md); background: var(--surface); }
.callout strong { color: var(--fg); font-weight: 500; }

/* CLI list */
.cli { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 32px; }
.cli div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cli code { font-size: 13.5px; color: var(--fg); overflow-wrap: anywhere; }
.cli span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .cli { grid-template-columns: 1fr; } }

/* Closing CTA + footer */
.closing { text-align: center; }
.closing h2 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.03em; line-height: 1.05; }
.closing p { margin: 16px auto 0; max-width: 40ch; color: var(--muted); font-size: 17px; }
.closing .cta { justify-content: center; }
footer.section { padding-top: 40px; padding-bottom: 56px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.foot ul a { color: var(--muted); text-decoration: none; }
.foot ul a:hover { color: var(--fg); }
.legal { margin: 20px 0 0; max-width: 72ch; font-size: 12.5px; color: var(--faint); }

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s var(--ease) both; }
  .reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
