/* ===== Header ===== */
.header {
  background: var(--color-primary);
  height: var(--header-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(232, 93, 38, 0.3);
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-full);
  padding: var(--s-1) var(--s-4);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--dur-fast) ease;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: var(--s-20) 0 var(--s-12);
  position: relative;
}

/* Geometric accent lines behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  opacity: 0.4;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--color-surface);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  border: 1px solid var(--color-border);
  margin-bottom: var(--s-8);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.hero h1 {
  font-size: var(--text-5xl);
  color: var(--color-primary);
  margin-bottom: var(--s-5);
  letter-spacing: -0.025em;
  position: relative;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero p {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto var(--s-10);
  line-height: 1.7;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: var(--s-8);
  margin-bottom: var(--s-10);
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
}

.hero-feature .check-icon {
  width: 20px;
  height: 20px;
  background: var(--color-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-feature .check-icon svg {
  width: 12px;
  height: 12px;
  color: white;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-8);
  border-radius: var(--r-lg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border: none;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: var(--shadow-glow-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 28px rgba(232, 93, 38, 0.3), 0 2px 8px rgba(232, 93, 38, 0.15);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg);
  border-color: var(--color-text-tertiary);
}

.btn-lg {
  padding: var(--s-4) var(--s-12);
  font-size: var(--text-base);
  border-radius: var(--r-xl);
}

.btn-lg .btn-arrow {
  transition: transform var(--dur-base) var(--ease-out);
}

.btn-lg:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== Info Section ===== */
.info-section {
  padding: var(--s-16) 0 var(--s-20);
}

.info-section h2 {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--s-3);
}

.info-section-sub {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--s-10);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-6) var(--s-8);
  position: relative;
  transition: all var(--dur-base) var(--ease-out);
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  font-size: 20px;
}

.info-card-icon.icon-enforce {
  background: var(--color-red-bg);
  color: var(--color-red);
}

.info-card-icon.icon-fine {
  background: var(--color-orange-bg);
  color: var(--color-orange);
}

.info-card-icon.icon-criteria {
  background: var(--color-green-bg);
  color: var(--color-green);
}

.info-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--s-2);
  color: var(--color-primary);
}

.info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== Trust bar ===== */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--s-10);
  padding: var(--s-8) 0 var(--s-4);
  flex-wrap: wrap;
}

.trust-item {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.trust-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
}

/* ===== Wizard ===== */
.wizard {
  display: none;
  padding: var(--s-10) 0 var(--s-20);
}

.wizard.active {
  display: block;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--dur-base) var(--ease-out);
}

.step-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: var(--r-full);
}

.step-dot.completed {
  background: var(--color-primary-medium);
}

/* Progress bar */
.progress-bar {
  background: var(--color-border-light);
  border-radius: var(--r-full);
  height: 3px;
  margin-bottom: var(--s-2);
  overflow: hidden;
}

.progress-fill {
  background: var(--color-accent);
  height: 100%;
  border-radius: var(--r-full);
  transition: width var(--dur-base) var(--ease-out);
  width: 0%;
}

.progress-text {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-bottom: var(--s-8);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Question card */
.question-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-2xl);
  padding: var(--s-10) var(--s-10) var(--s-8);
  box-shadow: var(--shadow-lg);
  animation: slideIn var(--dur-slow) var(--ease-out) both;
  position: relative;
  overflow: hidden;
}

/* Accent stripe on top of card */
.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-light));
}

.question-number {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-3);
}

.question-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--s-2);
  color: var(--color-primary);
}

.question-hint {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--s-8);
  padding-left: var(--s-4);
  border-left: 2px solid var(--color-border);
  line-height: 1.6;
}

/* Answer options */
.options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.option {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--dur-fast) ease;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.option:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

.option.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.option input[type="radio"] {
  display: none;
}

.option-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--dur-fast) ease;
}

.option:hover .option-radio {
  border-color: var(--color-accent);
}

.option.selected .option-radio {
  border-color: var(--color-accent);
  border-width: 2px;
}

.option.selected .option-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: revealScale var(--dur-fast) var(--ease-spring) both;
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-8);
}

.wizard-nav .btn {
  min-width: 140px;
}

