/* ============================================================
   AAA BATTERY — Complete Design System
   css/aaa-battery.css
   ============================================================ */

/* 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Colours */
  --color-navy-deep:   #071422;
  --color-navy:        #0F2236;
  --color-navy-mid:    #1B3A58;
  --color-slate:       #2C4A65;
  --color-gold:        #B8860B;
  --color-gold-bright: #D4A017;
  --color-gold-hi:     #F0C040;
  --color-white:       #FFFFFF;
  --color-offwhite:    #E8EDF2;
  --color-grey:        #8A9BAD;
  --color-muted:       #4A6280;
  --color-success:     #27AE60;
  --color-alert:       #C0392B;
  --color-whatsapp:    #25D366;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-pad: 100px 0;
  --section-pad-sm: 64px 0;
  --container-max: 1200px;
  --side-pad: clamp(24px, 5vw, auto);

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-mid:  0.35s ease;
  --trans-slow: 0.6s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-offwhite);
  background: var(--color-navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-gold-bright);
  text-decoration: none;
  transition: color var(--trans-fast);
}

a:hover {
  color: var(--color-gold-hi);
}

ul, ol {
  list-style: none;
}

/* 3. GOLD BARS (TOP + BOTTOM)
   ============================================================ */
.gold-bar-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-gold);
  z-index: 9999;
}

.gold-bar-bottom {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-gold);
}

/* 4. TYPOGRAPHY CLASSES
   ============================================================ */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.display-section {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.display-medium {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
}

.subhead {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-offwhite);
}

.body-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-offwhite);
}

.body-large {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-offwhite);
}

.caption {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-grey);
}

/* 5. EYEBROW / LABEL
   ============================================================ */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 16px;
}

/* 6. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 3px; /* below gold bar */
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0 clamp(24px, 5vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--trans-mid), backdrop-filter var(--trans-mid);
}

.nav.scrolled {
  background: rgba(15, 34, 54, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.nav__logo {
  flex-shrink: 0;
}

.nav__logo img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

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

.nav__links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-offwhite);
  transition: color var(--trans-fast);
  white-space: nowrap;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-gold-bright);
}

/* Products dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-offwhite);
  background: none;
  border: none;
  transition: color var(--trans-fast);
}

.nav__dropdown-toggle:hover {
  color: var(--color-gold-bright);
}

.nav__dropdown-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--trans-fast);
}

.nav__dropdown:hover .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  border: 1px solid var(--color-slate);
  border-top: 2px solid var(--color-gold);
  border-radius: 4px;
  padding: 8px 0;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-fast), visibility var(--trans-fast);
  white-space: nowrap;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--color-offwhite);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.nav__dropdown-menu a:hover {
  background: rgba(212, 160, 23, 0.08);
  color: var(--color-gold-bright);
}

.nav__dropdown-menu .price-tag {
  font-size: 12px;
  color: var(--color-grey);
}

.nav__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-grey);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--trans-fast);
}

.lang-toggle:hover {
  color: var(--color-offwhite);
}

.lang-toggle .sep {
  color: var(--color-slate);
}

.lang-toggle .active-lang {
  color: var(--color-gold-bright);
}

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-offwhite);
  transition: transform var(--trans-fast), opacity var(--trans-fast);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-navy-deep);
  z-index: 800;
  display: flex;
  flex-direction: column;
  padding: 100px 32px 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-mid), visibility var(--trans-mid);
}

.nav__mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.nav__mobile-links a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  padding: 8px 0;
  border-bottom: 1px solid rgba(44, 74, 101, 0.4);
  transition: color var(--trans-fast);
}

.nav__mobile-links a:hover {
  color: var(--color-gold-bright);
}

.nav__mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.nav__mobile-lang {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(44, 74, 101, 0.4);
}

/* 7. FOOTER
   ============================================================ */
.footer {
  background: var(--color-navy-deep);
  border-top: 1px solid var(--color-slate);
  padding: 64px clamp(24px, 5vw, 48px) 0;
}

