/* ════════════════════════════════════════════════════════════════════
   Magma Moose house style (Site v2 · molten / obsidian)
   One stylesheet for every page. Tokens first, then components.
   Source of truth for the visual system: docs/brand-tokens.md
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --obsidian: #0E0A07;
  --obsidian-2: #15100C;
  --ink: #221A14;
  --line: rgba(255, 255, 255, 0.08);

  /* text */
  --paper: #FBF6EF;
  --paper-dim: #C9BAAE;
  --muted: #897E74;
  --muted-2: #A2948A;

  /* molten (parent accent + Diatreme) */
  --molten: #FF5E1E;
  --molten-a: #FFB02E;
  --molten-b: #D8330F;

  /* azurite (Dün Mir) */
  --azurite-a: #5CC8FF;
  --azurite-b: #1F5BD8;

  /* extended product gemstones (official hexes: docs/brand-tokens.md) */
  --citrine-a: #FFD84A;    --citrine-b: #C77800;     /* Caldrith */
  --amethyst-a: #C58CFF;   --amethyst-b: #7C2BE0;    /* Brimyr */
  --malachite-a: #4FE0A6;  --malachite-b: #0E8A5A;   /* Chargate */
  --turquoise-a: #45E3C9;  --turquoise-b: #0E7C8C;   /* Dastgate */
  --rose-a: #FF9CC6;       --rose-b: #D6256E;        /* Nievah */
  --sodalite-a: #8A97FF;   --sodalite-b: #3538B8;    /* Noctyr */

  --ok: #7EE787;
  --sheen: linear-gradient(118deg, #FFFAF2, #D3CCC1 48%, #F3ECE2);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--obsidian);
  color: var(--paper);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* subtle layered ambience behind everything */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 38% at 14% 0%, rgba(216, 51, 15, 0.06), transparent 60%),
    radial-gradient(46% 40% at 92% 8%, rgba(206, 212, 222, 0.04), transparent 60%);
}
/* keep content above the fixed ambient background; the nav has its own
   z-index (50) and must stay position:sticky, so it is not listed here. */
main, footer { position: relative; z-index: 1; }
main { flex: 1; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(255, 94, 30, 0.35); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 36px; width: 100%; }

.kicker {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.sheen-text {
  background: var(--sheen); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  font-family: inherit; font-weight: 600; font-size: 14.5px; padding: 13px 24px;
  border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center;
  gap: 9px; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { flex-shrink: 0; }
.btn-molten {
  background: linear-gradient(135deg, var(--molten-a), var(--molten-b)); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(216, 51, 15, 0.7);
}
.btn-molten:hover { box-shadow: 0 18px 42px -14px rgba(216, 51, 15, 0.9); }
.btn-azurite {
  background: linear-gradient(135deg, var(--azurite-a), var(--azurite-b)); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(31, 91, 216, 0.8);
}
.btn-malachite {
  background: linear-gradient(135deg, var(--malachite-a), var(--malachite-b)); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(14, 138, 90, 0.8);
}

/* discipline list inside the services feature card */
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-list span {
  display: flex; align-items: center; gap: 11px; font-size: 13px;
  font-family: 'IBM Plex Mono', monospace; color: var(--paper-dim);
}
.svc-list i {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--molten); box-shadow: 0 0 10px var(--molten);
}
.btn-ghost { background: rgba(255,255,255,0.045); color: var(--paper); border-color: rgba(255,255,255,0.16); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { box-shadow: 0 16px 36px -16px rgba(251, 246, 239, 0.45); }

/* ── back to top ─────────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  cursor: pointer; color: var(--paper);
  background: linear-gradient(150deg, #26221F, #0A0908);
  border: 1px solid rgba(206, 212, 222, 0.22);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.8);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, border-color .2s ease;
}
.to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--molten); transform: translateY(-2px); }

/* ── nav ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-nav.solid {
  background: rgba(12, 9, 6, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 38px; height: 38px; display: block; }
.wordmark { font-weight: 800; font-size: 19px; letter-spacing: -0.035em; line-height: 1; color: var(--paper); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.navlink {
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted-2);
  letter-spacing: 0.02em; transition: color .18s ease; white-space: nowrap;
}
.navlink:hover, .navlink.active { color: var(--paper); }
.nav-gh { padding: 9px 16px; font-size: 13px; }

/* mobile menu toggle — hidden until JS enhances the nav (see .nav-enhanced),
   and only ever shown at the narrow breakpoint below. */
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0; border-radius: 11px;
  flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: var(--paper);
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.16);
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); }
.nav-toggle .bar { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, opacity .2s ease; }
.nav-toggle .bar + .bar { margin-top: 4px; }
.site-nav.menu-open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.menu-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-nav.menu-open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── shared surfaces ─────────────────────────────────────────────────── */
.panel {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
}
.card-hover { transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease; }
.card-hover:hover {
  transform: translateY(-2px); border-color: rgba(255,255,255,0.18);
  box-shadow: 0 26px 60px -36px rgba(0,0,0,0.8);
}

