:root {
  --bg: #020303;
  --white: #f4f4f4;
  --muted: rgba(255,255,255,.68);
  --soft: rgba(255,255,255,.44);
  --line: rgba(255,255,255,.18);
  --line-strong: rgba(255,255,255,.58);
  --container: 1180px;
  --letter: .34em;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; background: #000; position: relative; }
.container { width: min(var(--container), calc(100vw - 48px)); margin: 0 auto; }

.header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px min(8vw, 120px);
  pointer-events: none;
}
.logo,
.nav a {
  pointer-events: auto;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .42em;
  color: rgba(255,255,255,.82);
}
.logo { font-weight: 600; }
.nav { display: flex; gap: 34px; }
.nav a { transition: color .2s ease; }
.nav a:hover { color: #fff; }


.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('./assets/main.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(.72) contrast(1.12);
  transform: scale(1.01);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 49% 40%, rgba(56,109,145,.16), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.44) 38%, rgba(0,0,0,.84) 100%),
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.10) 55%, #000 95%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 34vh;
  padding-bottom: 180px;
}
.eyebrow,
.section-label,
.quiz-step,
.quiz-title,
.result-status,
.footer {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: .42em;
  font-size: 12px;
  line-height: 1.4;
}
.hero h1,
.mission h2,
.quiz-question,
.result h2 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: var(--letter);
  font-weight: 500;
  line-height: 1.28;
}
.hero h1 { margin-top: 22px; font-size: clamp(34px, 4.2vw, 64px); max-width: 720px; }
.hero-text {
  max-width: 610px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 24px 0 0;
}
.hero-actions { display: flex; gap: 16px; margin-top: 34px; }
.btn {
  min-width: 155px;
  border: 1px solid var(--line-strong);
  padding: 17px 28px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .38em;
  font-size: 11px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--white); color: #050505; border-color: var(--white); }
.btn-ghost { background: rgba(0,0,0,.22); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.mission {
  background: #000;
  padding: 76px 0 116px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mission-inner { max-width: 1040px; }
.mission h2 { margin-top: 22px; font-size: clamp(25px, 3.1vw, 44px); }
.mission-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.mission p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 28px;
}
.mission-btn { margin-top: 10px; }

.quiz-inline,
.result-inline {
  background: #000;
  min-height: 560px;
}
.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.progress {
  height: 1px;
  width: 100%;
  margin: 42px 0 64px;
  background: rgba(255,255,255,.18);
}
.progress span { display: block; height: 1px; width: 20%; background: rgba(255,255,255,.9); transition: width .24s ease; }
.quiz-question {
  max-width: 1040px;
  min-height: 118px;
  font-size: clamp(28px, 3.45vw, 56px);
}
.answers { margin-top: 48px; display: grid; gap: 16px; }
.answer {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.answer:hover { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.035); transform: translateX(3px); }
.answer-letter {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  text-transform: uppercase;
}
.answer-text { font-size: 17px; letter-spacing: .18em; line-height: 1.5; }
.back-link {
  margin-top: 48px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: 12px;
  padding: 0;
}
.back-link:hover { color: #fff; }

.result-inline { text-align: center; }
.result-inline h2 { margin: 24px 0 0; text-transform: uppercase; letter-spacing: var(--letter); font-weight: 500; line-height: 1.28; font-size: clamp(36px, 4.5vw, 72px); }
.result-inline p:not(.result-status) {
  max-width: 820px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.result-cards {
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 760px;
}
.result-card {
  border: 1px solid var(--line);
  padding: 20px 10px 22px;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.result-card span:first-child { color: var(--soft); text-transform: uppercase; letter-spacing: .28em; font-size: 11px; }
.result-card span:last-child { font-size: 23px; }
.result-actions { display: flex; gap: 20px; justify-content: center; margin-top: 56px; }

.footer {
  /* position: fixed; */
  max-width: 1240px;
  margin: 0 auto;
  z-index: 20;
  bottom: 24px;
  left: min(8vw, 120px);
  right: min(8vw, 120px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

@media (max-width: 900px) {
  .header { padding: 22px 24px; }
  .nav { gap: 16px; }
  .nav a { font-size: 10px; letter-spacing: .24em; }
  .hero-content { padding-top: 26vh; }
  .mission-grid { grid-template-columns: 1fr; gap: 24px; }
  .quiz-head { align-items: flex-start; flex-direction: column; }
  .result-cards { grid-template-columns: repeat(2, 1fr); }
  .result-actions, .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer { position: static; padding: 24px; gap: 14px; flex-direction: column; }
}

@media (max-width: 560px) {
  :root { --letter: .22em; }
  .container { width: min(100% - 28px, var(--container)); }
  .nav { display: none; }
  .hero-content { padding-top: 22vh; }
  .hero h1 { font-size: 32px; }
  .quiz-question { min-height: auto; font-size: 28px; }
  .answer { padding: 16px; gap: 14px; }
  .answer-text { font-size: 14px; letter-spacing: .1em; }
  .result-cards { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }
.mission.is-quiz-mode { padding-top: 128px; min-height: 100vh; }
.mission.is-result-mode { padding-top: 150px; min-height: 100vh; display: flex; align-items: center; }
