/* ==========================================================================
   Fifth Driver Advisory - Core Stylesheet
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Design Tokens / Custom Properties --- */
:root {
  /* Colors */
  --bg-base: #0B0F19;
  --bg-surface: rgba(17, 24, 39, 0.7);
  --bg-surface-elevated: rgba(31, 41, 55, 0.65);
  
  --accent-teal: #06B6D4;
  --accent-teal-glow: rgba(6, 182, 212, 0.35);
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.4);
  --accent-indigo: #6366F1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);
  
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(6, 182, 212, 0.4);
  --border-success: rgba(16, 185, 129, 0.5);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* --- Base Resets & Layout --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Background Abstract Orbs */
body::before, body::after {
  content: "";
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

body::before {
  top: 5%;
  right: -5%;
  background: radial-gradient(circle, var(--accent-teal) 0%, transparent 80%);
}

body::after {
  top: 40%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 80%);
}

.background-glow-bottom {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 45vw;
  height: 45vw;
  max-width: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-emerald) 0%, transparent 80%);
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 8rem 0;
}

.text-gradient-teal {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #FFF 30%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-highlight-teal {
  color: var(--accent-teal);
  text-shadow: 0 0 15px var(--accent-teal-glow);
}

.text-highlight-emerald {
  color: var(--accent-emerald);
  text-shadow: 0 0 15px var(--accent-emerald-glow);
}

.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-teal) 0%, #0891B2 100%);
  color: #000;
  border: none;
  box-shadow: 0 4px 14px var(--accent-teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
  background: linear-gradient(135deg, #0891B2 0%, var(--accent-teal) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

/* Scroll Animation classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header & Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: 70px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

.nav-links a.active {
  color: var(--accent-teal);
  font-weight: 600;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  z-index: 2;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-teal);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-description {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
}

/* Hero Network Graphic */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 450px;
}

.hero-svg-container {
  width: 100%;
  height: 100%;
  max-width: 450px;
}

.network-node {
  fill: #1F2937;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 2px;
  transition: var(--transition-smooth);
}

.network-node.visible-driver {
  fill: rgba(31, 41, 55, 0.8);
  stroke: rgba(6, 182, 212, 0.3);
}

.network-node.fifth-driver {
  fill: var(--accent-emerald);
  stroke: var(--accent-emerald);
  filter: drop-shadow(0 0 12px var(--accent-emerald-glow));
  animation: pulse-node 3s infinite alternate;
}

.network-link {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5px;
  stroke-dasharray: 4, 4;
}

.network-link.active {
  stroke: rgba(6, 182, 212, 0.3);
  stroke-dasharray: none;
}

.network-link.glow {
  stroke: var(--accent-emerald);
  stroke-width: 2px;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 4px var(--accent-emerald-glow));
}

@keyframes pulse-node {
  0% {
    r: 14;
    filter: drop-shadow(0 0 6px var(--accent-emerald-glow));
  }
  100% {
    r: 18;
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.8));
  }
}

/* --- Section: Concept (Finger Pointing Silos) --- */
.concept-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(17, 24, 39, 0.3) 100%);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  margin-bottom: 1rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  font-size: 1.15rem;
}

/* Finger Pointing Container */
.blame-game-wrapper {
  margin-top: 4rem;
}

.symptom-banner {
  background: rgba(239, 68, 68, 0.05);
  border: 1px dashed rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

.symptom-banner h3 {
  color: #EF4444;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.symptom-banner p {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.silos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.silo-card {
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.silo-card::after {
  content: "➔";
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
  z-index: 10;
}

.silos-grid div:last-child.silo-card::after {
  content: "➔";
  right: auto;
  left: 50%;
  top: auto;
  bottom: -2rem;
  transform: translateX(-50%) rotate(90deg);
}

.silo-department {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.silo-card h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.silo-blame {
  font-size: 0.95rem;
  color: #EF4444;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 4px;
  display: inline-block;
}

.reveal-fifth-driver-trigger {
  text-align: center;
}

.reveal-fifth-driver-trigger p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.pulse-button {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%);
  color: #000;
  border: none;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  transition: var(--transition-smooth);
}

.pulse-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.8);
}

/* Revealed Fifth Driver Card */
.hidden-driver-result {
  margin-top: 3rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden-driver-result.active {
  max-height: 500px;
  opacity: 1;
}

.result-card {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.08) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
  padding: 3rem;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  align-items: center;
  border-radius: 16px;
}

.result-icon {
  width: 80px;
  height: 80px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
}

.result-icon svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 8px var(--accent-emerald-glow));
}

.result-text h3 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.result-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Section: Scenario Explorer --- */
.explorer-section {
  background: #090C14;
}

