/* ==========================================================================
   AK GREEN SOLUTIONS — Authorized Channel Partner | Tata Power EZ Charge
   Master Design System: Clean-Tech Precision (Harmonized Executive Aesthetic)
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     1. Unified Design Tokens & Harmonic Color Palette
     ------------------------------------------------------------------------ */
  /* Neutral Grounds */
  --color-canvas: #f8fafc;
  --color-canvas-subtle: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #fafafa;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-strong: #cbd5e1;

  /* Typography Colors */
  --color-text-primary: #0f172a;    /* Deep Slate / Charcoal */
  --color-text-secondary: #475569;  /* Balanced Slate */
  --color-text-tertiary: #64748b;   /* Muted Slate */
  --color-text-light: #94a3b8;      /* Dim Slate */

  /* Brand Emerald (Tata EV Sustainable Core) */
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-200: #a7f3d0;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065f46;

  /* Deep Authority Navy / Slate */
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;

  /* Functional Accents */
  --color-blue-50: #eff6ff;
  --color-blue-600: #0284c7;
  --color-amber-500: #d97706;
  --color-amber-50: #fffbeb;
  --color-rose-500: #e11d48;

  /* Typography Stacks */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace;

  /* Uniform Elevations & Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.06), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.08), 0 8px 16px -4px rgba(15, 23, 42, 0.03);

  /* Layout Constants */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  background-color: var(--color-canvas);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle Architectural Grid Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Top Scroll Progress Line */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-emerald-600);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* Selection */
::selection {
  background: var(--color-emerald-100);
  color: var(--color-emerald-800);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-emerald-600);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

/* --------------------------------------------------------------------------
   Typography Hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-emerald-700);
  background: var(--color-emerald-50);
  border: 1px solid var(--color-emerald-200);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  width: fit-content;
}

.mono-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald-600);
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 760px;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.highlight-emerald {
  color: var(--color-emerald-600);
}

/* --------------------------------------------------------------------------
   Harmonized Buttons & Interactive Components
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-emerald-600);
  color: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(5, 150, 105, 0.2);
}

.btn-primary:hover {
  background: var(--color-emerald-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(5, 150, 105, 0.25);
}

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

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--color-slate-900);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--color-slate-800);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Navigation Bar (Pristine Header)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 2rem;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-slate-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-badge svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-emerald-500);
  stroke-width: 2.2;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-partner-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-emerald-700);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
}

.partner-pill {
  background: var(--color-emerald-50);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--color-emerald-200);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-normal);
  padding: 0.4rem 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-emerald-600);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Sound Button */
.audio-toggle-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-tertiary);
  transition: all var(--transition-normal);
}

.audio-toggle-btn:hover {
  color: var(--color-emerald-600);
  border-color: var(--color-emerald-200);
  background: var(--color-emerald-50);
}

.audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-bar {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  height: 4px;
}

.audio-toggle-btn.playing .audio-bar:nth-child(1) { animation: soundBarAnim 0.7s infinite alternate ease-in-out; }
.audio-toggle-btn.playing .audio-bar:nth-child(2) { animation: soundBarAnim 0.5s infinite alternate ease-in-out 0.2s; }
.audio-toggle-btn.playing .audio-bar:nth-child(3) { animation: soundBarAnim 0.8s infinite alternate ease-in-out 0.4s; }

@keyframes soundBarAnim {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0.4rem;
}

/* --------------------------------------------------------------------------
   Storyline HUD Index (Clean Minimalist Anchor Guide)
   -------------------------------------------------------------------------- */
.storyline-hud {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hud-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  cursor: pointer;
  text-decoration: none;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-tertiary);
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  background: var(--color-surface);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border-strong);
  transition: all 0.2s ease;
}

.hud-step:hover .hud-label {
  opacity: 1;
  transform: translateX(0);
}

.hud-step:hover .hud-dot {
  background: var(--color-emerald-600);
}

.hud-step.active .hud-dot {
  background: var(--color-emerald-600);
  transform: scale(1.35);
  box-shadow: 0 0 0 3px var(--color-emerald-100);
}

