:root {
  --bg: #0b0f0e;
  --bg-2: #101614;
  --panel: #131a18;
  --line: #24302c;
  --line-2: #2f3d38;
  --text: #e8eee9;
  --muted: #93a39c;
  --dim: #5f6f68;
  --accent: #c6f432;
  --accent-ink: #0b0f0e;
  --warn: #ff7a59;
  --radius: 14px;
  --sans: "Inter Tight", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--muted); box-shadow: none; }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* HERO */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    linear-gradient(var(--bg) 0, transparent 30%, transparent 70%, var(--bg) 100%),
    repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--line) 55%, transparent) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--line) 55%, transparent) 39px 40px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; margin: 0 0 24px;
  background: var(--bg-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
h1 {
  font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 22px; font-weight: 700;
}
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.hero-stats div { padding: 18px 16px 0 0; }
.hero-stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: var(--mono); font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.hero-stats dd { margin: 6px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.hero-stats dd span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.hero-viz {
  margin: 0; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 16px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.viz-head, .viz-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 12px; flex-wrap: wrap; }
.viz-head { padding: 2px 4px 12px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.lg-a { background: var(--warn); }
.lg-b { background: var(--accent); }
#viz { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; border-radius: 10px; background: var(--bg-2); }
.viz-foot { justify-content: flex-start; padding: 14px 4px 2px; font-size: 13px; }
.viz-foot strong { font-size: 18px; color: var(--warn); font-weight: 500; }
.viz-foot strong.accent { color: var(--accent); }
.viz-foot .arrow { color: var(--dim); }

/* STRIP */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; flex-wrap: wrap; }

/* SECTIONS */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.kicker { color: var(--accent); font-size: 13px; margin: 0 0 14px; letter-spacing: .02em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 48px; max-width: 20em; font-weight: 650; }
h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 10px; font-weight: 600; }
p { margin: 0; }
.body { color: var(--muted); font-size: 18px; margin-top: -24px; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); }
.card-who { position: relative; overflow: hidden; }
.card-who::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 56px; background: var(--accent); }

/* APPROACH */
.approach-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.approach-grid h2 { margin-bottom: 40px; }
.checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 5px; height: 8px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.stack { display: grid; gap: 10px; }
.layer { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 20px 22px; }
.layer h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.layer p { color: var(--muted); font-size: 14px; font-family: var(--mono); }
.layer-top { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 8%, transparent); }
.layer-out { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.layer-out p { color: color-mix(in srgb, var(--accent-ink) 75%, transparent); }
.tag { position: absolute; top: 16px; right: 16px; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.tag-dim { background: var(--line-2); color: var(--muted); }
.plus { text-align: center; color: var(--dim); font-size: 18px; line-height: 1; }

/* STEPS */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .num { display: block; color: var(--accent); font-size: 13px; margin-bottom: 18px; }
.steps p { color: var(--muted); font-size: 16px; }

/* PRODUCTS */
.product { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.product > p { color: var(--muted); }
.product-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-head h3 { font-size: 26px; margin: 0; }
.pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.pill-b { border-color: var(--line-2); color: var(--muted); }
.dash { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dash li { padding-left: 22px; position: relative; }
.dash li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 1px; background: var(--accent); }
.code {
  margin: 4px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; font-size: 13px; line-height: 1.75; color: var(--text); overflow-x: auto; white-space: pre;
}
.code .c { color: var(--dim); }
.code .ok { color: var(--accent); }

/* CTA */
.cta { text-align: center; background:
  radial-gradient(60% 80% at 50% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta h2 { margin: 0; max-width: 16em; }
.cta p { color: var(--muted); max-width: 32em; font-size: 18px; }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid, .approach-grid { grid-template-columns: 1fr; gap: 44px; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps { border-top: 0; }
  .hero-stats dd { font-size: 22px; }
  .card, .product { padding: 22px; }
  .strip-inner { justify-content: flex-start; gap: 10px 20px; }
}

/* Keep wide children (code blocks, canvas) from stretching grid columns */
.cols-2 > *, .cols-3 > *, .hero-grid > *, .approach-grid > * { min-width: 0; }
