/* Kiiubit Energy - Modern Eco-Tech Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: rgba(243, 244, 246, 0.95);
  --glass-border: rgba(10, 43, 78, 0.1);
  --glass-glow: rgba(245, 158, 11, 0.15);
  
  --primary-gold: #0A2B4E; /* Kiiubit Blue */
  --primary-gold-bright: #185292; /* Light Blue */
  --primary-amber: #FACC15; /* Yellow Accent */
  --energy-emerald: #10B981;
  --energy-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-cyan: #06B6D4;
  
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 1) 70%);
}

/* Typography Utility */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-gold-bright) 0%, var(--primary-gold) 50%, var(--energy-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-emerald {
  background: linear-gradient(135deg, #34D399 0%, var(--energy-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Container */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 12px 40px 0 rgba(245, 158, 11, 0.12);
}

/* Header Container */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(10, 43, 78, 0.1);
  box-shadow: 0 4px 30px rgba(10, 43, 78, 0.08);
}

/* Ecosystem Banner - Dark Executive Top Bar */
.ecosystem-bar {
  background: linear-gradient(90deg, #0A2B4E 0%, #0F3A6B 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

.ecosystem-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ecosystem-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.eco-label {
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.02em;
  font-size: 0.76rem;
}

.ecosystem-pills {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ecosystem-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #CBD5E1;
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

.eco-pill {
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}

.eco-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.eco-pill.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  border-color: #FBBF24;
  color: #0A2B4E;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Navbar */
.navbar {
  position: relative;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0.65rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: var(--transition);
}

.brand-logo-img:hover {
  transform: scale(1.04);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-bright) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(10, 43, 78, 0.25);
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.83rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.desktop-nav-cta {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-size: 0.88rem !important;
  padding: 0.55rem 1.15rem !important;
}

.nav-links a:hover {
  color: var(--primary-gold-bright);
  background: rgba(10, 43, 78, 0.05);
}

.nav-links a.active-nav {
  color: var(--primary-gold-bright);
  background: rgba(10, 43, 78, 0.08);
  font-weight: 700;
}

.nav-link-bess {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: #B45309 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.nav-link-bess:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-bright) 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(10, 43, 78, 0.25);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(10, 43, 78, 0.38);
  background: linear-gradient(135deg, #0F3A6B 0%, #185292 100%);
}

.btn-secondary {
  background: rgba(10, 43, 78, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(10, 43, 78, 0.12);
  border-color: rgba(10, 43, 78, 0.2);
}

/* Hero Section */
.hero {
  padding: 10rem 2rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 1.25rem;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.stat-item .stat-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-gold-bright);
}

.stat-item .stat-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Calculator Section */
.calculator-section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-subtitle {
  color: var(--primary-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Calculator Mode Tabs */
.calc-mode-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mode-tab-btn {
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.mode-tab-btn:hover {
  background: rgba(24, 82, 146, 0.05);
  color: var(--primary-gold-bright);
}

.mode-tab-btn.active {
  font-weight: 700;
  border-color: var(--primary-gold-bright) !important;
  background: linear-gradient(135deg, rgba(10, 43, 78, 0.08) 0%, rgba(24, 82, 146, 0.12) 100%) !important;
  color: var(--primary-gold-bright) !important;
  box-shadow: 0 4px 15px rgba(24, 82, 146, 0.15) !important;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-inputs-card {
  padding: 2.5rem;
}

.input-group {
  margin-bottom: 1.15rem;
  text-align: left !important;
}

.input-label {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left !important;
  width: 100%;
}

.input-val-display {
  color: var(--primary-gold-bright);
  font-weight: 700;
  font-size: 1.05rem;
  margin-left: auto;
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E5E7EB;
  outline: none;
  accent-color: var(--primary-gold);
  cursor: pointer;
}

.select-box, .text-input, .captcha-input-field {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: rgba(249, 250, 251, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
  text-align: left !important;
  box-sizing: border-box;
}

.captcha-group {
  text-align: left !important;
}

.captcha-group > div {
  justify-content: flex-start !important;
  text-align: left !important;
}

.field-error-msg {
  text-align: left !important;
}
  transition: var(--transition);
}

.select-box:focus, .text-input:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.segment-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.segment-btn {
  padding: 0.75rem;
  background: rgba(10, 43, 78, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.segment-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--primary-gold);
  color: var(--primary-gold-bright);
}

/* Calculator Results Card */
.calc-results-card {
  padding: 2.5rem;
  background: linear-gradient(145deg, rgba(243, 244, 246, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Receipt Scanner Animation & Pulse Effects */
.scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #10B981, #185292, transparent);
  box-shadow: 0 0 15px #10B981;
  animation: scanLine 1.2s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 10;
}

@keyframes scanLine {
  0% { top: 2%; }
  100% { top: 94%; }
}

.result-updated-pulse {
  animation: pulseGreen 1.2s ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(1); border-color: rgba(245, 158, 11, 0.3); }
  50% { transform: scale(1.02); border-color: #10B981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
  100% { transform: scale(1); border-color: rgba(245, 158, 11, 0.3); }
}

.calc-results-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--glass-glow) 0%, transparent 70%);
  pointer-events: none;
}

.results-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.res-box {
  background: rgba(10, 43, 78, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.res-box .res-lbl {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.res-box .res-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.res-box.highlight .res-num {
  color: var(--energy-emerald);
}

.res-box.highlight-gold .res-num {
  color: var(--primary-gold-bright);
}

/* Products Section */
.products-section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-gold-bright);
  margin-bottom: 1.25rem;
}

.product-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.product-features li::before {
  content: '✓';
  color: var(--energy-emerald);
  font-weight: bold;
}

/* BESS Showcase Section */
.bess-showcase {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.bess-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
}

.bess-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.bess-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Pitch Deck Interactive Section */
.pitch-deck-section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.deck-container {
  padding: 3rem;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.slide-content {
  margin-bottom: 2rem;
}

.slide-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.slide-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.slide-body {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.deck-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
}

.slide-indicators {
  display: flex;
  gap: 0.5rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--primary-gold);
  width: 24px;
  border-radius: var(--radius-full);
}

/* Process Section */
.process-section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold-bright);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Ecosystem Banner Large */
.ecosystem-section {
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.eco-card {
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
}

.eco-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eco-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.25rem;
  box-sizing: border-box;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  padding: 1.75rem;
  position: relative;
  box-sizing: border-box;
}

.modal-box::-webkit-scrollbar {
  width: 6px;
}
.modal-box::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}
.modal-box::-webkit-scrollbar-thumb {
  background: var(--primary-gold);
  border-radius: 4px;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-col h4 {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Navigation Toggle Button & Dropdown Drawer */
.mobile-nav-toggle {
  display: none;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-bright) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(10, 43, 78, 0.25);
  transition: var(--transition);
  z-index: 1001;
}

.mobile-nav-toggle:hover {
  transform: scale(1.05);
}

.mobile-only-cta {
  display: none;
}

/* Responsive System */
@media (max-width: 1024px) {
  .hero, .calculator-grid, .bess-container {
    grid-template-columns: 1fr;
  }
  .products-grid, .process-steps, .ecosystem-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1180px) {
  /* Navbar Mobile/Tablet Layout */
  .desktop-nav-cta {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
  .mobile-only-cta {
    display: block !important;
    width: 100%;
    margin-top: 0.5rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 43, 78, 0.15);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
    display: none;
    z-index: 999;
    text-align: center;
    box-sizing: border-box;
  }

  .nav-links.mobile-active {
    display: flex !important;
    animation: fadeInDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  /* Strict Horizontal Containment */
  html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
  }
  
  /* Ecosystem Top Bar Mobile Optimization */
  .ecosystem-bar {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }

  .ecosystem-inner {
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
  }

  .ecosystem-right {
    display: none !important;
  }

  .ecosystem-left {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
  }

  .eco-label {
    display: none;
  }

  .ecosystem-pills {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .eco-pill {
    padding: 0.2rem 0.65rem;
    font-size: 0.72rem;
  }

  .navbar {
    padding: 0.65rem 1rem;
  }

  .nav-brand {
    font-size: 1.25rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  /* Centered Hero & Sections */
  .hero, .calculator-section, .products-section, .bess-showcase, .pitch-deck-section, .process-section, .ecosystem-section {
    padding: 2.5rem 1rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-content {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    text-align: center !important;
    margin-bottom: 1rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
    text-align: center !important;
    margin: 0 auto 1.5rem !important;
  }

  .hero-badge, .hero-badge span, .slide-header-tag {
    max-width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem !important;
    font-size: 0.78rem !important;
    padding: 0.4rem 0.85rem !important;
    box-sizing: border-box !important;
    line-height: 1.35 !important;
  }

  .section-header {
    text-align: center !important;
    margin-bottom: 2rem !important;
  }

  .section-subtitle, .section-title, .section-desc {
    text-align: center !important;
  }

  .section-title {
    font-size: 1.7rem !important;
  }

  .section-desc {
    font-size: 0.95rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Centered Product Cards */
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .product-card {
    padding: 1.5rem 1.25rem !important;
    text-align: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-icon {
    margin: 0 auto 1rem !important;
  }

  .product-title, .product-desc {
    text-align: center !important;
  }

  .product-features {
    text-align: left !important;
    margin: 0 auto 1.25rem !important;
    width: 100% !important;
  }

  /* BESS Showcase Section */
  .bess-container {
    padding: 1.5rem 1.25rem !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }

  .bess-content {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .bess-content h2, .bess-content p {
    text-align: center !important;
  }

  .bess-content h2 {
    font-size: 1.6rem !important;
  }

  /* Calculator Mobile Styles */
  .calc-mode-tabs {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .mode-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .calc-inputs-card {
    padding: 1.5rem 1.25rem !important;
    text-align: left !important;
  }

  .calc-results-card {
    padding: 1.5rem 1.25rem !important;
    text-align: center !important;
  }

  .calc-inputs-card .input-label, .input-label, .input-group, form {
    justify-content: flex-start !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .results-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .res-box {
    text-align: center !important;
    justify-content: center !important;
  }

  .res-box[style*="grid-column: span 2"] {
    grid-column: span 1 !important;
  }

  /* Process Steps */
  .process-steps {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .step-card {
    padding: 1.5rem 1.25rem !important;
    text-align: center !important;
  }

  .step-number {
    margin: 0 auto 1rem !important;
  }

  .step-title, .step-desc {
    text-align: center !important;
  }

  /* Ecosystem Cards */
  .ecosystem-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .eco-card {
    padding: 1.5rem 1.25rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .eco-card-header {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  /* Presentation Wrapper (`presentacion.html`) */
  .presentation-wrapper {
    margin-top: 130px !important;
    padding: 0 1rem !important;
    gap: 1.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .slide-block {
    padding: 1.5rem 1.15rem !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .slide-block-title {
    font-size: 1.55rem !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  .slide-block-desc {
    font-size: 0.92rem !important;
    text-align: center !important;
  }

  .stat-card-visual {
    text-align: center !important;
    align-items: center !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 1.25rem 1rem !important;
  }

  .spec-card {
    padding: 1.5rem 1.15rem !important;
    text-align: center !important;
  }

  .spec-title, .spec-subtitle {
    text-align: center !important;
  }

  .spec-list li {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.25rem !important;
    padding: 0.5rem 0 !important;
  }

  /* Mantenimiento Wrapper (`mantenimiento.html`) */
  .main-wrapper {
    margin-top: 130px !important;
    padding: 0 1rem !important;
    gap: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-maint {
    padding: 1.75rem 1.15rem !important;
    text-align: center !important;
  }

  .hero-maint h1 {
    font-size: 1.65rem !important;
    text-align: center !important;
  }

  .hero-maint p {
    font-size: 0.95rem !important;
    text-align: center !important;
  }

  .card-box {
    padding: 1.35rem 1rem !important;
    text-align: center !important;
  }

  .stat-badge-num {
    text-align: center !important;
    font-size: 2.2rem !important;
  }

  .plan-card {
    padding: 1.6rem 1.15rem !important;
    text-align: center !important;
  }

  .plan-card h3, .plan-card div {
    text-align: center !important;
  }

  .plan-list li {
    justify-content: center !important;
    text-align: center !important;
  }

  #maintForm {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }

  .footer-col {
    text-align: center !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center !important;
  }

  .segment-selector {
    grid-template-columns: 1fr !important;
  }

  .comp-table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Universal Mobile Buttons */
  .btn-primary, .btn-secondary, .trigger-quote-modal {
    max-width: 100% !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }
}

