:root {
  --navy-950: #020a18;
  --navy-900: #061a3a;
  --navy-800: #0b2e66;
  --green: #7cff3a;
  --silver: #c8d0da;
  --paper: #f3f5f8;
  --white: #ffffff;
  --muted: #7d8aa0;
  --danger: #ffcf5a;
  --line: rgba(200, 208, 218, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: Inter, Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.quiz-app {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(2, 10, 24, 0.72), rgba(2, 10, 24, 1)),
    url("../assets/feature-graphic-1024x500.png") top center / cover no-repeat;
}

.intro-screen,
.quiz-screen,
.result-screen {
  display: none;
  min-height: 100vh;
  padding: 22px;
}

.intro-screen.is-active,
.quiz-screen.is-active,
.result-screen.is-active {
  display: grid;
}

.intro-screen {
  align-content: end;
  gap: 28px;
}

.hero-art {
  position: relative;
  width: min(270px, 70vw);
  margin: 46px auto 0;
}

.hero-art img {
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(124, 255, 58, 0.22);
}

.signal-card {
  position: absolute;
  right: 0;
  bottom: -14px;
  min-width: 148px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.signal-card span,
.eyebrow,
.round-label {
  color: var(--green);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.signal-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.intro-copy {
  max-width: 620px;
  margin: 0 auto;
  padding-bottom: 28px;
}

h1,
h2 {
  margin: 0;
  font-family: Poppins, Inter, Arial, sans-serif;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 12vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 8vw, 3.8rem);
}

p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.primary-button,
.ghost-button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  font: 900 1rem Inter, Arial, sans-serif;
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: var(--green);
  color: var(--navy-950);
  text-decoration: none;
}

.ghost-button {
  margin-top: 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.ghost-link {
  display: block;
  margin-top: 18px;
  color: var(--silver);
  text-align: center;
  font-weight: 800;
  text-decoration: none;
}

.quiz-screen {
  align-content: start;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
}

.mini-brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--navy-950);
  font-weight: 900;
}

.score-pill small {
  font-size: 0.72rem;
}

.progress-wrap {
  margin-bottom: 22px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  color: var(--silver);
  font-weight: 800;
  font-size: 0.86rem;
}

.progress-track {
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #ffffff);
  transition: width 260ms ease;
}

.question-card,
.result-card {
  padding: clamp(22px, 6vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 26, 58, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.question-card p {
  margin-bottom: 22px;
}

.answers {
  display: grid;
  gap: 12px;
}

.answer-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  cursor: pointer;
}

.answer-button:hover,
.answer-button:focus {
  outline: 2px solid rgba(124, 255, 58, 0.65);
}

.answer-key {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(124, 255, 58, 0.14);
  color: var(--green);
  font-weight: 900;
}

.answer-text {
  font-weight: 850;
}

.answer-points {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 900;
}

.result-screen {
  align-content: center;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.result-score {
  display: grid;
  gap: 4px;
  margin: 24px 0;
  padding: 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-900);
}

.result-score span {
  font-size: 3rem;
  font-weight: 950;
  line-height: 1;
}

.result-score small {
  color: #546174;
  font-weight: 800;
}

.insight-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.insight {
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--silver);
  font-weight: 700;
}

.playstore-button {
  min-height: 62px;
}

.fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (min-width: 820px) {
  .intro-screen {
    grid-template-columns: 0.8fr 1fr;
    align-items: center;
    padding: 56px;
  }

  .intro-copy {
    padding-bottom: 0;
  }

  .hero-art {
    width: 340px;
  }

  .hero-art img {
    width: 210px;
    height: 210px;
  }
}
