:root {
  --bg: #07070a;
  --bg-2: #0d0d12;
  --fg: #f3f1ea;
  --fg-dim: #a8a59a;
  --accent: #1ee87a;
  --accent-soft: rgba(30,232,122,0.12);
  --danger: #ff3b3b;
  --warm: #ff8a65;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 40px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7,7,10,0.45);
  border-bottom: 1px solid var(--glass-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.02em; }
.brand-mark {
  width: 26px; height: 26px;
  border: 1px solid var(--accent); border-radius: 6px;
  display: grid; place-items: center;
  box-shadow: 0 0 12px var(--accent-soft);
}
.brand-mark::before { content: "H"; color: var(--accent); font-weight: 700; font-size: 14px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--fg-dim); }
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: 13px; font-weight: 600;
}

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(7,7,10,0.65) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgba(7,7,10,0.4) 0%, transparent 30%, transparent 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 120px 40px 80px;
  width: 100%;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-text .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); padding: 6px 14px;
  border: 1px solid var(--accent-soft); border-radius: 999px;
  background: rgba(30,232,122,0.04);
}
.hero-text .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-text h1 {
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.04; letter-spacing: -0.02em;
  margin-top: 24px; font-weight: 600;
}
.hero-text h1 strong { color: var(--accent); font-weight: 600; }
.hero-text p.lead {
  margin-top: 20px; font-size: 18px; color: var(--fg-dim);
  max-width: 540px; line-height: 1.55;
}
.hero-cta-row {
  margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap;
}
.btn-primary {
  padding: 16px 28px; border-radius: 12px;
  background: var(--accent); color: #07120b;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 0 0 1px rgba(30,232,122,0.3), 0 12px 32px rgba(30,232,122,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(30,232,122,0.5), 0 18px 40px rgba(30,232,122,0.35); }
.btn-ghost {
  padding: 16px 24px; border-radius: 12px;
  border: 1px solid var(--glass-border); color: var(--fg);
  font-size: 15px;
}
.btn-ghost:hover { border-color: var(--fg-dim); }

/* HERO FORM CARD */
.scan-card {
  background: rgba(13,13,18,0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.scan-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.scan-card-title { font-size: 18px; font-weight: 600; }
.scan-card-sub { font-size: 13px; color: var(--fg-dim); margin-top: 4px; }
.scan-card-status {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 6px;
}
.scan-card-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px;
}
.field input {
  width: 100%; padding: 14px 16px;
  background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
  border-radius: 10px; color: var(--fg); font-size: 15px;
  transition: border-color .15s ease;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.captcha { margin-bottom: 14px; min-height: 65px; }
.captcha .cf-turnstile { display: flex; justify-content: center; }
.legal {
  font-size: 11px; color: var(--fg-dim); line-height: 1.5; margin-top: 10px;
  display: flex; gap: 10px; align-items: flex-start;
}
.legal input { margin-top: 3px; accent-color: var(--accent); }
.scan-submit {
  width: 100%; margin-top: 18px;
  padding: 16px; border-radius: 10px;
  background: var(--accent); color: #07120b;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, opacity .15s ease;
}
.scan-submit:hover:not(:disabled) { transform: translateY(-1px); }
.scan-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Form states */
.error-bar {
  background: rgba(255,59,59,0.1); border: 1px solid rgba(255,59,59,0.3);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 14px;
  font-size: 13px; color: #ffb3b3; line-height: 1.4;
}
.success-state {
  text-align: center; padding: 16px 8px;
}
.success-state .success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 18px; color: var(--accent);
  font-size: 28px; font-weight: 600;
  animation: pop .35s ease;
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.success-state h3 {
  font-size: 22px; font-weight: 600; margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.success-state p {
  color: var(--fg-dim); font-size: 14px; line-height: 1.55;
  max-width: 320px; margin: 0 auto 8px;
}
.success-state .success-id {
  margin-top: 18px; font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.04em;
}
.success-state .success-id code {
  font-family: "SF Mono", "Menlo", monospace;
  background: rgba(0,0,0,0.4); padding: 2px 8px; border-radius: 4px;
  color: var(--accent); border: 1px solid var(--glass-border);
}

/* STAT STRIP */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-2);
}
.stat {
  padding: 32px 24px; text-align: center;
  border-right: 1px solid var(--glass-border);
}
.stat:last-child { border-right: none; }
.stat .num { font-size: 36px; font-weight: 600; color: var(--fg); letter-spacing: -0.02em; }
.stat .num .danger { color: var(--danger); }
.stat .num .accent { color: var(--accent); }
.stat .lbl { margin-top: 6px; font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; }

/* LEAK FEED — editorial / newspaper layout */
.section { padding: 100px 40px; max-width: 1280px; margin: 0 auto; }
.section-head { margin-bottom: 56px; max-width: 720px; }
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--danger); font-weight: 500;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 46px);
  margin-top: 12px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600;
  font-family: "New York", "Times New Roman", Georgia, serif;
}
.section-sub { margin-top: 16px; color: var(--fg-dim); font-size: 16px; max-width: 600px; }