.hud-step.active .hud-label {
  opacity: 1;
  transform: translateX(0);
  color: var(--color-emerald-700);
  border-color: var(--color-emerald-200);
}

/* --------------------------------------------------------------------------
   Unified Card Language
   -------------------------------------------------------------------------- */
.ui-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.ui-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.ui-card-elevated {
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   Section Structure
   -------------------------------------------------------------------------- */
section {
  position: relative;
  z-index: 10;
  padding: 6rem 0;
}

/* ==========================================================================
   Chapter 00: Hero Section (Harmonized Split)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-title {
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-slate-900);
}

.hero-description {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Hero Unified Metrics Strip */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}

.hero-metric-item {
  display: flex;
  flex-direction: column;
}

.hero-metric-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-slate-900);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1.1;
}

.hero-metric-value .accent {
  color: var(--color-emerald-600);
}

.hero-metric-label {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  font-weight: 600;
  margin-top: 4px;
}

/* Hero Photo Showcase Frame */
.hero-visual-card {
  position: relative;
  height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.hero-charger-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-charger-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s var(--ease-standard);
}

.hero-visual-card:hover .hero-charger-img {
  transform: scale(1.02);
}

/* Status Overlay Pills */
.hero-charger-overlay-hud {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.hud-pill {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-slate-900);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-pill.status-online::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald-500);
}

/* Interactive Image Hotspots */
.image-hotspot-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-emerald-600);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.2s var(--ease-standard);
}

.image-hotspot-pin:hover, .image-hotspot-pin.active {
  transform: scale(1.2);
  background: var(--color-emerald-700);
}

.image-hotspot-pin svg {
  width: 12px;
  height: 12px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-slate-900);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-family: var(--font-sans);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 30;
}

.hotspot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: var(--color-slate-900) transparent transparent transparent;
}

.image-hotspot-pin:hover .hotspot-tooltip,
.image-hotspot-pin.active .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-interactive-tip {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  z-index: 20;
}

/* ==========================================================================
   Chapter 01: The Imperative (Comparative Architectural Grid)
   ========================================================================== */
.narrative-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.narrative-card {
  padding: 2.5rem;
}

.narrative-stat-callout {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Chapter 02: Hardware Studio (Clean Architectural Spec Viewer)
   ========================================================================== */
.studio-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--color-canvas-subtle);
  padding: 5px;
  border-radius: var(--radius-md);
  width: fit-content;
  border: 1px solid var(--color-border);
}

.studio-tab-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-sans);
}

.studio-tab-btn:hover {
  color: var(--color-text-primary);
}

.studio-tab-btn.active {
  background: var(--color-surface);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-xs);
}

.studio-display-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}

.studio-photo-container {
  position: relative;
  height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.studio-charger-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.studio-spec-panel {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.studio-spec-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-name {
  font-size: 0.86rem;
  color: var(--color-text-tertiary);
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

/* ==========================================================================
   Chapter 03: 7-Day Pipeline (Sequential Milestone Track)
   ========================================================================== */
.pipeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.pipeline-track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 5%;
  width: 90%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.pipeline-step-card {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pipeline-step-card:hover, .pipeline-step-card.in-view {
  border-color: var(--color-emerald-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.pipeline-number-bubble {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 1.25rem;
  transition: all var(--transition-normal);
}

.pipeline-step-card:hover .pipeline-number-bubble,
.pipeline-step-card.in-view .pipeline-number-bubble {
  background: var(--color-emerald-600);
  color: #ffffff;
  border-color: var(--color-emerald-600);
}

.pipeline-day-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-emerald-700);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.pipeline-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-slate-900);
}

.pipeline-card-desc {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Chapter 04: Central Management System (Pristine Light Enterprise SaaS HUD)
   ========================================================================== */
.cms-dashboard-mockup {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cms-window-header {
  background: var(--color-canvas-subtle);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-border-strong);
}

.cms-title-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-emerald-700);
  background: var(--color-emerald-50);
  padding: 3px 8px;
  border-radius: 4px;
}

.cms-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-emerald-500);
}

.cms-body-grid {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  min-height: 460px;
}

.cms-sidebar {
  border-right: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fbfcfd;
}

