:root {
  --bg: #0a0f1c;
  --bg-alt: #0e1526;
  --panel: #131c30;
  --border: #22304d;
  --text: #e6edf7;
  --muted: #94a3b8;
  --accent: #4f8cff;
  --accent2: #22d3ee;
  --grad: linear-gradient(90deg, #4f8cff, #22d3ee);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

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

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.brand span { color: var(--accent2); font-weight: 400; }
.site-header nav { display: flex; gap: 18px; align-items: center; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--grad); color: #06121f !important;
  padding: 7px 14px; border-radius: 8px; font-weight: 600;
}

/* Hero */
.hero { padding: 96px 0 64px; text-align: center; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem;
  color: var(--accent2); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lede {
  max-width: 720px; margin: 26px auto 0; color: var(--muted); font-size: 1.15rem;
}
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px;
  font-weight: 600; font-size: 1rem;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #06121f; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }

/* Stats strip */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 34px; padding-bottom: 34px; }
.stat { text-align: center; }
.stat-num {
  font-size: 1.9rem; font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section h3 { font-size: 1.2rem; margin-bottom: 10px; }
.section-lede { color: var(--muted); max-width: 720px; margin-bottom: 34px; }
.note { color: var(--muted); font-size: 0.95rem; margin-top: 26px; }

/* Cards */
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.card p { color: var(--muted); font-size: 0.96rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.pullquote {
  margin-top: 22px; font-size: 1.25rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Cycle */
ol.cycle { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 10px; }
ol.cycle li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px 16px 64px; position: relative;
}
ol.cycle li::before {
  content: counter(step);
  position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #06121f;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
ol.cycle li strong { color: var(--accent2); }

/* Code block */
.codeblock {
  background: #060b16; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; font-family: "Cascadia Code", Consolas, monospace; font-size: 0.95rem;
  overflow-x: auto;
}
.codeblock pre { margin: 0; }
.codeblock code { color: #9fe8c9; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--panel); border-radius: 12px; overflow: hidden; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.97rem; }
th { color: var(--accent2); font-weight: 600; background: rgba(79, 140, 255, 0.06); }
tr:last-child td { border-bottom: none; }

/* Chart */
.chart { width: 100%; max-width: 820px; display: block; margin: 30px auto; border-radius: 12px; border: 1px solid var(--border); }

/* CTA + footer */
.cta { text-align: center; }
.contact-line { margin-top: 18px; }
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 0.9rem; text-align: center; }

/* Doc pages (white papers) */
.doc h1 { font-size: 2rem; margin: 30px 0 6px; }
.doc h2 { margin-top: 36px; }
.doc h3 { margin-top: 22px; }
.doc h4 { margin-top: 16px; }
.doc p { margin: 12px 0; color: var(--text); }
.doc ul { margin: 12px 0 12px 24px; }
.doc li { margin: 6px 0; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 30px 0; }
.doc pre { background: #060b16; border: 1px solid var(--border); border-radius: 10px; padding: 16px; overflow-x: auto; margin: 14px 0; }
.doc code { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.92rem; color: #9fe8c9; }
.doc main { padding-bottom: 60px; }

/* Responsive */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .three-col, .two-col { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
  .hero { padding: 64px 0 44px; }
}