:root {
  --bg-top: #060619;
  --bg-mid: #060619;
  --bg-low: #060619;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(15, 23, 42, 0.74);
  --panel-border: rgba(255, 255, 255, 0.11);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --pink: #f472b6;
  --emerald: #34d399;
  --amber: #fbbf24;
  --shadow: 0 30px 90px rgba(2, 6, 23, 0.55);
  --radius-xl: 2rem;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --content-width: 1180px;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  --sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: var(--sans);
  background: #060619;
}

/* ── Dark-theme scrollbar ── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

:not(pre) > code {
  padding: 0.15em 0.4em;
  border-radius: 0.4em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.88em;
  color: #a5f3fc;
}

.site-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 211, 238, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 70% 0%, rgba(244, 114, 182, 0.04) 0%, transparent 50%);
}

.site-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.18s ease;
}

.site-brand:hover {
  opacity: 0.85;
}

.site-brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-brand-mark img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-kicker {
  color: #bae6fd;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 620;
  line-height: 1.2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.11);
  color: #fde68a;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.is-mounted {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.site-nav a {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 550;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-current {
  border-color: rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.1);
  color: white;
  transform: translateY(-1px);
}

.glass-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-card {
  padding: 1.75rem;
}

.hero-grid,
.split-grid,
.card-grid,
.compare-grid,
.example-grid,
.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  padding: 2rem;
}

.split-grid,
.card-grid,
.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.is-pink {
  border-color: rgba(244, 114, 182, 0.3);
  background: rgba(244, 114, 182, 0.12);
  color: #fbcfe8;
}

.eyebrow.is-emerald {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
}

.eyebrow.is-slate {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.52);
  color: #cbd5e1;
}

.hero-title,
.section-title,
.card-title {
  margin: 0;
  line-height: 1.08;
}

.hero-title {
  font-size: clamp(2.45rem, 4.4vw, 4.25rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
  background: linear-gradient(135deg, #f8fafc 0%, #22d3ee 50%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.card-title {
  font-size: 1.22rem;
  font-weight: 720;
}

.lede,
.section-copy,
.card-copy,
.mini-copy,
.site-list,
.doc-list {
  color: var(--text-soft);
  line-height: 1.7;
}

.lede {
  font-size: 1.08rem;
  max-width: 49rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.cta-row,
.button-row,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: #22d3ee;
  color: #020617;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-button:hover {
  transform: translateY(-2px);
  background: #67e8f9;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}

.site-button:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

.site-button.is-alt {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-color: rgba(255, 255, 255, 0.14);
}

.site-button.is-alt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.06);
}

.site-button.is-ghost {
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, 0.28);
}

.site-button.is-ghost:hover {
  background: rgba(52, 211, 153, 0.2);
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.12);
}

.stat-card,
.mini-card,
.feature-card,
.mode-card,
.doc-card,
.example-card,
.reference-card,
.note-box,
.preview-shell {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
}

.mini-card,
.feature-card,
.mode-card,
.doc-card,
.example-card,
.reference-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.mini-card:hover,
.feature-card:hover,
.mode-card:hover,
.doc-card:hover,
.example-card:hover,
.reference-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.5);
}

.stat-card,
.mini-card,
.feature-card,
.mode-card,
.doc-card,
.reference-card {
  padding: 1.4rem;
}

.stat-card {
  border-top: 2px solid rgba(34, 211, 238, 0.3);
}

.stat-value {
  margin: 0.65rem 0 0;
  font-size: clamp(2.6rem, 3.2vw, 3.5rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  color: var(--cyan);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.stat-message {
  margin-top: 0.8rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.flash-note {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
  font-size: 0.95rem;
}

.field-label {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.site-input,
.site-select,
.site-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.62);
  color: white;
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-input:focus,
.site-select:focus,
.site-textarea:focus {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.field-stack,
.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mini-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  min-height: 100%;
}

.feature-card h3,
.mode-card h3,
.doc-card h3,
.reference-card h3,
.mini-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p,
.mode-card p,
.doc-card p,
.reference-card p,
.mini-card p {
  margin: 0;
}

.site-section {
  margin-top: 2.25rem;
}

.site-section + .site-section {
  margin-top: 2rem;
}

.example-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
}

.example-head {
  padding: 1.35rem 1.35rem 0;
}

.example-kicker {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.example-card h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.18rem;
  font-weight: 740;
}

.example-copy {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.example-note {
  margin: 0;
  color: #a5f3fc;
  font-size: 0.92rem;
  line-height: 1.55;
}

.preview-shell {
  margin: 0 1.35rem;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.55);
}

.preview-title {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.preview-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.preview-line.is-wrap {
  flex-wrap: wrap;
}

.preview-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chip,
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-benefit {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.chip.is-on {
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.12);
  color: #bbf7d0;
}

.chip.is-off {
  border-color: rgba(148, 163, 184, 0.26);
  color: #cbd5e1;
}

.list-stack,
.site-list,
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.code-wrap {
  margin: 0 1.35rem 1.35rem;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #091122;
}

.code-caption {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.site-code {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #dbeafe;
  font-size: 0.86rem;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  border-left: 3px solid rgba(34, 211, 238, 0.2);
}

.note-box {
  padding: 1rem 1.1rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.note-box strong {
  color: white;
}

.multi-view-row {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.multi-view-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.multi-view-chip {
  flex: 0 0 auto;
  margin-top: 0.1rem;
}

.multi-view-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 14rem;
  flex-direction: column;
  gap: 0.18rem;
}

.multi-view-index {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.multi-view-title {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.multi-view-meta {
  margin: 0;
}

.callout {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.09);
  color: #cffafe;
  line-height: 1.65;
}

.teleport-dock {
  min-height: 5.5rem;
  border-radius: 1rem;
  border: 1px dashed rgba(34, 211, 238, 0.28);
  background: rgba(2, 6, 23, 0.36);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.teleported-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  background: rgba(244, 114, 182, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.25);
  color: #fbcfe8;
  font-weight: 700;
}

.docs-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 290px minmax(0, 1fr);
}

.docs-nav {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  padding: 1.3rem;
}

.docs-nav h3 {
  margin: 0 0 0.9rem;
}

.docs-nav a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  border-radius: 0.6rem;
  transition: color 0.18s ease, background 0.18s ease;
}

.docs-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.docs-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.docs-block {
  padding: 1.5rem;
}

.docs-block h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
}

.docs-block p {
  margin: 0;
}

.footer-note {
  margin-top: 2.5rem;
  padding: 1.6rem 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-note a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  transition: border-color 0.2s ease;
}

.footer-note a:hover {
  border-color: var(--cyan);
}

.scoped-swatch,
.global-demo-pill,
.script-done {
  transition: all 0.2s ease;
}

/* ── Entrance animation ── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid {
  animation: fade-up 0.5s ease both;
}

.site-section {
  animation: fade-up 0.45s ease both;
}

/* ── Status pill pulse when mounted ── */

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.15); }
}

