:root {
  --bg: #070c18;
  --surface: #0f172a;
  --surface-2: #162033;
  --border: #24324a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --red: #ef4444;
  --amber: #f59e0b;
  --green: #22c55e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: radial-gradient(circle at top center, #111c36 0%, var(--bg) 52%);
  color: var(--text);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: #0b1324;
  border: 1px solid #1e2d47;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  color: #fde68a;
}
.mono { font-family: Menlo, Monaco, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 24, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: #fff; font-weight: 800; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }
.brand-tag { font-size: 10px; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; background: #1e293b; color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: #cbd5e1; }

.hero { padding: 52px 0 64px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}
h1 { font-size: clamp(28px, 4.3vw, 44px); line-height: 1.15; margin: 0 0 14px; max-width: 820px; letter-spacing: -0.02em; }
h1 em { color: #f87171; font-style: normal; }
.lead { color: #cbd5e1; font-size: 16px; max-width: 760px; margin: 0 0 28px; }

.scan-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.input-row { display: grid; grid-template-columns: 1fr 195px 190px; gap: 10px; }
.input-row input, .input-row select {
  background: #070d1b;
  border: 1px solid #334155;
  color: #fff;
  padding: 13px 14px;
  border-radius: 9px;
  font-size: 15px;
  outline: none;
}
.input-row input:focus, .input-row select:focus { border-color: var(--accent); }
.scan-sub { margin-top: 10px; font-size: 13px; color: var(--muted); }
.error-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.btn:hover { opacity: 0.94; text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #0284c7); color: #fff; }
.btn-emerald { background: linear-gradient(135deg, #16a34a, #059669); color: #fff; }
.btn-full { width: 100%; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-top: 22px;
}

.progress-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.progress-track { height: 8px; background: #1e293b; border-radius: 99px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #38bdf8, #3b82f6); transition: width 0.4s ease; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.progress-steps .active { color: #e0f2fe; font-weight: 700; }

.unlocked-banner {
  margin-top: 22px;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.5);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.unlocked-banner h3 { margin: 8px 0 4px; font-size: 18px; }
.unlocked-banner p { margin: 0; font-size: 13px; color: #cbd5e1; }

.result-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 18px; }
.result-top h2 { margin: 4px 0 0; font-size: 22px; }
.score-badge { text-align: center; padding: 10px 18px; border-radius: 10px; background: #1e293b; border: 2px solid var(--red); min-width: 120px; }
.score-val { font-size: 28px; font-weight: 800; line-height: 1.1; }
.score-lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; margin-top: 3px; }

.result-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.kpi-val { font-size: 22px; font-weight: 800; }
.kpi-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.pill.red { background: rgba(239, 68, 68, 0.18); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }
.pill.amber { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.pill.green { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.pill.blue { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }

.sub-h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 8px 0 10px; }
.findings-list { display: flex; flex-direction: column; gap: 10px; }
.finding-item { background: #0a1020; border: 1px solid var(--border); border-left: 3px solid var(--red); border-radius: 8px; padding: 12px 14px; }
.finding-item strong { display: block; margin-top: 5px; font-size: 14px; }
.finding-item p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

.shot-wrap { background: #0a1020; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; position: relative; }
.shot-label { position: absolute; top: 10px; left: 10px; background: rgba(185, 28, 28, 0.92); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; letter-spacing: .06em; }
.shot-wrap img { width: 100%; display: block; min-height: 200px; object-fit: cover; }

.paywall-card { position: relative; overflow: hidden; padding: 0; }
.blur-preview { padding: 24px; filter: blur(6px); user-select: none; pointer-events: none; opacity: 0.45; }
.blur-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.paywall-overlay { position: relative; margin-top: -175px; background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.99) 25%); padding: 28px 24px 26px; text-align: center; }
.paywall-overlay h3 { margin: 10px 0 6px; font-size: 22px; }
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; text-align: left; }
.tier-box { background: #09101f; border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.tier-pro { border-color: rgba(34, 197, 94, 0.55); background: linear-gradient(180deg, rgba(22, 163, 74, 0.08), #09101f); }
.tier-tag { font-size: 10px; font-weight: 800; color: #86efac; letter-spacing: .06em; margin-bottom: 4px; }
.tier-name { font-size: 16px; font-weight: 700; }
.tier-price { font-size: 30px; font-weight: 800; margin: 6px 0 12px; }
.tier-price span { font-size: 13px; color: var(--muted); font-weight: 500; }
.tier-box ul { margin: 0 0 18px; padding-left: 18px; color: #cbd5e1; font-size: 13px; flex: 1; }
.tier-box li { margin-bottom: 6px; }
.demo-note { margin-top: 14px; font-size: 12px; color: #fde68a; }

.how-section { margin-top: 56px; }
.how-section h2 { font-size: 22px; margin-bottom: 8px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-grid .card { margin-top: 12px; }
.how-grid h3 { margin: 0 0 8px; font-size: 16px; }
.how-grid p { margin: 0; font-size: 13.5px; color: var(--muted); }

.footer { border-top: 1px solid var(--border); padding: 28px 0 42px; font-size: 12px; color: var(--muted); }

@media (max-width: 820px) {
  .input-row, .result-grid, .tier-grid, .how-grid { grid-template-columns: 1fr; }
  .unlocked-banner { flex-direction: column; align-items: flex-start; }
  .progress-steps { grid-template-columns: 1fr 1fr; }
}
