@font-face { font-family: Inter; src: url("assets/fonts/Inter-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/Inter-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/Inter-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("assets/fonts/Inter-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-400.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-500.ttf") format("truetype"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-600.ttf") format("truetype"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-700.ttf") format("truetype"); font-style: normal; font-weight: 700; font-display: swap; }

[hidden] { display: none !important; }

:root {
  --blue: #003dd2;
  --blue-hover: #002fa8;
  --dark-blue: #020c1c;
  --white: #ffffff;
  --soft-blue: #eaf0ff;
  --line: #dce3f2;
  --muted: #566274;
  color-scheme: light;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--white);
  color: var(--dark-blue);
  font-family: Inter, Arial, sans-serif;
}

button,
input,
select { font: inherit; }

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

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px 34px 34px;
  background:
    linear-gradient(90deg, rgb(0 61 210 / 4%) 1px, transparent 1px),
    linear-gradient(rgb(0 61 210 / 4%) 1px, transparent 1px),
    var(--white);
  background-size: 48px 48px;
}

.hero::before {
  position: absolute;
  top: -180px;
  left: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgb(0 61 210 / 12%);
  border-radius: 50%;
  content: "";
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1440px, 100%);
  margin: auto;
  flex-direction: column;
}

.brand-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.brand-lockup img {
  display: block;
  width: clamp(245px, 24vw, 370px);
  height: auto;
}

