:root {
  --bg: #0b0f14;
  --bg-soft: #111821;
  --surface: rgba(17, 24, 33, 0.92);
  --surface-2: #16202b;
  --border: #233243;
  --text: #e7edf4;
  --muted: #9eb0c3;
  --subtle: #6f8193;
  --accent: #9cb266;
  --accent-strong: #c8d88c;
  --action: #5a7fb1;
  --action-strong: #7ca2d7;
  --danger: #d96b6b;
  --warn: #d4a657;
  --success: #6fb881;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(156, 178, 102, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(90, 127, 177, 0.1), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--action-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.help-fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 162, 215, 0.35);
  background: rgba(90, 127, 177, 0.16);
  color: #dbe7f7;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.82);
  border-bottom: 1px solid rgba(35, 50, 67, 0.85);
}

.nav-shell,
.hero-inner,
.content-section,
.site-footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text);
}

.brand span {
  color: var(--accent-strong);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
}

.nav-links .nav-cta {
  color: #eef4ff;
  background: linear-gradient(135deg, var(--action), var(--action-strong));
}

.hero {
  padding: 72px 0 44px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(156, 178, 102, 0.12);
  border: 1px solid rgba(156, 178, 102, 0.28);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.hero-copy {
  margin: 22px 0 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.hero-stats div,
.panel,
.timeline-card,
.source-card,
.risk-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-stats div {
  padding: 16px;
  border-radius: 14px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-strong);
  font-size: 22px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #18210e;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.content-section {
  padding: 28px 0 20px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.panel h2,
.panel h3,
.timeline-card h3 {
  margin: 0;
}

.section-heading p,
.panel p,
.timeline-card p,
.notice,
.privacy-note,
.arrow-list,
.result-placeholder {
  color: var(--muted);
}

.section-grid,
.columns-2,
.timeline-grid,
.risk-grid,
.sources-grid,
.hero-stats,
.check-layout {
  display: grid;
  gap: 16px;
}

.section-grid,
.columns-2,
.check-layout,
.scanner-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-grid,
.risk-grid,
.sources-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.timeline-card,
.source-card,
.risk-card {
  border-radius: 16px;
}

.panel,
.timeline-card {
  padding: 22px;
}

.panel-callout {
  border-color: rgba(156, 178, 102, 0.35);
  background: linear-gradient(180deg, rgba(156, 178, 102, 0.12), rgba(17, 24, 33, 0.94));
}

.section-surface {
  padding: 34px 0;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(35, 50, 67, 0.55);
  border-bottom: 1px solid rgba(35, 50, 67, 0.55);
}

.timeline-card.active {
  border-color: rgba(111, 184, 129, 0.35);
}

.timeline-card.upcoming {
  border-color: rgba(212, 166, 87, 0.35);
}

.timeline-date {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124, 162, 215, 0.22);
  background: rgba(90, 127, 177, 0.08);
}

.notice-warn {
  border-color: rgba(212, 166, 87, 0.28);
  background: rgba(212, 166, 87, 0.08);
}

.notice-soft {
  margin-top: 18px;
}

.risk-card {
  overflow: hidden;
}

.risk-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  font-weight: 700;
}

.risk-card summary::-webkit-details-marker {
  display: none;
}

.risk-card p {
  margin: 0;
  padding: 0 22px 20px;
}

.risk-card small {
  color: var(--subtle);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.risk-red { border-left: 4px solid var(--danger); }
.risk-amber { border-left: 4px solid var(--warn); }
.risk-blue { border-left: 4px solid var(--action-strong); }
.risk-green { border-left: 4px solid var(--success); }

.arrow-list {
  padding-left: 18px;
  margin: 14px 0 0;
}

.arrow-list li + li {
  margin-top: 8px;
}

.check-form fieldset {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.check-form legend {
  margin-bottom: 10px;
  font-weight: 700;
}

.check-form label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.check-form input[type="radio"] {
  margin-top: 3px;
}

.check-result {
  min-height: 320px;
}

.result-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-high {
  color: #ffd4d4;
  background: rgba(217, 107, 107, 0.18);
  border: 1px solid rgba(217, 107, 107, 0.32);
}

.result-medium {
  color: #f3dfb2;
  background: rgba(212, 166, 87, 0.18);
  border: 1px solid rgba(212, 166, 87, 0.32);
}

.result-low {
  color: #d2e7d7;
  background: rgba(111, 184, 129, 0.18);
  border: 1px solid rgba(111, 184, 129, 0.32);
}

.result-list {
  padding-left: 18px;
}

.scanner-section {
  padding-top: 34px;
}

.scanner-panel,
.download-panel {
  align-self: start;
}

.scanner-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #dde7f7;
  background: rgba(90, 127, 177, 0.18);
  border: 1px solid rgba(124, 162, 215, 0.28);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-note,
.error-msg,
.consent-wrap {
  border-radius: 12px;
  padding: 12px 14px;
}

.prototype-note {
  margin-bottom: 12px;
  background: rgba(212, 166, 87, 0.12);
  border: 1px solid rgba(212, 166, 87, 0.28);
  color: #f0ddb1;
  font-size: 13px;
}

.error-msg {
  margin-bottom: 12px;
  background: rgba(217, 107, 107, 0.14);
  border: 1px solid rgba(217, 107, 107, 0.28);
  color: #ffd1d1;
}

.download-form label[for="email"] {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.download-form input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 15px;
}

.download-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(124, 162, 215, 0.7);
}

.consent-wrap {
  margin: 12px 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 13px;
}

.download-form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--action), var(--action-strong));
  color: #f3f7fd;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.download-form button[type="submit"]:hover {
  filter: brightness(1.05);
}

.privacy-note {
  margin: 14px 0 0;
  font-size: 12px;
}

.sr-only {
  position: absolute;
  left: -99999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.source-card {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  color: var(--text);
}

.source-card:hover {
  text-decoration: none;
  border-color: rgba(124, 162, 215, 0.4);
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--subtle);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 920px) {
  .nav-shell,
  .hero-inner,
  .content-section,
  .site-footer {
    width: min(1100px, calc(100% - 24px));
  }

  .hero-stats,
  .section-grid,
  .columns-2,
  .check-layout,
  .scanner-layout,
  .timeline-grid,
  .risk-grid,
  .sources-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 52px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .help-fab {
    top: auto;
    bottom: 14px;
  }
}