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

:root {
  --bg:          #0B1020;
  --surface:     #11182B;
  --surface-2:   #151F36;
  --text:        #F5F7FB;
  --text-2:      #AAB4C8;
  --accent:      #D96C3B;
  --accent-glow: rgba(217,108,59,0.18);
  --success:     #22C55E;
  --warning:     #F59E0B;
  --danger:      #EF4444;
  --border:      rgba(255,255,255,0.08);
  --radius-card: 18px;
  --radius-btn:  13px;
  --font:        'Inter', system-ui, sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ─── SECTIONS ─────────────────────────────────────────────────────────────── */
.section {
  display: none;
  min-height: 100vh;
  padding: 48px 16px 80px;
}
.section.active { display: flex; align-items: flex-start; justify-content: center; }

.container {
  width: 100%;
  max-width: 680px;
}

/* ─── LANDING ──────────────────────────────────────────────────────────────── */
.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  gap: 20px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(217,108,59,0.26);
  border-radius: 999px;
  padding: 6px 14px;
}
.brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 40%, #AAB4C8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-2);
  max-width: 480px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.meta-chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-2);
  opacity: 0.7;
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(217,108,59,0.32);
}
.btn-primary:hover {
  background: #C75D2F;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(217,108,59,0.36);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-lg { font-size: 17px; padding: 16px 36px; }
.btn-full { width: 100%; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

/* ─── QUIZ ─────────────────────────────────────────────────────────────────── */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 40px;
}

.progress-header { display: flex; flex-direction: column; gap: 12px; }

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-bottom: 18px;
}
.step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: all 0.25s;
  color: var(--text-2);
}
.step-dot.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217,108,59,0.16);
}
.step-dot.done {
  border-color: var(--success);
  background: rgba(34,197,94,0.15);
  color: var(--success);
}
.step-dot.done::after { content: '✓'; font-size: 13px; font-weight: 700; }
.step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #F4A37E);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.progress-label {
  font-size: 12px;
  color: var(--text-2);
  text-align: right;
}

/* Question card */
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}
.q-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.q-text {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, transform 0.1s;
  position: relative;
}
.option-btn:hover {
  border-color: rgba(217,108,59,0.42);
  background: rgba(217,108,59,0.08);
  transform: translateX(2px);
}
.option-btn.selected {
  border-color: var(--accent);
  background: rgba(217,108,59,0.14);
  color: #fff;
}
.option-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.18s;
  color: transparent;
}
.option-btn.selected .option-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

/* ─── EMAIL GATE ───────────────────────────────────────────────────────────── */
.gate-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.gate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  max-width: 460px;
}
.gate-icon { font-size: 48px; margin-bottom: 16px; }
.gate-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 10px; }
.gate-sub { color: var(--text-2); margin-bottom: 28px; font-size: 15px; line-height: 1.6; }

.input-wrap { margin-bottom: 12px; }
.email-input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.18s;
}
.email-input::placeholder { color: var(--text-2); opacity: 0.6; }
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,108,59,0.12); }

.gate-privacy { font-size: 12px; color: var(--text-2); opacity: 0.6; margin-top: 12px; }
.error-msg { color: var(--danger); font-size: 13px; margin-top: 10px; }

/* ─── RESULTS ──────────────────────────────────────────────────────────────── */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 48px;
}

.results-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.score-wrap {
  position: relative;
  flex-shrink: 0;
}
.score-ring { display: block; }
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 8;
}
.ring-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
}
.score-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.score-denom {
  font-size: 1rem;
  color: var(--text-2);
  margin-top: 6px;
  margin-left: 2px;
}

.tier-wrap { flex: 1; min-width: 200px; }
.tier-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.tier-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* Category bars */
.results-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 32px;
}
.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.cat-bar-row { margin-bottom: 18px; }
.cat-bar-row:last-child { margin-bottom: 0; }
.cat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.cat-score { font-weight: 700; color: var(--text); }
.cat-max { color: var(--text-2); font-weight: 400; }
.cat-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.cat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #F4A37E);
  border-radius: 999px;
}

/* Findings */
.finding-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.finding-item:last-child { border-bottom: none; padding-bottom: 0; }
.finding-item:first-child { padding-top: 0; }
.finding-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.finding-text { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* CTA card */
.cta-card {
  background: linear-gradient(135deg, rgba(217,108,59,0.14) 0%, rgba(217,108,59,0.05) 100%);
  border: 1px solid rgba(217,108,59,0.26);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  text-align: center;
}
.cta-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.cta-sub { color: var(--text-2); font-size: 14px; line-height: 1.65; margin-bottom: 24px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ─── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 14px var(--accent); }
}

.fade-in {
  animation: fadeIn 0.3s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .question-card { padding: 24px 18px; }
  .results-header { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
  .results-card { padding: 22px 18px; }
  .cta-card { padding: 28px 18px; }
  .gate-card { padding: 32px 22px; }
  .stepper { gap: 0; }
  .step-label { font-size: 10px; }
}
