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

:root {
  --bg: #0b0b0f;
  --surface: #14141a;
  --surface-hover: #1a1a22;
  --border: #23232e;
  --text: #a8a8b8;
  --text-dim: #5c5c6e;
  --text-bright: #e8e8ef;
  --accent: #38bdf8;
  --accent-dim: #38bdf810;
  --accent-glow: #38bdf825;
  --accent-hover: #60ccff;
  --accent2: #00e5a0;
  --code-bg: #0e0e14;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
a { color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
}

/* ═══ NAV ═══ */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.nav-logo span { color: var(--text-dim); font-weight: 400; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim); text-decoration: none; transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-bright); }
.nav-links a.active { color: var(--accent); }

/* ═══ HERO ═══ */
.hero {
  padding: 100px 0 88px;
  position: relative;
}
.hero::before {
  content: ''; position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim); border: 1px solid var(--accent-glow);
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.5s 0.1s forwards;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 56px); font-weight: 800;
  line-height: 1.08; color: var(--text-bright);
  letter-spacing: -0.035em; margin-bottom: 18px;
  opacity: 0; animation: fadeUp 0.5s 0.2s forwards;
}
.hero .sub {
  font-size: 17px; color: var(--text-dim);
  max-width: 560px; line-height: 1.65; margin-bottom: 36px;
  opacity: 0; animation: fadeUp 0.5s 0.3s forwards;
}
.install-bar {
  display: inline-flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  opacity: 0; animation: fadeUp 0.5s 0.4s forwards;
}
.install-bar:hover { box-shadow: 0 0 24px var(--accent-dim); }
.install-bar code {
  font-family: var(--mono); font-size: 14px;
  color: var(--text-bright); padding: 13px 20px; user-select: all;
}
.install-bar code .p { color: var(--accent); }
.install-bar button {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  color: var(--bg); background: var(--accent); border: none;
  padding: 13px 16px; cursor: pointer;
  border-left: 1px solid var(--border);
  transition: background 0.15s;
}
.install-bar button:hover { background: var(--accent-hover); }
.hero-links {
  display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.5s 0.5s forwards;
}
.hero-links a {
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim); text-decoration: none; transition: color 0.15s;
}
.hero-links a:hover { color: var(--accent); }

/* Page header (non-landing pages) */
.page-header {
  padding: 72px 0 44px;
}
.page-header h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--text-bright); letter-spacing: -0.03em; margin-bottom: 12px;
}
.page-header p {
  font-size: 15px; color: var(--text-dim); max-width: 680px; line-height: 1.7;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ SECTIONS ═══ */
section { padding: 56px 0; }
.s-label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.s-title {
  font-size: clamp(24px, 3.5vw, 32px); font-weight: 700;
  color: var(--text-bright); letter-spacing: -0.025em; margin-bottom: 10px;
}
.s-desc {
  font-size: 15px; color: var(--text-dim);
  max-width: 560px; margin-bottom: 40px; line-height: 1.65;
}

/* ═══ FEATURE CARDS ═══ */
.features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.fcard {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px;
  position: relative; overflow: hidden; transition: border-color 0.2s;
}
.fcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s;
}
.fcard:hover { border-color: var(--accent-glow); }
.fcard:hover::after { transform: scaleX(1); }
.fcard h3 {
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  color: var(--text-bright); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.fcard h3 .icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.fcard h3 .icon.blue { background: var(--accent-dim); color: var(--accent); }
.fcard h3 .icon.green { background: #00e5a010; color: var(--accent2); }
.fcard h3 .icon.orange { background: #fb923c10; color: #fb923c; }
.fcard p { font-size: 13px; color: var(--text-dim); line-height: 1.65; }
.fcard .stat-line {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px;
}
.fcard .stat-line .num { color: var(--accent); font-weight: 700; font-size: 18px; }
.fcard .stat-line .vs { color: var(--text-dim); }

/* ═══ BENCHMARKS ═══ */
.bench-grid { display: grid; gap: 20px; }
.bench-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.bench-item img {
  width: 100%; display: block;
  border-bottom: 1px solid var(--border);
}
.bench-caption {
  padding: 16px 20px; font-size: 14px; color: var(--text-dim); line-height: 1.6;
}
.bench-caption .tag {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); margin-bottom: 6px;
}
.bench-caption strong { color: var(--text-bright); }

/* ═══ CODE BLOCKS ═══ */
.code-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.cblock {
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  margin-bottom: 16px;
}
.cblock-head {
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; color: var(--text-dim);
  display: flex; justify-content: space-between; align-items: center;
}
.cblock-head .tag { color: var(--accent); font-weight: 500; }
.cblock pre {
  padding: 16px; font-family: var(--mono); font-size: 13px;
  line-height: 1.75; overflow-x: auto; color: var(--text);
}
.cblock pre .kw { color: #c084fc; }
.cblock pre .fn { color: var(--accent2); }
.cblock pre .str { color: #fbbf24; }
.cblock pre .cm { color: var(--text-dim); }
.cblock pre .num { color: #f87171; }

/* ═══ TABLE ═══ */
.table-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); margin-bottom: 10px; margin-top: 32px;
}
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  overflow-x: auto;
}
.dtable {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.dtable th {
  text-align: left; font-family: var(--mono);
  font-size: 11px; font-weight: 500; color: var(--text-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dtable td { padding: 13px 16px; border-bottom: 1px solid #18181f; }
.dtable tbody tr:last-child td { border-bottom: none; }
.dtable tbody tr:hover td { background: var(--surface-hover); }
.dtable td:first-child { font-family: var(--mono); font-weight: 500; }
.dtable td:first-child a { color: var(--accent); text-decoration: none; }
.dtable td:first-child a:hover { text-decoration: underline; }
.dtable .accent { font-family: var(--mono); color: var(--accent); font-weight: 600; }
.dtable .dim { font-family: var(--mono); color: var(--text-dim); }
.dtable .warn { font-family: var(--mono); color: #fb923c; }

/* ═══ PIPELINE ═══ */
.pipelines { display: grid; gap: 28px; }
.pipe-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--accent); margin-bottom: 10px;
}
.pipeline {
  display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.pipeline .step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 18px;
  font-family: var(--mono); font-size: 13px; color: var(--text-bright);
}
.pipeline .step small {
  display: block; font-size: 11px; color: var(--text-dim);
  margin-top: 2px; font-weight: 400;
}
.pipeline .arrow {
  color: var(--text-dim); font-size: 18px; padding: 0 8px; flex-shrink: 0;
}

/* ═══ STATS ═══ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px 16px; text-align: center;
}
.stat-card .num {
  font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1; letter-spacing: -0.03em;
}
.stat-card .label {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 8px;
}

/* ═══ CALLOUT ═══ */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 20px 24px;
  font-size: 14px; color: var(--text); line-height: 1.7;
  margin: 24px 0;
}
.callout strong { color: var(--text-bright); }
.callout code {
  font-family: var(--mono); font-size: 12px;
  background: var(--code-bg); padding: 2px 6px; border-radius: 4px;
}

/* ═══ FOOTER ═══ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 880px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono); font-size: 13px;
  color: var(--text-dim); text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.credit { font-size: 12px; color: var(--text-dim); }
.credit a { color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.credit a:hover { color: var(--accent); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .code-pair, .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pipeline { flex-direction: column; align-items: stretch; }
  .pipeline .arrow { transform: rotate(90deg); text-align: center; padding: 4px 0; }
  .nav-links { display: none; }
  .hero { padding: 72px 0 56px; }
  section { padding: 48px 0; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
