:root {
  --ink: #172033;
  --muted: #667085;
  --light-muted: #98a2b3;
  --primary: #0672ce;
  --primary-dark: #045ca8;
  --primary-soft: #eaf5ff;
  --navy: #18233b;
  --cream: #f7f6f2;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #2d8060;
  --warning: #c16f1d;
  --danger: #bd4b4b;
  --shadow: 0 18px 50px rgba(31, 37, 60, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(6, 114, 206, .12), transparent 25rem),
    linear-gradient(180deg, #fcfcfb 0%, var(--cream) 100%);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(23, 32, 51, .08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.brand strong { color: var(--primary); }

.brand-mark {
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--navy);
  border-radius: 11px 11px 11px 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.header-meta { display: flex; align-items: center; gap: 22px; }
.header-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-link:hover { color: var(--primary); }

.secure-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.secure-pill svg { width: 17px; fill: currentColor; }

main { min-height: calc(100vh - 160px); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 76px;
  align-items: center;
  min-height: 690px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: Manrope, sans-serif;
  letter-spacing: -.035em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.02;
}

.hero h1 span { color: var(--primary); }

.hero-copy > p {
  max-width: 625px;
  margin: 26px 0 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.primary-btn, .secondary-btn, .text-btn {
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.primary-btn {
  padding: 15px 21px;
  color: white;
  background: var(--primary);
  box-shadow: 0 10px 25px rgba(6, 114, 206, .24);
}

.primary-btn:hover { transform: translateY(-2px); background: var(--primary-dark); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.secondary-btn {
  padding: 14px 20px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--border);
}

.secondary-btn:hover { background: #f8f8fa; }

.text-btn {
  padding: 12px 4px;
  color: var(--primary);
  background: transparent;
}

.microcopy { color: var(--light-muted); font-size: 13px; }

.hero-card {
  position: relative;
  padding: 32px;
  color: white;
  background: var(--navy);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(24, 35, 59, .22);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -110px;
  border: 52px solid rgba(6, 114, 206, .38);
  border-radius: 50%;
}

.card-kicker { color: #77baf1; font-size: 13px; font-weight: 700; }
.hero-card h2 { margin: 8px 0 26px; font-size: 27px; }

.feature-list { display: grid; gap: 11px; }
.feature {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  font-size: 14px;
}

.feature-number {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #b9ddfa;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}

.frameworks {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #aab2c3;
  font-size: 12px;
  line-height: 1.6;
}

.profile-page, .assessment-page, .results-page {
  padding: 54px 0 80px;
}

.page-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-heading h1 { margin-bottom: 12px; font-size: clamp(34px, 4vw, 48px); }
.page-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 830px;
}

.field-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 5px 20px rgba(31,37,60,.035);
}

.field-card.full { grid-column: 1 / -1; }
.field-card label { display: block; margin-bottom: 9px; font-weight: 700; }
.field-card small { display: block; margin-bottom: 14px; color: var(--muted); line-height: 1.45; }

.field-card input, .field-card select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fcfcfd;
  border: 1px solid #d8dce3;
  border-radius: 10px;
  outline: none;
}

.field-card input:focus, .field-card select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,114,206,.12);
}

.profile-actions { margin-top: 25px; }

.assessment-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.assessment-sidebar {
  position: sticky;
  top: 24px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 11px;
}

.progress-head strong { font-family: Manrope, sans-serif; }
.progress-head span { color: var(--muted); font-size: 13px; }

.progress-track {
  height: 7px;
  background: #eceef2;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: inherit;
  transition: width .25s ease;
}

.domain-nav { display: grid; gap: 5px; margin-top: 20px; }

.domain-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}

.domain-link.active { color: var(--ink); background: var(--primary-soft); }
.domain-link.complete { color: var(--success); }

.domain-dot {
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.domain-link.complete .domain-dot { background: currentColor; }

.question-panel {
  padding: 34px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.domain-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 14px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
}

.domain-header h2 { margin-bottom: 4px; font-size: 25px; }
.domain-header p { margin: 0; color: var(--muted); font-size: 14px; }

.question-list { display: grid; gap: 28px; }

.question-block {
  scroll-margin-top: 25px;
}

.question-title {
  display: flex;
  gap: 13px;
  margin-bottom: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.question-number {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option span {
  display: flex;
  min-height: 60px;
  padding: 9px 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  transition: .15s ease;
}

.answer-option span:hover { border-color: #90c7ef; background: #f5faff; }
.answer-option input:checked + span {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.assessment-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 32px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.validation-message {
  display: none;
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #8a3e3e;
  background: #fff1f1;
  border-radius: 9px;
  font-size: 13px;
}

.validation-message.show { display: block; }

.results-hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 30px;
  align-items: center;
  padding: 38px;
  color: white;
  background: var(--navy);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.results-hero h1 { margin: 8px 0 14px; font-size: clamp(34px, 4vw, 48px); }
.results-hero p { max-width: 690px; margin: 0; color: #bdc6d7; line-height: 1.65; }

.score-ring {
  width: 205px;
  height: 205px;
  margin: auto;
  display: grid;
  place-items: center;
  background: conic-gradient(#3b9de8 var(--score-angle), rgba(255,255,255,.11) 0);
  border-radius: 50%;
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 15px;
  background: var(--navy);
  border-radius: 50%;
}

.score-value { position: relative; text-align: center; }
.score-value strong { display: block; font-family: Manrope, sans-serif; font-size: 54px; line-height: 1; }
.score-value span { color: #abb5c8; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.risk-summary {
  position: relative;
  margin-top: 13px;
  color: #c9d0dc;
  font-size: 13px;
  font-weight: 700;
}

.risk-summary strong { color: white; }

.result-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  margin-top: 22px;
}

.result-card {
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.result-card h2 { margin-bottom: 20px; font-size: 22px; }
.result-card h3 { font-size: 16px; letter-spacing: -.015em; }

.domain-score-list { display: grid; gap: 17px; }

.domain-score-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  font-size: 13px;
}

.domain-score-head strong:last-child { color: var(--muted); }
.domain-score-track { height: 8px; background: #edeef1; border-radius: 20px; overflow: hidden; }
.domain-score-fill { height: 100%; border-radius: inherit; }

.maturity-card {
  padding: 22px;
  background: var(--primary-soft);
  border-radius: 14px;
}

.maturity-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  color: var(--primary-dark);
  background: white;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.maturity-card h3 { margin-bottom: 8px; font-size: 24px; }
.maturity-card p, .industry-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.industry-card { margin-top: 14px; padding: 22px; background: #f7f8fa; border-radius: 14px; }
.industry-card .focus { margin: 8px 0 12px; color: var(--ink); font-weight: 700; }

.recommendations {
  display: grid;
  gap: 12px;
}

.recommendation {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 17px;
  background: #fafafa;
  border: 1px solid #ececef;
  border-radius: 13px;
}

.priority-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--primary);
  border-radius: 11px;
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.recommendation p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.roadmap-column {
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.roadmap-column span { color: var(--primary); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.roadmap-column h3 { margin: 6px 0 12px; }
.roadmap-column ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.results-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  flex-wrap: wrap;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 28px;
  color: var(--light-muted);
  border-top: 1px solid rgba(23,32,51,.08);
  font-size: 11px;
}

@media print {
  body { background: white; }
  .site-header, footer, .results-actions { display: none; }
  .app-shell { width: 100%; }
  .results-page { padding: 0; }
  .results-hero, .result-card, .roadmap-column { break-inside: avoid; box-shadow: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; }
  .hero-card { max-width: 600px; }
  .assessment-layout { grid-template-columns: 1fr; }
  .assessment-sidebar { position: static; }
  .domain-nav { grid-template-columns: repeat(3, 1fr); }
  .results-hero { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .app-shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 70px; }
  .secure-pill, .header-link { display: none; }
  .hero { padding: 45px 0 60px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { font-size: 16px; }
  .hero-card { padding: 23px; }
  .profile-grid { grid-template-columns: 1fr; }
  .field-card.full { grid-column: auto; }
  .domain-nav { grid-template-columns: 1fr 1fr; }
  .question-panel { padding: 22px 17px; }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-option span { min-height: 45px; justify-content: flex-start; padding: 10px 13px; }
  .assessment-actions { align-items: stretch; }
  .assessment-actions button { flex: 1; }
  .results-hero { padding: 27px 20px; }
  .score-ring { width: 175px; height: 175px; }
  .roadmap { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