.footer__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand img {
  height: 40px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

.footer__tagline {
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 16px;
}

.footer__col ul li {
  margin-bottom: 10px;
}

.footer__col ul li a {
  font-size: 14px;
  color: var(--color-offwhite);
  transition: color var(--trans-fast);
}

.footer__col ul li a:hover {
  color: var(--color-gold-bright);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.footer__contact-item .label {
  font-size: 11px;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.footer__contact-item a {
  font-size: 14px;
  color: var(--color-offwhite);
}

.footer__bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid rgba(44, 74, 101, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom p {
  font-size: 13px;
  color: var(--color-muted);
}

/* 8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--trans-fast), color var(--trans-fast), transform var(--trans-fast), border-color var(--trans-fast);
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background: var(--color-gold-bright);
  color: var(--color-navy-deep);
}

.btn-primary:hover {
  background: var(--color-gold-hi);
  color: var(--color-navy-deep);
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-gold-bright);
  color: var(--color-gold-bright);
}

.btn-secondary:hover {
  background: rgba(212, 160, 23, 0.08);
  color: var(--color-gold-bright);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: var(--color-white);
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--color-slate);
  color: var(--color-offwhite);
}

.btn-ghost:hover {
  border-color: var(--color-gold-bright);
  color: var(--color-gold-bright);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* 9. CARDS
   ============================================================ */
.card {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-slate);
  border-radius: 6px;
  padding: 32px;
  transition: border-color var(--trans-fast), transform var(--trans-mid);
}

.card:hover {
  border-color: rgba(212, 160, 23, 0.4);
}

.card--featured {
  border-top: 3px solid var(--color-gold-bright);
}

.card--gold {
  border: 1px solid var(--color-gold);
}

/* 10. FORMS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-navy);
  border: 1px solid var(--color-slate);
  border-radius: 4px;
  color: var(--color-offwhite);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--trans-fast);
  min-height: 48px;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold-bright);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BAD' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--color-navy);
  color: var(--color-offwhite);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-gold-bright);
  cursor: pointer;
  margin-top: 2px;
}

.form-checkbox-label {
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.5;
  cursor: pointer;
}

.form-error {
  font-size: 12px;
  color: var(--color-alert);
  margin-top: 4px;
  display: none;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.visible {
  display: block;
}

.form-success .success-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--color-white);
  margin-bottom: 12px;
}

.form-success p {
  color: var(--color-grey);
  font-size: 16px;
}

/* 11. SECTIONS / LAYOUT PRIMITIVES
   ============================================================ */
.section {
  padding: var(--section-pad);
}

.section--navy {
  background: var(--color-navy);
}

.section--deep {
  background: var(--color-navy-deep);
}

.section--mid {
  background: var(--color-navy-mid);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
}

.section-header {
  max-width: 720px;
  margin-bottom: 56px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Divider */
.divider {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: 20px 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* 12. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--color-navy-deep);
  display: flex;
  align-items: center;
  padding: 120px clamp(24px, 5vw, 48px) 80px;
  position: relative;
  overflow: hidden;
}

.hero__grid-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 134, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 134, 11, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* 13. BMS DEVICE ANIMATION
   ============================================================ */
.bms-device {
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.bms-device:hover {
  transform: rotate(-3deg) translateY(-4px);
}

.bms-screen {
  background: #050E18;
  border: 2px solid var(--color-gold);
  border-radius: 6px;
  padding: 28px 32px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-width: 300px;
  max-width: 340px;
  box-shadow: 0 0 40px rgba(184, 134, 11, 0.15), 0 20px 60px rgba(0,0,0,0.6);
}

.bms-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.bms-label {
  color: var(--color-grey);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.bms-value {
  color: #39ff14;
  font-weight: bold;
  font-size: 13px;
}

.bms-value--amber {
  color: #F0A500;
}

.bms-bar-container {
  margin-bottom: 8px;
}

.bms-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.bms-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #27AE60, #39ff14);
  border-radius: 4px;
  width: 0%;
  animation: batteryCharge 2.5s ease-out 0.5s forwards;
}

@keyframes batteryCharge {
  from { width: 0%; }
  to   { width: 87%; }
}

.bms-divider {
  border: none;
  border-top: 1px solid rgba(44, 74, 101, 0.6);
  margin: 8px 0;
}

.bms-charging-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #39ff14;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
  margin-right: 6px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* 14. COUNTER
   ============================================================ */
.counter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.counter__dot {
  width: 10px;
  height: 10px;
  background: var(--color-success);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.counter__number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
}

.counter__label {
  font-size: 14px;
  color: var(--color-grey);
  max-width: 200px;
  line-height: 1.4;
}

/* 15. PERSONA CARDS
   ============================================================ */
.persona-card {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-slate);
  border-radius: 6px;
  padding: 32px;
  transition: border-color var(--trans-fast), transform var(--trans-mid);
}

.persona-card:hover {
  border-color: rgba(212, 160, 23, 0.3);
  transform: translateY(-4px);
}

.persona-card--featured {
  border-top: 3px solid var(--color-gold-bright);
}

.persona-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

.persona-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.persona-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--color-offwhite);
  margin-bottom: 8px;
  line-height: 1.6;
}

.persona-quote-en {
  font-size: 14px;
  color: var(--color-grey);
  margin-bottom: 20px;
  font-style: italic;
}

.persona-system {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-bright);
  margin-bottom: 4px;
}

.persona-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
}

