:root {
  --navy-950: #071b2c;
  --navy-900: #0b253d;
  --navy-800: #123752;
  --cyan-600: #0795b8;
  --cyan-500: #11abc9;
  --cyan-100: #dff7fb;
  --cyan-50: #effbfd;
  --green-600: #16855b;
  --green-100: #e4f7ee;
  --amber-600: #bc7512;
  --amber-100: #fff3d8;
  --red-600: #bf3f4d;
  --red-100: #fdebed;
  --purple-600: #7256b7;
  --purple-100: #f0ebff;
  --gray-900: #182431;
  --gray-700: #425466;
  --gray-500: #6d7d8b;
  --gray-300: #cbd5dc;
  --gray-200: #e3e9ed;
  --gray-100: #f0f4f6;
  --gray-50: #f7f9fa;
  --white: #fff;
  --shadow-sm: 0 8px 25px rgba(7, 27, 44, 0.07);
  --shadow-lg: 0 28px 70px rgba(7, 27, 44, 0.15);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 27, 44, .96);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logos { display: flex; align-items: center; gap: 22px; }
.brand-logos img { display: block; max-width: 160px; max-height: 50px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(97, 215, 231, 0)); }
.brand-divider { width: 1px; height: 34px; background: rgba(255,255,255,.28); }
.header-badge {
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.progress-shell { position: sticky; top: 76px; z-index: 29; height: 5px; background: #d8e4e9; }
.progress-track { height: 100%; }
.progress-fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--cyan-500), #64d7c1); transition: width .35s ease; }

.view { display: none; }
.view.is-active { display: block; animation: viewIn .36s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero {
  position: relative;
  min-height: calc(100vh - 116px);
  overflow: hidden;
  display: none;
  align-items: center;
  background:
    radial-gradient(circle at 80% 15%, rgba(17,171,201,.24), transparent 29%),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.hero.is-active { display: flex; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, transparent, black 55%);
}
.hero-content { position: relative; z-index: 2; width: min(940px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 100px; text-align: center; }
.eyebrow, .step-kicker {
  margin: 0 0 15px;
  color: var(--cyan-500);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1 { max-width: 900px; margin: 0 auto; font-size: clamp(2.35rem, 5.7vw, 4.75rem); line-height: 1.04; letter-spacing: -.045em; }
.hero h1 span { color: #78dce7; }
.hero-copy { max-width: 720px; margin: 25px auto 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-stats { display: flex; justify-content: center; gap: 1px; margin: 42px auto 36px; }
.hero-stats div { width: 145px; padding: 13px 20px; border-right: 1px solid rgba(255,255,255,.15); }
.hero-stats div:last-child { border: 0; }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { color: #fff; font-size: 1.5rem; }
.hero-stats span { color: rgba(255,255,255,.55); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-note { margin: 17px 0 0; color: rgba(255,255,255,.45); font-size: .8rem; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(3px); }
.hero-orb-one { width: 360px; height: 360px; right: -180px; top: 18%; border: 1px solid rgba(255,255,255,.12); }
.hero-orb-two { width: 220px; height: 220px; left: -120px; bottom: 10%; background: rgba(17,171,201,.08); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .choice-card:focus-within, .answer-option:focus-within, select:focus, input:focus { outline: 3px solid rgba(17,171,201,.25); outline-offset: 2px; }
.button-primary { background: var(--cyan-500); color: var(--navy-950); box-shadow: 0 10px 25px rgba(17,171,201,.22); }
.button-primary:hover { background: #42c5d9; }
.button-secondary { border-color: var(--gray-300); background: var(--white); color: var(--gray-700); }
.button-secondary:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.button-large { min-height: 56px; padding: 15px 28px; font-size: 1rem; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.content-view, .results-view { min-height: calc(100vh - 116px); padding: 60px 0 80px; }
.content-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow-shell { width: min(760px, calc(100% - 40px)); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: 0; color: var(--navy-900); font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.12; letter-spacing: -.03em; }
.section-heading > p { max-width: 700px; margin: 12px 0 0; color: var(--gray-500); }
.panel, .question-card, .result-section, .profile-summary { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.profile-panel { padding: 32px; }
.profile-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-group { min-width: 0; margin: 0 0 27px; padding: 0; border: 0; }
.field-group label, .field-group legend { display: block; margin-bottom: 10px; color: var(--gray-900); font-weight: 700; }
.required { margin-left: 3px; color: var(--red-600); }
.choice-grid { display: grid; gap: 12px; }
.choice-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; display: flex; min-height: 76px; align-items: center; gap: 13px; padding: 16px 18px; border: 2px solid var(--gray-200); border-radius: 12px; background: var(--white); cursor: pointer; transition: .18s ease; }
.choice-card:hover { border-color: #8bd6e3; background: var(--cyan-50); }
.choice-card.is-selected { border-color: var(--cyan-500); background: var(--cyan-50); color: var(--navy-900); }
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-dot { width: 18px; height: 18px; border: 2px solid var(--gray-300); border-radius: 50%; box-shadow: inset 0 0 0 4px #fff; }
.choice-card.is-selected .choice-dot { border-color: var(--cyan-500); background: var(--cyan-500); }
.choice-label { font-weight: 700; }
.select-control, .text-control {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  color: var(--gray-900);
  padding: 11px 14px;
}
.select-control.is-error, .text-control.is-error { border-color: var(--red-600); background: var(--red-100); }
.form-error { margin: 8px 0 20px; padding: 12px 14px; border: 1px solid #f4b8c0; border-radius: 9px; background: var(--red-100); color: var(--red-600); font-size: .9rem; font-weight: 650; }
.panel-actions { display: flex; padding-top: 6px; }
.align-end { justify-content: flex-end; }

.quiz-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 38px; align-items: start; }
.dimension-nav { position: sticky; top: 115px; padding: 22px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.nav-title { margin-bottom: 16px; color: var(--gray-500); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.dimension-nav ol { list-style: none; margin: 0; padding: 0; }
.dimension-nav li { position: relative; display: flex; align-items: flex-start; gap: 11px; padding: 0 0 21px; color: var(--gray-500); font-size: .82rem; font-weight: 650; }
.dimension-nav li:last-child { padding-bottom: 0; }
.dimension-nav li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 25px; bottom: 0; width: 1px; background: var(--gray-200); }
.dimension-nav .nav-number { position: relative; z-index: 1; display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid var(--gray-300); border-radius: 50%; background: #fff; font-size: .7rem; }
.dimension-nav li.is-current { color: var(--navy-900); }
.dimension-nav li.is-current .nav-number { border-color: var(--cyan-500); background: var(--cyan-500); color: var(--navy-950); }
.dimension-nav li.is-complete .nav-number { border-color: var(--green-600); background: var(--green-600); color: #fff; }
.quiz-heading { min-height: 120px; }
.question-card { margin-bottom: 18px; padding: 27px 28px; }
.question-top { display: flex; gap: 15px; align-items: flex-start; }
.question-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: var(--navy-900); color: var(--white); font-size: .82rem; font-weight: 800; }
.question-text { margin: 3px 0 19px; color: var(--navy-900); font-size: 1.02rem; font-weight: 680; line-height: 1.48; }
.answer-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-left: 49px; }
.answer-option { position: relative; display: flex; min-height: 50px; align-items: center; justify-content: center; padding: 10px 12px; border: 2px solid var(--gray-200); border-radius: 10px; background: var(--white); color: var(--gray-700); text-align: center; cursor: pointer; transition: .18s ease; }
.answer-option:hover { border-color: #93dce6; background: var(--cyan-50); }
.answer-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.answer-option span { font-size: .85rem; font-weight: 750; }
.answer-option.is-selected { border-color: var(--cyan-500); background: var(--cyan-50); color: var(--navy-900); box-shadow: 0 5px 14px rgba(17,171,201,.09); }
.quiz-actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 25px; }
.quiz-actions .button:last-child { justify-self: end; }
.answer-count { color: var(--gray-500); font-size: .8rem; text-align: center; }

.loading-card, .error-card { width: min(520px, calc(100% - 40px)); margin: 100px auto; padding: 48px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.loading-card h2, .error-card h2 { color: var(--navy-900); }
.loading-card p, .error-card p { color: var(--gray-500); }
.spinner { width: 44px; height: 44px; margin: 0 auto 20px; border: 4px solid var(--cyan-100); border-top-color: var(--cyan-600); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-symbol { display: grid; width: 48px; height: 48px; margin: auto; place-items: center; border-radius: 50%; background: var(--red-100); color: var(--red-600); font-size: 1.4rem; font-weight: 900; }

.results-shell { width: min(1080px, calc(100% - 40px)); }
.gap-hero { position: relative; overflow: hidden; padding: 46px 48px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); color: white; box-shadow: var(--shadow-lg); }
.gap-hero::after { content: ""; position: absolute; width: 310px; height: 310px; right: -110px; top: -150px; border: 65px solid rgba(255,255,255,.05); border-radius: 50%; }
.result-eyebrow { margin-bottom: 10px; color: #7cdce8; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.gap-hero h2 { position: relative; z-index: 1; max-width: 790px; margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.gap-hero > p { position: relative; z-index: 1; max-width: 750px; margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: 1.04rem; }
.result-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.result-meta span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); font-size: .76rem; }
.gap-hero.priority_gap { background: linear-gradient(135deg, #4c1822, #8e2e3c); }
.gap-hero.relevant_gap { background: linear-gradient(135deg, #4a2d0c, #a7670e); }
.gap-hero.latent_gap { background: linear-gradient(135deg, #24364b, #506d87); }
.gap-hero.developing_position { background: linear-gradient(135deg, #123752, #087b98); }
.gap-hero.competitive_preparation, .gap-hero.consolidated_prevention { background: linear-gradient(135deg, #0a4934, #16855b); }
.metric-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.metric-card { display: flex; gap: 16px; min-height: 160px; align-items: center; padding: 25px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.metric-icon { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border-radius: 12px; font-weight: 900; }
.preparation-card .metric-icon { background: var(--green-100); color: var(--green-600); }
.demand-card .metric-icon { background: var(--amber-100); color: var(--amber-600); }
.gap-card .metric-icon { background: var(--purple-100); color: var(--purple-600); }
.metric-card span { display: block; color: var(--gray-500); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.metric-card strong { display: block; margin: 4px 0 2px; color: var(--navy-900); font-size: 2.15rem; line-height: 1; }
.metric-card p { margin: 7px 0 0; color: var(--gray-700); font-size: .8rem; line-height: 1.35; }
.result-section { margin-top: 20px; padding: 31px; }
.result-section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 26px; }
.result-section-heading h3 { margin: 0; color: var(--navy-900); font-size: 1.4rem; }
.result-section-heading p { max-width: 430px; margin: 0; color: var(--gray-500); font-size: .86rem; }
.compare-chart { display: grid; gap: 18px; }
.compare-row { display: grid; grid-template-columns: 150px minmax(0,1fr) 65px; gap: 14px; align-items: center; }
.compare-label { color: var(--gray-700); font-size: .85rem; font-weight: 700; }
.bar-track { height: 14px; overflow: hidden; border-radius: 999px; background: var(--gray-100); }
.bar-fill { width: 0; height: 100%; border-radius: inherit; transition: width .7s ease .12s; }
.bar-preparation { background: linear-gradient(90deg, #16855b, #55c694); }
.bar-demand { background: linear-gradient(90deg, #d89a31, #d94f59); }
.compare-value { color: var(--navy-900); font-weight: 850; text-align: right; }
.dimension-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dimension-result { padding: 20px; border: 1px solid var(--gray-200); border-radius: 13px; background: var(--gray-50); }
.dimension-result-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.dimension-result h4 { margin: 0; color: var(--navy-900); font-size: .95rem; }
.dimension-result strong { color: var(--navy-900); font-size: 1.25rem; }
.dimension-result p { min-height: 38px; margin: 7px 0 14px; color: var(--gray-500); font-size: .78rem; }
.dimension-bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--gray-200); }
.dimension-bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-600), #5dd4c2); transition: width .75s ease; }
.profile-summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 20px; padding: 22px 28px; }
.profile-summary h3 { margin: 0 0 4px; color: var(--navy-900); font-size: 1rem; }
.profile-summary p { margin: 0; color: var(--gray-500); font-size: .83rem; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.profile-chips span { padding: 7px 11px; border-radius: 999px; background: var(--cyan-50); color: var(--cyan-600); font-size: .76rem; font-weight: 700; }
.result-actions { display: flex; justify-content: center; gap: 12px; margin: 28px 0; }
.methodology-note { padding: 18px 21px; border-left: 3px solid var(--cyan-500); background: #eef5f7; color: var(--gray-500); font-size: .79rem; }
.methodology-note strong { color: var(--navy-900); }
.methodology-note p { margin: 5px 0 0; }
.print-answers { display: none; }
.report-contact { display: none; }

.site-footer { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(20px, calc((100% - 1180px)/2)); border-top: 1px solid var(--gray-200); background: var(--white); color: var(--gray-500); font-size: .75rem; }

@media (max-width: 860px) {
  .quiz-layout { grid-template-columns: 1fr; }
  .dimension-nav { position: static; padding: 15px 18px; overflow-x: auto; }
  .dimension-nav .nav-title { display: none; }
  .dimension-nav ol { display: flex; min-width: 700px; }
  .dimension-nav li { flex: 1; padding: 0 20px 0 0; }
  .dimension-nav li:not(:last-child)::after { left: 25px; right: 0; top: 12px; bottom: auto; width: auto; height: 1px; }
  .dimension-nav li span:last-child { display: none; }
  .metric-cards { grid-template-columns: 1fr; }
  .metric-card { min-height: 125px; }
}

@media (max-width: 620px) {
  .header-inner { width: calc(100% - 28px); height: 68px; }
  .brand-logos { gap: 12px; }
  .brand-logos img { max-width: 118px; max-height: 42px; }
  .brand-divider { height: 30px; }
  .header-badge { display: none; }
  .progress-shell { top: 68px; }
  .hero { min-height: calc(100vh - 100px); }
  .hero-content { padding: 65px 0 75px; }
  .hero-stats div { width: auto; padding: 10px 15px; }
  .content-view, .results-view { padding: 38px 0 60px; }
  .content-shell, .narrow-shell, .results-shell { width: calc(100% - 26px); }
  .profile-panel, .question-card, .result-section { padding: 21px 18px; }
  .choice-grid-two, .answer-options, .dimension-results, .profile-fields-grid { grid-template-columns: 1fr; }
  .answer-options { margin-left: 0; margin-top: 14px; }
  .question-top { gap: 10px; }
  .question-text { font-size: .94rem; }
  .quiz-heading { min-height: 0; }
  .quiz-actions { grid-template-columns: 1fr 1fr; }
  .answer-count { grid-column: 1 / -1; grid-row: 1; }
  .gap-hero { padding: 34px 25px; }
  .result-section-heading { display: block; }
  .result-section-heading p { margin-top: 9px; }
  .compare-row { grid-template-columns: 1fr 52px; }
  .compare-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .profile-summary { display: block; }
  .profile-chips { justify-content: flex-start; margin-top: 14px; }
  .result-actions { flex-direction: column; }
  .site-footer { display: block; text-align: center; }
  .site-footer span { display: block; margin: 3px; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .progress-shell, .result-actions, .methodology-note { display: none !important; }
  .view { display: none !important; }
  #resultsView.is-active { display: block !important; padding: 0; }
  .results-shell { width: 100%; }
  .gap-hero { padding: 28px; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .gap-hero h2 { font-size: 27px; }
  .gap-hero > p { font-size: 13px; }
  .metric-cards { gap: 8px; margin: 10px 0; }
  .metric-card { min-height: 105px; padding: 14px; box-shadow: none; break-inside: avoid; }
  .metric-card strong { font-size: 25px; }
  .result-section, .profile-summary { margin-top: 10px; padding: 18px; box-shadow: none; break-inside: avoid; }
  .result-section-heading { margin-bottom: 15px; }
  .dimension-result { padding: 12px; break-inside: avoid; }
  .bar-fill, .dimension-bar span { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-answers { display: block; margin-top: 14px; }
  .print-answers h3 { margin: 0 0 10px; font-size: 16px; }
  .print-answer { display: grid; grid-template-columns: 1fr 120px; gap: 12px; padding: 7px 0; border-bottom: 1px solid #ddd; break-inside: avoid; font-size: 9px; }
  .print-answer span { font-weight: 700; text-align: right; }
  .report-contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 18px; align-items: center; margin-top: 16px; padding: 15px 17px; border: 1px solid #b7e8f0; border-left: 4px solid var(--cyan-500); border-radius: 10px; background: var(--cyan-50); break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-contact-kicker { color: var(--cyan-600); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
  .report-contact h3 { margin: 2px 0 3px; color: var(--navy-900); font-size: 13px; line-height: 1.25; }
  .report-contact p { margin: 0; color: var(--gray-700); font-size: 8.5px; line-height: 1.4; }
  .report-contact-emails { display: grid; gap: 7px; }
  .report-contact-emails a { display: block; color: var(--navy-900); text-decoration: none; }
  .report-contact-emails span { display: block; color: var(--gray-500); font-size: 7.5px; font-weight: 700; text-transform: uppercase; }
  .report-contact-emails strong { display: block; font-size: 9.5px; overflow-wrap: anywhere; }
}
