: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,
body {
  min-height: 100%;
  width: 100%;
}

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

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

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

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

.site-page {
  min-height: 100vh;
}

.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;
}

.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.8rem 1rem;
  border-radius: 999px;
  color: var(--text-soft);
  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;
}

.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,
.feature-grid {
  grid-template-columns: repeat(2, 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;
}

.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: 1rem;
  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;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-button:hover {
  transform: translateY(-1px);
  background: #67e8f9;
}

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

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

.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);
}

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

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

.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: 1.75rem;
}

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

.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-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.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.note-box strong {
  color: white;
}

.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;
  color: var(--text-soft);
}

.docs-nav a:hover {
  color: white;
}

.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: 2rem;
  padding: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .card-grid,
  .compare-grid,
  .example-grid,
  .feature-grid,
  .docs-grid,
  .mini-grid {
    grid-template-columns: 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;
  }
}
