/* ============================================================
   THYMOS - infrastructure documentation
   Built by Exponet Labs
   ============================================================ */

:root {
  --bg:          #08040f;
  --bg-2:        #0d0717;
  --bg-3:        #120b20;
  --surface:     #140e22;
  --surface-2:   #1b1230;
  --border:      rgba(255, 255, 255, 0.08);
  --border-2:    rgba(255, 255, 255, 0.14);
  --text:        #e7ecf3;
  --text-dim:    #a2acbd;
  --text-soft:   #6d7789;
  --mute:        #4a5362;

  --accent:      #a855f7;           /* violet — brand */
  --accent-2:    #7c3aed;           /* deep violet */
  --accent-3:    #d9bcff;           /* soft lavender */
  --violet:      #8b5cf6;
  --violet-soft: #b998ff;
  --cyan:        #8be9ff;
  --red:         #ff6f6f;

  --radius:       8px;
  --radius-lg:    8px;
  --radius-xl:    8px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.35);
  --shadow-md:   0 8px 24px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.03) inset;
  --shadow-glow: 0 0 0 1px rgba(168,85,247,.35), 0 12px 48px rgba(124,58,237,.15);

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

  --nav-h: 66px;
  --container: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

body {
  background:
    linear-gradient(180deg, rgba(30, 17, 49, 0.66), rgba(8, 4, 15, 0.98) 36%, var(--bg)),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}
a:hover { color: var(--accent-3); }

code, pre, kbd { font-family: var(--font-mono); }

/* ===== Background decoration ===== */

.bg-grid {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(to right, rgba(168,85,247,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168,85,247,0.05) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px, 224px 224px, 224px 224px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .42) 64%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .42) 64%, transparent 100%);
  z-index: 0;
}

main, header.nav, footer.footer { position: relative; z-index: 1; }

/* ===== Nav ===== */

.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  gap: 24px;
  padding: 0 32px;
  background: rgba(5, 7, 11, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex; align-items: center;
  gap: 13px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 14px;
}
.nav-brand:hover { color: var(--text); }

.nav-mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(168,85,247,.35), 0 0 22px rgba(168,85,247,.22);
}

.nav-wordmark {
  color: var(--text);
  font-size: 15.5px;
  letter-spacing: .2em;
}

/* "runtime" — a quiet label beside the wordmark, not a cramped box */
.nav-pill {
  display: inline-flex; align-items: center;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav-pill::before {
  content: "";
  width: 1px; height: 14px;
  margin-right: 11px;
  background: var(--border-2);
}

.nav-links {
  display: flex; gap: 26px;
  margin-left: 20px;
  font-size: 14px;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  margin-left: auto;
  display: flex; gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #c77dff, #7c3aed);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px rgba(124,58,237,.28);
}
.btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 26px rgba(124,58,237,.36);
  color: #fff;
}
.btn-ghost {
  color: var(--text);
  border-color: var(--border-2);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.btn-arrow { transform: translateX(0); transition: transform .15s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 38px; height: 38px;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ===== Page container ===== */

main.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.prose { max-width: 820px; margin: 0 auto; }

.prose-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--text);
  letter-spacing: 0;
  font-weight: 650;
}

.prose h1 { font-size: 40px; line-height: 1.1; margin: 0 0 10px; letter-spacing: 0; }
.prose h2 { font-size: 24px; margin: 44px 0 14px; }
.prose h3 { font-size: 18px; margin: 32px 0 10px; color: var(--text); }
.prose h4 { font-size: 14px; margin: 22px 0 8px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .14em; }

.subtitle {
  margin: 0;
  color: var(--text-dim);
  font-size: 17px;
  max-width: 70ch;
}

.prose p { color: var(--text-dim); font-size: 15.5px; }
.prose p strong { color: var(--text); font-weight: 600; }

.prose ul, .prose ol { padding-left: 22px; color: var(--text-dim); font-size: 15.5px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--mute); }

