:root {
  --ink: #020617;
  --navy: #061a2f;
  --deep: #082f49;
  --sky: #0ea5e9;
  --cyan: #06b6d4;
  --orange: #f97316;
  --sun: #facc15;
  --green: #22c55e;
  --muted: #94a3b8;
  --white: #ffffff;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, .2), transparent 32rem),
    linear-gradient(135deg, var(--ink), var(--navy) 45%, var(--ink));
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: "Montserrat", system-ui, sans-serif;
  letter-spacing: 0;
}

.font-tech {
  font-family: "Orbitron", system-ui, sans-serif;
  letter-spacing: 0;
}

.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sun), var(--orange), var(--cyan), var(--green));
  box-shadow: 0 0 22px rgba(6, 182, 212, .9);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  transition: opacity .55s ease, visibility .55s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.energy-loader {
  width: 108px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  position: relative;
  box-shadow: inset 0 0 28px rgba(14, 165, 233, .28), 0 0 45px rgba(250, 204, 21, .2);
  animation: pulse-core 1.3s ease-in-out infinite alternate;
}

.energy-loader:before,
.energy-loader:after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  border: 3px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--sun);
  animation: spin 1.1s linear infinite;
}

.energy-loader:after {
  inset: 29px;
  border-top-color: var(--green);
  border-right-color: var(--orange);
  animation-direction: reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-core { to { transform: scale(1.06); } }

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  transition: background .35s ease, border .35s ease, padding .35s ease;
}

.navbar.scrolled {
  background: rgba(2, 6, 23, .76);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}

.nav-link {
  color: rgba(255,255,255,.78);
  transition: color .2s ease;
}

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

.brand-logo {
  width: 92px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(6, 182, 212, .25));
}

.footer-logo {
  width: 128px;
  height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(6, 182, 212, .22));
}

.glass {
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(6,182,212,.7), transparent 35%, rgba(250,204,21,.32), transparent 72%, rgba(34,197,94,.38));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.glow-card:hover:before { opacity: 1; }
.glow-card > * { position: relative; z-index: 1; }

.section-pad {
  padding: 6rem 0;
}

.hero-bg {
  min-height: 100vh;
  background-image:
    linear-gradient(90deg, rgba(2,6,23,.94), rgba(2,6,23,.68) 47%, rgba(2,6,23,.22)),
    url("https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=2200&q=85");
  background-size: cover;
  background-position: center;
}

.page-hero {
  min-height: 58vh;
  background-image:
    linear-gradient(90deg, rgba(2,6,23,.96), rgba(6,26,47,.76), rgba(2,6,23,.48)),
    var(--page-image);
  background-size: cover;
  background-position: center;
}

.mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(14,165,233,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
  opacity: .55;
  animation: float-particle 9s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% { transform: translate3d(0,0,0); }
  50% { transform: translate3d(24px,-42px,0); }
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 3.25rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
  white-space: nowrap;
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--sun), var(--orange));
  box-shadow: 0 18px 45px rgba(249, 115, 22, .34);
}

.btn-secondary {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-primary:hover { box-shadow: 0 22px 70px rgba(250, 204, 21, .32); }
.btn-secondary:hover { background: rgba(14, 165, 233, .16); }

.battery-render {
  position: relative;
  min-height: 430px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.battery-body {
  width: min(310px, 74vw);
  height: 390px;
  border-radius: 28px;
  position: relative;
  transform: rotateY(-14deg) rotateX(7deg);
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 18%),
    linear-gradient(165deg, #102640, #061a2f 48%, #020617);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 42px 34px 90px rgba(0,0,0,.54), inset 0 0 40px rgba(14,165,233,.16);
}

.battery-body:before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 20px;
  border: 1px solid rgba(6,182,212,.24);
  background: radial-gradient(circle at 70% 18%, rgba(250,204,21,.34), transparent 24%),
    linear-gradient(180deg, rgba(14,165,233,.15), rgba(255,255,255,.03));
}

.battery-body:after {
  content: "SMART GROUP";
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 0 20px rgba(6,182,212,.8);
}

.battery-label {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 70%;
  transform: translateX(-50%);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(2,6,23,.7);
  border: 1px solid rgba(250,204,21,.28);
  text-align: center;
}

.terminal {
  position: absolute;
  top: -22px;
  width: 58px;
  height: 28px;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(135deg, var(--sun), var(--orange));
  box-shadow: 0 0 26px rgba(250,204,21,.65);
}

.terminal.left { left: 58px; }
.terminal.right { right: 58px; background: linear-gradient(135deg, var(--cyan), var(--green)); }

.orbit-ring {
  position: absolute;
  width: 360px;
  max-width: 85vw;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(6,182,212,.28);
  animation: spin 18s linear infinite;
}

.orbit-ring:after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  top: 22px;
  left: 78px;
  background: var(--sun);
  box-shadow: 0 0 34px var(--sun);
}

.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame {
  min-height: 260px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(14, 165, 233, .16), rgba(2, 6, 23, .72));
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.video-frame video {
  aspect-ratio: 16 / 9;
  background: #020617;
}

.report-frame img {
  max-height: 780px;
}

.hover-lift {
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.hover-lift:hover {
  transform: translateY(-7px);
  border-color: rgba(6,182,212,.45);
  box-shadow: 0 28px 80px rgba(14,165,233,.14);
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(34,197,94,.14));
  color: var(--cyan);
  border: 1px solid rgba(255,255,255,.12);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.comparison table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 18px;
}

.comparison th,
.comparison td {
  padding: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  vertical-align: top;
}

.comparison th {
  background: rgba(14,165,233,.14);
  color: var(--white);
  text-align: left;
}

.comparison tr:last-child td { border-bottom: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-item.open .faq-answer { max-height: 220px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .25s ease; }

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 65;
  display: grid;
  gap: .75rem;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  box-shadow: 0 15px 40px rgba(0,0,0,.28);
}

.whatsapp { background: #22c55e; }
.call { background: #0ea5e9; }
.to-top { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.18); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.to-top.show { opacity: 1; pointer-events: auto; }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.mobile-menu.open { max-height: 520px; }

.swiper-pagination-bullet { background: rgba(255,255,255,.7); }
.swiper-pagination-bullet-active { background: var(--sun); }

.testimonial-swiper {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section-pad { padding: 4rem 0; }
  .hero-bg { min-height: auto; padding-top: 7rem; padding-bottom: 4rem; }
  .page-hero { min-height: 48vh; padding-top: 7rem; }
  .comparison { overflow-x: auto; }
  .comparison table { min-width: 760px; }
  .battery-render { min-height: 360px; }
  .battery-body { height: 330px; }
}
