*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --navy: #071b52;
  --navy-2: #13295e;
  --blue: #1677e8;
  --blue-2: #268df2;
  --cyan: #20d7e7;
  --pale-blue: #eaf5ff;
  --border: #b9d6ee;
  --muted: #66779b;
  --white: #ffffff;
  --page: #f7fbff;
  --shadow: 0 12px 35px rgba(34, 93, 151, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--navy);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  height: 100%;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 438px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dff3ff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(247, 252, 255, 0.78), rgba(185, 236, 255, 0.48)),
    url("../picture/header-bg.jpg") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 960px);
  padding: 28px 0 34px;
  text-align: center;
  color: #050505;
}

.hero__robot {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(22, 119, 232, 0.16);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.hero p {
  margin: 5px 0;
  font-size: clamp(18px, 2.3vw, 25px);
  font-weight: 700;
}

.hero__lead {
  margin-top: 0 !important;
}

.hero__description {
  margin-top: 20px !important;
  font-size: clamp(16px, 2vw, 21px) !important;
  line-height: 1.45;
}

.hero__tagline {
  margin-top: 18px !important;
}

main {
  width: 100%;
}

.section-shell {
  width: calc(100% - 40px);
  max-width: 1320px;
  margin: 14px auto;
  border-radius: 18px;
}

.quiz-section {
  padding: 38px 16px 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.quiz-header {
  padding: 0 12px 20px;
}

.step-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e4f1ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.quiz-header h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  color: #101010;
}

.quiz-header p {
  margin: 0;
  color: #171717;
  font-size: 17px;
  font-weight: 600;
}

.question {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.answer-list {
  display: grid;
  gap: 10px;
}

.answer-list--six,
.answer-list--four {
  grid-template-columns: 1fr;
}

.answer {
  min-width: 0;
  min-height: 108px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 16px;
  text-align: left;
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.answer:hover,
.answer:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: var(--blue-2);
  box-shadow: 0 8px 20px rgba(22, 119, 232, 0.12);
}

.answer:active {
  transform: scale(0.99);
}

.answer__letter {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcecff;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
}

.answer__copy {
  min-width: 0;
  padding-top: 1px;
}

.answer__copy strong,
.answer__copy small {
  display: block;
}

.answer__copy strong {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.25;
}

.answer__copy small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.stats-section {
  padding: 21px 14px 17px;
  background: linear-gradient(180deg, #f5faff, #edf7ff);
}

.section-title {
  margin: 0 10px 18px;
  color: var(--navy);
  font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.3;
  font-weight: 800;
}

.stats-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 28px;
  height: 23px;
  margin-right: 7px;
  vertical-align: -3px;
}

.stats-icon i {
  display: block;
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
}

.stats-icon i:nth-child(1) { height: 9px; }
.stats-icon i:nth-child(2) { height: 15px; }
.stats-icon i:nth-child(3) { height: 23px; }

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

.stat-card {
  min-height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #dceaf5;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(31, 100, 160, 0.04);
}

.stat-card strong {
  color: var(--blue);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1;
}

.stat-card span {
  margin-top: 8px;
  color: #5f7196;
  font-size: 15px;
  font-weight: 600;
}

.benefits-section {
  padding: 19px 14px 17px;
  background: linear-gradient(180deg, #f6fbff, #edf7ff);
}

.section-title--center {
  text-align: center;
  margin-bottom: 17px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.benefit-card {
  min-height: 151px;
  padding: 17px 16px;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid #dceaf5;
  border-radius: 10px;
}

.benefit-card h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.benefit-card p {
  margin: 0;
  color: #60739a;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.risk-section {
  margin-bottom: 25px;
  padding: 16px 18px 17px;
  text-align: center;
  background: #f2f7fc;
}

.risk-section h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 18px;
}

.risk-section h2 span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 7px;
  border-radius: 50%;
  background: #60789f;
  color: #fff;
  font-size: 18px;
}

.risk-section p {
  max-width: 850px;
  margin: 0 auto;
  color: #657698;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 26, 67, 0.34);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  overflow: hidden;
  border: 2px solid rgba(120, 174, 229, 0.8);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 15%, rgba(80, 208, 247, 0.15), transparent 29%),
    linear-gradient(145deg, #ffffff 18%, #f2f9ff 100%);
  box-shadow: 0 25px 70px rgba(11, 57, 107, 0.2);
  text-align: center;
  animation: modal-in 0.25s ease both;
}

.modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(160deg, transparent 45%, rgba(170, 221, 255, 0.22) 46%, transparent 72%);
}

.modal-card--analysis {
  padding: 46px 52px 48px;
}

.modal-card--result {
  width: min(100%, 790px);
  padding: 28px 42px 35px;
}

.analysis-ring {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(from -35deg, var(--blue), var(--cyan), #dff2ff 65%, var(--blue));
  animation: spin 1.6s linear infinite;
}

.analysis-ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #f7fbff;
}

.analysis-ring span {
  position: absolute;
  inset: 27px;
  z-index: 1;
  border-radius: 50%;
  background: #edf7ff;
}

.modal-card h2 {
  position: relative;
  margin: 0;
  color: var(--navy);
  font-size: clamp(31px, 4.4vw, 45px);
  line-height: 1.12;
}

.modal-subtitle {
  position: relative;
  margin: 12px 0 32px;
  color: #4d6288;
  font-size: clamp(19px, 2.8vw, 28px);
  line-height: 1.25;
}

.analysis-box,
.result-box {
  position: relative;
  text-align: left;
  background: rgba(235, 246, 255, 0.72);
  border-radius: 20px;
  border: 1px solid rgba(216, 235, 249, 0.8);
}

.analysis-box {
  padding: 26px 35px;
}

.analysis-box h3,
.result-box h3 {
  margin: 0 0 13px;
  color: var(--navy);
  font-size: 24px;
}

.analysis-box ul,
.result-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.analysis-box li,
.result-box li {
  position: relative;
  padding-left: 58px;
  color: #17315e;
  font-size: 21px;
  line-height: 1.85;
}

.analysis-box li::before,
.result-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.23em;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3298ff, #1579e7);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.analysis-status {
  position: relative;
  margin: 34px 0 16px;
  color: var(--blue);
  font-size: 21px;
  font-weight: 800;
}

