/* ================================================
   ENERG DRIVE — SHARED DESIGN SYSTEM
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --red: #D42B2B;
  --red-dark: #A31E1E;
  --red-light: #F04848;
  --red-glow: rgba(212,43,43,0.25);
  --black: #080808;
  --charcoal: #101010;
  --panel: #161616;
  --card: #131313;
  --border: rgba(255,255,255,0.055);
  --border-red: rgba(212,43,43,0.25);
  --white: #ffffff;
  --text-dim: rgba(255,255,255,0.42);
  --text-mid: rgba(255,255,255,0.62);
  --gold: #C9A94E;
  --font: 'Outfit', sans-serif;
  --mono: 'Space Mono', monospace;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }



/* ================================================
   SCROLL PROGRESS
   ================================================ */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-dark), var(--red-light));
  z-index: 200;
  width: 0%;
  box-shadow: 0 0 12px rgba(212,43,43,.6);
  pointer-events: none;
}

/* ================================================
   NAVIGATION
   ================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 64px;
  transition: padding .4s ease, background .4s, backdrop-filter .4s, box-shadow .4s;
}
nav.stuck {
  padding: 14px 64px;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 8px 40px rgba(0,0,0,.6);
}

.nav-logo {
  display: flex;
  align-items: center;
  position: relative;
}

.logo-img {
  height: 40px; /* Default height for desktop */
  width: auto;
  object-fit: contain;
  transition: height .4s ease;
}

nav.stuck .logo-img {
  height: 32px; /* Smaller height when scrolled */
}

.foot-logo .logo-img {
  height: 30px;
  opacity: 0.6;
  filter: grayscale(1) brightness(2);
  transition: opacity .3s, filter .3s;
}

.foot-logo:hover .logo-img {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--text-mid);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  position: relative;
  z-index: 103;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================
   PAGE ENTER ANIMATION
   ================================================ */
.page-in { animation: pageIn .7s cubic-bezier(.25,.8,.25,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================
   PAGE HEADER (inner pages)
   ================================================ */
.page-hero {
  padding: 180px 64px 100px;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,43,43,.35), transparent);
}
.page-hero .glow-blob {
  position: absolute;
  top: -120px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, rgba(212,43,43,.07) 0%, transparent 70%);
  pointer-events: none;
}

.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.overline::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -2.5px;
  margin-bottom: 22px;
}
.hero-title span { color: var(--red); }

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.8;
}

/* ================================================
   SECTIONS
   ================================================ */
.section { padding: 100px 64px; }

.label-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.label-tag::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--red);
}

.sec-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.sec-title span { color: var(--red); }

.sec-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.78;
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 52px;
}

/* ================================================
   DIVIDERS
   ================================================ */
.divider { height: 1px; background: var(--border); }
.glow-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(212,43,43,.3), transparent); }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-arrow { transition: transform .3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left .5s;
}
.btn-red:hover { background: #e03030; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,43,43,.3); }
.btn-red:hover::before { left: 100%; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.14);
}
.btn-outline:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.03); }

.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 1px solid rgba(212,43,43,.25);
  padding: 10px 24px;
  font-size: .7rem;
}
.btn-ghost:hover { background: rgba(212,43,43,.06); border-color: var(--red); }

/* ================================================
   IMAGE PLACEHOLDERS
   ================================================ */
.img-ph {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.img-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 36px 36px;
}
.img-ph .shimmer {
  position: absolute;
  top: 0; left: -80%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -80%; }
  100% { left: 180%; }
}
.img-ph .ph-icon {
  position: relative; z-index: 1;
  width: 52px; height: 52px;
  stroke: rgba(255,255,255,.1);
  fill: none;
  stroke-width: 1;
}
.img-ph .ph-label {
  position: relative; z-index: 1;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.1);
}
.img-ph .ph-accent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(212,43,43,.04), transparent);
}

/* ================================================
   PRODUCT CARDS
   ================================================ */
.prod-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .4s, box-shadow .4s;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.prod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,43,43,0), transparent);
  transition: background .4s;
  z-index: 1;
}
.prod-card:hover { border-color: var(--border-red); box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(212,43,43,.08); }
.prod-card:hover::before { background: linear-gradient(90deg, transparent, rgba(212,43,43,.5), transparent); }

