/* ScamHunter landing — design tokens mirror the app (mobile/tailwind.config.js) */
:root {
  --bg: #0b0e14;
  --bg-soft: #11161f;
  --surface: #161d29;
  --surface-2: #1c2433;
  --border: #243044;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --faint: #64748b;
  --brand: #4c8dff;
  --brand-dim: #3a6fd0;
  --safe: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 14, 20, 0.82);
  border-bottom: 1px solid rgba(36, 48, 68, 0.6);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--brand); color: #fff !important; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--brand-dim); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 92px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 720px; pointer-events: none;
  background:
    radial-gradient(560px 380px at 22% 30%, rgba(76, 141, 255, 0.16), transparent 70%),
    radial-gradient(480px 340px at 78% 16%, rgba(239, 68, 68, 0.07), transparent 70%);
}
.hero-grid { position: relative; 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(--brand); background: rgba(76, 141, 255, 0.1);
  border: 1px solid rgba(76, 141, 255, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
h1 .accent { color: var(--brand); }
.hero-sub { margin: 22px 0 32px; font-size: 19px; color: var(--muted); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; border-radius: 14px;
  padding: 14px 26px; transition: transform 0.15s, background 0.2s, border-color 0.2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 28px rgba(76, 141, 255, 0.28); }
.btn-primary:hover { background: var(--brand-dim); }
.btn-ghost { color: var(--text); border-color: var(--border); background: var(--bg-soft); }
.btn-ghost:hover { border-color: var(--faint); }
.cta-note { width: 100%; font-size: 14px; color: var(--faint); margin-top: 4px; }

/* ---------- phone mockup ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::after {
  content: ""; position: absolute; inset: 12% 6%;
  background: radial-gradient(closest-side, rgba(76, 141, 255, 0.18), transparent);
  filter: blur(30px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: 320px;
  background: #05070b; border: 1px solid #2a3650; border-radius: 44px;
  padding: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.phone-screen { background: var(--bg); border-radius: 32px; padding: 22px 16px 26px; overflow: hidden; }
.phone-notch { width: 110px; height: 24px; background: #05070b; border-radius: 0 0 16px 16px; margin: -22px auto 16px; }
.bubble {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 12px 14px; font-size: 12.5px; color: var(--muted);
  font-style: italic; margin-bottom: 14px;
}
.verdict-card { background: var(--danger); border-radius: 20px; padding: 18px 16px; animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; animation-delay: 0.35s; }
.verdict-top { display: flex; align-items: center; justify-content: space-between; }
.verdict-label { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 22px; }
.verdict-score { text-align: right; color: #fff; }
.verdict-score strong { font-size: 24px; font-weight: 800; display: block; line-height: 1; }
.verdict-score span { font-size: 10px; opacity: 0.8; }
.verdict-tag { display: inline-block; margin-top: 12px; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.phone-reasons { margin-top: 14px; display: grid; gap: 9px; }
.reason { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--text); }
.reason::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: 6px; }
.phone-steps { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 7px; }
.pstep { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.pstep .ok { color: var(--safe); font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- trust bar ---------- */
.trustbar { border-block: 1px solid var(--border); background: var(--bg-soft); padding: 22px 0; }
.trustbar .container { display: flex; flex-wrap: wrap; gap: 12px 36px; align-items: center; justify-content: center; }
.trustbar span { font-size: 13.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.trustbar b { color: var(--muted); font-weight: 600; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; font-weight: 800; line-height: 1.15; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 17px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: rgba(76, 141, 255, 0.45); transform: translateY(-3px); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(76, 141, 255, 0.12); margin-bottom: 16px; color: var(--brand);
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--muted); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.1em;
}
.step h3 { font-size: 18px; margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* hybrid section */
.hybrid { background: var(--bg-soft); border-block: 1px solid var(--border); }
.hybrid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hybrid h2 { margin-bottom: 16px; }
.hybrid-grid > div > p { color: var(--muted); margin-bottom: 22px; }
.signal-list { list-style: none; display: grid; gap: 12px; }
.signal-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.signal-list .check { color: var(--safe); font-weight: 800; flex: 0 0 auto; }
.evidence {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px;
}
.evidence .row { display: flex; justify-content: space-between; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.evidence .row:last-child { border-bottom: 0; }
.evidence .k { color: var(--faint); }
.evidence .bad { color: var(--danger); font-weight: 700; }
.evidence .good { color: var(--safe); font-weight: 700; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--muted); }

/* faq */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--brand); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* cta band */
.cta-band { text-align: center; background: linear-gradient(180deg, rgba(76, 141, 255, 0.1), transparent 75%); border-top: 1px solid var(--border); }
.cta-band p { color: var(--muted); margin: 14px auto 30px; max-width: 36em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--faint); font-size: 14px; margin-top: 12px; max-width: 28em; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--faint); }

/* ---------- legal / prose pages ---------- */
.page-hero { padding: 72px 0 36px; }
.page-hero h1 { font-size: clamp(32px, 4vw, 44px); }
.page-hero .meta { color: var(--faint); margin-top: 10px; font-size: 14px; }
.prose { max-width: 760px; padding-bottom: 88px; }
.prose h2 { font-size: 22px; margin: 40px 0 12px; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose ul, .prose ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.prose .card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin: 18px 0;
}

/* reveal animation — hidden state only when JS is present (html.js set in <head>),
   so content is never invisible for no-JS visitors or crawlers */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .verdict-card { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .hybrid-grid { grid-template-columns: 1fr; gap: 44px; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 20px 24px; gap: 18px; display: none; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  section { padding: 64px 0; }
}
