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

:root {
  --bg:         #f4f9fb;
  --bg-soft:    #e9f3f6;
  --navy:       #16354f;
  --navy-deep:  #0e2439;
  --teal:       #0d9488;
  --teal-mid:   #14b8a6;
  --teal-light: #5eead4;
  --white:      #ffffff;
  --text-body:  #435264;
  --muted:      #6b7d8f;
  --muted-dim:  #93a3b3;
  --card-bg:    #ffffff;
  --card-bg-2:  #f3f9fa;
  --card-border: rgba(20,150,140,.18);
  --card-border-strong: rgba(13,148,136,.55);
  --danger:     #c2695f;
  --radius-md:  14px;
  --radius-lg:  22px;
  --maxw:       720px;
  --shadow-soft: 0 8px 30px rgba(22,53,79,.07);
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Barlow', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { min-height: 100%; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button { font-family: inherit; }

.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;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ BACKGROUND LAYER ============ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 85% 5%, rgba(20,184,166,.14) 0%, transparent 65%),
    radial-gradient(ellipse 60% 65% at 4% 95%, rgba(22,53,79,.08) 0%, transparent 60%),
    var(--bg);
}
canvas#particles { position: absolute; inset: 0; }

.dna-wrap {
  position: absolute;
  right: -60px;
  top: 8%;
  width: min(48vw, 420px);
  opacity: .5;
}
@media (max-width: 640px) {
  .dna-wrap { opacity: .28; right: -90px; width: 78vw; top: 2%; }
}

/* ============ HEADER ============ */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 22px 20px 4px;
}
.logo { display: flex; align-items: center; gap: 10px; max-width: var(--maxw); width: 100%; }
.logo-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: 30%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 19px;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,148,136,.28);
}
.logo-text { line-height: 1.1; }
.logo-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 1.6px;
}
.logo-name .n { color: var(--navy); }
.logo-name .t { color: var(--teal); }
.logo-sub {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ LAYOUT ============ */
main { position: relative; z-index: 2; }

.view {
  display: none;
  opacity: 0;
  transform: translateY(14px);
}
.view.active {
  animation: viewIn .5s ease forwards;
}
.view-hero.active { display: flex; }
.view-quiz.active { display: flex; }
.view-result.active { display: block; }
@keyframes viewIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .view.active { animation: none; opacity: 1; transform: none; }
}

/* ============ HERO ============ */
.view-hero {
  min-height: calc(100vh - 90px);
  align-items: center;
  padding: 28px 20px 60px;
}
.hero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,.09);
  border: 1px solid rgba(13,148,136,.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(13,148,136,.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow-dot { animation: none; } }

h1.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 8vw, 50px);
  line-height: 1.08;
  letter-spacing: -.2px;
  color: var(--navy);
  margin-bottom: 20px;
}
h1.hero-title .gold { color: var(--teal); }

.hero-sub {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--navy); }

.hero-cta-wrap { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-hint { font-size: 12px; color: var(--muted); }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #5eead4 100%);
  color: #ffffff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(13,148,136,.32), 0 2px 8px rgba(22,53,79,.12);
  transition: box-shadow .2s, transform .15s;
  cursor: pointer;
  width: 100%;
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(13,148,136,.42), 0 2px 8px rgba(22,53,79,.14); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (min-width: 520px) {
  .btn-primary { width: auto; }
}

.btn-icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color .2s, color .2s;
}
.btn-icon-only:hover { border-color: var(--card-border-strong); color: var(--teal); }
.btn-icon-only svg { width: 18px; height: 18px; }

/* ============ QUIZ ============ */
.view-quiz {
  min-height: calc(100vh - 90px);
  flex-direction: column;
  padding: 10px 20px 60px;
}
.quiz-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; display: flex; flex-direction: column; flex: 1; }

.quiz-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.quiz-progress { flex: 1; }
.quiz-progress-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}
.quiz-progress-label b { color: var(--teal); font-size: 15px; }