.explorer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.scenario-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: left;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scenario-tab.active {
  background: rgba(6, 182, 212, 0.06);
  border-color: var(--accent-teal);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

.scenario-tab h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.scenario-tab.active h4 {
  color: var(--accent-teal);
}

.scenario-tab p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Scenario Viewer (Right Side) */
.scenario-viewer {
  min-height: 480px;
  padding: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.viewer-header {
  margin-bottom: 2.5rem;
}

.viewer-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-indigo);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

.viewer-header h3 {
  font-size: 2rem;
}

/* Analysis Layout */
.analysis-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.comparison-pane h5 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-pane.obvious h5 {
  color: var(--text-muted);
}

.comparison-pane.hidden h5 {
  color: var(--accent-emerald);
}

.obvious-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.obvious-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.obvious-dept {
  font-weight: 600;
  color: var(--text-muted);
}

.hidden-solution-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
  animation: fade-in-up 0.5s ease-out;
}

.solution-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 0.75rem;
}

.solution-title svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
}

.hidden-solution-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Section: Services / Methodology --- */
.services-section {
  position: relative;
}

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

.service-card {
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  user-select: none;
}

.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  margin-bottom: 2rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Section: Diagnostic Quiz / Lead Form --- */
.quiz-section {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.2) 0%, var(--bg-base) 100%);
  position: relative;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Progress Stepper */
.quiz-progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3.5rem;
}

.quiz-progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-50%);
  z-index: 1;
}

.progress-fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--accent-teal);
  width: 0%;
  transform: translateY(-50%);
  z-index: 2;
  transition: width 0.4s ease;
}

.step-indicator {
  position: relative;
  z-index: 3;
  width: 36px;
  height: 36px;
  background: #111827;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.step-indicator.active {
  border-color: var(--accent-teal);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--accent-teal-glow);
  background: var(--bg-base);
}

.step-indicator.completed {
  border-color: var(--accent-emerald);
  color: #000;
  background: var(--accent-emerald);
}

/* Quiz Steps */
.quiz-card {
  padding: 3.5rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
  animation: fade-in-up 0.5s ease-out;
}

.step-header {
  margin-bottom: 2rem;
}

.step-header h3 {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.step-header p {
  font-size: 1rem;
}

/* Grid Options (Step 1) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.option-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-smooth);
}

.option-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-box.selected {
  border-color: var(--accent-teal);
  background: rgba(6, 182, 212, 0.04);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

.checkbox-circle {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.option-box.selected .checkbox-circle {
  border-color: var(--accent-teal);
  background: var(--accent-teal);
}

.option-box.selected .checkbox-circle::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #000;
  border-radius: 50%;
}

.option-box-text h5 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.option-box-text p {
  font-size: 0.85rem;
}

/* Text Inputs (Step 2 & 3) */
.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-teal);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px var(--accent-teal-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Step Footer Navigation */
.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.quiz-footer .btn {
  padding: 0.75rem 1.75rem;
}

/* Success / Booking State */
.quiz-success-state {
  text-align: center;
  padding: 2rem 0;
  animation: fade-in-up 0.5s ease-out;
}

.success-icon-wrap {
  width: 70px;
  height: 70px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.success-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.quiz-success-state h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.quiz-success-state .accent-p {
  color: var(--accent-emerald);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.booking-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2.5rem;
  text-align: left;
}

.booking-box h4 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.booking-box h4 svg {
  width: 22px;
  height: 22px;
  color: var(--accent-teal);
}

.booking-box p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.calendar-widget-placeholder {
  height: 300px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
}

.calendar-widget-placeholder p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  width: 80%;
  max-width: 450px;
}

.time-slot-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.time-slot-btn:hover {
  background: var(--accent-teal);
  color: #000;
  border-color: var(--accent-teal);
}

.booking-confirm-state {
  text-align: center;
  animation: fade-in-up 0.5s ease-out;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-light);
  padding: 5rem 0 3rem 0;
  background: #070910;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-links h5 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-graphic {
    height: 380px;
  }
  
  .explorer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .silo-card::after {
    content: "➔";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -1.75rem;
    transform: translateX(-50%) rotate(90deg);
  }
  
  .silos-grid div:last-child.silo-card::after {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Mobile Navigation */
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    z-index: 90;
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .header-cta {
    display: none; /* Hide on mobile to avoid clutter */
  }
  
  /* Explorer Section Mobile */
  .scenario-viewer {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .analysis-comparison {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .result-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
  }
  
  .result-icon {
    margin: 0 auto;
  }
  
  /* Quiz Card */
  .quiz-card {
    padding: 2rem 1.5rem;
  }
  
  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}
