:root {
  --bg: #070b14;
  --panel: #121a2b;
  --line: #243047;
  --text: #e8eefc;
  --muted: #9fb0cc;
  --accent: #818cf8;
  --accent2: #6366f1;
  --ok: #34d399;
  --warn: #fbbf24;
}
* { box-sizing: border-box; }
/* Do NOT set scroll-behavior: smooth on html/body.
   MSIM multi-device scroll sync sets scrollTop on siblings; smooth makes other devices lag. */
html { scroll-behavior: auto; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1e1b4b 0%, transparent 50%), var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px 5vw;
  background: rgba(7,11,20,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,48,71,0.8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none !important;
}
.nav nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: 14px; }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 5vw 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 48px 56px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
  max-width: 34rem;
}
.hero-points {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--ok) 0 35%, transparent 36%),
    rgba(52, 211, 153, 0.14);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

/* Right column: one product stage (scan + extension popup) */
.hero-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.hero-stage {
  position: relative;
  width: min(100%, 440px);
  padding: 8px 8px 72px 8px;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 4% 18% 4%;
  background: radial-gradient(ellipse at 50% 40%, rgba(99, 102, 241, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* Animated GEO scan panel (primary visual) */
.scan-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(165deg, rgba(30, 27, 75, 0.72), rgba(18, 26, 43, 0.98));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 12px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(129, 140, 248, 0.06) inset;
  overflow: hidden;
}
.scan-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--ok));
  opacity: 0.85;
}
.scan-banner.running::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.08), transparent);
  animation: scan-sweep 1.4s linear infinite;
  pointer-events: none;
}
@keyframes scan-sweep {
  from { transform: translateX(0); }
  to { transform: translateX(350%); }
}
.scan-banner-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.scan-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
}
.scan-banner.running .scan-dot {
  background: var(--ok);
  animation: scan-pulse 1s ease-in-out infinite;
}
.scan-banner.done .scan-dot { background: var(--accent); }
@keyframes scan-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}
.scan-domain {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-score {
  min-width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  border: 3px solid var(--line);
  background: #0b1220;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.scan-score.ok { border-color: var(--ok); color: var(--ok); }
.scan-score.warn { border-color: var(--warn); color: var(--warn); }
.scan-score.bad { border-color: #f87171; color: #f87171; }
.scan-score.pop { transform: scale(1.08); }

.scan-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  max-height: 168px;
  overflow: hidden;
}
.scan-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 0;
  padding: 4px 0;
  font-size: 12px;
  min-width: 0;
}
.scan-status {
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  background: #475569;
}
.scan-item.pending .scan-status {
  background: #64748b;
  animation: scan-blink 0.8s ease-in-out infinite;
}
.scan-item.ok .scan-status { background: var(--ok); animation: none; }
.scan-item.warn .scan-status { background: var(--warn); animation: none; }
.scan-item.bad .scan-status { background: #f87171; animation: none; }
@keyframes scan-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.scan-label {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-detail {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scan-meter {
  margin-top: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(36, 48, 71, 0.9);
  overflow: hidden;
}
.scan-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent2), var(--ok));
  transition: width 0.18s linear;
}
.scan-caption {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  min-height: 1.3em;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 12px;
}
.fp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fp-brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
}

