:root {
  --bg: #061522;
  --bg-soft: #092033;
  --card: rgba(255, 255, 255, 0.92);
  --card-dark: rgba(9, 32, 51, 0.82);
  --text: #0d1b2a;
  --text-soft: #4b6175;
  --white: #ffffff;
  --muted: #d7e2ea;
  --primary: #19c37d;
  --primary-dark: #0fa968;
  --secondary: #2e7cf6;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(46, 124, 246, 0.28), transparent 38rem),
    radial-gradient(circle at top right, rgba(25, 195, 125, 0.24), transparent 35rem),
    linear-gradient(180deg, #061522 0%, #071c2c 50%, #04101b 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.noscript {
  padding: 1rem;
  background: #fef3c7;
  color: #7c2d12;
  text-align: center;
  font-weight: 700;
}

.background-glow {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.background-glow-one {
  top: 15%;
  left: -8rem;
  background: var(--secondary);
}

.background-glow-two {
  bottom: 8%;
  right: -10rem;
  background: var(--primary);
}

.site-header {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 18px 35px rgba(25, 195, 125, 0.22);
  font-weight: 900;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--white);
}

.hero,
.info-section,
.quiz-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #9be7c7;
  background: rgba(25, 195, 125, 0.12);
  border: 1px solid rgba(25, 195, 125, 0.25);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
  margin: 0;
}

.hero-actions,
.choice-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #04101b;
  background: linear-gradient(135deg, var(--primary), #80f2bf);
  box-shadow: 0 16px 36px rgba(25, 195, 125, 0.26);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #34d399, #a7f3d0);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-full {
  width: 100%;
}

.trust-line {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  color: #cfe9dd;
  font-weight: 700;
  font-size: 0.92rem;
}

.trust-line span {
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
}

.hero-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #bdebd8;
  font-weight: 800;
  margin-bottom: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(25, 195, 125, 0.12);
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  margin-right: 0.55rem;
}

.mini-result {
  margin-top: 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(25, 195, 125, 0.12);
  border: 1px solid rgba(25, 195, 125, 0.22);
  padding: 1rem;
}

.mini-result span,
.score-panel span,
.result-label {
  display: block;
  color: #9fb6c7;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-result strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.35;
}

.info-section {
  padding: 5rem 0;
}

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

.section-heading h2 {
  margin: 1rem 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.06rem;
}

.steps-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}

.step-card span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(25, 195, 125, 0.14);
  color: #9be7c7;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.step-card h3 {
  margin: 1rem 0 0.4rem;
}

.step-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.quiz-shell {
  padding: 2rem 0 5rem;
}

.quiz-card {
  margin: 0 auto;
  max-width: 860px;
  color: var(--text);
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.quiz-badge {
  display: inline-flex;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(25, 195, 125, 0.13);
  color: #047857;
  font-size: 0.82rem;
  font-weight: 900;
}

.quiz-intro h2,
.quiz-question h2,
.quiz-result h2 {
  color: var(--text);
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.quiz-intro p,
.question-content p,
.quiz-result p,
.lead-form p,
.result-box p {
  color: var(--text-soft);
  line-height: 1.65;
}

.notice-box {
  margin: 1.4rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #eef8f3;
  border: 1px solid #c9f2df;
  color: #14532d;
  line-height: 1.55;
}

.hidden {
  display: none !important;
}

.progress-wrap {
  margin-bottom: 1.6rem;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.progress-bar {
  height: 12px;
  background: #e7eef4;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: inherit;
  transition: width 0.22s ease;
}

.question-kicker {
  display: inline-block;
  color: var(--secondary);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.options-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.option-button {
  width: 100%;
  border: 1px solid #d9e4ec;
  background: var(--white);
  color: var(--text);
  text-align: left;
  padding: 1rem;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.8rem;
  align-items: start;
  box-shadow: 0 8px 26px rgba(13, 27, 42, 0.06);
}

.option-button:hover,
.option-button:focus-visible {
  border-color: rgba(25, 195, 125, 0.7);
  box-shadow: 0 12px 32px rgba(25, 195, 125, 0.12);
}

.option-letter {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #047857;
  background: #dcfce7;
  font-weight: 900;
}

.option-title {
  font-weight: 900;
}

.option-help {
  display: block;
  margin-top: 0.22rem;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.quiz-navigation .btn-secondary,
.quiz-navigation .btn-ghost {
  color: var(--text);
  border-color: #d9e4ec;
  background: #f8fafc;
}

.result-header {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid #d7eee5;
}

.result-label {
  color: #047857;
}

.score-panel {
  margin: 1rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.score-panel > div {
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #d9e4ec;
}

.score-panel strong {
  display: block;
  font-size: 1.4rem;
  color: var(--text);
  margin-top: 0.25rem;
}

.result-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0.8rem;
}

.result-box,
.choice-box,
.lead-form {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: #ffffff;
  border: 1px solid #d9e4ec;
}

.result-box h3,
.choice-box h3,
.lead-form h3 {
  margin: 0 0 0.7rem;
}

.result-box ul {
  padding-left: 1.2rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.choice-box {
  margin-top: 1rem;
  background: #071c2c;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}

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

.lead-form {
  margin-top: 1rem;
  background: #f8fafc;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.form-grid label {
  color: var(--text);
  font-weight: 900;
}

.form-grid label:first-child {
  grid-column: 1 / -1;
}

.form-grid input {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid #ccd9e3;
  border-radius: 14px;
  padding: 0.85rem 0.9rem;
  outline: none;
  background: var(--white);
}

.form-grid input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(46, 124, 246, 0.12);
}

.consent-line {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-soft);
  line-height: 1.5;
}

.consent-line input {
  margin-top: 0.22rem;
}

.form-feedback {
  min-height: 1.3rem;
  margin: 0.75rem 0 0;
  font-weight: 800;
}

.form-feedback.success {
  color: #047857;
}

.form-feedback.error {
  color: #b91c1c;
}

.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .hero,
  .steps-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .top-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header,
  .hero,
  .info-section,
  .quiz-shell,
  .site-footer {
    width: min(100% - 1rem, var(--max));
  }

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

  .hero-card,
  .quiz-card {
    border-radius: 22px;
  }

  .hero-actions,
  .choice-actions,
  .form-actions,
  .quiz-navigation {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-line {
    align-items: stretch;
    flex-direction: column;
  }

  .progress-top,
  .score-panel,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .progress-top {
    display: grid;
  }

  .form-grid label:first-child {
    grid-column: auto;
  }
}
