/* ==========================================================================
   Buffergy.uk - Custom Brand Styling System (Vanilla CSS)
   Aesthetics: Rich Dark Theme, Off-White Tones, Electric Lime Accents
   Font: Archivo (Geometric Grotesque Sans-Serif)
   ========================================================================== */

/* --- Custom Properties (CSS Variables) --- */
:root {
  --color-bg-dark: hsl(80, 8%, 6%);         /* Slate-black charcoal with a tint of green */
  --color-bg-light: hsl(45, 12%, 95%);      /* Warm paper-white/cream for contrast */
  --color-card-dark: hsl(80, 8%, 10%);      /* Slightly lighter charcoal for cards */
  --color-card-light: hsl(45, 12%, 98%);     /* Clean white paper card */
  --color-primary: hsl(84, 62%, 48%);       /* Electric Lime Green (#89c826) */
  --color-primary-hover: hsl(84, 62%, 40%); /* Darker Lime Green */
  --color-primary-glow: hsla(84, 62%, 48%, 0.15); /* Soft lime ambient glow */
  
  --color-text-dark: hsl(80, 8%, 90%);      /* Off-white text on dark background */
  --color-text-light: hsl(80, 8%, 15%);     /* Near-black text on light background */
  --color-text-muted-dark: hsl(80, 4%, 60%); /* Secondary text on dark */
  --color-text-muted-light: hsl(80, 4%, 40%);/* Secondary text on light */
  
  --color-accent-red: hsl(5, 75%, 52%);     /* Deep warning red */
  --color-accent-orange: hsl(30, 85%, 50%);  /* Warning orange */
  --color-accent-blue: hsl(200, 80%, 50%);   /* Tech cyan blue */
  
  --font-family: 'Archivo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
  
  --border-radius-lg: 16px;
  --border-radius-md: 8px;
  --border-radius-sm: 4px;
  
  --container-max-width: 1200px;
}

/* --- Document Reset & Base Styling --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

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

a:hover {
  color: var(--color-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.grid {
  display: grid;
  gap: 32px;
}

.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

.align-center {
  align-items: center;
}

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

.section-padding {
  padding: 100px 0;
}

.section-margin {
  margin-top: 64px;
}

.dark-bg {
  background-color: hsl(80, 8%, 3%);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  font-family: var(--font-family);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-bg-dark);
  box-shadow: 0 0 20px rgba(137, 200, 38, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  box-shadow: 0 0 15px rgba(137, 200, 38, 0.25);
}

/* --- Custom Badges & Tags --- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(137, 200, 38, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(137, 200, 38, 0.25);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.badge-warning {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--color-accent-red);
  border: 1px solid rgba(255, 71, 87, 0.2);
}

.badge-success {
  background-color: rgba(46, 213, 115, 0.1);
  color: var(--color-primary);
  border: 1px solid rgba(46, 213, 115, 0.2);
}

.highlight {
  color: var(--color-primary);
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 50px;
  max-width: 700px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-tagline {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 38px;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--color-text-muted-dark);
  font-size: 18px;
}

/* --- Navigation Navbar (Reverted to Original full-width) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  display: flex;
  align-items: center;
  background-color: rgba(17, 18, 15, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  height: 95px;
  background-color: rgba(17, 18, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Logo Design */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-image {
  height: 95px;
  width: auto;
  transition: var(--transition-smooth);
  display: block;
}

.logo-container:hover .logo-image {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(137, 200, 38, 0.4));
}

.logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-muted-dark);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 0;
}

.nav-link:hover {
  color: #fff;
  background-color: transparent;
}

.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: var(--border-radius-md);
  margin-left: 0;
}

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

.menu-toggle span {
  width: 25px;
  height: 2px;
  background-color: #fff;
  border-radius: 4px;
  transition: var(--transition-fast);
}

/* --- Mobile Nav Dropdown --- */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: hsl(80, 8%, 6%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 18px;
  z-index: 999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  border-radius: 0;
  transition: none;
}

.navbar.scrolled ~ #mobile-nav-menu {
  top: 70px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  color: var(--color-text-muted-dark);
  font-size: 18px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover {
  color: #fff;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 180px 0 120px 0;
  min-height: 95vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(137, 200, 38, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(137, 200, 38, 0.02) 0%, transparent 50%);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: 64px;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 22px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-description {
  font-size: 16.5px;
  color: var(--color-text-muted-dark);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-standards {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--color-text-muted-dark);
  font-weight: 500;
}

.standard-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted-dark);
  transition: var(--transition-fast);
}

.standard-item:hover {
  color: #fff;
}

.standard-item svg {
  color: var(--color-primary);
}

.standard-dot {
  color: rgba(255, 255, 255, 0.15);
}

/* Hero Visual: Modern VPP Dashboard Console */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-dashboard-console {
  background-color: rgba(15, 16, 13, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6),
              inset 0 0 30px rgba(255, 255, 255, 0.02),
              0 0 40px rgba(137, 200, 38, 0.03);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.console-header {
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.console-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-green {
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: simple-pulse 2s infinite ease-in-out;
}

@keyframes simple-pulse {
  0% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.6; transform: scale(0.9); }
}

.console-title {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}

.console-code {
  font-size: 10px;
  font-family: monospace;
  color: var(--color-text-muted-dark);
  margin-left: auto;
}

.console-main {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  padding: 24px;
  gap: 24px;
  align-items: center;
}

.console-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Scanner and Image container */
.product-scanner-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.scanner-glow {
  position: absolute;
  bottom: 0px;
  width: 120px;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(137, 200, 38, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  animation: scanner-glow-pulse 4s infinite ease-in-out;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanner-glow-pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.product-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 16px;
  border-radius: var(--border-radius-md);
  text-align: center;
  width: 100%;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
  position: relative;
  z-index: 2;
}

.console-product-image {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 12px auto;
  border-radius: var(--border-radius-md);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  transition: var(--transition-smooth);
}

.console-product-image:hover {
  transform: scale(1.05) translateY(-3px);
  filter: drop-shadow(0 15px 25px rgba(137, 200, 38, 0.15));
}

.product-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
}

.console-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.console-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.console-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  transition: var(--transition-fast);
}

.console-stat-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(137, 200, 38, 0.2);
}

.stat-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--color-text-muted-dark);
  letter-spacing: 0.05em;
}

.stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.stat-val.highlight {
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(137, 200, 38, 0.3);
}

.stat-unit {
  font-size: 9px;
  color: var(--color-text-muted-dark);
  text-transform: uppercase;
  font-weight: 600;
}

.mini-graph-container {
  height: 35px;
  background-color: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

/* Console Footer: Live Simulated Terminal Log */
.console-terminal {
  background-color: rgba(10, 11, 8, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
}

.terminal-header {
  background-color: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.terminal-dot.blink {
  animation: terminal-blink 1.5s infinite step-end;
}

@keyframes terminal-blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-title {
  color: var(--color-text-muted-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 12px 20px;
  height: 90px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
  display: none;
}

.terminal-line {
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.term-time {
  color: var(--color-text-muted-dark);
}

.term-sys {
  color: var(--color-accent-blue);
  font-weight: bold;
}

.term-ok {
  color: var(--color-primary);
  font-weight: bold;
}

.term-event {
  color: var(--color-accent-orange);
  font-weight: bold;
}

/* --- Cards & Glassmorphism --- */
.glass-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-family: var(--font-family);
  letter-spacing: 0.1em;
}

.card-title {
  font-size: 22px;
  margin-bottom: 16px;
}

.card-text {
  color: var(--color-text-muted-dark);
  font-size: 15px;
  line-height: 1.6;
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.red-accent {
  background-color: rgba(255, 71, 87, 0.1);
  color: var(--color-accent-red);
}

.orange-accent {
  background-color: rgba(255, 127, 80, 0.1);
  color: var(--color-accent-orange);
}

.green-accent {
  background-color: rgba(137, 200, 38, 0.1);
  color: var(--color-primary);
}

/* --- Solution Architecture Tabs --- */
.architecture-tabs {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.tab-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted-dark);
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family);
  transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(137, 200, 38, 0.2);
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.pane-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 16px;
}

.pane-text h3 {
  font-size: 28px;
  margin-bottom: 18px;
}

.pane-text p {
  color: var(--color-text-muted-dark);
  margin-bottom: 24px;
}

.benefit-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.cross {
  color: var(--color-accent-red);
  font-weight: bold;
}

.tick {
  color: var(--color-primary);
  font-weight: bold;
}

/* Flow Diagrams */
.pane-visual {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.flow-node {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--border-radius-md);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.flow-node.highlight-red {
  border-color: rgba(255, 71, 87, 0.4);
  background-color: rgba(255, 71, 87, 0.02);
}

.node-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.node-meta {
  font-size: 12px;
  color: var(--color-text-muted-dark);
}

.flow-arrow {
  text-align: center;
  color: var(--color-text-muted-dark);
  font-size: 20px;
  transform: rotate(90deg);
}

/* VPP central orchestrator graph */
.central-orchestrator {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orchestrator-core {
  width: 110px;
  height: 110px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 0 30px rgba(137, 200, 38, 0.4);
}

.core-logo {
  font-size: 15px;
  font-weight: 900;
  color: var(--color-bg-dark);
  letter-spacing: -0.05em;
}

.core-status {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-bg-dark);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.orbit-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100px;
}

.orbit-target {
  font-size: 9px;
  color: var(--color-primary);
  text-transform: uppercase;
}

.flex-line-1 { top: 0; left: 100px; }
.flex-line-2 { bottom: 0; left: 100px; }
.flex-line-3 { left: 0; top: 115px; }
.flex-line-4 { right: 0; top: 115px; }

/* Connecting lines in orbit */
.central-orchestrator::after {
  content: '';
  position: absolute;
  top: 50px;
  left: 50px;
  right: 50px;
  bottom: 50px;
  border: 1px dashed rgba(137, 200, 38, 0.2);
  border-radius: 50%;
  pointer-events: none;
  animation: rotate-dashed 20s infinite linear;
}

/* --- Interactive Flex Calculator --- */
.calculator-grid {
  align-items: stretch;
}

.calculator-inputs h3, .calculator-outputs h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.input-desc {
  color: var(--color-text-muted-dark);
  font-size: 14px;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 36px;
}

.input-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.input-labels label {
  font-weight: 600;
  font-size: 15px;
  color: #fff;
}

.input-value {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}

/* Range Slider Custom Styling */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  outline: none;
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(137, 200, 38, 0.5);
  transition: var(--transition-fast);
}

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

.slider-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--color-text-muted-dark);
}

/* --- Dark Card (used in simulator chart wrapper) --- */
.dark-card {
  background-color: hsl(80, 8%, 4%);
  border-color: rgba(137, 200, 38, 0.15);
  box-shadow: inset 0 0 30px rgba(137, 200, 38, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Horizontal Roadmap & Spec Grid --- */
.roadmap-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 40px;
}

/* Connecting line on desktop */
@media (min-width: 769px) {
  .roadmap-horizontal::before {
    content: '';
    position: absolute;
    top: 25px; /* Aligns vertically with the center of the nodes */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
      var(--color-primary) 0%, 
      rgba(137, 200, 38, 0.4) 50%, 
      rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
  }
}

.roadmap-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  text-align: center;
}

.step-node {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-bg-dark);
  border: 3px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.8);
}

.roadmap-step:nth-child(1) .step-node {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 15px rgba(137, 200, 38, 0.3), 0 0 0 4px rgba(0, 0, 0, 0.8);
}

.roadmap-step:nth-child(2) .step-node {
  border-color: rgba(137, 200, 38, 0.6);
  color: rgba(137, 200, 38, 0.8);
}

.roadmap-step:hover .step-node {
  transform: scale(1.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 20px rgba(137, 200, 38, 0.5), 0 0 0 4px rgba(0, 0, 0, 0.8);
}

.step-card {
  padding: 24px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.step-badge {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  align-self: flex-start;
  color: var(--color-text-muted-dark);
}

.roadmap-step:nth-child(1) .step-badge {
  background-color: rgba(137, 200, 38, 0.1);
  border-color: rgba(137, 200, 38, 0.2);
  color: var(--color-primary);
}

.step-card h4 {
  font-size: 16px;
  color: #fff;
}

.step-card p {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  line-height: 1.6;
}

/* Specs 3-column Section Layout */
.specs-section-container {
  margin-top: 80px;
}

.spec-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.spec-item-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.01);
}

.spec-item-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(137, 200, 38, 0.15);
}

.spec-icon {
  width: 44px;
  height: 44px;
  background-color: rgba(137, 200, 38, 0.08);
  color: var(--color-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(137, 200, 38, 0.12);
}

.spec-text h5 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #fff;
}

.spec-text p {
  color: var(--color-text-muted-dark);
  font-size: 13px;
  line-height: 1.6;
}

/* Responsive Overrides for Roadmap & Spec Grid */
@media (max-width: 992px) {
  .roadmap-horizontal {
    gap: 20px;
  }
  .spec-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .roadmap-horizontal {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-left: 20px;
  }
  
  .roadmap-horizontal::before {
    content: '';
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 45px;
    width: 2px;
    background: linear-gradient(180deg, 
      var(--color-primary) 0%, 
      rgba(137, 200, 38, 0.4) 50%, 
      rgba(255, 255, 255, 0.1) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .roadmap-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 24px;
  }

  .step-node {
    margin-bottom: 0;
    flex-shrink: 0;
    z-index: 2;
  }

  .step-card {
    min-height: auto;
  }

  .spec-grid-three {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- Team & Traction Timeline --- */
.founders-cards {
  display: grid;
  gap: 20px;
}

.founder-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.founder-avatar-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.founder-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: cover;
  flex-shrink: 0;
}

.founder-info h4 {
  font-size: 18px;
  margin-bottom: 2px;
}

.founder-link {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

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

.linkedin-icon {
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transition: var(--transition-fast);
}

.founder-link:hover .linkedin-icon {
  opacity: 1;
  transform: translateY(-1px);
}

.founder-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 8px;
}

.founder-bio {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  line-height: 1.5;
}

/* Traction Timeline */
.traction-wrapper h3 {
  font-size: 24px;
  margin-bottom: 30px;
}

.traction-timeline {
  position: relative;
  padding-left: 24px;
}

.traction-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.08);
}

