:root {
  color-scheme: light;
  --ink: #101114;
  --paper: #f6f6f3;
  --muted: #6e7277;
  --line: #d9d9d5;
  --charcoal: #050607;
  --brand-red: #e12632;
  --steel: #c7ccd1;
  --signal-yellow: #ffcf33;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(5, 6, 7, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: stretch;
  background: var(--charcoal);
  color: var(--white);
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.82) 42%, rgba(5, 6, 7, 0.28) 100%),
    url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero__overlay {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(0deg, rgba(5, 6, 7, 0.9), transparent);
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand__mark {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-red);
  color: var(--ink);
  font-weight: 950;
}

.topbar__cta {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--white);
  backdrop-filter: blur(10px);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 84px 0 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: 46px;
  align-items: end;
}

.hero__copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin: 0 0 12px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-kicker {
  color: var(--brand-red);
}

.hero h1,
.proof-band h2,
.section-heading h2,
.diagnostic-copy h2,
.result-card h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(4.2rem, 11vw, 9.8rem);
  font-weight: 950;
}

.hero__lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero__actions,
.quiz__actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  border: 0;
  border-radius: 6px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.option-card:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(225, 38, 50, 0.36);
  outline-offset: 3px;
}

.button--primary {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(225, 38, 50, 0.25);
}

.button--secondary {
  background: var(--ink);
  color: var(--white);
}

.button--ghost,
.button--ghost-dark {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.button--ghost-dark {
  border-color: var(--line);
  color: var(--ink);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.signal-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.signal-panel__row {
  padding: 22px;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-panel__row:last-child {
  border-bottom: 0;
}

.signal-panel__row strong {
  color: var(--brand-red);
  font-size: 1.45rem;
  line-height: 1;
}

.signal-panel__row span {
  color: rgba(255, 255, 255, 0.78);
}

.proof-band {
  background: var(--brand-red);
  color: var(--white);
}

.proof-band__inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.proof-band .section-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.proof-band h2,
.section-heading h2,
.diagnostic-copy h2,
.result-card h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
}

.proof-band p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 650;
}

.content-strip,
.diagnostic-section,
.result-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.content-strip {
  padding: 82px 0 52px;
}

.section-heading {
  max-width: 760px;
}

.video-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.video-tile__poster {
  min-height: 230px;
  display: flex;
  align-items: end;
  padding: 18px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 25% 20%, rgba(225, 38, 50, 0.62), transparent 28%),
    linear-gradient(135deg, #070809, #2e3034);
}

.video-tile__poster--two {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 72% 24%, rgba(199, 204, 209, 0.68), transparent 30%),
    linear-gradient(135deg, #070809, #24272c);
}

.video-tile__poster--three {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 30% 30%, rgba(255, 104, 77, 0.72), transparent 30%),
    linear-gradient(135deg, #20211d, #493d35);
}

.video-tile__poster span {
  font-size: 1.55rem;
  font-weight: 950;
}

.video-tile__body {
  padding: 18px;
}

.video-tile__body strong {
  display: block;
  font-size: 1.05rem;
}

.video-tile__body p {
  margin: 8px 0 0;
  color: var(--muted);
}

.diagnostic-section {
  padding: 52px 0 88px;
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.diagnostic-copy {
  position: sticky;
  top: 24px;
}

.diagnostic-copy p {
  color: var(--muted);
  font-size: 1.1rem;
}

.check-list {
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-red);
  flex: 0 0 auto;
}

.quiz-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 24px;
}

.quiz-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.quiz-progress span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.quiz-progress__track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9dc;
}

.quiz-progress__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-red), var(--signal-yellow));
  transition: width 220ms ease;
}

.question-block {
  display: grid;
  gap: 18px;
}

.question-block h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.question-block p {
  margin: 0;
  color: var(--muted);
}

.option-grid {
  display: grid;
  gap: 10px;
}

.option-card {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.option-card:hover {
  border-color: rgba(225, 38, 50, 0.55);
  transform: translateY(-1px);
}

.option-card.is-selected {
  border-color: var(--brand-red);
  background: rgba(225, 38, 50, 0.1);
}

.option-card__dot {
  width: 18px;
  height: 18px;
  border: 2px solid #bdb9aa;
  border-radius: 50%;
}

.option-card.is-selected .option-card__dot {
  border-color: var(--brand-red);
  box-shadow: inset 0 0 0 4px var(--white);
  background: var(--brand-red);
}

.input-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffefa;
  color: var(--ink);
  padding: 14px;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-section {
  padding: 0 0 90px;
}

.result-card {
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(24px, 5vw, 52px);
  box-shadow: var(--shadow);
}

.result-card .section-kicker,
.result-card .mini-label {
  color: var(--brand-red);
}

.result-card__grid {
  margin: 28px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card__grid > div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
}

.result-card__grid strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
}

#profileText {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__image {
    background-image:
      linear-gradient(180deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.72) 48%, rgba(5, 6, 7, 0.96) 100%),
      url("https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1100&q=82");
  }

  .hero__content,
  .proof-band__inner,
  .diagnostic-section {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding-top: 58px;
  }

  .signal-panel {
    max-width: none;
  }

  .video-grid,
  .result-card__grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-copy {
    position: static;
  }
}

@media (max-width: 620px) {
  .topbar {
    height: 68px;
    width: min(100% - 28px, 1180px);
  }

  .topbar__cta {
    display: none;
  }

  .hero__content,
  .proof-band__inner,
  .content-strip,
  .diagnostic-section,
  .result-section {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: 4.15rem;
  }

  .hero__lead {
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
  }

  .quiz-shell {
    padding: 18px;
  }

  .quiz__actions {
    flex-direction: column-reverse;
  }
}