.progress-track {
  position: relative;
  width: min(100%, 620px);
  height: 19px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe8f3;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2587f1, #25d8e4);
  transition: width 0.12s linear;
}

.result-icon {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 37%, #eaf7f3 38%, #a8efcc 58%, rgba(80, 215, 180, 0.06) 59%);
}

.result-icon::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 7px solid #29d4b1;
  border-radius: 50%;
}

.result-icon span {
  position: relative;
  z-index: 1;
  color: #13a866;
  font-size: 48px;
  font-weight: 900;
}

.result-card h2 {
  font-size: 40px;
}

.modal-card--result .modal-subtitle {
  margin-bottom: 13px;
}

.result-intro {
  max-width: 650px;
  margin: 0 auto 24px;
  color: #506486;
  font-size: 18px;
  line-height: 1.55;
}

.result-box {
  padding: 19px 25px;
  margin-bottom: 24px;
}

.result-box h3 {
  font-size: 21px;
}

.result-box li {
  padding-left: 45px;
  font-size: 17px;
  line-height: 1.9;
}

.result-box li::before {
  width: 27px;
  height: 27px;
  font-size: 16px;
  top: 0.34em;
}

.whatsapp-button {
  position: relative;
  display: block;
  width: min(100%, 650px);
  margin: 0 auto;
  padding: 16px 25px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3c92f7, #2f85f0);
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(47, 133, 240, 0.22);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  filter: brightness(1.04);
  transform: translateY(-1px);
  outline: none;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

  .hero__content {
    width: min(100% - 28px, 680px);
    padding-top: 22px;
  }

  .hero__robot {
    width: 60px;
    height: 60px;
  }

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

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

  .hero__description {
    font-size: 15px !important;
  }

  .section-shell {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 14px;
  }

  .quiz-section {
    padding: 25px 10px 25px;
  }

  .quiz-header {
    padding: 0 7px 16px;
  }

  .quiz-header h2 {
    font-size: 22px;
  }

  .quiz-header p {
    font-size: 15px;
  }

  .answer-list--six,
  .answer-list--four {
    grid-template-columns: 1fr;
  }

  .answer {
    min-height: 88px;
    padding: 13px 13px;
    gap: 12px;
  }

  .answer__letter {
    flex-basis: 43px;
    width: 43px;
    height: 43px;
    font-size: 18px;
  }

  .answer__copy strong {
    font-size: 15px;
  }

  .answer__copy small {
    font-size: 13px;
  }

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

  .stat-card {
    min-height: 100px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-card {
    min-height: 145px;
    padding: 14px 12px;
  }

  .benefit-card h3 {
    font-size: 15px;
  }

  .benefit-card p {
    font-size: 13px;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    border-radius: 22px;
  }

  .modal-card--analysis,
  .modal-card--result {
    padding: 30px 18px 25px;
  }

  .analysis-ring {
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
  }

  .analysis-ring::after {
    inset: 10px;
  }

  .analysis-ring span {
    inset: 21px;
  }

  .modal-card h2 {
    font-size: 28px;
  }

  .modal-subtitle {
    margin: 8px 0 22px;
    font-size: 19px;
  }

  .analysis-box {
    padding: 19px 16px;
    border-radius: 15px;
  }

  .analysis-box h3,
  .result-box h3 {
    font-size: 19px;
  }

  .analysis-box li {
    padding-left: 42px;
    font-size: 16px;
    line-height: 1.7;
  }

  .analysis-box li::before {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }

  .analysis-status {
    margin: 23px 0 12px;
    font-size: 16px;
  }

  .progress-track {
    height: 14px;
  }

  .result-icon {
    width: 82px;
    height: 82px;
    margin-bottom: 12px;
  }

  .result-icon::before {
    inset: 13px;
    border-width: 5px;
  }

  .result-icon span {
    font-size: 34px;
  }

  .modal-card--result .modal-subtitle {
    margin-bottom: 10px;
  }

  .result-intro {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .result-box {
    padding: 15px 14px;
    margin-bottom: 17px;
    border-radius: 15px;
  }

  .result-box li {
    padding-left: 37px;
    font-size: 14px;
    line-height: 1.7;
  }

  .result-box li::before {
    width: 24px;
    height: 24px;
    font-size: 14px;
    top: 0.26em;
  }

  .whatsapp-button {
    padding: 14px 16px;
    font-size: 15px;
  }

  .risk-section {
    padding: 14px 12px;
  }

  .risk-section p {
    font-size: 12px;
  }

  .desktop-only {
    display: none;
  }
}

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

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

  .hero p {
    font-size: 16px;
  }

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

  .benefit-card {
    min-height: auto;
  }

  .answer {
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* Quiz transition states */
.question {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.question.question--active {
  opacity: 1;
  transform: translateY(0);
}

.answer--selected {
  border-color: var(--blue-2);
  background: #eef8ff;
  box-shadow: 0 8px 24px rgba(22, 119, 232, 0.14);
}

/* Modal transition states */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal:not([hidden]) .modal-card {
  animation: modal-in 0.42s cubic-bezier(.2,.75,.25,1) both;
}

.modal:not([hidden]) .modal__backdrop {
  animation: backdrop-in 0.35s ease both;
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 761px) {
  .answer {
    min-height: 96px;
  }

  .answer-list {
    gap: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .question {
    transition: none;
  }

  .modal,
  .modal:not([hidden]) .modal-card,
  .modal:not([hidden]) .modal__backdrop {
    animation: none;
    transition: none;
  }
}


.analysis-box li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.analysis-box li.analysis-item--visible {
  opacity: 1;
  transform: translateX(0);
}