.progress-track {
  height: 6px;
  border-radius: 100px;
  background: rgba(22,53,79,.08);
  border: 1px solid rgba(13,148,136,.18);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  box-shadow: 0 0 8px rgba(13,148,136,.4);
  transition: width .45s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.quiz-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quiz-card.transitioning { animation: cardSwap .38s ease; }
@keyframes cardSwap {
  0%   { opacity: 1; transform: translateX(0); }
  40%  { opacity: 0; transform: translateX(-10px); }
  41%  { transform: translateX(10px); }
  100% { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .quiz-card.transitioning { animation: none; } }

.quiz-question {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 5.5vw, 30px);
  line-height: 1.22;
  color: var(--navy);
  margin-bottom: 26px;
}

.quiz-options { display: flex; flex-direction: column; gap: 10px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .12s;
}
.quiz-option:hover { border-color: var(--card-border-strong); background: var(--card-bg-2); }
.quiz-option:active { transform: scale(.99); }
.quiz-option .opt-check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(13,148,136,.35);
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: border-color .18s, background .18s, color .18s;
}
.quiz-option .opt-check svg { width: 13px; height: 13px; }

.quiz-option.selected {
  border-color: var(--teal);
  background: rgba(13,148,136,.07);
  box-shadow: 0 6px 20px rgba(13,148,136,.18);
}
.quiz-option.selected .opt-check {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}
.quiz-option:disabled { cursor: default; }

.quiz-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted-dim);
  margin-top: 22px;
}

/* ============ RESULT VIEW ============ */
.view-result { padding: 10px 20px 0; }
.result-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; }

.section { padding: 56px 0; }
.section:first-child { padding-top: 6px; }
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 14px;
}
.section-title .gold { color: var(--teal); }
.section-sub {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 30px;
}
.section-sub strong { color: var(--navy); }
.section-divider {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.section-divider .line { width: 34px; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); }
.section-divider .diamond { width: 6px; height: 6px; border: 1px solid var(--teal); transform: rotate(45deg); }

/* result profile card */
.result-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: 0 14px 40px rgba(22,53,79,.1);
  animation: revealUp .6s ease;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .result-card { animation: none; } }

.result-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.result-profile-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 6vw, 36px);
  color: var(--navy);
  margin-bottom: 14px;
}
.result-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.result-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(13,148,136,.08);
  border: 1px solid rgba(13,148,136,.28);
  padding: 5px 12px;
  border-radius: 100px;
}
.result-desc { font-size: 15px; color: var(--text-body); line-height: 1.65; margin-bottom: 12px; }
.result-desc strong { color: var(--navy); }
.result-closing { font-size: 15px; color: var(--navy); font-weight: 600; line-height: 1.6; margin-bottom: 24px; }

/* generic icon circle */
.icon-circle {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 30%;
  border: 1px solid rgba(13,148,136,.3);
  background: rgba(13,148,136,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.icon-circle svg { width: 21px; height: 21px; }

/* grids */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: border-color .2s, box-shadow .2s;
}
.info-card .icon-circle { margin-bottom: 14px; }
.info-card h3 {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.info-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.info-card.highlighted {
  border-color: var(--card-border-strong);
  box-shadow: 0 10px 30px rgba(13,148,136,.16);
  background: var(--card-bg-2);
}
.info-card .match-badge {
  display: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: var(--teal);
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.info-card.highlighted .match-badge { display: inline-block; }

/* filter block */
.filter-cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .filter-cols { grid-template-columns: 1fr 1fr; } }
.filter-col h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  margin-bottom: 14px;
  color: var(--navy);
}
.filter-list { display: flex; flex-direction: column; gap: 12px; }
.filter-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-body); line-height: 1.5; }
.filter-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.filter-item.yes svg { color: var(--teal); }
.filter-item.no svg { color: var(--danger); }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 26px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 17px; top: 36px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(13,148,136,.35), transparent);
}
.timeline-item:last-child::before { display: none; }
.timeline-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.timeline-text { padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* final cta */
.final-cta-section {
  text-align: left;
  background: linear-gradient(180deg, rgba(13,148,136,.06), transparent);
  border-top: 1px solid rgba(13,148,136,.16);
  border-bottom: 1px solid rgba(13,148,136,.16);
  padding: 56px 0;
}
.final-cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.final-cta-microcopy { font-size: 12px; color: var(--muted); }
.final-cta-disclaimer { font-size: 11px; color: var(--muted-dim); line-height: 1.5; max-width: 460px; }

/* footer */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 26px 20px 34px;
  text-align: center;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-footer p { font-size: 10.5px; color: var(--muted-dim); line-height: 1.6; }
.site-footer p + p { margin-top: 6px; }

@media (min-width: 860px) {
  .site-header, .hero-inner, .quiz-inner, .result-inner, .site-footer { max-width: 760px; }
}
