:root {
  --bg: #0b0f14;
  --bg2: #111823;
  --card: #151d2a;
  --line: #22303f;
  --fg: #e6edf3;
  --muted: #93a1b1;
  --green: #2e7d32;
  --amber: #f9a825;
  --red: #c62828;
  --accent: #4c8bf5;
  --radius: 14px;
  --font-h: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: radial-gradient(1200px 700px at 70% -10%, #12202f 0%, var(--bg) 55%);
  color: var(--fg);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 18px 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: 9px; display: block; }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 20px; font-family: var(--font-h); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--fg); }

/* buttons */
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--fg) !important;
  background: var(--card); font-weight: 600; font-size: 15px;
}
.btn:hover { text-decoration: none; border-color: var(--accent); }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff !important; }
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.ghost { background: transparent; }

/* hero */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 40px 22px 10px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.eyebrow { display: none; }
.hero h1 { font-size: 46px; line-height: 1.08; margin: 0 0 16px; letter-spacing: -.02em; font-family: var(--font-h); font-weight: 700; }
.hl { color: var(--accent); }
.lead { color: var(--muted); font-size: 18px; max-width: 46ch; }
.cta { display: flex; gap: 12px; margin-top: 22px; }

/* gauge */
.hero-gauge { display: grid; place-items: center; }
.gauge { position: relative; width: min(420px, 90%); }
.gauge svg { width: 100%; height: auto; display: block; }
.track { fill: none; stroke: var(--line); stroke-width: 16; stroke-linecap: round; }
.fill  { fill: none; stroke: url(#gfill); stroke-width: 16; stroke-linecap: round;
         stroke-dasharray: 0 100; transition: stroke-dasharray .5s ease; }
.needle line { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; }
.needle circle { fill: var(--fg); }
.needle { transform-origin: 110px 115px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.gauge-readout { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; }
.gauge-value { font-size: 44px; font-weight: 800; }
.pct { font-size: 24px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.gauge-label { display: block; color: var(--muted); font-size: 13px; letter-spacing: .05em; }
.gauge-caption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }

/* sections */
section { max-width: 1080px; margin: 0 auto; padding: 46px 22px; }
h2 { font-size: 28px; margin: 0 0 22px; letter-spacing: -.01em; font-family: var(--font-h); }
.card h3 { font-family: var(--font-h); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: #2c3b4d; box-shadow: 0 12px 24px -18px rgba(0,0,0,.75); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.pipeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.pipeline li { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.pipeline li span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }

.about p, .contact p { color: var(--muted); font-size: 17px; }
.policy { font-size: 14px !important; color: var(--muted); background: var(--bg2); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }

/* contact form */
.contact-form { display: grid; gap: 10px; max-width: 520px; margin: 16px 0; }
.contact-form input, .contact-form textarea {
  background: var(--bg-2, #11151c); color: inherit; border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* footer */
.footer {
  max-width: 1080px; margin: 0 auto; padding: 30px 22px 50px;
  color: var(--muted); font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap;
}
.dot { opacity: .5; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 10px; }
.stat { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; }
.stat-num { display: block; font-family: var(--font-h); font-weight: 700; font-size: 26px;
  color: var(--fg); font-variant-numeric: tabular-nums; }
.stat-label { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ba-pane { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; position: relative; }
.ba-pane p { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
.ba-tag { position: absolute; top: -11px; left: 16px; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.ba-tag.before { background: #2a1f22; color: #e08a8a; border: 1px solid #46302f; }
.ba-tag.after { background: #12281c; color: #7fd6a2; border: 1px solid #245038; }
.ba-log { font: 12.5px/1.7 var(--font-mono); color: #cfd8e3; margin: 6px 0 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow: auto; }
.ba-gauge { display: flex; align-items: baseline; gap: 2px; margin-top: 4px; }
.ba-num { font-family: var(--font-h); font-weight: 700; font-size: 64px; line-height: 1; }
.ba-pct { font-family: var(--font-h); font-size: 28px; font-weight: 600; color: var(--muted); }

/* quickstart snippet */
.snippet { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; overflow: auto; margin: 0; }
.snippet code { font: 14px/1.7 var(--font-mono); color: #dfe7f0; white-space: pre; }
.snippet .copy { position: absolute; top: 10px; right: 10px; background: var(--card); color: var(--fg);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.snippet .copy:hover { border-color: var(--accent); }
.snippet-note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* browser surfaces — theme what the browser draws (cheap quality signal) */
::selection { background: rgba(76,139,245,.35); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
a { text-underline-offset: .18em; text-decoration-thickness: .06em; }
input, textarea { caret-color: var(--accent); }
html { scrollbar-width: thin; scrollbar-color: #2b3a4d transparent; }
table, .gauge-value, .ba-num, .stat-num { font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ba { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
