/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #060814;
  --bg-2: #0a0e1f;
  --panel: rgba(17, 23, 41, 0.55);
  --panel-border: rgba(120, 160, 220, 0.12);
  --panel-border-strong: rgba(120, 160, 220, 0.22);
  --text: #e6ebf5;
  --text-2: #9aa6c2;
  --text-3: #6b7796;
  --accent: #38bdf8;
  --accent-2: #6aa8ff;
  --grad-from: #cfe3ff;
  --grad-mid: #6aa8ff;
  --grad-to: #3b82f6;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --pink: #f472b6;
  --orange: #fb923c;
  --rose: #fb7185;
  --teal: #2dd4bf;
  --yellow: #fde047;
  --cyan: #22d3ee;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }

body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(59, 130, 246, 0.10), transparent 70%),
    radial-gradient(900px 500px at 80% 10%, rgba(99, 102, 241, 0.06), transparent 70%),
    radial-gradient(900px 500px at 10% 100%, rgba(56, 189, 248, 0.04), transparent 70%),
    var(--bg);
  overflow-x: hidden;
}

.constellation {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.65;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.9em; color: #cbd5ff; }

/* ─── Nav ──────────────────────────────────────────── */
.nav {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 56px; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; }
.brand-word { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: 0.02em; color: #cdd6ee; }

.nav-links { display: flex; gap: 40px; justify-content: center; }
.nav-links a { color: var(--text-2); font-size: 15px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-links .ext { font-size: 11px; opacity: 0.7; }

.nav-actions { display: flex; align-items: center; gap: 14px; justify-content: flex-end; }
.ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; padding: 8px 4px; transition: color 0.15s; }
.ghost:hover { color: var(--text); }
.ghost.login {
  padding: 9px 18px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 999px;
  background: rgba(20, 28, 50, 0.5);
  font-size: 14px;
}
.ghost.login:hover {
  border-color: rgba(106, 168, 255, 0.5);
  background: rgba(30, 50, 90, 0.5);
}

.cta-pill {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
}
.cta-pill:hover { border-color: rgba(106, 168, 255, 0.6); background: rgba(106, 168, 255, 0.08); }

/* ─── Hero ─────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 60px auto 80px;
  padding: 0 56px; text-align: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: #7cc4f8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.04);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.wordmark {
  font-size: clamp(72px, 13vw, 168px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 36px 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #c8dafd 35%, #6aa8ff 75%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.tagline {
  font-size: clamp(22px, 2.4vw, 30px);
  color: #7cc4f8;
  font-weight: 400;
  margin: 0 0 36px;
}

.lead {
  max-width: 760px; margin: 0 auto;
  font-size: 17px; line-height: 1.7;
  color: var(--text-2);
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; margin: 48px 0 60px; flex-wrap: wrap; }
.hero-ctas.center { justify-content: center; margin-top: 36px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  font-weight: 500; font-size: 15px;
  color: #0a0e1a;
  background: linear-gradient(180deg, #7ec4ff 0%, #4a8bff 100%);
  border-radius: 999px;
  box-shadow: 0 0 60px rgba(106, 168, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 80px rgba(106, 168, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary .arr { font-size: 18px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  font-size: 15px;
  border: 1px solid var(--panel-border-strong);
  border-radius: 999px;
  background: rgba(20, 28, 50, 0.4);
  color: var(--text);
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(106, 168, 255, 0.5); background: rgba(40, 60, 100, 0.45); }

.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.15s;
}
.btn-link:hover { color: var(--text); }

/* ─── Terminal ─────────────────────────────────────── */
.terminal {
  max-width: 760px; margin: 32px auto 0;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: rgba(8, 12, 26, 0.7);
  backdrop-filter: blur(8px);
  text-align: left;
  overflow: hidden;
}
.term-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.02);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.term-title { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.term-body {
  margin: 0; padding: 22px 24px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.85;
  color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}
.term-body .prompt { color: var(--green); margin-right: 8px; }
.term-body .cmd { color: #7cc4f8; }
.term-body .ok { color: var(--green); }
.term-body .ok-text { color: var(--green); }
.term-body .kw { color: #c4b5fd; }
.term-body .path, .term-body .url { color: #7cc4f8; }
.term-body .comment { color: #4d5878; }
.caret-block { display: inline-block; width: 8px; height: 16px; background: rgba(255,255,255,0.7); margin-right: 3px; vertical-align: middle; }
.caret-block.lit { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* ─── Stats strip ──────────────────────────────────── */
.stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
  max-width: 1280px; margin: 80px auto;
  padding: 0 56px;
}
.stat { text-align: center; }
.stat-num {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #cfe3ff 0%, #6aa8ff 70%, #3b82f6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.stat-label { color: var(--text); font-size: 15px; font-weight: 500; }
.stat-sub { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* ─── Section block ────────────────────────────────── */
.block {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto 140px;
  padding: 0 56px;
}
.eyebrow {
  display: inline-block;
  padding: 7px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: #7cc4f8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.04);
  margin: 0 auto 28px;
  display: block; width: max-content;
}
.section-title {
  text-align: center;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 auto 24px;
  max-width: 1000px;
}
.section-title .grad {
  background: linear-gradient(90deg, #6aa8ff 0%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead {
  text-align: center; max-width: 720px; margin: 0 auto;
  color: var(--text-2); font-size: 16px; line-height: 1.7;
}

/* ─── Feature grid ─────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 64px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--panel-border-strong); transform: translateY(-2px); }
.feature h3 { margin: 22px 0 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.7; }
.feature code { color: #a8c8ff; background: rgba(106,168,255,0.08); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.ic {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid currentColor;
}
.ic.small { width: 38px; height: 38px; border-radius: 9px; }
.ic svg { width: 22px; height: 22px; }
.ic.small svg { width: 18px; height: 18px; }
.ic-cyan { color: var(--cyan); background: rgba(34, 211, 238, 0.06); }
.ic-violet { color: var(--violet); background: rgba(167, 139, 250, 0.06); }
.ic-teal { color: var(--teal); background: rgba(45, 212, 191, 0.06); }
.ic-pink { color: var(--pink); background: rgba(244, 114, 182, 0.06); }
.ic-rose { color: var(--rose); background: rgba(251, 113, 133, 0.06); }
.ic-amber { color: var(--amber); background: rgba(251, 191, 36, 0.06); }
.ic-green { color: var(--green); background: rgba(52, 211, 153, 0.06); }
.ic-yellow { color: var(--yellow); background: rgba(253, 224, 71, 0.06); }
.ic-blue { color: #60a5fa; background: rgba(96, 165, 250, 0.06); }

/* ─── Architecture ─────────────────────────────────── */
.source-row {
  display: flex; gap: 18px; justify-content: center;
  margin: 56px 0 16px; flex-wrap: wrap;
}
.src {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.02);
}
.src-pink { color: #f472b6; }
.src-orange { color: #fb923c; }
.src-green { color: #34d399; }
.src-teal { color: #2dd4bf; }
.down-arrow { text-align: center; color: var(--accent-2); font-size: 28px; margin-bottom: 32px; opacity: 0.6; }

.arch-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-bottom: 56px;
}
.arch-card {
  padding: 24px 22px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
}
.arch-card h4 { margin: 14px 0 8px; font-size: 16px; font-weight: 600; }
.arch-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.tag {
  display: inline-block; margin-top: 14px;
  padding: 3px 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  border-radius: 5px;
}
.tag-violet { color: #c4b5fd; background: rgba(167, 139, 250, 0.15); }
.port { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.arch-terminal { max-width: 720px; }
.center-pill { text-align: center; margin-top: 56px; }
.pill-link {
  display: inline-block;
  padding: 11px 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  color: #7cc4f8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.04);
  transition: background 0.2s;
}
.pill-link:hover { background: rgba(56, 189, 248, 0.12); }

/* ─── Install / Quick start ───────────────────────── */
.install-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 36px;
  margin-top: 64px;
}
.install-side h5 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--text); }
.req-list, .port-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.req-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text-2); font-size: 14px;
  background: rgba(20, 28, 50, 0.3);
}
.req-list li .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.req-list li.active { color: #7cc4f8; border-color: rgba(106, 168, 255, 0.4); }
.req-list li.active .dot { background: #7cc4f8; box-shadow: 0 0 6px #7cc4f8; }
.port-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: rgba(20, 28, 50, 0.3);
  font-size: 14px;
}
.port-code { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.port-code.violet { color: #c4b5fd; background: rgba(167,139,250,0.1); }
.port-code.green { color: #6ee7b7; background: rgba(52,211,153,0.1); }

.install-main {
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.tabs {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border);
}
.tab {
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-size: 13px; font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: #7cc4f8;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.05);
}
.copy-btn {
  margin-left: auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--panel-border);
  border-radius: 8px; color: var(--text-2); cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--panel-border-strong); }

.tab-body {
  margin: 0; padding: 28px 32px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.85;
  color: var(--text-2);
  white-space: pre-wrap;
}
.tab-body.hidden { display: none; }
.tab-body .prompt { color: var(--green); margin-right: 8px; }
.tab-body .cmd { color: #7cc4f8; }
.tab-body .ok-text { color: var(--green); }
.tab-body .ok { color: var(--green); }
.tab-body .comment { color: #4d5878; }
.tab-body .url { color: #7cc4f8; }

.callout {
  margin: 0 24px 24px;
  padding: 18px 22px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.04);
}
.callout-title { color: #7cc4f8; font-weight: 600; margin-bottom: 4px; }
.callout p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* ─── Preview / charts ─────────────────────────────── */
.preview-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 64px;
}
.panel {
  padding: 26px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
}
.panel header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.panel h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.panel header p { margin: 0; color: var(--text-3); font-size: 13px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.lg-cyan { background: var(--cyan); }
.lg-violet { background: var(--violet); }
.chart { width: 100%; height: auto; display: block; }

.lang-list { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.lang-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.lang-pct { color: #7cc4f8; font-family: var(--mono); }
.bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.04); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; }

.mon-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(8, 12, 26, 0.35);
}
.mon-row:last-child { margin-bottom: 0; }
.mon-label { color: var(--text-3); font-size: 12px; margin-bottom: 2px; }
.mon-val { font-size: 18px; font-weight: 600; }
.pill-ok { font-size: 12px; padding: 4px 10px; border-radius: 6px; color: #6ee7b7; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); }
.pill-rate { font-size: 12px; padding: 4px 10px; border-radius: 6px; color: var(--text-2); background: rgba(255,255,255,0.03); }

/* ─── Final CTA & closing cards ────────────────────── */
.final-cta { text-align: center; }
.closing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 72px; text-align: left;
}
.closing-card {
  padding: 24px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
}
.closing-card h4 { margin: 0 0 10px; color: #7cc4f8; font-size: 15px; font-weight: 600; }
.closing-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.65; }

/* ─── Footer ───────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 56px;
  border-top: 1px solid var(--panel-border);
  margin-top: 60px;
}
.foot-left { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 13px; }
.foot-left .brand-mark { width: 18px; height: 18px; }
.foot-right { display: flex; gap: 28px; }
.foot-right a { color: var(--text-3); font-size: 13px; transition: color 0.15s; }
.foot-right a:hover { color: var(--text); }

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; padding: 18px 24px; }
  .nav-links { display: none; }
  .hero { padding: 0 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
  .block { padding: 0 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .arch-grid { grid-template-columns: 1fr 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .closing-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 16px; padding: 24px; }
}