.status-pill.is-mounted {
  animation: pulse-glow 2s ease-in-out 1;
}

/* ── List row hover ── */

.list-row {
  transition: background 0.18s ease, border-color 0.18s ease;
}

.list-row:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Focus states (accessibility) ── */

*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.site-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.25);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── Skip-to-content link (accessibility) ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #020617;
  font-weight: 700;
  font-size: 0.88rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ── Visual hierarchy: section accent borders ── */

.section-card:nth-child(odd) {
  border-left: 3px solid rgba(34, 211, 238, 0.25);
}

.section-card:nth-child(even) {
  border-left: 3px solid rgba(52, 211, 153, 0.25);
}

/* ── Copy button for code blocks ── */

.code-wrap {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.copy-btn.is-copied {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: #bbf7d0;
}

/* ── Mobile hamburger menu ── */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .card-grid,
  .compare-grid,
  .example-grid,
  .docs-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-nav {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 1.1rem), var(--content-width));
    padding-top: 1rem;
  }

  .site-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .section-card {
    padding: 1.25rem;
  }

  .example-head,
  .preview-shell,
  .code-wrap {
    margin-left: 0.95rem;
    margin-right: 0.95rem;
  }

  .code-wrap {
    margin-bottom: 0.95rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Hamburger visible on mobile */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .site-nav.is-open {
    max-height: 30rem;
    opacity: 1;
  }
}