/* 16. SPEC TABLES
   ============================================================ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.spec-table th {
  text-align: left;
  padding: 14px 20px;
  background: var(--color-navy);
  color: var(--color-gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-gold);
}

.spec-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(44, 74, 101, 0.4);
  color: var(--color-offwhite);
  vertical-align: top;
}

.spec-table tr:first-child td {
  color: var(--color-grey);
}

.spec-table td:first-child {
  color: var(--color-grey);
  font-weight: 500;
  width: 40%;
}

.spec-table td:last-child {
  color: var(--color-offwhite);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
  background: rgba(27, 58, 88, 0.3);
}

/* Comparison table with multiple product columns */
.spec-table th:not(:first-child) {
  text-align: center;
}

.spec-table td:not(:first-child) {
  text-align: center;
}

/* 17. SCENARIO TABS
   ============================================================ */
.tabs {
  margin-top: 32px;
}

.tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-slate);
  margin-bottom: 0;
  overflow-x: auto;
}

.tabs__nav-item {
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-grey);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--trans-fast), border-color var(--trans-fast);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.tabs__nav-item:hover {
  color: var(--color-offwhite);
}

.tabs__nav-item.active {
  color: var(--color-gold-bright);
  border-bottom-color: var(--color-gold-bright);
}

.tabs__panel {
  display: none;
  padding: 32px;
  background: var(--color-navy-mid);
  border: 1px solid var(--color-slate);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tabs__panel.active {
  display: block;
}

.scenario-appliances {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.scenario-appliance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44, 74, 101, 0.4);
  font-size: 14px;
}

.scenario-appliance:last-child {
  border-bottom: none;
}

.scenario-appliance .watt {
  color: var(--color-grey);
  font-size: 13px;
}

.scenario-result {
  background: rgba(39, 174, 96, 0.08);
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 4px;
  padding: 20px 24px;
  margin-top: 16px;
}

.scenario-result__runtime {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-success);
  line-height: 1;
  margin-bottom: 4px;
}

.scenario-result__label {
  font-size: 14px;
  color: var(--color-grey);
}

/* 18. COMPARISON TIMELINE (7-YEAR COST)
   ============================================================ */
.cost-timeline {
  position: relative;
  padding: 32px 0;
}

.cost-track {
  position: relative;
  margin-bottom: 32px;
}

.cost-track__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cost-track__bar {
  height: 12px;
  border-radius: 6px;
  position: relative;
}

.cost-track__bar--ips {
  background: linear-gradient(90deg, var(--color-alert), rgba(192, 57, 43, 0.6));
}

.cost-track__bar--aaa {
  background: linear-gradient(90deg, var(--color-gold-bright), var(--color-gold));
  width: 42%;
}

.cost-marker {
  position: absolute;
  top: -20px;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-alert);
  font-weight: 600;
  white-space: nowrap;
}

.cost-total {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
}

.cost-savings {
  text-align: center;
  padding: 32px;
  background: rgba(212, 160, 23, 0.06);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 6px;
  margin-top: 24px;
}

.cost-savings__amount {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
  margin-bottom: 8px;
}

/* 19. SVG DIAGRAM (TECHNOLOGY PAGE)
   ============================================================ */
.tech-diagram {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-slate);
  border-radius: 6px;
  padding: 40px;
  overflow-x: auto;
}

.tech-diagram svg {
  max-width: 100%;
  height: auto;
}

/* 20. ACCORDION (FAQ)
   ============================================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-slate);
  border-radius: 6px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-slate);
}

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

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--color-navy-mid);
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background var(--trans-fast);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-offwhite);
  min-height: 48px;
}

.accordion-trigger:hover {
  background: rgba(27, 58, 88, 0.8);
}

.accordion-trigger.open {
  color: var(--color-gold-bright);
  background: rgba(212, 160, 23, 0.04);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-slate);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--trans-fast), border-color var(--trans-fast);
  position: relative;
}

.accordion-trigger.open .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--color-gold-bright);
}

.accordion-icon::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 1.5px;
  background: currentColor;
}

.accordion-icon::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 8px;
  background: currentColor;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-content.open {
  max-height: 600px;
}

.accordion-body {
  padding: 4px 28px 28px;
  font-size: 15px;
  color: var(--color-offwhite);
  line-height: 1.75;
  background: var(--color-navy);
}

.accordion-body a {
  color: var(--color-gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 21. RESOURCES / BLOG GRID
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-slate);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--trans-fast), transform var(--trans-mid);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  border-color: rgba(212, 160, 23, 0.4);
  transform: translateY(-4px);
}

.article-card__header {
  background: var(--color-navy);
  padding: 32px 28px 24px;
  border-bottom: 1px solid var(--color-slate);
}

.article-card__category {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 12px;
}

.article-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
}

.article-card__body {
  padding: 24px 28px;
  flex: 1;
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.65;
  margin-bottom: 16px;
}

.article-card__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-muted);
}

/* Article page */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-white);
  margin: 48px 0 20px;
  line-height: 1.2;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin: 32px 0 16px;
}

