:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fb;
  --text: #0f172a;
  --muted: #5b6b7f;
  --line: rgba(15, 23, 42, 0.08);
  --card: #ffffff;
  --brand-1: #ef4444;   /* magnet red */
  --brand-2: #f97316;   /* warm orange */
  --brand-3: #0b3b4f;   /* logo navy */
  --navy-2: #134e66;
  --safe: #22c55e;
  --caution: #f59e0b;
  --review: #eab308;
  --shadow: 0 20px 60px -20px rgba(11, 59, 79, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08161d;
    --bg-alt: #0b2029;
    --text: #e8eef6;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, 0.08);
    --card: #0f2732;
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.86em;
  background: rgba(11, 59, 79, 0.08);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 600; text-decoration: none; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 10px 30px -8px rgba(239, 68, 68, 0.55);
}
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: var(--card); }
.btn-small { padding: 8px 16px; font-size: 14px; color: #fff; border-radius: 10px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); }
.btn-light { background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); color: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); }

/* Hero */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(239,68,68,.12), transparent 70%),
    radial-gradient(500px 300px at 80% 20%, rgba(11,59,79,.14), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #dc2626;
  background: rgba(239,68,68,.1); padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-1); }
h1 { font-size: clamp(38px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.03em; margin: 18px 0; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--brand-1), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 13.5px; color: var(--muted); }
.hero-shot { position: relative; }
.hero-shot img { border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-shot .glow {
  position: absolute; inset: 10% 5% -5%; z-index: -1; filter: blur(60px);
  background: linear-gradient(120deg, rgba(11,59,79,.45), rgba(239,68,68,.35));
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat strong { display: block; font-size: 26px; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 14px; }

/* Tools */
.tools { padding: 30px 0 10px; }
.tools-label { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.kicker { color: #dc2626; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.025em; margin: 10px 0 14px; }
.section-head p, .feature-copy p { color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px var(--c1); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 8px 20px -8px var(--c2);
}
.card .ico svg { width: 22px; height: 22px; fill: #fff; }
.card h3 { margin: 16px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.reverse .feature-copy { order: 2; }
.feature-shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
}

/* Safety */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border-radius: 18px; padding: 24px; border: 1px solid var(--line); background: var(--card); }
.tier h3 { margin: 14px 0 6px; }
.tier p { margin: 0; color: var(--muted); }
.badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.safe { border-top: 4px solid var(--safe); } .safe .badge { background: rgba(34,197,94,.14); color: #16a34a; }
.caution { border-top: 4px solid var(--caution); } .caution .badge { background: rgba(245,158,11,.14); color: #d97706; }
.review { border-top: 4px solid var(--review); } .review .badge { background: rgba(234,179,8,.16); color: #a16207; }

.how { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.how h3 { margin-top: 0; }
.how table { width: 100%; border-collapse: collapse; }
.how td { padding: 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.how td:first-child { font-weight: 600; width: 34%; padding-right: 16px; }
.how td:last-child { color: var(--muted); }

/* Results */
.results { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: stretch; }
.bars { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr 80px; gap: 14px; align-items: center; font-size: 15px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.result-card {
  border-radius: 18px; padding: 28px; color: #fff;
  background: linear-gradient(140deg, var(--brand-3), var(--navy-2));
  box-shadow: var(--shadow);
}
.result-card .check { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.result-card .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 4px; }
.result-card .fine { color: rgba(255,255,255,.8); }

/* Download */
.download {
  padding: 96px 0; color: #fff; text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, rgba(239,68,68,.25), transparent 70%), linear-gradient(160deg, var(--brand-3), #082a39);
}
.download-inner { display: grid; justify-items: center; gap: 8px; }
.download img { border-radius: 22px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.4); }
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,.85); margin: 0 0 16px; }
.steps { text-align: left; margin: 24px auto 0; padding-left: 20px; color: rgba(255,255,255,.92); max-width: 460px; }
.steps li { margin: 6px 0; }
.sha { margin-top: 14px !important; font-size: 12.5px; }
.sha code { background: rgba(255,255,255,.14); color: #fff; word-break: break-all; }

/* FAQ */
.faq { max-width: 820px; }
details { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand-1); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature, .results { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-inner .btn-small { margin-left: auto; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .cards, .safety, .stats { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr 70px; }
  .bar-row .bar { grid-column: 1 / -1; grid-row: 2; }
  .section { padding: 64px 0; }
  .how td:first-child { width: 42%; }
}

.footnote { margin: 12px 0 0; font-size: 12.5px; }
.install-facts { max-width: 620px; margin: 22px auto 0; text-align: left; font-size: 14px; color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 20px; }
.install-facts p { margin: 0 0 8px; color: inherit; }
.install-facts p:last-child { margin: 0; }
.install-facts a { color: #fff; text-decoration: underline; }
.footer a { color: inherit; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; }
.legal strong { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal td, .legal th { border-top: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; color: var(--muted); }
.legal th { color: var(--text); }
.legal pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px; overflow-x: auto; font-size: 13.5px; }