/* ================================================================
   TECHNICAL DOCS – EXTRA STYLES
   Appended after the main site.css by generate-technical-docs.mjs
   ================================================================ */

/* ── Amber eyebrow variant ── */

.eyebrow.is-amber {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
}

/* ── Hero card (index + subpages) ── */

.hero-card {
  padding: 0;
  overflow: hidden;
}

.hero-card .hero-grid {
  padding: 2.25rem;
}

/* ─�� Doc nav card (right sidebar inside hero) ── */

.doc-nav-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
  background: var(--panel-strong);
  padding: 1.4rem;
}

.doc-nav-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 720;
}

.doc-note {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ── Docs nav links (sidebar link list) ── */

.docs-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.75rem;
}

.docs-nav-links a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 550;
  transition: color 0.18s ease, background 0.18s ease;
}

.docs-nav-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.docs-nav-links a.is-current {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
  border-left: 2px solid var(--cyan);
}

/* ── Docs home grid (index page – CLI + Slim cards) ── */

.docs-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.docs-index-card {
  padding: 1.75rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.docs-index-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.5);
}

.docs-index-card h3 {
  margin: 0.75rem 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 740;
}

.docs-index-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ── Docs layout (subpage – sidebar + article) ── */

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.docs-sidebar {
  position: sticky;
  top: 1.25rem;
  align-self: start;
  padding: 1.3rem;
}

.docs-sidebar .eyebrow {
  margin-bottom: 0.75rem;
}

.docs-sidebar h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.docs-sidebar > p {
  margin: 0 0 0.75rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.docs-page-links {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-page-links a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  transition: color 0.18s ease, background 0.18s ease;
}

.docs-page-links a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

.docs-page-links a.is-current {
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
}

/* ── Docs article (main content area) ── */

.docs-article {
  padding: 2rem;
  min-width: 0;
}

.doc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.doc-body {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1rem;
}

.doc-body h1 {
  font-size: 1.8rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 2.5rem 0 1rem;
  line-height: 1.15;
}

.doc-body h1:first-child {
  margin-top: 0;
}

.doc-body h2 {
  font-size: 1.4rem;
  font-weight: 740;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin: 2.25rem 0 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.2;
}

.doc-body h3 {
  font-size: 1.15rem;
  font-weight: 720;
  color: var(--text-main);
  margin: 1.75rem 0 0.65rem;
  line-height: 1.25;
}

.doc-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.5rem;
}

.doc-body p {
  margin: 0 0 1rem;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.doc-body li {
  margin-bottom: 0.4rem;
}

.doc-body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  transition: border-color 0.2s ease;
}

.doc-body a:hover {
  border-color: var(--cyan);
}

.doc-body pre {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #091122;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.75;
  color: #dbeafe;
  border-left: 3px solid rgba(34, 211, 238, 0.2);
}

.doc-body pre code {
  padding: 0;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

.doc-body blockquote {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1.15rem;
  border-left: 3px solid rgba(251, 191, 36, 0.4);
  border-radius: 0 0.75rem 0.75rem 0;
  background: rgba(251, 191, 36, 0.06);
  color: #fde68a;
}

.doc-body blockquote p {
  margin: 0;
}

.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
}

.doc-body th {
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-body td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-body tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.doc-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2rem 0;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-copy a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, 0.3);
  transition: border-color 0.2s ease;
}

.footer-copy a:hover {
  border-color: var(--cyan);
}

/* ── Responsive overrides ── */

@media (max-width: 1080px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-card .hero-grid,
  .section-card {
    padding: 1.25rem;
  }

  .docs-article {
    padding: 1.25rem;
  }
}
