:root {
  --bg: #0b0f1a;
  --surface: #161b2a;
  --surface-light: #1f2937;
  --surface-soft: rgba(255,255,255,0.03);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.35);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --average: #ca8a04;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --max-width: 1200px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-white {
  color: #f3f4f6;
}

.brand-blue {
  background: linear-gradient(90deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-main);
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.badge-top {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border-radius: 99rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #f3f4f6 0%, #ffffff 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 860px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}

.btn-primary,
.btn {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--surface-light);
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

section {
  padding: 2rem 0;
}

.domain-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.domain-header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #f3f4f6;
  white-space: nowrap;
}

.domain-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-intro {
  color: var(--text-muted);
  width: 100%;
  max-width: none;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.feature-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-card,
.card {
  padding: 1.5rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, background 0.25s ease;
}

.feature-card:hover,
.card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}

.feature-card h3,
.card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ffffff 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card p,
.card p,
.card ul,
.card li,
.intro-text {
  color: var(--text-muted);
}

.subtitle {
  color: #93c5fd !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 0.55rem;
}

.mini-note {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.comparison-table th {
  background: rgba(59, 130, 246, 0.12);
  color: #dbeafe;
  padding: 1rem;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table td {
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

/* Assessment intro section */
.assessment {
  padding-bottom: 4rem;
}

/* Quiz */
.quiz-shell {
  max-width: 980px;
  margin: 3rem auto 0;
}

.quiz-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quiz-page-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.quiz-page-title h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #f3f4f6;
  white-space: nowrap;
}

.quiz-page-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.home-btn {
  white-space: nowrap;
}

#readiness-quiz,
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.quiz-progress-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.quiz-card {
  background: transparent;
}

#quiz-question-title {
  margin: 0 0 1.25rem;
  color: #f3f4f6;
  font-size: 1.8rem;
  line-height: 1.35;
  font-weight: 800;
}

#quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255,255,255,0.02);
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.quiz-option:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.14);
  color: #e5efff;
  font-weight: 700;
}

.quiz-nav {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Result */
.result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  color: white;
}

.result-badge.critical {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.result-badge.medium {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
}

.result-badge.average {
  background: rgba(202, 138, 4, 0.18);
  color: #fde68a;
}

.result-badge.excellent {
  background: rgba(16, 185, 129, 0.18);
  color: #86efac;
}

.result-card h3 {
  margin: 0 0 20px;
  color: #f3f4f6;
  font-size: 1.8rem;
  line-height: 1.3;
}

.result-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.result-recommendation {
  background: rgba(59, 130, 246, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.result-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .quiz-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-page-title {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 4.5rem 0 2.5rem;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1rem;
  }

  .quiz-page-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-page-line,
  .domain-line {
    display: none;
  }

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

  #quiz-question-title {
    font-size: 1.4rem;
  }

  #readiness-quiz,
  .result-card {
    padding: 1.25rem;
  }
}

/* =========================
   ENTERPRISE RESULT LAYOUT
========================= */
.domain-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 99rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
  font-size: 0.82rem;
}

.results-dashboard {
  display: none;
  padding: 2rem 0 5rem;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2rem;
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow-result {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.big-score {
  font-size: 4.3rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(to bottom, #fff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  display: inline-block;
  margin: 1rem 0 0.75rem;
  padding: 0.55rem 1.4rem;
  border-radius: 99rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.status-badge.critical {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.status-badge.medium {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
}

.status-badge.average {
  background: rgba(202, 138, 4, 0.18);
  color: #fde68a;
}

.status-badge.excellent {
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
}

.summary-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 430px;
}

.domain-breakdown {
  margin-top: 2rem;
  width: 100%;
}

.domain-bar-container {
  margin-bottom: 1.15rem;
}

.domain-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #dbe4f3;
}

.domain-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.domain-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
}

.domain-bar-fill.risk {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.domain-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.domain-bar-fill.success {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.insights-column {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.panel-block {
  margin-bottom: 1.8rem;
}

.panel-block h3,
.panel-block h4 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: #f3f4f6;
}

.panel-block p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

.optimization-card {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.optimization-card strong {
  display: block;
  color: #bfdbfe;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.optimization-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.priority-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.priority-list li + li {
  margin-top: 0.55rem;
}

.action-row {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: 1fr;
  }

  .insights-column {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
}

@media (max-width: 700px) {
  .glass-card {
    padding: 1.25rem;
  }

  .big-score {
    font-size: 3.2rem;
  }

  .action-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media print {
  .navbar,
  .quiz-page-header,
  #readiness-quiz,
  footer,
  .action-row {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #111827;
  }

  .container {
    width: 100%;
  }

  .results-dashboard {
    display: block !important;
    padding: 0;
  }

  .glass-card {
    box-shadow: none;
    border: none;
    background: #ffffff;
    color: #111827;
  }

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

  .insights-column {
    border-left: none;
    padding-left: 0;
  }

  .summary-text,
  .panel-block p,
  .optimization-card span,
  .priority-list {
    color: #374151;
  }

  .panel-block h3,
  .panel-block h4,
  .optimization-card strong {
    color: #111827;
  }
}
