:root {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --surface: #12121e;
  --surface-2: #181826;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ededf5;
  --muted: #a0a0b8;
  --faint: #6c6c85;
  --coral: #ff6a5c;
  --pink: #e0457b;
  --purple: #a63bb8;
  --grad: linear-gradient(120deg, var(--coral) 0%, var(--pink) 50%, var(--purple) 100%);
  --green: #4ade80;
  --red: #ff6b6b;
  --radius: 16px;
  --max: 1160px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(224, 69, 123, 0.6); }
.btn-primary:hover { box-shadow: 0 12px 40px -8px rgba(224, 69, 123, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand span small { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .brand span small { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(224, 69, 123, 0.22), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; top: 120px; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(166, 59, 184, 0.14), transparent 62%);
  pointer-events: none;
}
.hero-grid > * { min-width: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--pink); }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); font-weight: 800; margin: 22px 0 22px; }
.hero .lede { font-size: 20px; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--faint); font-size: 14px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

/* Finding card */
.finding {
  position: relative; margin: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 20px; padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.finding::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1px;
  background: linear-gradient(140deg, rgba(255, 106, 92, 0.6), transparent 40%, transparent 60%, rgba(166, 59, 184, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.finding-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.finding-id { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sev { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 6px; }
.sev-high { background: rgba(255, 107, 107, 0.14); color: #ff8a8a; border: 1px solid rgba(255, 107, 107, 0.3); }
.finding h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.finding .loc { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.code {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; margin-top: 16px;
  background: #0a0a12; border: 1px solid var(--border); border-radius: 12px; padding: 12px 0; overflow-x: auto;
}
.code div { padding: 0 14px; white-space: pre; }
.code .del { background: rgba(255, 107, 107, 0.09); color: #ffb0b0; }
.code .add { background: rgba(74, 222, 128, 0.08); color: #a7f3c0; }
.code .cm { color: var(--faint); }
.finding-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.finding-foot div { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.finding-foot dt { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.finding-foot dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; }
.finding-tag { position: absolute; top: -13px; left: 22px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

@media (max-width: 940px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 480px) {
  .finding-foot { grid-template-columns: 1fr 1fr; }
  .finding-foot div:last-child { grid-column: span 2; }
  .hero .lede { font-size: 18px; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 104px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; display: inline-block; }
.section h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }
@media (max-width: 760px) { .section { padding: 76px 0; } .section-head { margin-bottom: 40px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(140deg, rgba(255, 106, 92, 0.16), rgba(166, 59, 184, 0.16));
  border: 1px solid rgba(224, 69, 123, 0.3); color: #ff8fb0;
}
.icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.015em; }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 940px) { .pillars { grid-template-columns: 1fr; } }

/* Coverage */
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cov { background: var(--bg-2); padding: 28px; }
.cov-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cov-top svg { width: 20px; height: 20px; color: var(--pink); flex: none; }
.cov h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.cov p { color: var(--muted); font-size: 15px; }
@media (max-width: 940px) { .coverage { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .coverage { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 700; display: inline-block; margin-bottom: 18px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 940px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.benefits h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; }
.benefits .lede { color: var(--muted); font-size: 19px; margin: 18px 0 30px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-weight: 500; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--green); margin-top: 1px; }
@media (max-width: 940px) { .benefits { grid-template-columns: 1fr; gap: 40px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 16px; height: 16px; flex: none; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform 0.2s ease;
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }
.faq .answer strong { color: var(--text); }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: 72px 40px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, rgba(224, 69, 123, 0.35), transparent 60%), linear-gradient(180deg, #1a0f22, #110b18);
  border: 1px solid rgba(224, 69, 123, 0.3);
}
.cta img { width: 72px; height: 72px; margin: 0 auto 24px; }
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.cta p { color: #d6c9de; font-size: 19px; max-width: 560px; margin: 16px auto 32px; }
.cta .hero-ctas { justify-content: center; margin-top: 0; }
@media (max-width: 560px) { .cta { padding: 52px 22px; border-radius: 22px; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 14px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer a:hover { color: var(--text); }
.footer .tag { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 320px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* Legal pages */
.legal { padding: 72px 0 104px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.legal .date { color: var(--faint); margin: 12px 0 40px; font-size: 15px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.015em; }
.legal p, .legal li { color: #c7c7d6; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.legal strong { color: var(--text); }
.legal a { color: #ff8fb0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { width: 96px; height: 96px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; }
.notfound p { color: var(--muted); margin: 14px 0 30px; font-size: 18px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .btn:hover, .card:hover { transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }
@media (max-width: 480px) { .code { font-size: 11px; } }
