: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;
  --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 {
  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;
}

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

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: 900px;
  margin: 0 auto 2.5rem;
}

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

.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;
  font-family: inherit;
}

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

.btn-primary: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);
}

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

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 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.feature-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 {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05);
}

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

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.assessment-container {
  max-width: 1020px;
  margin: 2rem auto 0;
}

.question-group {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.question-group h3 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  color: #f3f4f6;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.full-width {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.92rem;
  color: #dbe4f3;
  font-weight: 600;
}

.field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font-size: 0.95rem;
}

.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.info-tip {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-left: 0.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
  position: relative;
}

.info-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  width: min(280px, 72vw);
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  color: #dbeafe;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

.action-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.results-dashboard {
  display: none;
  padding: 4rem 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;
}

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

.financial-impact-card {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  text-align: left;
}

.financial-impact-card .eyebrow-result {
  margin-top: 0;
}

.impact-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.impact-line:last-of-type {
  border-bottom: none;
}

.impact-line span {
  color: var(--text-muted);
}

.impact-line strong {
  color: #f3f4f6;
  text-align: right;
}

.disclaimer {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.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%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.8s ease;
  background: linear-gradient(90deg, #10b981, #34d399);
}

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

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

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) {
  .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) {
  .hero {
    padding: 4.5rem 0 2.5rem;
  }

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

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

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

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

  .glass-card {
    padding: 1.5rem;
  }

  .domain-line {
    display: none;
  }

  .domain-header {
    align-items: flex-start;
  }

  .hero-actions,
  .action-row,
  .action-bar {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .impact-line {
    flex-direction: column;
    gap: 0.3rem;
  }

  .impact-line strong {
    text-align: left;
  }
}

@media print {
  .navbar,
  .hero,
  #overview,
  #why,
  #focus,
  #assessment,
  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,
  .disclaimer,
  .impact-line span {
    color: #374151;
  }

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