:root {
  --bg: #070b12;
  --bg-elevated: #0d1320;
  --bg-panel: #111826;
  --bg-panel-2: #131c2d;
  --border: #24324a;
  --border-strong: #32537d;
  --text: #eef4ff;
  --text-secondary: #c1cbde;
  --text-muted: #94a4be;
  --accent: #27b1ff;
  --accent-2: #9b8cff;
  --accent-soft: rgba(39, 177, 255, 0.12);
  --green: #41d98e;
  --amber: #f0b95e;
  --red: #f27c7c;
  --shadow: 0 24px 70px rgba(3, 8, 18, 0.45);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(39, 177, 255, 0.12), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(155, 140, 255, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p, li { color: var(--text-secondary); }
strong { color: var(--text); }
code, pre, .mono { font-family: var(--font-mono); }
main { display: block; }
section[id] { scroll-margin-top: 90px; }

.page-shell { position: relative; min-height: 100vh; }
.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7,11,18,0.2), rgba(7,11,18,0.75));
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.78);
  border-bottom: 1px solid rgba(36, 50, 74, 0.6);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.btn,
.btn-ghost,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn,
.btn-ghost {
  min-height: 46px;
  padding: 0 1.25rem;
}

.btn {
  color: #061019;
  background: linear-gradient(135deg, #4ac3ff, var(--accent));
  box-shadow: 0 12px 30px rgba(39, 177, 255, 0.24);
}

.btn:hover,
.btn:focus-visible,
.btn-ghost:hover,
.btn-ghost:focus-visible,
.btn-link:hover,
.btn-link:focus-visible {
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--border-strong);
  background: rgba(255,255,255,0.04);
}

.btn-link {
  color: var(--text-secondary);
}

.hero {
  padding: 4.5rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 2.2rem;
  align-items: center;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(17, 24, 38, 0.88);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.dot {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(65, 217, 142, 0.4);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(65, 217, 142, 0.35); }
  50% { box-shadow: 0 0 0 10px rgba(65, 217, 142, 0); }
}