/* Newspaper masthead bar */
.leak-masthead {
  display: flex; align-items: baseline; justify-content: space-between;
  border-top: 2px solid var(--fg);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0 12px; margin-bottom: 40px;
}
.leak-masthead-name {
  font-family: "New York", "Times New Roman", Georgia, serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.leak-masthead-name em { color: var(--danger); font-style: italic; font-weight: 500; }
.leak-masthead-meta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* Feed grid: featured on left, list on right */
.leak-feed {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px;
}
.leak-feature {
  border-right: 1px solid var(--glass-border);
  padding-right: 60px;
}
.leak-feature .kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--danger); font-weight: 600; margin-bottom: 14px;
}
.leak-feature h3 {
  font-family: "New York", "Times New Roman", Georgia, serif;
  font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15;
  font-weight: 500; letter-spacing: -0.015em; margin-bottom: 16px;
}
.leak-feature h3 a { background-image: linear-gradient(transparent 92%, var(--danger) 92%); }
.leak-feature .lede {
  font-size: 16px; line-height: 1.6; color: var(--fg-dim); margin-bottom: 20px;
}
.leak-feature .lede::first-letter {
  font-family: "New York", "Times New Roman", Georgia, serif;
  font-size: 56px; font-weight: 600; float: left;
  line-height: 0.95; padding: 4px 8px 0 0; color: var(--fg);
}
.leak-feature .byline {
  display: flex; gap: 14px; align-items: center;
  font-size: 12px; color: var(--fg-dim);
  padding-top: 18px; border-top: 1px solid var(--glass-border);
}
.leak-feature .byline .source {
  color: var(--fg); font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 11px;
}
.leak-feature .byline .dot { color: var(--glass-border); }

/* Right column: list of stories */
.leak-list {
  display: flex; flex-direction: column;
}
.leak-list-title {
  font-family: "New York", "Times New Roman", Georgia, serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--danger);
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--glass-border);
}
.leak-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--glass-border);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
}
.leak-item:last-child { border-bottom: none; }
.leak-item .num {
  font-family: "New York", "Times New Roman", Georgia, serif;
  font-size: 28px; font-weight: 500; color: var(--danger);
  line-height: 1; letter-spacing: -0.02em; min-width: 36px;
}
.leak-item .meta {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 6px;
  display: flex; gap: 8px; align-items: center;
}
.leak-item .meta .source { color: var(--fg); font-weight: 600; }
.leak-item h4 {
  font-family: "New York", "Times New Roman", Georgia, serif;
  font-size: 17px; line-height: 1.3; font-weight: 500;
  letter-spacing: -0.005em; margin-bottom: 6px; color: var(--fg);
}
.leak-item p {
  font-size: 13px; color: var(--fg-dim); line-height: 1.5;
}

/* HOW IT WORKS */
.how {
  background: var(--bg-2);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.step {
  padding: 32px; border-radius: 14px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border);
}
.step-num {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px; color: var(--accent);
  letter-spacing: 0.1em;
}
.step-num::before { counter-increment: step; content: "0" counter(step) " — "; }
.step h3 { margin-top: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.step p { margin-top: 12px; color: var(--fg-dim); font-size: 14px; line-height: 1.6; }

/* FINAL CTA */
.final {
  text-align: center; padding: 120px 40px;
  max-width: 800px; margin: 0 auto;
}
.final h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 600;
}
.final h2 .accent { color: var(--accent); }
.final p { margin-top: 18px; color: var(--fg-dim); font-size: 17px; }

/* FOOTER */
footer {
  padding: 40px; border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--fg-dim);
}
footer .links { display: flex; gap: 24px; }
footer a:hover { color: var(--fg); }

