:root {
  --bg: #0b0f14;
  --panel: #10161d;
  --line: #1c2630;
  --text: #e6edf3;
  --muted: #8b98a5;
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --grad-a: #2dd4bf;
  --grad-b: #38bdf8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* nav */
.nav { position: sticky; top: 0; backdrop-filter: blur(12px); background: rgba(11,15,20,.82); border-bottom: 1px solid var(--line); z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; letter-spacing: .2px; display: flex; gap: 10px; align-items: center; }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #06251f; font-weight: 800; font-size: 13px;
}
.nav nav { display: flex; gap: 22px; align-items: center; font-size: 14.5px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav .cta { color: var(--bg); background: var(--teal); padding: 8px 16px; border-radius: 8px; font-weight: 600; }
.nav .cta:hover { background: var(--grad-a); }

/* hero */
.hero { padding: 96px 24px 64px; text-align: left; }
.eyebrow { color: var(--teal); font-weight: 600; letter-spacing: .4px; font-size: 13px; text-transform: uppercase; margin-bottom: 18px; }
h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--grad-a), var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { max-width: 720px; margin-top: 24px; color: var(--muted); font-size: 19px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 15.5px; transition: transform .12s ease, filter .12s; display: inline-block; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.primary { background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #06251f; }
.btn.big { font-size: 17px; padding: 16px 32px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(120px,1fr)); gap: 18px; margin-top: 56px; border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--panel); }
.stats div { text-align: center; }
.stats strong { display: block; font-size: 30px; background: linear-gradient(90deg,var(--grad-a),var(--grad-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 13px; }

/* sections */
section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.8px; line-height: 1.15; margin-bottom: 34px; }
.features { padding: 72px 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; transition: border-color .15s; }
.card:hover { border-color: var(--teal-dark); }
.card h3 { font-size: 17.5px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

.how { padding: 72px 24px; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 18px; margin-bottom: 30px; }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.step .num { position: absolute; top: -16px; left: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,var(--grad-a),var(--grad-b)); color:#06251f; font-weight: 800; }
.step h3 { margin: 8px 0 8px; }
.step p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.step code, .arch code { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: var(--grad-a); font-size: 13px; }
.arch pre { background: #0a0e12; border: 1px solid var(--line); border-radius: 12px; padding: 22px; overflow-x: auto; color: #9fb3c8; font-size: 13.5px; line-height: 1.55; }

.quickstart { padding: 72px 24px; }
.terminal { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0a0e12; }
.term-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.term-head i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-head i:nth-child(1){background:#ff5f57} .term-head i:nth-child(2){background:#febc2e} .term-head i:nth-child(3){background:#28c840}
.term-head span { margin-left: 8px; color: var(--muted); font-size: 12.5px; font-family: ui-monospace, Menlo, monospace; }
.quickstart pre { padding: 24px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; line-height: 1.75; color: #9fb3c8; overflow-x: auto; }
.note { margin-top: 18px; color: var(--muted); font-size: 14.5px; }

.cta-band { padding: 88px 24px; text-align: center; background: radial-gradient(60% 120% at 50% 0%, rgba(45,212,191,.12), transparent); }
.cta-band h2 { margin-bottom: 30px; }
.foot { padding: 42px 24px 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.foot .meta code { color: var(--grad-a); }

@media (max-width: 720px) {
  .nav nav a:not(.cta) { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 64px; }
}