.hero-copy h1,
.page-hero h1 {
  margin: 1.15rem 0 1rem;
  font-size: clamp(2.75rem, 7vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.gradient {
  background: linear-gradient(135deg, #ffffff 5%, #7fd4ff 50%, #a899ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lede,
.page-hero .lede {
  margin: 0 0 1.35rem;
  max-width: 62ch;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--text-secondary);
}

.proof-pills,
.hero-notes,
.metric-strip,
.steps-grid,
.benefit-grid,
.arch-grid,
.install-cards {
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.proof-pills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5rem 0;
}

.pill,
.metric-card,
.card,
.panel,
.install-card,
.note-card {
  background: linear-gradient(180deg, rgba(19,28,45,0.92), rgba(13,19,32,0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.pill {
  padding: 0.9rem 1rem;
  min-height: 86px;
}

.pill strong,
.metric-card strong,
.install-card h2,
.install-card h3,
.card h3,
.panel h3,
.note-card h3 {
  display: block;
  margin-bottom: 0.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.25rem 0 0.75rem;
}

.helper-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.product-shot {
  position: relative;
  overflow: hidden;
  padding: 1.1rem;
}

.product-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39,177,255,0.08), transparent 55%),
              radial-gradient(circle at 100% 0%, rgba(155,140,255,0.12), transparent 30%);
  pointer-events: none;
}

.shot-window {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(86, 117, 163, 0.45);
  background: #0c1220;
}

.shot-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(86, 117, 163, 0.25);
  background: rgba(15, 22, 35, 0.92);
}

.window-dots {
  display: inline-flex;
  gap: 0.45rem;
}

.window-dots span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #33445f;
}

.window-dots span:nth-child(1) { background: #f27c7c; }
.window-dots span:nth-child(2) { background: #f0b95e; }
.window-dots span:nth-child(3) { background: #41d98e; }

.shot-status {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.shot-body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  min-height: 460px;
}

.shot-sidebar {
  padding: 1rem;
  background: rgba(10, 16, 29, 0.95);
  border-right: 1px solid rgba(86, 117, 163, 0.22);
}

.nav-chip,
.badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
}

.nav-chip {
  width: 100%;
  justify-content: flex-start;
  margin-bottom: 0.55rem;
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(86, 117, 163, 0.18);
}

.nav-chip.active {
  color: var(--text);
  border-color: rgba(39,177,255,0.45);
  background: rgba(39,177,255,0.09);
}

.shot-main {
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
}

.shot-card,
.editor-card,
.install-card,
.note-card,
.summary-card {
  border-radius: 16px;
  border: 1px solid rgba(86, 117, 163, 0.22);
  background: rgba(13, 19, 32, 0.88);
}

.shot-card {
  padding: 1rem;
}

.stack {
  display: grid;
  gap: 0.9rem;
}

.stack-sm { gap: 0.6rem; }

.muted { color: var(--text-muted); }
.small { font-size: 0.92rem; }
.tiny { font-size: 0.82rem; }

.shot-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.mini-badge {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(86,117,163,0.22);
}

.transcript-row {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(86,117,163,0.16);
}

.transcript-row.success {
  border-color: rgba(65,217,142,0.28);
  background: rgba(65,217,142,0.06);
}

.transcript-label {
  font: 0.76rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fd8ff;
}

.transcript-text {
  color: var(--text-secondary);
}

.transcript-text strong,
.text-success {
  color: var(--green);
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.metric-card {
  padding: 1rem 1.1rem;
}

.metric-value {
  display: block;
  margin-bottom: 0.2rem;
  font: 700 1.65rem/1.05 var(--font-mono);
  color: var(--accent);
}

.section {
  padding: 2.7rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.7rem;
}

.kicker {
  margin-bottom: 0.85rem;
  color: #8fd8ff;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
}

.section p.lede,
.section-head p {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-secondary);
}

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

.card,
.panel,
.install-card,
.note-card,
.summary-card {
  padding: 1.35rem;
}

.card-number {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.85rem;
  background: var(--accent-soft);
  color: #8fd8ff;
  font: 700 0.95rem/1 var(--font-mono);
}

.card p:last-child,
.panel p:last-child,
.install-card p:last-child,
.note-card p:last-child {
  margin-bottom: 0;
}

.why-grid,
.install-layout,
.cta-band {
  display: grid;
  gap: 1.25rem;
}

.why-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.list-card ul,
.bullet-list,
.install-list {
  margin: 0;
  padding-left: 1.1rem;
}

.list-card li,
.bullet-list li,
.install-list li {
  margin-bottom: 0.75rem;
}

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

.code-shell {
  overflow: hidden;
  border-radius: 22px;
}

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

.editor-card {
  padding: 1.1rem;
}

.editor-card + .editor-card {
  border-left: 1px solid rgba(86,117,163,0.22);
}

.editor-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.editor-body {
  min-height: 300px;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(7,11,18,0.6);
  border: 1px solid rgba(86,117,163,0.12);
}

.editor-line {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 0.18rem 0;
  color: var(--text-secondary);
}

.line-num {
  color: #60728f;
  text-align: right;
  font: 0.86rem/1.7 var(--font-mono);
}

.mark-bad { color: #ffb1b1; }
.mark-good { color: #8ef1c0; }
.mark-accent { color: #8fd8ff; }

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

.arch-grid .panel {
  min-height: 220px;
}

.data-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.badge {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(86,117,163,0.22);
  color: var(--text-secondary);
}

.summary-card {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.cta-band {
  grid-template-columns: 1.15fr auto;
  align-items: center;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(86,117,163,0.24);
  background: linear-gradient(135deg, rgba(39,177,255,0.08), rgba(155,140,255,0.08));
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(36,50,74,0.7);
}

.footer-links {
  align-items: center;
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-hero {
  padding: 4rem 0 1.25rem;
}

.page-hero .eyebrow {
  margin-bottom: 0.6rem;
}

.install-layout {
  grid-template-columns: minmax(0, 1.15fr) 340px;
  align-items: start;
}

.install-cards {
  grid-template-columns: 1fr;
}

.install-card pre {
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 14px;
  background: rgba(7,11,18,0.72);
  border: 1px solid rgba(86,117,163,0.14);
  color: #e4eeff;
  font-size: 0.92rem;
}

.install-card code {
  color: #dff2ff;
}

.note-card {
  position: sticky;
  top: 92px;
}

.note-card .tiny { line-height: 1.65; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .hero-grid,
  .why-grid,
  .install-layout,
  .summary-card,
  .cta-band {
    grid-template-columns: 1fr;
  }

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

  .note-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-shell {
    min-height: auto;
    padding: 0.9rem 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
    padding-top: 0.4rem;
  }

  .proof-pills,
  .metric-strip,
  .steps-grid,
  .benefit-grid,
  .code-grid {
    grid-template-columns: 1fr;
  }

  .shot-body {
    grid-template-columns: 1fr;
  }

  .shot-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(86,117,163,0.22);
  }

  .editor-card + .editor-card {
    border-left: 0;
    border-top: 1px solid rgba(86,117,163,0.22);
  }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 1.2rem)); }
  .hero { padding-top: 3rem; }
  .page-hero { padding-top: 2.8rem; }
  .btn,
  .btn-ghost { width: 100%; }
  .hero-actions,
  .nav-actions { width: 100%; }
  .nav-actions { justify-content: stretch; }
  .nav-actions .btn,
  .nav-actions .btn-ghost { flex: 1; }
  .metric-value { font-size: 1.45rem; }
  .section { padding: 2.2rem 0; }
  .arch-grid { grid-template-columns: 1fr; }
}
