* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0b1f3a;
  --blue: #1f5fae;
  --light-blue: #edf5ff;
  --text: #172033;
  --muted: #667085;
  --white: #ffffff;
  --border: #e4e7ec;
  --background: #f8fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.logo span {
  color: var(--blue);
}

.nav-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-button {
  padding: 11px 19px;
}

.primary-button {
  padding: 15px 24px;
}

.nav-button:hover,
.primary-button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at 85% 15%, #dcecff 0, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  padding: 88px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.eyebrow,
.section-heading span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 15px;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(44px, 6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  max-width: 700px;
}

.hero-subtitle {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  max-width: 650px;
  margin: 25px 0 30px;
}

.small-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 22px 60px rgba(11, 31, 58, 0.1);
}

.hero-card h2 {
  color: var(--navy);
  font-size: 27px;
  line-height: 1.25;
  margin-bottom: 24px;
}

.benefit {
  padding: 19px 0;
  border-top: 1px solid var(--border);
}

.benefit strong {
  display: block;
  color: var(--navy);
  margin-bottom: 5px;
  font-size: 17px;
}

.benefit span {
  color: var(--muted);
  font-size: 15px;
}

/* HOW IT WORKS */

.how-it-works {
  padding: 90px 0;
  background: var(--white);
}

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(32px, 4vw, 45px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px;
  background: var(--white);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-blue);
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 21px;
}

.step h3 {
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
}

/* CTA */

.cta {
  padding: 90px 0;
  background: var(--navy);
  color: var(--white);
}

.cta-content {
  max-width: 760px;
  text-align: center;
}

.cta h2 {
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cta p {
  color: #cbd5e1;
  font-size: 18px;
  margin: 18px auto 28px;
}

/* FOOTER */

footer {
  background: #071426;
  color: #aeb9c8;
  padding: 38px 0;
}

.footer-content {
  text-align: center;
  font-size: 13px;
}

.footer-content strong {
  display: block;
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
}

.copyright {
  margin-top: 10px;
}

/* QUESTIONNAIRE MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 38, 0.72);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 30px;
  cursor: pointer;
}

.progress {
  width: calc(100% - 45px);
  height: 7px;
  background: #e9eef5;
  border-radius: 100px;
  overflow: hidden;
  margin: 5px 0 24px;
}

#progressBar {
  width: 0;
  height: 100%;
  background: var(--blue);
  border-radius: 100px;
  transition: width 0.25s ease;
}

.back-button {
  display: none;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 15px;
  padding: 0;
}

#question h2,
#question h3 {
  color: var(--navy);
  font-size: 29px;
  line-height: 1.25;
  margin-bottom: 8px;
}

#question p {
  color: var(--muted);
  margin-bottom: 23px;
}

#answers {
  display: grid;
  gap: 11px;
}

#answers button,
.answer-button {
  width: 100%;
  text-align: left;
  padding: 15px 17px;
  border: 1px solid #d8dee8;
  border-radius: 11px;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: border 0.15s ease, background 0.15s ease;
}

#answers button:hover,
.answer-button:hover {
  border-color: var(--blue);
  background: var(--light-blue);
}

#answers input,
#answers select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
}

#answers input:focus,
#answers select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 174, 0.1);
}

/* MOBILE */

@media (max-width: 800px) {
  .container {
    width: min(100% - 30px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  .logo {
    font-size: 17px;
  }

  .nav-button {
    padding: 9px 13px;
    font-size: 14px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-card {
    padding: 27px 23px;
  }

  .how-it-works {
    padding: 65px 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 65px 0;
  }

  .modal {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 12px 12px;
    padding: 27px 20px;
  }

  #question h2,
  #question h3 {
    font-size: 25px;
  }
}