/* ===== Results ===== */
.results {
  display: none;
  padding: var(--s-10) 0 var(--s-20);
}

.results.active {
  display: block;
}

.result-card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-2xl);
  padding: var(--s-12) var(--s-10);
  box-shadow: var(--shadow-xl);
  text-align: center;
  margin-bottom: var(--s-8);
  animation: revealUp var(--dur-slow) var(--ease-out) both;
  position: relative;
  overflow: hidden;
}

/* Result gauge — SVG circle */
.result-gauge {
  width: 140px;
  height: 140px;
  margin: 0 auto var(--s-6);
  position: relative;
}

.result-gauge svg {
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}

.result-gauge .gauge-bg {
  fill: none;
  stroke: var(--color-border-light);
  stroke-width: 6;
}

.result-gauge .gauge-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 282.74;
  animation: gaugeGrow var(--dur-slow) var(--ease-out) both;
  animation-delay: 300ms;
}

.result-gauge .gauge-fill.green { stroke: var(--color-green); }
.result-gauge .gauge-fill.orange { stroke: var(--color-orange); }
.result-gauge .gauge-fill.red { stroke: var(--color-red); }

.result-gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-gauge-pct {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.result-gauge-pct.green { color: var(--color-green); }
.result-gauge-pct.orange { color: var(--color-orange); }
.result-gauge-pct.red { color: var(--color-red); }

.result-gauge-unit {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.result-label {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--s-3);
}

.result-label.green { color: var(--color-green); }
.result-label.orange { color: var(--color-orange); }
.result-label.red { color: var(--color-red); }

.result-summary {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Breakdown */
.breakdown {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  margin-bottom: var(--s-8);
  animation: revealUp var(--dur-slow) var(--ease-out) both;
  animation-delay: 200ms;
}

.breakdown h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-6);
  color: var(--color-primary);
}

.breakdown-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.breakdown-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breakdown-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 0 3px var(--color-bg);
}

.breakdown-indicator.risk-0 { background: var(--color-green); box-shadow: 0 0 0 3px var(--color-green-glow); }
.breakdown-indicator.risk-1 { background: #80b058; box-shadow: 0 0 0 3px rgba(128, 176, 88, 0.12); }
.breakdown-indicator.risk-2 { background: var(--color-orange); box-shadow: 0 0 0 3px var(--color-orange-glow); }
.breakdown-indicator.risk-3 { background: var(--color-red); box-shadow: 0 0 0 3px var(--color-red-glow); }

.breakdown-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
  color: var(--color-text);
}

.breakdown-explanation {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

/* CTA section */
.result-cta {
  background: var(--color-primary);
  border-radius: var(--r-2xl);
  padding: var(--s-10);
  text-align: center;
  color: white;
  animation: revealUp var(--dur-slow) var(--ease-out) both;
  animation-delay: 400ms;
}

.result-cta h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-3);
  color: white;
}

.result-cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--s-8);
  font-size: var(--text-sm);
}

.result-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
}

.result-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: white;
}

.result-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ===== Disclaimer ===== */
.disclaimer {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-text-tertiary);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin: var(--s-8) 0;
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--color-border-light);
  padding: var(--s-8) 0;
  text-align: center;
}

.footer .container {
  max-width: var(--max-width-wide);
}

.footer p {
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

.footer a {
  color: var(--color-text-tertiary);
}

.footer a:hover {
  color: var(--color-accent);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
  }

  .hero {
    padding: var(--s-12) 0 var(--s-8);
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: var(--s-3);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .question-card {
    padding: var(--s-6) var(--s-5) var(--s-6);
  }

  .question-card h2 {
    font-size: var(--text-xl);
  }

  .result-card {
    padding: var(--s-8) var(--s-6);
  }

  .result-cta {
    padding: var(--s-8) var(--s-6);
  }

  .result-actions {
    flex-direction: column;
  }

  .wizard-nav .btn {
    min-width: 110px;
    font-size: var(--text-xs);
  }

  .trust-bar {
    gap: var(--s-6);
  }

  .step-indicator {
    gap: var(--s-1);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-3xl);
  }

  .breakdown {
    padding: var(--s-5);
  }
}
