:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #f0f2fa;
  --border: #e2e5f0;
  --text: #121729;
  --text-2: #464e6b;
  --muted: #6c7493;
  --brand: #3b4fe0;
  --brand-hover: #2f40c4;
  --brand-soft: #eceffe;
  --brand-text: #2f40c4;
  --hero-1: #10143a;
  --hero-2: #2a228c;
  --ok: #14845f;
  --warn: #a35a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 23, 41, .05), 0 10px 30px rgba(18, 23, 41, .07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e1c; --surface: #131830; --surface-2: #181e3a; --border: #252c4c;
    --text: #e9ebf5; --text-2: #b6bbd3; --muted: #8890ad;
    --brand-soft: #1f2650; --brand-text: #a9b2ff;
    --ok: #4cc79a; --warn: #f0a94a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
a { color: var(--brand-text); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(109, 124, 255, .55); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(16, 20, 58, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.brand b { color: #8b97ff; font-weight: 800; }
.nav-links { display: flex; gap: 6px; flex: 1; }
.nav-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); }
.nav .btn { padding: 8px 14px; font-size: 14px; }
.gh { width: 17px; height: 17px; fill: currentColor; stroke: none; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(109,124,255,.35), transparent 60%), linear-gradient(140deg, var(--hero-1), var(--hero-2)); color: #fff; padding: 88px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 14px; }
.hero .eyebrow { color: #a9b2ff; }
.hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 900; }
.accent { background: linear-gradient(90deg, #a9b2ff, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: rgba(255,255,255,.8); margin-top: 20px; max-width: 34em; }
.lede strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.center-row { justify-content: center; }
.fine { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 22px; }

.terminal { background: #0a0d1f; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f5c; }
.term-bar i:nth-child(1) { background: #ff6159; } .term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #28c941; }
.term-bar span { margin-left: 10px; font: 12px var(--mono); color: rgba(255,255,255,.5); }
.term-body { margin: 0; padding: 20px 22px 24px; font: 13.5px/1.7 var(--mono); color: #dfe3ff; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body .p { color: #8b97ff; }
.term-body .dim { color: #7d84a8; }
.term-body b { color: #fff; }
.score { color: #fff; font-weight: 700; background: rgba(109,124,255,.25); padding: 1px 6px; border-radius: 5px; }
.tag { font-size: 12px; padding: 1px 7px; border-radius: 5px; }
.tag.ok { background: rgba(76,199,154,.18); color: #6fe0b4; }
.cursor { display: inline-block; width: 8px; height: 16px; background: #8b97ff; vertical-align: -3px; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* guarantees strip */
.strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid div { padding: 26px 22px; border-left: 1px solid var(--border); display: grid; gap: 4px; }
.strip-grid div:first-child { border-left: 0; }
.strip-grid b { font-size: 15px; }
.strip-grid span { font-size: 14px; color: var(--muted); }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 850; max-width: 24em; }
.section h2.center { margin: 0 auto; }

.steps { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); font-weight: 800; margin-bottom: 16px; }
.steps h3, .card h3 { font-size: 18px; margin-bottom: 8px; }
.steps p, .card p { color: var(--text-2); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.ic { width: 42px; height: 42px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.ic svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.split h2 { margin-bottom: 18px; }
.split > div > p { color: var(--text-2); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b4fe0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.mock-top { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 8px; font-size: 14px; }
.mock-search, .mock-loc { flex: 1; padding: 8px 10px; color: var(--text); }
.mock-loc { color: var(--muted); border-left: 1px solid var(--border); }
.mock-btn { background: var(--brand); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chips i { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); }
.mock-card { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.mock-card.sel { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mock-card b { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #fff; background: #1971c2; font-size: 14px; }
.mock-card b.c2 { background: #d9480f; } .mock-card b.c3 { background: #5f3dc4; }
.mock-card div { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.mock-card strong { width: 100%; font-size: 15px; }
.mock-card span { width: 100%; font-size: 13px; color: var(--muted); }
.mock-card em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-text); }
.mock-card em.warn { background: rgba(163,90,0,.12); color: var(--warn); }
.mock-card em.new { background: rgba(20,132,95,.12); color: var(--ok); }

.code { position: relative; margin: 40px 0 20px; background: #0a0d1f; border-radius: var(--radius); border: 1px solid #22284a; }
.code pre { margin: 0; padding: 24px 26px; font: 14px/1.75 var(--mono); color: #e4e7ff; overflow-x: auto; }
.code .dim { color: #7d84a8; }
.copy { position: absolute; top: 12px; right: 12px; font: 600 13px var(--font); color: #dfe3ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.16); }

.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer .brand { color: var(--text); font-size: 16px; }
.footer .brand b { color: var(--brand-text); }
.footer p { flex: 1; color: var(--muted); font-size: 14px; min-width: 240px; }
.footer a:not(.brand) { font-weight: 700; text-decoration: none; }

@media (max-width: 980px) {
  .nav-links a:not([href="/"]) { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid div:nth-child(3) { border-left: 0; }
  .strip-grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }
  .steps, .cards, .strip-grid { grid-template-columns: 1fr; }
  .strip-grid div { border-left: 0; border-top: 1px solid var(--border); }
  .strip-grid div:first-child { border-top: 0; }
  .term-body { font-size: 12px; padding: 16px; }
  .mock-loc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }
