@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette - Enterprise Slate/Navy Dark Mode */
  --bg-dark: #030712;          /* Deepest Zinc/Gray 950 */
  --bg-card: #090d16;          /* Deep Navy-Zinc dark panel */
  --bg-card-hover: #111827;    /* Slate 900 for active hover states */
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.12);
  
  /* Accent Colors */
  --accent-primary: #3b82f6;   /* Steel/Operations Blue */
  --accent-primary-rgb: 59, 130, 246;
  --accent-success: #10b981;   /* Flow/Continuous Improvement Emerald */
  --accent-success-rgb: 16, 185, 129;
  --accent-warning: #f59e0b;   /* Waste/Warning Amber */
  --accent-warning-rgb: 245, 158, 11;
  --accent-danger: #ef4444;    /* Error Red */
  
  /* Text Colors */
  --text-primary: #f9fafb;     /* High contrast white-gray */
  --text-secondary: #9ca3af;   /* Soft slate gray */
  --text-muted: #6b7280;       /* Darker slate for labels */
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

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

button, input {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
}

/* ==========================================================================
   UTILITY CLASSES & GRID SYSTEM
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  align-items: center;
}

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

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-primary);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.badge-soon {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent-warning);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-scrolled {
  background-color: rgba(3, 7, 18, 0.9);
  height: 64px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

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

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-success));
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
}

.logo span {
  color: var(--text-primary);
}

.logo span.logo-alt {
  background: linear-gradient(to right, var(--text-primary) 60%, var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 110;
}

.menu-bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

/* Ambient glow backgrounds */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(3, 7, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.04) 0%, rgba(3, 7, 18, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 60%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.hero-visual-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Network SVG Styling */
.hero-svg {
  width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: 12px;
  background: rgba(9, 13, 22, 0.4);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.network-node {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.network-node:hover circle {
  fill: var(--accent-primary);
  filter: drop-shadow(0 0 8px var(--accent-primary));
}

.flow-line {
  stroke-dasharray: 8 8;
  animation: dashOffset 30s linear infinite;
}

.flow-line-optimized {
  stroke: var(--accent-success);
  stroke-dasharray: 6 6;
  animation: dashOffset 20s linear infinite reverse;
}

@keyframes dashOffset {
  to {
    stroke-dashoffset: -1000;
  }
}

.flow-pulse {
  animation: pulseNode 3s infinite ease-in-out;
}

@keyframes pulseNode {
  0%, 100% {
    r: 4px;
    opacity: 0.3;
  }
  50% {
    r: 10px;
    opacity: 0.8;
  }
}

/* ==========================================================================
   SECTION 2 — THE PROBLEM
   ========================================================================== */
.problem-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(9, 13, 22, 0.6) 100%);
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.waste-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.waste-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.waste-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
  background-color: var(--bg-card-hover);
}

.waste-card .waste-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--accent-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.waste-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.waste-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.problem-visual {
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.spreadsheet-mockup {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow-x: auto;
}

.spreadsheet-header {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  font-weight: bold;
}

.spreadsheet-row {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 0;
}

.spreadsheet-col {
  flex: 1;
  min-width: 60px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.spreadsheet-col.warning {
  color: var(--accent-warning);
  font-weight: bold;
}

.spreadsheet-col.danger {
  color: var(--accent-danger);
  font-weight: bold;
}

.metrics-overlay {
  display: flex;
  justify-content: space-around;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.metric-box {
  text-align: center;
}

.metric-box .val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-warning);
}

.metric-box .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ==========================================================================
   SECTION 3 — THE VISION
   ========================================================================== */
.vision-section {
  position: relative;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.vision-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.vision-card:hover {
  transform: translateY(-4px);
}

.vision-card.reactive {
  border-left: 4px solid var(--accent-warning);
}

.vision-card.proactive {
  border-left: 4px solid var(--accent-success);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(16, 185, 129, 0.02) 100%);
}

.vision-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.vision-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vision-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.vision-item-icon {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactive .vision-item-icon {
  color: var(--accent-warning);
}

.proactive .vision-item-icon {
  color: var(--accent-success);
}

.vision-item-content h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.vision-item-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 4 — FIRST PRODUCT: VEHICLE TRANSPORT SOLVER
   ========================================================================== */
.product-section {
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.6) 0%, var(--bg-dark) 100%);
}

.product-features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
  border-color: var(--border-color);
}

.feature-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item-text h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.feature-item-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Solver Interactive Widget */
.solver-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.solver-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.solver-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.solver-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.solver-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-warning);
  box-shadow: 0 0 8px var(--accent-warning);
}

.solver-status-dot.solved {
  background-color: var(--accent-success);
  box-shadow: 0 0 8px var(--accent-success);
}

/* Double deck transporter graphic */
.transporter-visual {
  background-color: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 160px;
  overflow: hidden;
}

.transporter-deck {
  height: 60px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding-bottom: 4px;
  position: relative;
}

.transporter-deck.lower {
  border-bottom: none;
  margin-top: 15px;
}

.transporter-deck-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* Transporter truck cabin design */
.transporter-truck {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 60px;
  height: 80px;
  background-color: #1f2937;
  border-radius: 4px 12px 4px 4px;
  border-left: 2px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.transporter-truck::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 6px;
  width: 18px;
  height: 20px;
  background-color: #374151;
  border-radius: 2px 6px 2px 2px;
}

/* Vehicles inside Transporter */
.solver-vehicle {
  height: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  color: var(--accent-primary);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  position: relative;
  flex-shrink: 0;
}

.solver-vehicle.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--accent-warning);
}

.solver-vehicle.success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-success);
}

.solver-vehicle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.solver-vehicle::before {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

/* Sizes of Vehicles */
.v-sm { width: 45px; }
.v-md { width: 65px; }
.v-lg { width: 85px; }

/* Control panel for simulator */
.solver-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(3, 7, 18, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.solver-stat {
  display: flex;
  flex-direction: column;
}

.solver-stat-val {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.solver-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.solver-btn {
  background-color: var(--accent-primary);
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
  transition: var(--transition-smooth);
}

.solver-btn:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

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

.solver-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--border-color-hover);
  box-shadow: none;
}

/* Unallocated vehicles holding area */
.unallocated-pool {
  margin-top: 1.5rem;
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  background-color: rgba(3, 7, 18, 0.2);
}

.unallocated-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.unallocated-vehicles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 32px;
}

/* ==========================================================================
   SECTION 5 — WHAT COMES NEXT (ROADMAP)
   ========================================================================== */
.roadmap-section {
  position: relative;
  background-color: rgba(9, 13, 22, 0.2);
}

.roadmap-timeline {
  position: relative;
  margin-top: 4rem;
}

/* Horizontal line on desktop */
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--accent-primary) 0%, 
    rgba(59, 130, 246, 0.4) 30%, 
    rgba(255, 255, 255, 0.05) 70%, 
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.roadmap-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.roadmap-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.75rem;
  padding-top: 5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.roadmap-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
}

.roadmap-dot {
  position: absolute;
  top: 42px;
  left: 1.75rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  border: 3px solid var(--border-color);
  z-index: 3;
  transition: var(--transition-smooth);
}

.roadmap-card:hover .roadmap-dot {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.roadmap-card.active .roadmap-dot {
  border-color: var(--accent-primary);
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.roadmap-phase {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.roadmap-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.roadmap-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 6 — WHY IT MATTERS (KPIs)
   ========================================================================== */
.kpi-section {
  position: relative;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.kpi-card:hover::before {
  background-color: var(--accent-success);
}

.kpi-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.kpi-val span {
  color: var(--accent-success);
}

.kpi-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.kpi-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* ==========================================================================
   SECTION 7 — FOR WHO
   ========================================================================== */
.audience-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(9, 13, 22, 0.4) 100%);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.audience-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.audience-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
  background-color: var(--bg-card-hover);
}

.audience-card-header {
  margin-bottom: 1.5rem;
}

.audience-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.audience-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.audience-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.audience-footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.audience-footer-link svg {
  transition: transform 0.2s ease;
}

.audience-card:hover .audience-footer-link svg {
  transform: translateX(3px);
}

/* ==========================================================================
   SECTION 8 — EARLY ACCESS (WAITLIST FORM)
   ========================================================================== */
.waitlist-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 10rem;
}

.waitlist-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(3, 7, 18, 0) 70%);
  pointer-events: none;
}

.waitlist-card {
  max-width: 580px;
  margin: 0 auto;
  background-color: rgba(9, 13, 22, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  text-align: center;
}

.waitlist-card h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.waitlist-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

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

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.form-control {
  background-color: rgba(3, 7, 18, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.875rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background-color: rgba(3, 7, 18, 0.8);
}

.form-submit {
  margin-top: 1rem;
  width: 100%;
}

.form-message {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  border-radius: 6px;
  padding: 1rem;
  display: none;
  text-align: center;
}

.form-message.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
}

.form-message.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--accent-danger);
}

/* ==========================================================================
   SECTION 9 — FOOTER
   ========================================================================== */
.footer {
  background-color: #02050c;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

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

.footer-tagline {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

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

.footer-link {
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Intersection Observer)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* ==========================================================================
   RESPONSIVE STYLES (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-5, .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  .roadmap-timeline::before {
    display: none;
  }
  .roadmap-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .roadmap-card {
    padding-top: 2rem;
    padding-left: 4.5rem;
  }
  .roadmap-dot {
    top: 2.25rem;
    left: 1.75rem;
  }
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .problem-grid, .vision-grid, .product-features-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
  }
  .hero-headline {
    font-size: 2.75rem;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* Mobile menu can be expanded or toggle links */
  }
  .menu-toggle {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .waste-cards {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .waitlist-card {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   PRODUCTS DROPDOWN MENU
   ========================================================================== */
.nav-item.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.dropdown-toggle svg {
  transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background-color: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  width: 290px;
  padding: 0.85rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  text-align: left;
}

.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-item-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
  line-height: 1.2;
}

/* ==========================================================================
   DEMO LOGIN MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 440px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.modal-credential-hint {
  background-color: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
  text-align: left;
}

.modal-credential-hint strong {
  color: var(--text-primary);
}

