/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a1a;
  --bg2: #222222;
  --bg3: #2a2a2a;
  --border: #333333;
  --border-light: #444444;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent2: #ea580c;
  --accent-glow: rgba(245,158,11,0.12);
  --green: #22c55e;
  --yellow: #f59e0b;
  --red: #ef4444;
  --text: #f0ece4;
  --text-muted: #8a8070;
  --text-dim: #b0a898;
  --radius: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245,158,11,0.3); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  padding: 8px 16px;
}
.btn-ghost:hover { color: var(--text); }

/* ===== NAV ===== */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

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

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 0 24px 100px;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
  margin: 60px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  background: rgba(245,158,11,0.1);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.05) 0%, transparent 65%);
  pointer-events: none;
}

/* ===== STATS ===== */
.stats {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  display: block;
  max-width: 180px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 24px;
}

.services h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-sub {
  text-align: center;
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(245,158,11,0.4);
  transform: translateY(-2px);
}

.service-card .icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
}

.how-it-works h2 {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.step {
  text-align: center;
  padding: 0 16px;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1.5px solid rgba(245,158,11,0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 24px;
  text-align: center;
}

.cta-box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 16px;
  padding: 56px 48px;
}

.cta-box h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 16px;
}

/* ===== ASSESSMENT PAGE ===== */
.assessment-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.assessment-main {
  flex: 1;
  padding: 60px 24px 80px;
}

.assessment-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.assessment-head {
  text-align: center;
  margin-bottom: 48px;
}

.assessment-head .badge {
  margin-bottom: 20px;
}

.assessment-head h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.assessment-head p {
  color: var(--text-dim);
  font-size: 16px;
}

/* PROGRESS */
.progress-bar-wrap {
  margin-bottom: 40px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* QUIZ */
.quiz {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.question {
  display: none;
  animation: fadeIn 0.25s ease;
}

.question.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-text {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.4;
  color: var(--text);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  font-size: 15px;
  color: var(--text-dim);
  transition: all 0.15s;
  background: var(--bg3);
}

.option-label:hover {
  border-color: rgba(245,158,11,0.4);
  color: var(--text);
  background: rgba(245,158,11,0.04);
}

.option-label input[type="radio"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.option-label:has(input:checked) {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(245,158,11,0.08);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.quiz-nav .btn-ghost {
  padding: 10px 0;
}

/* EMAIL GATE */
.email-gate {
  display: none;
  animation: fadeIn 0.25s ease;
}

.email-gate.active { display: block; }

.email-gate-inner {
  background: var(--bg2);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 40px 36px;
  text-align: center;
}

.email-gate-inner h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.email-gate-inner p {
  color: var(--text-dim);
  margin-bottom: 28px;
  font-size: 15px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.gate-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* RESULTS */
.results {
  display: none;
  animation: fadeIn 0.3s ease;
}

.results.active { display: block; }

.result-card {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  margin-bottom: 20px;
}

.result-card.show { display: block; }

.result-card.risk-high { border-color: rgba(239,68,68,0.3); }
.result-card.risk-medium { border-color: rgba(245,158,11,0.3); }
.result-card.risk-low { border-color: rgba(34,197,94,0.3); }

.result-icon { font-size: 44px; margin-bottom: 20px; }

.result-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 14px;
}

.result-card p {
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-size: 15px;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.score-display {
  font-size: 13px;
  color: var(--text-muted);
  margin: 20px 0 14px;
}

/* ===== HARDENING GUIDE ===== */
.guide-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.guide-main {
  flex: 1;
  padding: 60px 24px 100px;
}

.guide-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.guide-head {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.guide-head h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.guide-head p {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.7;
}

.guide-meta {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.guide-meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-section {
  margin-bottom: 56px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}

.guide-section h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--text);
}

.guide-section p {
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 14px;
  font-size: 15px;
}

.guide-section ul, .guide-section ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.guide-section li {
  color: var(--text-dim);
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 6px;
}

.guide-section li strong {
  color: var(--text);
}

.callout {
  background: rgba(245,158,11,0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

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

.severity-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.severity-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
}

.severity-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}

.severity-table tr:nth-child(even) td {
  background: var(--bg3);
}

.tag-crit { color: #ef4444; font-weight: 600; }
.tag-high { color: #f97316; font-weight: 600; }
.tag-med  { color: #f59e0b; font-weight: 600; }
.tag-low  { color: #22c55e; font-weight: 600; }

.guide-cta {
  background: var(--bg2);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 56px;
}

.guide-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-cta p {
  color: var(--text-dim);
  margin-bottom: 24px;
  font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.footer .logo { display: block; margin-bottom: 12px; font-size: 18px; }

.footer p {
  font-size: 14px;
  color: var(--text-muted);
}

.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero-content { margin-top: 32px; }
  .nav .btn { display: none; }
  .result-actions { flex-direction: column; align-items: center; }
  .cta-box { padding: 40px 24px; }
  .email-gate-inner { padding: 28px 20px; }
  .result-card { padding: 32px 24px; }
  .guide-main { padding: 40px 24px 80px; }
}