.traction-item {
  position: relative;
  margin-bottom: 24px;
}

.traction-item:last-child {
  margin-bottom: 0;
}

.traction-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid var(--color-bg-dark);
}

.active-dot {
  background-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.traction-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

.traction-content-item h5 {
  font-size: 15px;
  margin-bottom: 6px;
}

.traction-content-item p {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  line-height: 1.5;
}

/* --- Real Contact Form --- */
.contact-grid {
  gap: 48px;
}

.contact-text h2 {
  font-size: 38px;
}

.contact-email-info {
  font-size: 16px;
  margin-top: 16px;
  color: var(--color-text-muted-dark);
}

.contact-email-info a {
  font-weight: 700;
}

.eic-note {
  margin-top: 36px;
  background-color: rgba(137, 200, 38, 0.02);
  border: 1px solid rgba(137, 200, 38, 0.15);
  padding: 24px;
}

.eic-note h5 {
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.eic-note p {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  line-height: 1.6;
}

/* Form Styling */
.contact-form-wrapper h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 14px;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(137, 200, 38, 0.1);
}

.form-group select option {
  background-color: var(--color-bg-dark);
  color: #fff;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--border-radius-md);
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: rgba(46, 213, 115, 0.15);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
}

.form-status.error {
  display: block;
  background-color: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
}

/* --- Footer --- */
.footer {
  background-color: hsl(80, 8%, 3%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 0 30px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 50px;
}

.footer-brand {
  max-width: 320px;
}

.footer-desc {
  color: var(--color-text-muted-dark);
  font-size: 14px;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-group h6 {
  font-size: 12px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.link-group a {
  color: var(--color-text-muted-dark);
  font-size: 14px;
}

.link-group a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-muted-dark);
}

/* --- Keyframe Animations --- */
@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(137, 200, 38, 0.7);
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(137, 200, 38, 0);
  }
  100% {
    transform: scale(0.9);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(137, 200, 38, 0);
  }
}

/* Slow float animation disabled */

@keyframes rotate-dashed {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Scroll Reveal (JS triggers class active) --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* --- Responsive Layout Breaks --- */
@media (max-width: 992px) {
  .grid-3-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .hero-title {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .grid-2-col, .grid-3-col {
    grid-template-columns: 1fr;
  }
  
  .navbar-container {
    position: relative;
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-section {
    padding: 120px 0 60px 0;
    text-align: center;
  }
  
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 48px;
  }
  
  .hero-specs-row {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 100%;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
  }
  
  .footer-bottom-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .tab-buttons {
    flex-direction: column;
  }
}

/* --- Peak Shaving Simulator --- */
.simulator-section {
  background-color: hsl(80, 8%, 5%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.simulator-grid {
  margin-top: 40px;
  align-items: stretch;
}

.simulator-controls {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.simulator-controls h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.simulator-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.sim-metric {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--border-radius-md);
  text-align: center;
}

.sim-metric-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-text-muted-dark);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.sim-metric-val {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.sim-tip {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  line-height: 1.5;
  border-left: 2px solid var(--color-primary);
  padding-left: 12px;
}

.simulator-chart {
  padding: 30px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.chart-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
}

.chart-legend {
  display: flex;
  gap: 16px;
}

.legend-line {
  font-size: 11px;
  color: var(--color-text-muted-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-line::before {
  content: '';
  width: 12px;
  height: 3px;
  display: inline-block;
  border-radius: 2px;
}

.line-red::before {
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.4);
}

.line-green::before {
  background-color: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
}

.chart-wrapper {
  flex-grow: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#demand-chart-svg {
  width: 100%;
  height: 100%;
  max-height: 220px;
  overflow: visible;
}

.chart-text {
  font-family: var(--font-family);
  font-size: 9px;
  fill: var(--color-text-muted-dark);
  font-weight: 500;
}

/* Responsive Rules for Simulator & Hero Grid */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 40px auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-standards {
    justify-content: center;
  }
  
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .simulator-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .chart-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* Product Badge Card (Below Simulator) */
.product-badge-card {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 24px;
  margin-top: 32px;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
}

.mini-product-pic {
  width: 45px;
  height: auto;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.mini-product-pic:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(137, 200, 38, 0.2);
}

.badge-card-info h5 {
  font-size: 15px;
  margin-bottom: 6px;
  color: #fff;
}

.badge-card-info p {
  font-size: 13px;
  color: var(--color-text-muted-dark);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .product-badge-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .mini-product-pic {
    width: 60px;
  }
}