/* ── chips & pills ───────────────────────────────────────────────────── */
.pill-live {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ok); border: 1px solid rgba(126,231,135,0.4);
  border-radius: 6px; padding: 3px 9px; white-space: nowrap;
}
.pill-preview {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--azurite-a); border: 1px solid rgba(92,200,255,0.4);
  border-radius: 6px; padding: 3px 9px; white-space: nowrap;
}
.chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: #e6edf3;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  padding: 4px 11px; border-radius: 6px; white-space: nowrap;
}
.step-chip {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--paper-dim);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 8px;
}
.pipe-step {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--paper);
  padding: 6px 11px; border-radius: 8px;
  background: rgba(255,94,30,0.10); border: 1px solid rgba(255,94,30,0.25);
}
.pipe-arrow { color: var(--molten); display: inline-flex; }

/* ── section head ────────────────────────────────────────────────────── */
.section { padding: 40px 0 30px; }
.section-head { max-width: 760px; }
.section-head.center { text-align: center; margin: 0 auto; max-width: 720px; }
.section-head h2 {
  font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.03em;
  margin: 13px 0 0; line-height: 1.08; text-wrap: balance;
}
.section-head .lead {
  font-size: 15.5px; line-height: 1.65; color: var(--paper-dim); margin: 14px 0 0; max-width: 560px;
}
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 92px 0 84px; }
.hero .glow { position: absolute; inset: 0; pointer-events: none; }
.hero-inner {
  position: relative; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 15px; background: rgba(255,255,255,0.03);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--paper);
  box-shadow: 0 0 10px rgba(232,236,242,0.55);
}
.hero h1 {
  font-weight: 800; font-size: clamp(42px, 7.4vw, 82px); letter-spacing: -0.045em;
  line-height: 1.0; margin: 0; max-width: 880px; text-wrap: balance;
}
.hero .lead { font-size: 17px; color: var(--paper-dim); line-height: 1.6; max-width: 590px; margin: 0; }
.hero .lead strong { color: var(--paper); font-weight: 600; }
.cta-row { display: flex; gap: 13px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* product hero (diatreme / dunmir pages) */
.product-hero { padding: 60px 0 70px; }
.product-hero .title-row { display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; }
.product-hero .title-row img { width: 100px; height: 100px; }
.product-hero .title-row .name { font-weight: 800; font-size: clamp(46px, 7.6vw, 82px); letter-spacing: -0.04em; line-height: 1; }
.product-hero .tag { font-size: 18px; color: var(--paper); margin: 0; max-width: 640px; line-height: 1.5; font-weight: 500; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.backlink { display: inline-flex; align-items: center; gap: 7px; }
.endorse {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.endorse img { width: 15px; height: 15px; opacity: 0.8; }

/* ── featured product cards (home) ───────────────────────────────────── */
.feature-card { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)); display: block; }
.feature-card .tint { position: absolute; inset: 0; pointer-events: none; }
.feat-stack { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 0; }
.feat-copy { padding: 46px 46px 44px; }
.feat-aside { padding: 46px 46px 44px 16px; display: flex; align-items: center; }
.feat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.feat-head img { width: 68px; height: 68px; }
.feat-head .name { font-weight: 800; font-size: 32px; letter-spacing: -0.03em; }
.feat-domain { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; letter-spacing: 0.03em; margin: 0 0 8px; }
.feat-blurb { font-size: 15.5px; line-height: 1.65; color: var(--paper-dim); margin: 0 0 26px; max-width: 520px; }
.feat-ctas { display: flex; gap: 11px; flex-wrap: wrap; }
.feat-ctas .btn { pointer-events: none; }

/* ── code card ───────────────────────────────────────────────────────── */
.code-card {
  background: #0c1014; border: 1px solid #222b34; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 70px -42px rgba(0,0,0,0.85); width: 100%;
}
.code-card.accent { border-color: rgba(255,94,30,0.28); }
.code-card .bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 15px;
  border-bottom: 1px solid #1a222b; background: #090c10;
}
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .bar i:nth-child(1) { background: #FF5F57; }
.code-card .bar i:nth-child(2) { background: #FEBC2E; }
.code-card .bar i:nth-child(3) { background: #28C840; }
.code-card .bar .title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7d8590; margin-left: 10px; }
.code-card pre {
  margin: 0; padding: 18px 20px; font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12.5px; line-height: 1.85; color: #c9d1d9; overflow-x: auto; white-space: pre;
}
/* yaml token colors */
.code-card .k { color: #FFB02E; }      /* key */
.code-card .p { color: #8b949e; }      /* punctuation (:) */
.code-card .s { color: #a5d6ff; }      /* string */
.code-card .v { color: #7ee787; }      /* value / ref */
.code-card .c { color: #6e7681; }      /* comment */
.code-card .d { color: #ff7b72; }      /* dash */

/* ── console / fleet panel (dunmir) ──────────────────────────────────── */
.fleet-panel {
  width: 100%; background: #0b1016; border: 1px solid rgba(92,200,255,0.22);
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -42px rgba(0,0,0,0.85);
}
.fleet-panel .bar {
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  border-bottom: 1px solid #16202b; background: #080c11;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #7d97a8;
}
.fleet-panel .bar .live { font-size: 10px; color: var(--azurite-a); }
.fleet-rows { padding: 8px 0; }
.fleet-row {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 16px;
  font-family: 'IBM Plex Mono', monospace;
}
.fleet-row.missed { background: rgba(255,94,30,0.07); }
.fleet-row .dev { font-size: 12.5px; display: flex; align-items: center; gap: 9px; color: #c4d3de; }
.fleet-row .dot { width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; box-shadow: 0 0 8px #3DD68C; }
.fleet-row.missed .dot { background: #FF5E1E; box-shadow: 0 0 8px #FF5E1E; }
.fleet-row .st { font-size: 11px; color: #5f7585; }
.fleet-row.missed .st { color: #FF8C5E; }
.fleet-foot {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #16202b;
  font-family: 'IBM Plex Mono', monospace;
}
.fleet-foot .alert { font-size: 10.5px; color: #FF8C5E; }
.fleet-foot .ch {
  font-size: 10px; color: #9fb4c2; border: 1px solid rgba(92,200,255,0.22);
  border-radius: 6px; padding: 3px 8px;
}

/* ── grids ───────────────────────────────────────────────────────────── */
/* Grid and flex items default to min-width:auto, so a wide child (a code card,
   a console panel, a long unbroken string) refuses to shrink and stretches the
   whole page past the viewport. min-width:0 lets the column shrink and hands the
   overflow to the inner scroller (the <pre>/table that is meant to scroll). */
.feat-stack > *, .qs-grid > *, .split-grid > *, .ps-grid > *, .tier-grid > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.cap-card { padding: 26px 24px; height: 100%; }
.cap-card .spark { width: 8px; height: 8px; border-radius: 50%; background: var(--molten); box-shadow: 0 0 12px var(--molten); margin-bottom: 16px; }
.cap-card.az .spark { background: var(--azurite-a); box-shadow: 0 0 12px var(--azurite-a); }
.cap-card h3 { font-weight: 700; font-size: 17.5px; letter-spacing: -0.02em; margin: 0 0 9px; }
.cap-card p { font-size: 14px; line-height: 1.62; color: var(--paper-dim); margin: 0; }
.cap-card p code { font-family: 'IBM Plex Mono', monospace; color: var(--molten-a); font-size: 0.92em; }
.cap-card.az p code { color: var(--azurite-a); }
.num-card { padding: 28px 26px; height: 100%; }
.num-card .num {
  font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: #A6ABB3; margin-bottom: 14px;
}
.num-card h3 { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin: 0 0 10px; }
.num-card p { font-size: 14.5px; line-height: 1.6; color: var(--paper-dim); margin: 0; }

/* open-source repo cards */
.oss-card { display: block; padding: 24px 22px; height: 100%; }
.oss-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.oss-head img { width: 42px; height: 42px; }
.oss-head .name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.oss-head .lic { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 2px; }
.oss-card p { font-size: 13.5px; line-height: 1.6; color: var(--paper-dim); margin: 0; }

/* ── problem / solution (diatreme) ───────────────────────────────────── */
.ps-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,0.8fr); align-items: center; gap: 24px; }
.ps-arrow { display: flex; align-items: center; justify-content: center; color: var(--acc, var(--molten)); }
.ps-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.ps-list { display: flex; flex-direction: column; gap: 10px; }
.ps-item { display: flex; gap: 10px; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--paper-dim); }
/* the "solution" panel and the featured comparison row take the page's gemstone
   accent (--acc, set per product on <body>); the fallbacks reproduce Diatreme's
   molten exactly, so a page that sets no accent is unchanged. */
.ps-solution { border: 1px solid color-mix(in srgb, var(--acc, var(--molten)) 32%, transparent) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc-b, var(--molten-b)) 12%, transparent), rgba(255,255,255,0.015)) !important; }
.ps-solution .ps-label { color: var(--acc, var(--molten-a)); }

/* ── steps (docs-style quickstart) ───────────────────────────────────── */
.qs-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ── comparison table ────────────────────────────────────────────────── */
.cmp-scroll { overflow-x: auto; border-radius: 16px; }
.cmp-table { min-width: 760px; }
.cmp-row { display: grid; grid-template-columns: 1.7fr repeat(6, 1fr); align-items: center;
  padding: 14px 20px; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: none; }
.cmp-row.head { background: rgba(255,255,255,0.03); }
.cmp-row.mm { background: color-mix(in srgb, var(--acc, var(--molten)) 7%, transparent); }
.cmp-h { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-align: center; }
.cmp-h:first-child { text-align: left; }
.cmp-name { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--paper-dim); }
.cmp-row.mm .cmp-name { color: var(--acc, var(--molten-a)); font-weight: 600; }
.cmp-cell { display: flex; justify-content: center; align-items: center; }

/* ── inputs reference table ──────────────────────────────────────────── */
.ref-scroll { overflow-x: auto; border-radius: 14px; }
.ref-table { min-width: 680px; }
.ref-row { display: grid; grid-template-columns: 1.25fr 0.65fr 1.25fr 2.6fr; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ref-row:last-child { border-bottom: none; }
.ref-row.head { padding: 13px 22px; background: rgba(255,255,255,0.03); }
.ref-row.head span { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); }
.ref-name { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--acc, var(--molten-a)); }
.ref-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted-2); }
.ref-desc { font-size: 13.5px; color: var(--paper-dim); line-height: 1.5; }
.out-chip { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; padding: 5px 10px; border-radius: 7px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--line); }
.out-chip .k { color: var(--acc, var(--molten-a)); }
.out-chip .v { color: var(--muted-2); }

/* ── pricing ─────────────────────────────────────────────────────────── */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.tier {
  padding: 32px 30px; height: 100%; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.tier .t-name { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.tier .t-sub { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.04em; margin-top: 3px; color: var(--muted-2); }
.tier .t-price-row { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 8px; }
.tier .t-price { font-weight: 800; font-size: 42px; letter-spacing: -0.03em; }
.tier .t-note { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: var(--muted-2); white-space: nowrap; }
.tier .t-desc { font-size: 14px; line-height: 1.6; color: var(--paper-dim); margin: 0 0 20px; }
.tier .t-tag {
  position: absolute; top: 18px; right: 18px; font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; background: rgba(255,255,255,0.03); white-space: nowrap;
}
.tier .t-features { display: flex; flex-direction: column; gap: 12px; }
.tier .t-feat { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--paper); line-height: 1.5; }
.tier .t-feat.dim { color: var(--paper-dim); }
.tier .t-feat svg { flex-shrink: 0; margin-top: 1px; }
.tier .t-cta { justify-content: center; margin-bottom: 24px; }
.tier .t-foot { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--muted); margin-top: 18px; line-height: 1.6; }

/* waitlist mini-form */
.waitlist-form { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.waitlist-form input {
  font-family: 'IBM Plex Mono', monospace; flex: 1 1 170px; min-width: 0;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 14px; color: var(--paper); font-size: 13px; outline: none;
}
.waitlist-form input:focus { border-color: var(--molten); }

/* pricing product group header */
.pg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pg-head img { width: 44px; height: 44px; }
.pg-head .name { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.pg-head .domain { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.04em; margin-top: 2px; }

/* FAQ */
.faq-item { padding: 22px 26px; }
.faq-item h3 { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; margin: 0 0 8px; }
.faq-item p { font-size: 14.5px; line-height: 1.62; color: var(--paper-dim); margin: 0; }

/* ── big CTA panel ───────────────────────────────────────────────────── */
.cta-panel { position: relative; overflow: hidden; border-radius: 24px; padding: 54px 40px; text-align: center; }
.cta-panel .inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta-panel img.badge { width: 60px; height: 60px; }
.cta-panel h2 { font-weight: 800; font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.03em; margin: 0; max-width: 500px; text-wrap: balance; }
.cta-panel p { margin: 0; font-size: 15.5px; color: var(--paper-dim); max-width: 460px; line-height: 1.6; }
.cta-molten { border: 1px solid rgba(255,94,30,0.3);
  background: linear-gradient(180deg, rgba(216,51,15,0.16), rgba(255,255,255,0.02)); }
.cta-azurite { border: 1px solid rgba(92,200,255,0.3);
  background: linear-gradient(180deg, rgba(31,91,216,0.16), rgba(255,255,255,0.02)); }

/* ── footer ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-main { padding: 48px 36px; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 30px; }
.foot-brand { display: flex; align-items: center; gap: 13px; }
.foot-brand img { width: 34px; height: 34px; }
.foot-brand .col { display: flex; flex-direction: column; gap: 3px; }
.foot-brand .tag { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-col .t { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-col a { font-size: 13px; }
.foot-legal {
  padding: 26px 36px 40px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; border-top: 1px solid var(--line);
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--muted);
}

/* ── per-product accent (gemstone) ───────────────────────────────────────
   Product pages set the gemstone on <body>:
     <body style="--acc-a:#FFD84A; --acc-b:#C77800; --acc:#FFD84A;">
   and use these classes. Official hexes: docs/brand-tokens.md. */
.btn-acc {
  background: linear-gradient(135deg, var(--acc-a), var(--acc-b)); color: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.65);
}
.kicker.acc { color: var(--acc); }
.cap-card.acc .spark { background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.cap-card.acc p code { color: var(--acc); }
.chip .dot-acc { color: var(--acc); }
.pill-dev {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-dim); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 9px; white-space: nowrap;
}

/* family grid on the home page */
.fam-card { display: block; padding: 24px 22px; height: 100%; }
.fam-head { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.fam-head img { width: 42px; height: 42px; }
.fam-head .name { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.fam-head .meta { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: var(--muted); margin-top: 2px; }
.fam-card p { font-size: 13.5px; line-height: 1.6; color: var(--paper-dim); margin: 0; }

/* ── reveal on scroll (JS adds .in; no-JS keeps everything visible) ──── */
html.js .reveal { opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-arrow { transform: rotate(90deg); margin: 0 auto; }
  .qs-grid, .split-grid, .tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 22px; }
  .foot-main, .foot-legal { padding-left: 22px; padding-right: 22px; }

  /* Mobile nav. site.js adds .nav-enhanced once it has wired up the toggle, so a
     visitor with JS disabled still gets the links (they just wrap under the
     brand) rather than a dead end. When enhanced, the links collapse into a
     dropdown the toggle opens. */
  .site-nav.nav-enhanced .nav-toggle { display: inline-flex; }
  .site-nav.nav-enhanced.menu-open {
    background: rgba(12, 9, 6, 0.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .site-nav.nav-enhanced .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 6px 22px 16px;
    background: rgba(12, 9, 6, 0.94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 44px -30px rgba(0, 0, 0, 0.9);
  }
  .site-nav.nav-enhanced.menu-open .nav-links { display: flex; }
  .site-nav.nav-enhanced .nav-links .navlink {
    padding: 14px 4px; font-size: 14.5px; border-bottom: 1px solid var(--line);
  }
  .site-nav.nav-enhanced .nav-links .nav-gh {
    justify-content: center; margin-top: 14px; padding: 12px 16px; font-size: 14px;
  }
}
@media (max-width: 760px) {
  .feat-stack { grid-template-columns: 1fr; }
  .feat-copy { padding: 32px 26px 30px; }
  .feat-aside { padding: 0 26px 34px; }
  /* the logo, name and status pill sit in one row on desktop; give it room to
     wrap on a phone so the pill is never clipped by the card edge */
  .feat-head { flex-wrap: wrap; gap: 14px 16px; margin-bottom: 16px; }
}
@media (max-width: 620px) {
  .foot-main { flex-direction: column; gap: 26px; }
  .foot-cols { gap: 26px 40px; }
}
@media (max-width: 560px) {
  .hero { padding: 74px 0 58px; }
  /* the eyebrow pill is nowrap by default; let it break rather than clip off
     the edge of a narrow screen */
  .hero-badge { white-space: normal; text-align: center; line-height: 1.5; }
  .product-hero { padding: 44px 0 54px; }
}
@media (max-width: 480px) {
  /* stack call-to-action buttons full width instead of cramming them side by side */
  .cta-row, .feat-ctas { width: 100%; }
  .cta-row .btn, .feat-ctas .btn { flex: 1 1 100%; justify-content: center; }
}
