:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --surface: #ffffff;
  --text: #0b1424;
  --text-soft: #46546b;
  --muted: #8a97ab;
  --border: #e2e8f0;
  --accent: #1f6feb;
  --accent-strong: #1557c0;
  --accent-soft: #e8f0fe;
  --band: #0b1424;
  --band-text: #e6edf7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 20, 36, .05), 0 8px 24px rgba(11, 20, 36, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1829;
    --surface: #131e32;
    --text: #e6edf7;
    --text-soft: #a7b4c8;
    --muted: #6b7a92;
    --border: #22304a;
    --accent: #4c8dff;
    --accent-strong: #6ea2ff;
    --accent-soft: #16264a;
    --band: #101c33;
    --band-text: #e6edf7;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.mono { font-family: var(--mono); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8em 1.4em;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; transform: translateY(-1px); }
.btn-small { padding: .5em 1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: #0b1424; }
.btn-light:hover { background: #e6edf7; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links { display: none; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-soft); font-size: .95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav .btn { margin-left: auto; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
}

/* Hero */
.hero { padding: 64px 0 72px; background: radial-gradient(1000px 400px at 80% -10%, var(--accent-soft), transparent 70%); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } .hero { padding: 96px 0 104px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .3em .9em; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: .85rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.lede { font-size: 1.125rem; color: var(--text-soft); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-panel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
}
.panel-head { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 12px; overflow: hidden; white-space: nowrap; }
.panel-dots { display: flex; gap: 6px; }
.panel-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.chart { width: 100%; height: auto; }
.chart .grid line { stroke: var(--border); stroke-width: 1; }
.chart .stop-accent { stop-color: var(--accent); }
.chart .line-accent { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .line-bench { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.copilot {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  font-size: .92rem;
  color: var(--text-soft);
}
.copilot p:last-child { margin: 0; }
.copilot-label { font-size: .75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.hero-panel figcaption { margin-top: 10px; font-size: .72rem; color: var(--muted); text-align: right; }

/* Sections */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section.alt { background: var(--bg-alt); }
.kicker { color: var(--accent); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .6em; }

.cards { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--text-soft); margin: 0; }
.feature.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow li { position: relative; padding: 24px; border-top: 3px solid var(--accent); background: var(--bg-alt); border-radius: 0 0 var(--radius) var(--radius); }
.flow p { color: var(--text-soft); margin: 0; }
.step { display: block; color: var(--accent); font-size: .85rem; margin-bottom: 8px; }

/* Team */
.team { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .team { grid-template-columns: 1.4fr 1fr; } }
.person { display: flex; gap: 18px; align-items: center; }
.person h3 { margin-bottom: 0; }
.person .role { margin-bottom: 6px; }
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.2rem;
}

/* CTA band */
.cta-band { background: var(--band); color: var(--band-text); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { max-width: 28ch; }
.cta-band p { color: #a7b4c8; margin-bottom: 28px; }
.cta-band .btn { word-break: break-all; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; font-size: .9rem; color: var(--text-soft); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; }
.footer p { margin: 0; }
.disclaimer { flex-basis: 100%; font-size: .8rem; color: var(--muted); }

/* Legal / simple pages */
.page { padding: 56px 0 80px; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.page h2 { font-size: 1.25rem; margin-top: 2em; max-width: none; }
.page p, .page li { color: var(--text-soft); }
.page .updated { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.center .btn { margin-top: 16px; }