/* REPORT PAGES (/r/[id] + /r/[id]/full) */
.report-shell {
  max-width: 720px; margin: 0 auto;
  padding: 120px 40px 80px;
}
.report-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); padding: 6px 14px;
  border: 1px solid var(--accent-soft); border-radius: 999px;
  background: rgba(30,232,122,0.04); margin-bottom: 22px;
}
.report-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
.report-title {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 600; margin-bottom: 18px;
}
.report-title code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85em; color: var(--accent);
  background: rgba(30,232,122,0.08); padding: 2px 10px; border-radius: 6px;
}
.report-lede {
  font-size: 17px; color: var(--fg-dim); line-height: 1.6; max-width: 560px;
}
.report-id-card {
  margin: 32px 0; padding: 18px 22px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.report-id-label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
}
.report-id-value code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px; color: var(--accent);
}
.report-steps {
  list-style: none; margin: 32px 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
  border-left: 1px solid var(--glass-border); padding-left: 4px;
}
.report-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  padding: 14px 0 14px 18px; position: relative;
  opacity: 0.55; transition: opacity .3s ease;
}
.report-steps li.active { opacity: 1; }
.report-steps .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--fg-dim);
  position: absolute; left: -10px; top: 18px;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.report-steps li.active .dot {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.report-steps strong {
  display: block; font-size: 14px; font-weight: 600; color: var(--fg);
}
.report-steps span {
  font-size: 13px; color: var(--fg-dim);
}
.report-preview-banner {
  margin: 24px 0; padding: 16px 20px;
  background: rgba(255,138,101,0.07); border: 1px solid rgba(255,138,101,0.2);
  border-radius: 10px; font-size: 13px; line-height: 1.55;
  color: #ffd0b8;
}
.report-preview-banner strong {
  display: inline-block; margin-right: 10px;
  color: var(--warm); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px;
}

.report-header {
  margin-top: 8px; margin-bottom: 32px;
  padding-bottom: 24px; border-bottom: 1px solid var(--glass-border);
}
.report-meta {
  margin-top: 14px; font-size: 12px; color: var(--fg-dim);
  display: flex; gap: 8px; align-items: center;
}
.report-meta code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--fg); background: rgba(0,0,0,0.4);
  padding: 2px 8px; border-radius: 4px;
}

.report-summary { margin: 24px 0 40px; }
.summary-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  border: 1px solid var(--glass-border); border-radius: 12px;
  background: var(--bg-2); padding: 4px;
}
.summary-cell {
  padding: 18px 12px; text-align: center;
  border-radius: 10px;
}
.summary-cell .num {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.summary-cell .lbl {
  margin-top: 4px; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim);
}
.summary-cell.crit .num { color: var(--danger); }
.summary-cell.high .num { color: var(--warm); }
.summary-cell.med .num  { color: #ffd166; }
.summary-cell.low .num  { color: #88e0c4; }
.summary-cell.info .num { color: var(--fg-dim); }

.report-findings { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.finding {
  padding: 24px 26px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-left-width: 3px;
}
.finding.crit { border-left-color: var(--danger); }
.finding.high { border-left-color: var(--warm); }
.finding.med  { border-left-color: #ffd166; }
.finding.low  { border-left-color: #88e0c4; }
.finding.info { border-left-color: var(--fg-dim); }
.finding-head {
  display: flex; gap: 12px; align-items: center; margin-bottom: 12px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.finding-head .severity { font-weight: 700; }
.finding.crit .finding-head .severity { color: var(--danger); }
.finding.high .finding-head .severity { color: var(--warm); }
.finding.med  .finding-head .severity { color: #ffd166; }
.finding.low  .finding-head .severity { color: #88e0c4; }
.finding-head .rule { color: var(--fg-dim); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.finding h3 {
  font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.finding-evidence, .finding-impact, .finding-fix {
  font-size: 14px; line-height: 1.6; color: var(--fg-dim); margin-bottom: 10px;
}
.finding-evidence:last-child, .finding-impact:last-child, .finding-fix:last-child { margin-bottom: 0; }
.finding-evidence code, .finding-impact code, .finding-fix code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em;
  background: rgba(0,0,0,0.4); padding: 2px 6px; border-radius: 4px; color: var(--fg);
  word-break: break-all;
}
.finding strong { color: var(--fg); }

.report-cta {
  margin-top: 16px; padding: 36px;
  background: rgba(30,232,122,0.04); border: 1px solid var(--accent-soft);
  border-radius: 14px; text-align: center;
}
.report-cta h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px;
}
.report-cta p { color: var(--fg-dim); font-size: 14px; margin-bottom: 18px; }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 100px; }
  .how-grid { grid-template-columns: 1fr; }
  .leak-feed { grid-template-columns: 1fr; gap: 40px; }
  .leak-feature { border-right: none; padding-right: 0; padding-bottom: 32px; border-bottom: 1px solid var(--glass-border); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--glass-border); }
  .nav-links { display: none; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .nav { padding: 14px 20px; }
  .hero-content { padding: 100px 20px 60px; }
  .section { padding: 70px 20px; }
  .report-shell { padding: 100px 20px 60px; }
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--glass-border); }
  .stat:last-child { border-bottom: none; }
  footer { flex-direction: column; gap: 16px; }
}
