:root {
  --bg: #0a0e1a;
  --bg-alt: #0e1424;
  --panel: #141b2e;
  --border: #1f2940;
  --text: #e6ebf5;
  --muted: #97a3bd;
  --accent: #5b8cff;
  --accent2: #9b6bff;
  --green: #3ddc97;
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__mark { margin-right: 4px; }
.nav__links { display: flex; gap: 28px; font-size: 0.92rem; color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(800px 400px at 70% -10%, rgba(91,140,255,0.18), transparent),
    radial-gradient(700px 400px at 10% 10%, rgba(155,107,255,0.12), transparent);
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin-top: 22px; max-width: 640px; font-size: 1.12rem; color: var(--muted); }

.cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn--primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 8px 24px rgba(91,140,255,0.35); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn:hover { transform: translateY(-2px); }

.stat-row { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 2rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.section__sub { color: var(--muted); margin-top: 10px; max-width: 620px; font-size: 1.05rem; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__icon { font-size: 1.6rem; margin-bottom: 12px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Flows */
.flow { display: flex; gap: 28px; margin-top: 40px; align-items: flex-start; }
.flow__num { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 700; color: var(--accent); opacity: 0.7; min-width: 56px; }
.flow__body h3 { font-size: 1.3rem; font-weight: 700; }
.flow__body > p { color: var(--muted); margin-top: 6px; }
.steps { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.steps li { color: var(--muted); }
.steps strong { color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 0.92em; }

/* Start */
.start { max-width: 820px; }
.code {
  margin-top: 28px; background: #06090f; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 0.86rem;
  color: #cdd6e8; line-height: 1.7;
}
.note { margin-top: 20px; color: var(--green); font-size: 0.92rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.9rem; flex-wrap: wrap; gap: 8px; }

@media (max-width: 640px) {
  .flow { flex-direction: column; gap: 8px; }
  .nav__links { display: none; }
}