.article-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-offwhite);
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-offwhite);
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--color-white);
  font-weight: 600;
}

.article-callout {
  background: rgba(212, 160, 23, 0.06);
  border-left: 3px solid var(--color-gold);
  padding: 24px 28px;
  border-radius: 0 4px 4px 0;
  margin: 28px 0;
}

.article-callout p {
  margin-bottom: 0;
  font-size: 16px;
  color: var(--color-offwhite);
}

/* 22. WHATSAPP FLOAT BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  z-index: 800;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

/* 23. SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--trans-slow), transform var(--trans-slow);
  transition-delay: var(--delay, 0ms);
}

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

/* 24. RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual {
    order: -1;
  }

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

@media (max-width: 767px) {
  :root {
    --section-pad: 64px 0;
  }

  .nav__links,
  .nav__ctas {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .hero {
    padding: 100px 24px 64px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .bms-screen {
    min-width: 260px;
  }

  .wa-float {
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
  }

  .tabs__nav-item {
    padding: 12px 16px;
    font-size: 13px;
  }

  .cost-savings__amount {
    font-size: 52px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 25. UTILITY CLASSES
   ============================================================ */
.text-gold      { color: var(--color-gold-bright); }
.text-grey      { color: var(--color-grey); }
.text-muted     { color: var(--color-muted); }
.text-success   { color: var(--color-success); }
.text-alert     { color: var(--color-alert); }
.text-white     { color: var(--color-white); }
.text-center    { text-align: center; }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }

.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.hidden { display: none !important; }

.pill {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--color-gold);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gold-bright);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid var(--color-gold-bright);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
}

.badge--success {
  background: rgba(39, 174, 96, 0.1);
  border-color: var(--color-success);
  color: var(--color-success);
}

.badge--alert {
  background: rgba(192, 57, 43, 0.1);
  border-color: var(--color-alert);
  color: var(--color-alert);
}

.icon-check::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  margin-right: 8px;
}

.icon-x::before {
  content: '✗';
  color: var(--color-alert);
  font-weight: 700;
  margin-right: 8px;
}

/* Alert line (red dot + text) */
.alert-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--color-offwhite);
}

.alert-dot {
  width: 8px;
  height: 8px;
  background: var(--color-alert);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stat card */
.stat-card {
  background: var(--color-navy-mid);
  border: 1px solid var(--color-slate);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  color: var(--color-gold-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: 14px;
  color: var(--color-grey);
  line-height: 1.4;
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--color-offwhite);
  line-height: 1.5;
  padding: 32px 40px;
  border-left: 3px solid var(--color-gold);
  margin: 32px 0;
}

/* Runs / Doesn't run list */
.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 16px;
  background: var(--color-navy);
  border-radius: 4px;
}

.capability-item--yes {
  border-left: 2px solid var(--color-success);
}

.capability-item--no {
  border-left: 2px solid var(--color-alert);
  color: var(--color-grey);
}

.capability-icon {
  flex-shrink: 0;
  font-weight: 700;
}

/* Timeline (installation process) */
.timeline {
  display: flex;
  gap: 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-slate);
}

.timeline-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding-top: 56px;
  padding-left: 12px;
  padding-right: 12px;
}

.timeline-step__dot {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  background: var(--color-gold-bright);
  border-radius: 50%;
  border: 3px solid var(--color-navy-deep);
  z-index: 1;
}

.timeline-step__number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
}

.timeline-step__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 6px;
}

.timeline-step__desc {
  font-size: 12px;
  color: var(--color-grey);
  line-height: 1.4;
}

/* Page hero (non-homepage) */
.page-hero {
  background: var(--color-navy-deep);
  padding: 140px clamp(24px, 5vw, 48px) 80px;
  position: relative;
  overflow: hidden;
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184, 134, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 134, 11, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero__container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ROI table */
.roi-table-wrap {
  overflow-x: auto;
}

.roi-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.roi-table th {
  background: var(--color-navy);
  color: var(--color-gold-bright);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 2px solid var(--color-gold);
}

.roi-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(44, 74, 101, 0.4);
  font-size: 14px;
  color: var(--color-offwhite);
}

.roi-table td:first-child {
  font-weight: 600;
}

.roi-table tbody tr:nth-child(even) {
  background: rgba(27, 58, 88, 0.3);
}

.roi-table .payback {
  color: var(--color-success);
  font-weight: 700;
}

/* Responsive capability grid */
@media (max-width: 767px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    gap: 24px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    padding-top: 16px;
    padding-left: 48px;
    text-align: left;
    min-width: auto;
  }

  .timeline-step__dot {
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
  }
}