.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: rgba(168,85,247,0.05);
  border-radius: 0 10px 10px 0;
  color: var(--text);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prose th, .prose td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.prose th {
  background: rgba(255,255,255,0.03);
  font-weight: 600;
  color: var(--text);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.prose tr:last-child td { border-bottom: none; }

/* Code */
.prose code {
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--accent-3);
  border: 1px solid rgba(255,255,255,0.05);
}

.prose pre {
  position: relative;
  background: linear-gradient(180deg, #0b0f16, #090c12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.3px;
  line-height: 1.6;
  box-shadow: var(--shadow-md);
  margin: 18px 0 26px;
}

.prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #d7dde8;
}

/* Rouge highlight tokens, dark */
.highlight .c, .highlight .c1, .highlight .cm { color: #6b7280; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kt { color: #c084fc; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sr { color: #ffd18a; }
.highlight .nf, .highlight .nc, .highlight .na { color: #7dd3fc; }
.highlight .mi, .highlight .mf { color: #34d399; }
.highlight .o, .highlight .p { color: #c7cdd6; }
.highlight .nx, .highlight .n { color: #d7dde8; }
.highlight .err { color: var(--red); }

/* ===== Landing page ===== */

.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}

.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}

/* 3D execution-DAG canvas — full-bleed behind the hero content */
.hero-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 760px;
  transform: translate(-50%, -54%);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 78% at 50% 42%, #000 38%, transparent 78%);
  mask-image: radial-gradient(120% 78% at 50% 42%, #000 38%, transparent 78%);
  opacity: 0;
  animation: hero-canvas-in 1.2s ease .15s forwards;
}
.hero-canvas canvas { display: block; width: 100%; height: 100%; }
@keyframes hero-canvas-in { to { opacity: 1; } }

/* hero content rides above the 3D layer */
.hero > *:not(.hero-canvas) { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-canvas { animation: none; opacity: 1; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 {
  font-size: 66px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 650;
  margin: 0;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #e7d2ff 0%, #a855f7 70%, #7b2fe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--text-dim);
  font-size: 19px;
  line-height: 1.55;
}

.hero-cta {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.downloads {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 18px;
  text-align: left;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: rgba(8, 4, 15, .78);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  backdrop-filter: blur(12px);
}
.download-group {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: center;
  padding: 4px;
}
.download-group + .download-group {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.download-group strong,
.download-group small { display: block; }
.download-group strong { margin-top: 3px; color: var(--text); font-size: 15px; }
.download-group small { margin-top: 4px; color: var(--text-soft); font-size: 12px; }
.download-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.download-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.download-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, .025);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.download-links a:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, .08);
  color: var(--text);
}
.download-note {
  margin: 15px 4px 0;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.download-note a { margin-left: 4px; color: var(--text-dim); }

.hero-meta {
  display: flex; gap: 28px; justify-content: center;
  margin-top: 34px;
  color: var(--text-soft);
  font-size: 13px;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .mono { font-family: var(--font-mono); color: var(--text-dim); }

/* Triad diagram */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 60px auto 0;
  max-width: 980px;
}
.triad .card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.triad .card:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.triad .card::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(168,85,247,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.055) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: .7;
}
.triad .card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.triad .card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}
.triad .card .sub {
  color: var(--text-soft); font-size: 13px; margin-top: 8px;
}

/* Terminal */

.section {
  padding: 80px 0 0;
}
.section-h {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-h .eyebrow { text-align: center; }
.section-h h2 {
  font-size: 34px;
  letter-spacing: 0;
  margin: 6px 0 10px;
  color: var(--text);
}
.section-h p { color: var(--text-dim); font-size: 16px; }

.terminal {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0b0e14, #07090d);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 30px 80px rgba(0,0,0,.45);
  max-width: 880px;
  margin: 0 auto;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.015);
}
.terminal-bar .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.terminal-bar .dot.r { background: #ff6058; }
.terminal-bar .dot.y { background: #ffbd2e; }
.terminal-bar .dot.g { background: #28c940; }
.terminal-bar .title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-soft);
}
.terminal-body {
  padding: 18px 22px 24px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: #c7ceda;
}
.terminal-body .p { color: var(--text-soft); }
.terminal-body .cmd { color: var(--accent); }
.terminal-body .out { color: #a9b4c5; }
.terminal-body .ok  { color: #79e0b1; }
.terminal-body .warn{ color: #ffd18a; }
.terminal-body .muted { color: var(--mute); }
.terminal-body .hl  { color: var(--text); }
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Grid cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
.fcard {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease;
}
.fcard:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.fcard .icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(168,85,247,.14);
  color: var(--accent);
  margin-bottom: 12px;
  border: 1px solid rgba(168,85,247,.25);
}
.fcard h3 {
  font-size: 16px; margin: 0 0 6px; color: var(--text); font-weight: 600;
}
.fcard p {
  font-size: 14px; color: var(--text-dim); margin: 0;
}
.fcard .mono-link {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
}

/* Providers row */
.providers {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.provider {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  text-align: center;
}
.provider .name {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text); letter-spacing: .02em;
}
.provider .meta {
  font-size: 11px; color: var(--text-soft);
  margin-top: 4px; text-transform: uppercase; letter-spacing: .14em;
}

/* Big CTA */

.cta-wrap {
  margin: 80px auto 0;
  max-width: 980px;
  padding: 44px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.00)),
    linear-gradient(rgba(168,85,247,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  border: 1px solid var(--border-2);
  text-align: center;
}
.cta-wrap h2 {
  font-size: 30px; margin: 0 0 8px; letter-spacing: 0;
  color: var(--text);
}
.cta-wrap p {
  color: var(--text-dim); margin: 0 auto 22px; max-width: 600px;
}
.cta-wrap .hero-cta { margin-top: 0; }

/* Axioms (five guarantees) */

.axioms {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.axiom {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  transition: border-color .2s ease, background .2s ease;
}
.axiom:hover {
  border-color: var(--border-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.axiom-n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
  font-weight: 600;
}
.axiom strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.axiom p {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}

/* Monospace icon variant for execution grammar cards */
.fcard .icon.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

.footer {
  max-width: var(--container);
  margin: 60px auto 0;
  padding: 56px 32px 36px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
}
.footer h4 {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--text); }

.footer-lockup { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-lockup .wordmark { font-weight: 600; letter-spacing: .16em; font-size: 13px; color: var(--text); }
.footer-tag { color: var(--text); margin: 0; max-width: 32ch; }
.footer-parent { color: var(--text-soft); font-size: 13px; margin: 12px 0 0; }
.footer-parent a { color: var(--text-dim); border-bottom: 1px dotted var(--border-2); }
.footer-parent a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12.5px;
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4cd38a;
  box-shadow: 0 0 12px #4cd38a;
}

/* Mobile */

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  /* Bug fix: keep the toggle pinned to the right edge of the bar */
  .nav-toggle { display: flex; order: 1; margin-left: auto; }

  /* Open: the bar expands and links + CTAs stack full-width below the brand */
  .nav.is-open {
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 14px;
    background: rgba(5,7,11,0.96);
  }
  .nav.is-open .nav-links,
  .nav.is-open .nav-cta {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    gap: 0;
  }
  .nav.is-open .nav-links { order: 2; margin-top: 8px; }
  .nav.is-open .nav-links a {
    padding: 11px 2px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }
  /* Bug fix: CTAs (GitHub / Start local) were unreachable on mobile */
  .nav.is-open .nav-cta { order: 3; gap: 10px; margin-top: 12px; }
  .nav.is-open .nav-cta .btn { width: 100%; justify-content: center; height: 42px; }
  .triad, .cards, .providers, .footer {
    grid-template-columns: 1fr;
  }
  main.page { padding: 36px 22px 60px; }
  .hero { padding: 48px 0 20px; }
  .hero-canvas { height: 540px; transform: translate(-50%, -50%); }
  .prose h1 { font-size: 32px; }
  .hero h1 { font-size: 42px; }
  .download-group { grid-template-columns: 1fr; gap: 12px; }
  .download-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================================
   Product-launch additions: hero lockup + release badge + hero
   shot, split product sections, premium download cards.
   ============================================================ */

/* Hero brand lockup */
.hero-brand {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-bottom: 18px;
}
.hero-brand img { border-radius: 10px; }
.hero-wordmark {
  font-weight: 800; letter-spacing: .22em; font-size: 19px; color: var(--text);
}
.hero-wordmark em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Button hierarchy */
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-secondary {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(168,85,247,.3), 0 8px 28px rgba(124,58,237,.18);
}

/* Stable release badge */
.release-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 6px 14px;
  border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(20, 14, 34, 0.7);
  color: var(--text-dim); font-size: 13px; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.release-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(124,58,237,.25);
  color: var(--text);
}
.release-badge img { display: inline-block; vertical-align: middle; }
.rb-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #46d39a; box-shadow: 0 0 8px #46d39a;
}

/* Hero product visual */
.hero-shot {
  max-width: 880px; margin: 38px auto 8px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow:
    0 0 0 1px rgba(168,85,247,.18),
    0 24px 80px rgba(124,58,237,.22),
    0 8px 28px rgba(0,0,0,.5);
}
.hero-shot img { display: block; width: 100%; height: auto; }

/* Split product sections (copy + screenshot) */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px; align-items: center;
}
.split.rev .split-copy { order: 2; }
.split.rev .split-shot { order: 1; }
.split-copy .eyebrow { margin-bottom: 8px; }
.split-copy h2 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -0.02em; }
.split-copy p { color: var(--text-dim); margin: 0 0 16px; }
.split-copy .btn { margin-top: 6px; }
.split-shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(168,85,247,.14), 0 18px 60px rgba(124,58,237,.16), 0 8px 24px rgba(0,0,0,.45);
}
.split-shot img { display: block; width: 100%; height: auto; }
.split-shot figcaption {
  padding: 10px 14px; font-size: 12.5px; color: var(--text-soft);
  border-top: 1px solid var(--border);
}
.ticks { list-style: none; margin: 0 0 18px; padding: 0; }
.ticks li {
  position: relative; padding-left: 26px; margin: 8px 0;
  color: var(--text-dim); font-size: 14.5px;
}
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.cli-line {
  margin: 0 0 16px; padding: 11px 14px; overflow-x: auto;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
}
.cli-line code { font-family: var(--font-mono); font-size: 12.8px; color: var(--cyan); }
.cli-line .dim { color: var(--text-soft); }

/* Premium download cards: Desktop primary, CLI secondary */
.dl-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 980px; margin: 0 auto;
}
.dl-card {
  padding: 26px; border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-md);
}
.dl-card.primary {
  background: linear-gradient(180deg, rgba(124,58,237,.14), var(--surface) 55%);
  border-color: rgba(168,85,247,.45);
  box-shadow: 0 0 0 1px rgba(168,85,247,.22), 0 18px 64px rgba(124,58,237,.2);
}
.dl-head strong { display: block; margin-top: 6px; font-size: 18px; color: var(--text); }
.dl-head small { display: block; margin-top: 6px; color: var(--text-soft); font-size: 13px; }
.dl-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 12px; }
.dl-buttons .btn { width: 100%; justify-content: center; font-size: 13.5px; padding: 0 10px; }
.dl-note { color: var(--text-soft); font-size: 12.5px; }
.dl-card .cli-line { margin: 6px 0 0; }

@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.rev .split-copy { order: 1; }
  .split.rev .split-shot { order: 2; }
  .dl-grid { grid-template-columns: 1fr; }
  .hero-cta .btn-lg { width: 100%; justify-content: center; }
  .hero-shot { margin-top: 28px; }
  .split-copy h2 { font-size: 25px; }
}