.card-img { height: 200px; }
.card-body { padding: 26px 28px 28px; }
.card-series {
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.card-name {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.5px;
  margin-bottom: 8px;
  line-height: 1;
}
.card-warranty {
  font-size: .68rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 5px;
}
.card-warranty b { color: var(--red); }

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.spec-row:last-of-type { border-bottom: none; }
.spec-lbl { font-size: .72rem; color: var(--text-dim); }
.spec-val-wrap { display: flex; align-items: center; gap: 10px; }
.spec-val { font-family: var(--mono); font-size: .88rem; font-weight: 700; min-width: 36px; text-align: right; }
.spec-bar { width: 72px; height: 3px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; flex-shrink: 0; }
.spec-fill { height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red)); border-radius: 2px; width: 0; transition: width 1.4s cubic-bezier(.25,.8,.25,1); }

/* ================================================
   STAT BOXES
   ================================================ */
.stat-box {
  padding: 36px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all .35s;
  position: relative;
  overflow: hidden;
}
.stat-box::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .4s ease;
}
.stat-box:hover { border-color: var(--border-red); background: rgba(212,43,43,.025); }
.stat-box:hover::after { transform: scaleX(1); }
.stat-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-lbl {
  font-size: .68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ================================================
   BADGES
   ================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: .55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.badge-red { background: rgba(212,43,43,.1); color: var(--red); border: 1px solid rgba(212,43,43,.2); }
.badge-gold { background: rgba(201,169,78,.08); color: var(--gold); border: 1px solid rgba(201,169,78,.18); }
.badge-dim { background: rgba(255,255,255,.04); color: rgba(255,255,255,.35); border: 1px solid var(--border); }

/* ================================================
   FOOTER
   ================================================ */
footer {
  padding: 36px 64px;
  border-top: 1px solid rgba(255,255,255,.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.foot-logo { display: flex; align-items: center; }
footer .copy { font-size: .7rem; color: rgba(255,255,255,.18); }
.foot-links { display: flex; gap: 24px; }
.foot-links a { font-size: .68rem; color: rgba(255,255,255,.22); letter-spacing: 1.5px; text-transform: uppercase; transition: color .3s; }
.foot-links a:hover { color: var(--red); }

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity .8s cubic-bezier(.25,.8,.25,1), transform .8s cubic-bezier(.25,.8,.25,1);
}
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal-l { opacity: 0; transform: translateX(-38px); transition: opacity .8s cubic-bezier(.25,.8,.25,1), transform .8s cubic-bezier(.25,.8,.25,1); }
.reveal-l.on { opacity: 1; transform: translateX(0); }
.reveal-r { opacity: 0; transform: translateX(38px); transition: opacity .8s cubic-bezier(.25,.8,.25,1), transform .8s cubic-bezier(.25,.8,.25,1); }
.reveal-r.on { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .8s cubic-bezier(.25,.8,.25,1), transform .8s cubic-bezier(.25,.8,.25,1); }
.reveal-scale.on { opacity: 1; transform: scale(1); }

.d1 { transition-delay: .06s; }
.d2 { transition-delay: .13s; }
.d3 { transition-delay: .20s; }
.d4 { transition-delay: .27s; }
.d5 { transition-delay: .34s; }
.d6 { transition-delay: .41s; }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  nav { padding: 18px 40px; }
  nav.stuck { padding: 12px 40px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: .68rem; letter-spacing: 1.8px; }
  .section { padding: 80px 40px; }
  .page-hero { padding: 150px 40px 80px; }
  footer { padding: 28px 40px; }
}

@media (max-width: 900px) {
  nav { padding: 16px 28px; }
  nav.stuck { padding: 12px 28px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(6,6,6,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 36px 40px;
    gap: 6px;
    z-index: 101;
    justify-content: center;
    align-items: flex-start;
  }
  .nav-links.open a { font-size: 1.9rem; letter-spacing: 2px; color: rgba(255,255,255,.6); padding: 10px 0; }
  .nav-links.open a:hover, .nav-links.open a.active { color: var(--white); }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.stuck { padding: 12px 24px; }
  .section { padding: 60px 24px; }
  .page-hero { padding: 110px 24px 60px; }
  footer { padding: 24px; flex-direction: column; align-items: center; text-align: center; }
  .foot-links { flex-wrap: wrap; justify-content: center; }
  body { cursor: auto; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1.5px; }
}
