:root {
  --bg: #0a0d12;
  --bg-2: #0e1219;
  --bg-3: #131822;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --fg: #e7ecf3;
  --fg-mute: #9aa4b2;
  --fg-dim: #6b7382;
  --accent: #7cf5c6;
  --accent-2: #5ad1ff;
  --accent-3: #9b8cff;
  --danger: #ff6b8a;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1120px;
  --shadow: 0 24px 64px -24px rgba(0,0,0,0.7), 0 2px 6px -2px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11','ss01';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10,13,18,0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(10,13,18,0.85); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(90,209,255,0.25));
}
.footer .brand-mark { width: 22px; height: 22px; }
.brand-name { font-size: 17px; }
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--fg-mute); }
.nav-links a:hover { color: var(--fg); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-primary {
  color: #051a13;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 28px -10px rgba(90,209,255,0.55), inset 0 0 0 1px rgba(255,255,255,0.2);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  color: var(--fg);
  background: var(--bg-3);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.28); background: #19202c; }
.btn-ghost { color: var(--fg-mute); border-color: var(--line); }
.btn-ghost:hover { color: var(--fg); border-color: var(--line-2); }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

/* hero */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(124,245,198,0.18), transparent 60%),
    radial-gradient(40% 50% at 80% 20%, rgba(90,209,255,0.18), transparent 60%),
    radial-gradient(60% 60% at 50% 80%, rgba(155,140,255,0.14), transparent 60%);
  filter: blur(20px);
  opacity: 0.9;
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero-title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 660px;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--fg-mute);
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-pills {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13.5px;
  color: var(--fg-mute);
}
.hero-pills li { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

/* sections */
.section { padding: 96px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
}
.section-title em { font-style: normal; color: var(--accent); }
.lede {
  max-width: 640px;
  font-size: 17px;
  color: var(--fg-mute);
  margin: 0 0 36px;
}

/* feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--fg-mute); font-size: 14.5px; }
.icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--accent);
  background: rgba(124,245,198,0.08);
  border: 1px solid rgba(124,245,198,0.2);
}
.icon svg { width: 22px; height: 22px; }

/* how it works */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.bullets li {
  position: relative;
  padding-left: 24px;
  color: var(--fg-mute);
  font-size: 15.5px;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124,245,198,0.5);
}
.bullets strong { color: var(--fg); font-weight: 600; }

/* code panel */
.code {
  margin: 0;
  background: #07090d;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: #0b0f15;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--fg-dim);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a313c; }
.code-dot:nth-child(1) { background: #ff6b6b; }
.code-dot:nth-child(2) { background: #ffc65a; }
.code-dot:nth-child(3) { background: #5ad57a; }
.code-name { margin-left: 10px; font-family: 'JetBrains Mono', monospace; }
.code pre {
  margin: 0;
  padding: 22px 22px 24px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: #cdd5e1;
}
.t-k { color: #7cf5c6; }
.t-s { color: #ffd28a; }
.t-n { color: #5ad1ff; }
.t-p { color: #6b7382; }

.code-block {
  background: #07090d;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #cdd5e1;
  margin: 12px 0 14px;
}

/* stack grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.stack-item {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  padding: 22px 20px;
  transition: border-color 0.2s ease;
}
.stack-item:hover { border-color: var(--line-2); }
.stack-item h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.stack-item p { margin: 0; color: var(--fg-mute); font-size: 14.5px; }
code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--fg);
}

/* start */
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.start .card h3 { margin-top: 0; font-size: 17px; }
.start-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 18px;
}
.muted { color: var(--fg-dim); font-size: 13.5px; }

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--fg-mute);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner > div { display: inline-flex; align-items: center; gap: 10px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--fg); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 56px; }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .start-grid { grid-template-columns: 1fr; }
  .footer-inner { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { height: 42px; padding: 0 16px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover { transform: none; }
}
