/* Web — Website Intelligence Platform. Design system. */
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #fbfcfd;
  --ink: #0c1220;
  --ink-2: #3f4a5c;
  --muted: #6b7688;
  --faint: #767f8e;
  --line: #e6e9ef;
  --line-2: #eef1f5;
  --brand: #4f46e5;
  --brand-2: #7c6df2;
  --brand-ink: #ede9ff;
  --accent: #06b6d4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12,18,32,.04), 0 8px 24px rgba(12,18,32,.06);
  --shadow-lg: 0 4px 12px rgba(12,18,32,.08), 0 24px 60px rgba(12,18,32,.12);
  /* severity / status */
  --critical: #d03b3b;
  --serious: #ec835a;
  --warning: #eab308;
  --notice: #64748b;
  --good: #0ca35a;
  /* score gauge colors mapped by grade */
  --s-a: #0ca35a; --s-b: #4d9f2e; --s-c: #eab308; --s-d: #ec835a; --s-f: #d03b3b;
  /* categorical palette (dataviz reference) */
  --c1:#2a78d6; --c2:#1baf7a; --c3:#eda100; --c4:#008300; --c5:#4a3aa7; --c6:#e34948; --c7:#e87ba4; --c8:#eb6834;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --bg: #0b0e14; --surface: #141922; --surface-2: #1a2029;
    --ink: #f2f5fa; --ink-2: #c3ccda; --muted: #8b96a8; --faint: #7f8a9c;
    --line: #232b38; --line-2: #1e2530;
    --brand: #7c6df2; --brand-2: #9085e9; --brand-ink: #211d3d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
    --notice:#94a3b8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e14; --surface: #141922; --surface-2: #1a2029;
  --ink: #f2f5fa; --ink-2: #c3ccda; --muted: #8b96a8; --faint: #7f8a9c;
  --line: #232b38; --line-2: #1e2530;
  --brand: #7c6df2; --brand-2: #9085e9; --brand-ink: #211d3d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5);
  --notice:#94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--ink-2); width: 38px; height: 38px; border-radius: 9px; cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 760px){ .nav-links a:not(.btn){ display:none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .08s ease, box-shadow .15s, background .15s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { box-shadow: 0 8px 26px color-mix(in srgb, var(--brand) 48%, transparent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 60px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 12%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    radial-gradient(50% 50% at 12% 8%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--brand); background: var(--brand-ink); padding: 6px 13px; border-radius: 100px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 16ch; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; }

/* ---------- Scan launcher ---------- */
.launcher { margin-top: 34px; max-width: 720px; }
.launch-bar {
  display: flex; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; box-shadow: var(--shadow-lg);
}
.launch-bar input {
  flex: 1; border: none; background: none; color: var(--ink); font-size: 16px; font-family: inherit;
  padding: 12px 14px; outline: none; min-width: 0;
}
.launch-bar input::placeholder { color: var(--faint); }
@media (max-width: 560px) {
  .launch-bar { flex-direction: column; }
  .launch-bar input { width: 100%; }
  .launch-bar button { width: 100%; }
}
.launch-opts { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--ink-2); }
.launch-opts label { display: flex; align-items: center; gap: 8px; }
.launch-opts select { font-family: inherit; font-size: 14px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.trust { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.trust span { display: flex; align-items: center; gap: 7px; }

/* ---------- Sections ---------- */
section { padding: 66px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; font-weight: 800; line-height: 1.1; }
.section-head p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.alt-bg { background: var(--surface); border-block: 1px solid var(--line); }

/* ---------- Module grid ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.mod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .16s, box-shadow .16s, border-color .16s;
}
.alt-bg .mod-card { background: var(--surface-2); }
.mod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.mod-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; background: var(--brand-ink); }
.mod-card h3 { font-size: 17px; letter-spacing: -.01em; margin-bottom: 8px; }
.mod-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.mod-card ul { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.mod-card li { font-size: 12px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 100px; }
.alt-bg .mod-card li { background: var(--surface); }

/* ---------- Comparison table ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 780px; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-2); }
table.cmp thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface-2); position: sticky; top: 0; }
table.cmp tbody tr:hover { background: var(--surface-2); }
table.cmp td:first-child { font-weight: 600; }
.cmp-us { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent); }
.cmp-us th, .cmp-us td { border-bottom-color: color-mix(in srgb, var(--brand) 20%, var(--line)); }
.tick { color: var(--good); font-weight: 700; }
.cross { color: var(--faint); }
.partial { color: var(--warning); }
.cell-note { color: var(--muted); font-size: 12.5px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.feat { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.price-card.feat::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,var(--brand),var(--brand-2)); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 100px; }
.price-card h3 { font-size: 17px; color: var(--muted); font-weight: 600; }
.price-amt { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0; }
.price-amt small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.price-card li { font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--good); font-weight: 700; }
.price-card .btn { margin-top: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 12px; }
.footer a { display: block; padding: 4px 0; color: var(--muted); }
.footer a:hover { color: var(--brand); }

/* utilities */
.stagger { opacity: 0; transform: translateY(16px); animation: rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stagger { animation: none; opacity: 1; transform: none; } html { scroll-behavior: auto; } }