.cms-charger-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.cms-charger-card.active, .cms-charger-card:hover {
  border-color: var(--color-emerald-500);
  background: var(--color-emerald-50);
}

.cms-center-stage {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--color-surface);
}

.cms-chart-container {
  height: 220px;
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  position: relative;
}

#cms-power-canvas {
  width: 100%;
  height: 100%;
}

.cms-telemetry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.telemetry-tile {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.telemetry-tile-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  font-weight: 700;
}

.telemetry-tile-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-top: 3px;
}

.cms-actions-sidebar {
  border-left: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fbfcfd;
}

.cms-control-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-slate-900);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cms-control-btn.btn-stop {
  color: var(--color-rose-500);
}
.cms-control-btn.btn-stop:hover {
  background: #fff1f2;
  border-color: #fecdd3;
}

.cms-control-btn.btn-start {
  color: var(--color-emerald-700);
}
.cms-control-btn.btn-start:hover {
  background: var(--color-emerald-50);
  border-color: var(--color-emerald-200);
}

/* ==========================================================================
   Chapter 05: Sector Solutions (Unified 4-Quadrant Architecture)
   ========================================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.sector-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.sector-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-emerald-50);
  border: 1px solid var(--color-emerald-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.sector-icon-box svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-emerald-700);
  fill: none;
}

.sector-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  color: var(--color-slate-900);
}

.sector-card-text {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.sector-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.sector-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.sector-feature-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-emerald-600);
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* ==========================================================================
   Chapter 06: ROI Calculator (Harmonized Executive Financial Model)
   ========================================================================== */
.calculator-box {
  padding: 2.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.calc-inputs-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calc-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.calc-val-display {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--color-emerald-700);
  font-weight: 800;
}

.calc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-emerald-600);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Results Card in Deep Authoritative Slate */
.calc-results-col {
  background: var(--color-slate-900);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.result-main-val {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-emerald-500);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.result-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.75rem;
}

.result-small-title {
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.result-small-val {
  font-size: 1.25rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

/* ==========================================================================
   Chapter 07: National Radar (Harmonized Canvas)
   ========================================================================== */
.map-canvas-wrapper {
  position: relative;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

#network-radar-canvas {
  width: 100%;
  height: 100%;
}

.map-floating-stats {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.75rem;
}

.map-stat-badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.map-stat-title {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--color-text-tertiary);
  font-weight: 700;
}

.map-stat-val {
  font-size: 1.05rem;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--color-slate-900);
}

/* ==========================================================================
   Chapter 08: Trust Credentials
   ========================================================================== */
.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.trust-badge-card {
  padding: 1.75rem;
  text-align: left;
}

.trust-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-emerald-50);
  border: 1px solid var(--color-emerald-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.trust-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-emerald-700);
}

/* ==========================================================================
   Modal: Clean Step Wizard
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.97) translateY(10px);
  transition: transform 0.25s var(--ease-standard);
}

.modal-overlay.open .modal-content-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 1.75rem 2rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close-btn {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: var(--color-rose-500);
  border-color: #fecdd3;
}

.modal-body {
  padding: 2rem;
}

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-progress-bar {
  height: 4px;
  background: var(--color-canvas-subtle);
  border-radius: 2px;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 25%;
  background: var(--color-emerald-600);
  transition: width 0.3s ease;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.wizard-option-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: left;
  cursor: pointer;
  color: var(--color-text-primary);
  transition: all var(--transition-normal);
}

.wizard-option-btn:hover, .wizard-option-btn.selected {
  background: var(--color-emerald-50);
  border-color: var(--color-emerald-500);
}

.wizard-form-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-top: 0.4rem;
  outline: none;
  transition: border-color 0.2s;
}

.wizard-form-input:focus {
  border-color: var(--color-emerald-600);
  box-shadow: 0 0 0 3px var(--color-emerald-100);
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 1.25rem;
}

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

.footer-links-list a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-normal);
}

.footer-links-list a:hover {
  color: var(--color-emerald-700);
}

.footer-disclaimer-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  line-height: 1.6;
}

.footer-bottom-bar {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
}
