:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #4f46e5;
  --brand-ink: #ffffff;
  --dark: #0b1020;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav nav a:hover { color: var(--ink); }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 2px; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-block { display: block; text-align: center; }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-ghost-dark { background: transparent; border: 1px solid var(--line); color: var(--ink); }

/* hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #312e81 0%, var(--dark) 60%); color: #e2e8f0; padding: 72px 0; }
.hero h1 { color: #fff; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.2fr 1fr; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: #a5b4fc; font-weight: 700; }
.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.fine { font-size: .85rem; color: #94a3b8; }

.scan-card { background: #111936; border: 1px solid #27315a; border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.scan-top { font-size: .85rem; color: #94a3b8; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.scan-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: .9rem; border-left: 4px solid; background: #0b1020; }
.scan-result strong { font-size: .8rem; letter-spacing: .06em; }
.scan-result.ok { border-color: var(--ok); } .scan-result.ok strong { color: #4ade80; }
.scan-result.dup { border-color: var(--warn); } .scan-result.dup strong { color: #fbbf24; }
.scan-result.bad { border-color: var(--bad); } .scan-result.bad strong { color: #f87171; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--muted); max-width: 40em; margin-bottom: 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; background: #fff; }
.plan.featured { border: 2px solid var(--brand); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 24px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* faq */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* forms */
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--bad); }
.status { min-height: 1.4em; margin: 0; font-size: .95rem; }
.status.ok { color: var(--ok); }
.status.err { color: var(--bad); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero, .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