.pill.ok { background: rgba(52,211,153,0.15); color: var(--ok); border-color: rgba(52,211,153,0.35); }
.pill.warn { background: rgba(251,191,36,0.15); color: var(--warn); border-color: rgba(251,191,36,0.35); }
.pill.bad { background: rgba(248,113,113,0.12); color: #f87171; border-color: rgba(248,113,113,0.35); }
.fp-row.pending { opacity: 0.55; }
.fp-row.pending::before { content: "○ "; color: #64748b; }
.fp-row.ok::before { content: "● "; color: var(--ok); }
.fp-row.warn::before { content: "● "; color: var(--warn); }
.fp-row.bad::before { content: "● "; color: #f87171; }

@media (prefers-reduced-motion: reduce) {
  .scan-banner.running::after,
  .scan-banner.running .scan-dot,
  .scan-item.pending .scan-status {
    animation: none !important;
  }
  .scan-meter-fill { transition: none; }
  .scan-score { transition: none; }
}

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.fine { color: var(--muted); font-size: 13px; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 700; border: 0; cursor: pointer;
  text-decoration: none !important;
}
.btn-sm { padding: 8px 12px; background: var(--accent2); color: #070a14 !important; }
.btn-lg {
  padding: 14px 22px; min-width: 168px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #070a14 !important; font-size: 1rem;
}
.btn.ghost {
  background: transparent; color: var(--text) !important;
  border: 1px solid var(--line);
}
button.btn {
  font: inherit;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
}
.btn-disabled,
.btn:disabled,
button.btn:disabled {
  background: #2a3548 !important;
  color: #8b98b0 !important;
  border: 1px solid #3a4660 !important;
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: none;
  filter: none;
}
.btn-disabled:hover,
.btn:disabled:hover,
button.btn:disabled:hover {
  text-decoration: none;
}
.cta-band-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Extension popup sits on the stage, anchored bottom-right over the scan card */
.fake-popup {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: min(100%, 248px);
  background: rgba(18, 26, 43, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(129, 140, 248, 0.08) inset;
  backdrop-filter: blur(10px);
}
.fp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.pill {
  background: rgba(251,191,36,0.15); color: var(--warn);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 999px; padding: 2px 10px; font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.fp-row {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-row.ok::before { content: "● "; color: var(--ok); }
.fp-row.warn::before { content: "● "; color: var(--warn); }
.fp-prompt {
  margin-top: 10px; padding: 10px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(129,140,248,0.22), rgba(99,102,241,0.14));
  font-weight: 700; font-size: 13px;
  text-align: center;
}
.stats {
  max-width: 1120px; margin: 8px auto 28px;
  padding: 0 5vw;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.stats div {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
}
.stats strong { display: block; font-size: 1.4rem; }
.stats span { color: var(--muted); font-size: 13px; }
.section { max-width: 1100px; margin: 0 auto; padding: 48px 5vw; }
.section.alt { background: rgba(18,26,43,0.55); border-block: 1px solid var(--line); max-width: none; }
.section.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section h2 { font-size: 1.8rem; margin: 0 0 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 article, .section details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
}
.grid3 h3 { margin: 0 0 8px; font-size: 1.05rem; }
.grid3 p, .bullets, .disclose, .section details p { color: var(--muted); }
.steps { padding-left: 1.2rem; color: var(--muted); }
.steps li { margin: 8px 0; }
.bullets { padding-left: 1.2rem; }
.disclose { font-size: 14px; }
.section details { margin: 10px 0; }
.section summary { cursor: pointer; font-weight: 700; }
.cta-band { text-align: center; }
.cta-band code {
  background: #0b1220; border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; font-size: 0.9em;
}
.footer {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 36px 5vw 48px; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 5vw 80px; }
.legal-page h1 { margin-top: 0; }
.legal-page h2 { margin-top: 28px; font-size: 1.2rem; }
.legal-back { margin: 28px 0; }
.legal-page a.btn-primary, .legal-back .btn {
  color: #070a14 !important;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 12px 18px; border-radius: 12px; font-weight: 700; display: inline-flex;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 40px;
    padding-bottom: 20px;
  }
  .hero-copy { max-width: 40rem; }
  .hero-visual { order: 2; }
  .hero-stage {
    width: min(100%, 480px);
    margin: 0 auto;
    padding-bottom: 64px;
  }
  .stats, .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-stage {
    padding: 0 0 16px;
  }
  .fake-popup {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }
  .scan-checks {
    grid-template-columns: 1fr;
    max-height: none;
  }
  .stats, .grid3 { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .hero-points { margin-top: 18px; }
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 11, 20, 0.94);
  border-top: 1px solid rgba(36, 48, 71, 0.95);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}
.cookie-banner-copy { min-width: 0; flex: 1; }
.cookie-banner-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}
.cookie-banner-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.cookie-banner-text a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: flex-end;
}
.cookie-banner-actions .btn {
  white-space: nowrap;
}
body.cookie-banner-open { padding-bottom: 7.5rem; }
@media (max-width: 720px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1 1 auto; }
  body.cookie-banner-open { padding-bottom: 11rem; }
}