.brand-lockup span,
.quiz-brand span {
  color: var(--blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: var(--dark-blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-kicker span {
  color: var(--blue);
  font-size: 12px;
}

.hero-grid {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, .91fr) minmax(520px, 1.09fr);
  align-items: stretch;
  gap: clamp(40px, 5vw, 84px);
  padding-top: 38px;
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0 12px;
}

.eyebrow {
  align-self: flex-start;
  margin: 0 0 16px;
  padding: 8px 12px;
  color: var(--white);
  background: var(--blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: clamp(42px, 3.75vw, 60px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.headline-line { display: block; }

.headline-focus {
  position: relative;
  color: var(--dark-blue);
}

.headline-focus::after {
  position: absolute;
  right: auto;
  bottom: -2px;
  left: 0;
  width: 96px;
  height: 5px;
  background: var(--blue);
  content: "";
}

.hero-lead {
  max-width: 670px;
  margin: 17px 0 0;
  color: var(--dark-blue);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.42;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 70px;
  height: 140px;
  margin: 18px 0 0;
  border-top: 1px solid var(--blue);
  border-left: 1px solid var(--line);
}

.hero-stat {
  min-height: 0;
  padding: 12px 14px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--dark-blue);
}

.hero-stat strong,
.hero-stat span { display: block; }

.hero-stat strong {
  color: var(--blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-stat span {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.25;
}

.hero-stat-primary {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.hero-stat-primary strong { color: var(--white); }

.stats-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.hero-action-row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.hero-action-row p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-cta {
  display: inline-flex;
  flex: 0 0 auto;
  width: 100%;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 24px;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  box-shadow: 0 16px 32px rgb(0 61 210 / 23%);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hero-cta span { font-size: 24px; font-weight: 400; }

.hero-cta:hover,
.hero-cta:focus-visible,
.answer-button:hover,
.answer-button:focus-visible,
.submit-button.active:hover,
.submit-button.active:focus-visible { background: var(--blue-hover); }

.hero-cta:active,
.answer-button:active { transform: translateY(1px); }

.hero-cta:hover,
.hero-cta:focus-visible { box-shadow: 0 20px 38px rgb(0 47 168 / 30%); }

.hero-visual {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
  background: var(--dark-blue);
  box-shadow: 0 24px 70px rgb(2 12 28 / 16%);
}

.visual-label,
.visual-footer {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--white);
  background: var(--dark-blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-weight: 600;
  letter-spacing: .035em;
}

.visual-label {
  padding: 16px 20px;
  font-size: 14px;
}

.hero-visual > img {
  display: block;
  width: 100%;
  height: 0;
  min-height: 480px;
  flex: 1 1 auto;
  object-fit: cover;
  object-position: 50% 50%;
}

.visual-footer {
  min-height: 48px;
  padding: 15px 20px;
  border-top: 1px solid rgb(255 255 255 / 20%);
  font-size: 13px;
}

.visual-footer span:last-child {
  position: absolute;
  top: 15px;
  right: 20px;
}

.brand-stack {
  position: absolute;
  right: auto;
  bottom: 38px;
  left: -74px;
  z-index: 3;
  display: grid;
  width: 250px;
  gap: 8px;
  transform: skewY(-22deg);
  pointer-events: none;
}

.brand-stack i {
  display: block;
  height: 24px;
  background: linear-gradient(90deg, #3f77ff, var(--blue));
}

.quiz-page {
  min-height: 100svh;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgb(0 61 210 / 45%), transparent 35%),
    var(--dark-blue);
}

.quiz-card {
  position: relative;
  min-height: calc(100svh - 56px);
  overflow: hidden;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 20px 80px rgb(0 0 0 / 24%);
}

.quiz-card::after {
  position: absolute;
  right: -85px;
  bottom: -115px;
  width: 270px;
  height: 270px;
  border: 42px solid var(--soft-blue);
  transform: rotate(45deg);
  content: "";
  pointer-events: none;
}

.quiz-inner {
  position: relative;
  z-index: 1;
  width: min(660px, calc(100% - 48px));
  margin: 30px auto 90px;
}

.quiz-brand {
  display: flex;
  margin-bottom: 26px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.quiz-brand img {
  display: block;
  width: min(290px, 74vw);
  height: auto;
}

.progress {
  height: 6px;
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: 0;
  background: var(--soft-blue);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--blue);
  transition: width 350ms ease;
}

.step { animation: enter-step 420ms ease both; }

@keyframes enter-step {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}

.step h2 {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.question-description {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.48;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 20px;
  border: 1px solid var(--blue);
  border-radius: 0;
  color: var(--blue);
  background: var(--white);
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.answer-button:hover,
.answer-button:focus-visible { color: var(--white); }

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.lead-form h2,
.lead-form .question-description { margin-bottom: 4px; }

.text-input,
.phone-field {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--dark-blue);
  background: #f8faff;
  font-size: 18px;
}

.text-input {
  padding: 12px 14px;
  outline: none;
}

.text-input:focus,
.phone-field:focus-within {
  border-color: var(--blue);
  background: var(--white);
}

.text-input::placeholder,
.phone-field input::placeholder { color: #8b95a5; }

.phone-field {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.phone-field.invalid { border-color: #c43b3b; }

.country-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px 0 12px;
  cursor: pointer;
  white-space: nowrap;
}

.country-fixed {
  padding-right: 12px;
  cursor: default;
}

.country-select.country-fixed::after { content: none; }

.country-select select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.country-select b {
  font-size: 17px;
  font-weight: 500;
}

.country-select::after {
  margin-left: 1px;
  color: var(--muted);
  content: "⌄";
}

.phone-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--dark-blue);
  background: transparent;
  font-size: 18px;
}

.submit-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  color: #7b8491;
  background: #e8ecf4;
  cursor: default;
  font-family: "JetBrains Mono", "DejaVu Sans Mono", monospace;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
}

.submit-button:not(:disabled),
.submit-button.active {
  color: var(--white);
  background: var(--blue);
  cursor: pointer;
}

.thanks { padding-top: 12px; }
.thanks .submit-button { margin-top: 10px; }

.back-button,
.close-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--dark-blue);
  background: var(--white);
  cursor: pointer;
}

.back-button {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0 0 5px;
  font-family: Arial, sans-serif;
  font-size: 44px;
  line-height: 1;
}

.close-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  font-size: 27px;
  line-height: 1;
}

.back-button:hover,
.close-button:hover {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr);
    gap: 38px;
  }

  .hero h1 { font-size: clamp(42px, 5vw, 62px); }
  .hero-action-row p { max-width: 430px; }
}

@media (max-width: 850px) {
  .hero { padding: 24px; }
  .brand-header { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding-top: 8px; }
  .hero h1 { max-width: 700px; font-size: clamp(42px, 8.5vw, 66px); }
  .hero-visual { min-height: 540px; }
}

@media (max-width: 600px) {
  .hero { padding: 18px; }
  .brand-header { gap: 18px; padding-bottom: 18px; }
  .brand-lockup img { width: 210px; }
  .brand-lockup span { max-width: 210px; font-size: 8px; }
  .hero-kicker { max-width: 120px; font-size: 11px; text-align: right; }
  .hero-grid { gap: 28px; padding-top: 26px; }
  .eyebrow { margin-bottom: 17px; font-size: 11px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); letter-spacing: -.07em; }
  .hero-lead { margin-top: 18px; font-size: 17px; }
  .hero-stats { margin-top: 18px; }
  .hero-stats { grid-auto-rows: 66px; height: 132px; }
  .hero-stat { min-height: 0; padding: 11px 12px 9px; }
  .hero-stat strong { font-size: 15px; }
  .hero-stat span { font-size: 11px; }
  .stats-note { font-size: 9px; }
  .hero-action-row { margin-top: 24px; }
  .hero-cta { width: 100%; }
  .hero-visual { min-height: 430px; }
  .hero-visual > img { min-height: 350px; object-position: 62% 50%; }
  .visual-label { padding: 13px 14px; font-size: 11px; }
  .visual-footer { padding: 13px 14px; flex-direction: column; gap: 5px; font-size: 10px; }
  .brand-stack { right: auto; left: -100px; width: 230px; }
  .quiz-page { padding: 12px; }
  .quiz-card { min-height: calc(100svh - 24px); }
  .quiz-inner { width: calc(100% - 34px); margin-top: 20px; }
  .quiz-brand { margin-bottom: 20px; }
  .quiz-brand img { width: 230px; }
  .quiz-brand span { font-size: 8px; }
  .step h2 { padding-right: 30px; font-size: 24px; }
  .question-description,
  .text-input,
  .phone-field,
  .phone-field input,
  .submit-button { font-size: 16px; }
  .answer-button { padding: 12px 14px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
