:root {
  --bg: #070b14;
  --bg-alt: #0a1020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8edf7;
  --muted: #93a0b8;
  --brand: #5b8cff;
  --brand-2: #38e1b0;
  --radius: 16px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}

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

.brand em {
  font-style: normal;
  color: var(--brand);
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  font-size: 0.94rem;
  color: var(--muted);
}

.nav__links a { transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--brand), #7a5cff);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(91, 140, 255, 0.65);
}

.btn--ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn--ghost:hover { background: var(--surface-strong); }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  text-align: center;
  isolation: isolate;
}

.hero__glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(48% 55% at 50% 0%, rgba(91, 140, 255, 0.28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(56, 225, 176, 0.14), transparent 70%);
  filter: blur(10px);
}

.hero__inner { max-width: 820px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(56, 225, 176, 0.15);
}

.hero h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 1.4rem auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__lead strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 4rem auto 0;
  max-width: 720px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats__item {
  padding: 1.4rem 1rem;
  background: var(--bg);
}

.stats dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.stats dd {
  margin: 0.35rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stats dd span { font-size: 1rem; color: var(--brand-2); margin-left: 2px; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section__head {
  max-width: 620px;
  margin-bottom: 2.8rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.8rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__head p, .muted { color: var(--muted); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.card {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), transparent);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 140, 255, 0.4);
  background: linear-gradient(180deg, var(--surface-strong), transparent);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(91, 140, 255, 0.12);
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.card__icon svg { width: 24px; height: 24px; }

.card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  color: var(--muted);
}

.card__list li {
  padding: 0.28rem 0 0.28rem 1.4rem;
  position: relative;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-2);
}

/* ---------- Split / Terminal ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split h2 { margin-bottom: 1rem; }
.split p { margin-top: 0; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.07);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

.pill {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
}

.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #05080f;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.terminal__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }

.terminal__bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.terminal pre {
  margin: 0;
  padding: 1.3rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.75;
}

.terminal code { background: none; padding: 0; font-size: inherit; }
.t-com { color: #5c6b85; }
.t-out { color: #9fb0cc; }
.t-ok { color: var(--brand-2); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem 0;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  text-align: center;
}

.brand--footer { font-size: 1.05rem; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer__meta { font-size: 0.8rem; opacity: 0.7; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__inner .btn { margin-left: auto; }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3.5rem; }
  .stats { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .nav__inner { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
