/* ============================================
   Energy Independence 2 - Figma-accurate
   ============================================ */

:root {
  --ei-gradient: linear-gradient(90deg, #69eefd 0%, #efc052 54.33%, #f19231 100%);
  --ei-navy: #0d192e;
  --ei-orange: #f19231;
}

/* ===== HERO ===== */
.ei-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ei-navy);
}

.ei-hero-bg {
  position: absolute;
  inset: 0;
}

.ei-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ei-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1208px;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}

.ei-hero-title {
  display: flex;
  flex-direction: column;
  text-transform: uppercase;
}

.ei-hero-small {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 40px);
  line-height: 1.17;
  background: var(--ei-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ei-hero-big {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 4vw, 60px);
  line-height: 1.17;
  background: var(--ei-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ei-hero-sub {
  font-size: clamp(1rem, 1.8vw, 30px);
  line-height: 1.38;
  color: #fff;
  max-width: 1180px;
}

.ei-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 5px 24px 5px 5px;
  background: #fff;
  border: 2px solid #69eefd;
  border-radius: 73px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
}

.ei-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(105, 238, 253, 0.3);
}

.ei-hero-cta-icon {
  width: 47px;
  height: 47px;
  border-radius: 50%;
}

/* ===== SHARED LABEL ===== */
.ei-label {
  display: block;
  font-weight: 500;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--ei-orange);
}

.ei-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 3.5vw, 60px);
  line-height: 1.17;
  color: rgba(13, 25, 46, 0.8);
}

.ei-heading-gradient {
  background: linear-gradient(90deg, #f19231, #efc052, #e8891e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== EXPORT TRAP ===== */
.ei-trap {
  padding: 80px 0 60px;
}

.ei-trap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.ei-trap-left .ei-heading {
  margin-bottom: 20px;
  line-height: 1.17;
}

.ei-trap-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ei-navy);
  margin-bottom: 12px;
}

.ei-trap-right {
  position: relative;
}

.ei-trap-img {
  width: 100%;
  border-radius: 12px;
}

/* Day/Night Compare Slider */
.day-night-compare {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.day-night-img { width: 100%; }
.day-night-img img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.day-night-img--night { position: relative; }
.day-night-img--day { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; }
.day-night-img--day img { position: absolute; top: 0; left: 0; max-width: none; height: 100%; }
.day-night-slider { position: absolute; top: 0; left: 50%; width: 4px; height: 100%; background: #fff; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.day-night-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); border: 2px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; pointer-events: none; }

.ei-trap-alert {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffbed;
  border: 2px solid #ff7171;
  border-radius: 19px;
  padding: 15px 30px;
  margin-top: 24px;
}

.ei-trap-alert-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #f22;
  flex-shrink: 0;
}

.ei-trap-alert-text {
  font-weight: 500;
  font-size: 20px;
  color: #f22;
  line-height: 1.3;
}

/* ===== FOUR STEPS ===== */
.ei-steps {
  background: #e9e9e9;
  padding: 110px 0 100px;
}

.ei-steps-header {
  text-align: center;
  margin-bottom: 80px;
}

.ei-steps-header .ei-heading {
  margin-top: 8px;
  margin-bottom: 11px;
}

.ei-steps-sub {
  font-size: clamp(1rem, 1.5vw, 26px);
  color: var(--ei-navy);
  max-width: 677px;
  margin: 0 auto;
  line-height: 1.5;
}

.ei-steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1284px;
  margin: 0 auto;
}

.ei-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.ei-step-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 6vw, 104px);
  line-height: 1.04;
  color: var(--ei-orange);
  opacity: 0.4;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ei-step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.8vw, 30px);
  color: var(--ei-navy);
  margin-bottom: 8px;
}

.ei-step p {
  font-size: 16px;
  color: var(--ei-navy);
  line-height: 1.5;
  max-width: 289px;
  margin: 0 auto;
}

.ei-step-divider {
  width: 1px;
  height: 349px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  align-self: center;
}

/* ===== HARDWARE ===== */
.ei-hardware {
  background: #d1dbe1;
  padding: 144px 0 100px;
  position: relative;
}
.ei-hardware::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../../images/energy-independence/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.10;
  pointer-events: none;
}

.ei-hardware-header {
  text-align: center;
  margin-bottom: 80px;
}

.ei-hardware-header .ei-heading {
  margin-top: 8px;
  margin-bottom: 11px;
}

.ei-hardware-sub {
  font-size: clamp(1rem, 1.5vw, 26px);
  color: var(--ei-navy);
  max-width: 922px;
  margin: 0 auto;
  line-height: 1.5;
}

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

.ei-hw-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 370px 24px 24px;
  gap: 20px;
  min-width: 0;
  height: 688px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 4.4px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.ei-hw-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 50%, transparent 100%);
  z-index: 0;
}

.ei-hw-card > * {
  position: relative;
  z-index: 1;
}

.ei-hw-warranty {
  font-family: 'Avenir', 'Poppins', sans-serif;
  font-weight: 800;
  font-style: normal;
  font-size: clamp(1.8rem, 3vw, 40px);
  line-height: 0.97;
  text-align: center;
  color: #69EEFD;
  opacity: 0.6;
  -webkit-text-stroke: 1px #69EEFD;
  -webkit-text-fill-color: transparent;
  max-width: 100%;
}

.ei-hw-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 1.8vw, 30px);
  background: var(--ei-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ei-hw-line {
  width: 115px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.ei-hw-body p {
  font-size: 16px;
  color: #fff;
  line-height: 1.5;
  max-width: 364px;
}

/* ===== REAL RESULTS ===== */
.ei-results {
  padding: 100px 0 80px;
}

.ei-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
}

.ei-video-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 4px 4px 50px rgba(0, 0, 0, 0.15);
}

.ei-video-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

.ei-results-content .ei-heading {
  margin-bottom: 32px;
}

.ei-results-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ei-navy);
  margin-bottom: 12px;
}

/* Results Stats Bar */
.ei-results-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.ei-rstat {
  text-align: center;
  flex: 1;
}

.ei-rstat-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 70px);
  line-height: 0.97;
  background: var(--ei-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ei-rstat-label {
  display: block;
  font-weight: 500;
  font-size: clamp(12px, 1.2vw, 24px);
  text-transform: uppercase;
  color: var(--ei-navy);
  margin-top: 12px;
}

.ei-rstat-divider {
  width: 2px;
  height: 128px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* ===== PARTNERSHIP ===== */
.ei-partnership {
  background: #e9e9e9;
  padding: 105px 0 100px;
}

.ei-partnership-header {
  text-align: center;
  margin-bottom: 50px;
}

.ei-partnership-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 96px);
  line-height: 1.04;
  color: #000;
  margin-top: 4px;
}

.ei-partnership-sub {
  font-size: clamp(1rem, 1.5vw, 26px);
  color: #000;
  margin-top: 4px;
}

.ei-partnership-icons {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1284px;
  margin: 0 auto;
  padding: 50px 0;
}

.ei-partner-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
}

.ei-partner-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ei-partner-icon img {
  max-width: 100%;
  max-height: 100%;
}

.ei-partner-col h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 2vw, 30px);
  line-height: 1.1;
  color: var(--ei-navy);
}

.ei-partner-col p {
  font-size: 16px;
  color: var(--ei-navy);
  line-height: 1.5;
  max-width: 289px;
}

.ei-partner-divider {
  width: 1px;
  height: 349px;
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  align-self: center;
}

/* ===== CTA ===== */
.ei-cta {
  background: var(--ei-navy);
  padding: 143px 0 100px;
  text-align: center;
}

.ei-cta-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 96px);
  line-height: 1.04;
  color: #fff;
  max-width: 1320px;
  margin: 0 auto 8px;
}

.ei-cta-sub {
  font-size: clamp(1rem, 1.5vw, 26px);
  color: #fff;
  margin-bottom: 48px;
}

.ei-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 400px;
  height: 82px;
  padding: 0 60px;
  background: var(--ei-gradient);
  border-radius: 73px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ei-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(241, 146, 49, 0.4);
}

/* ===== FOOTER IMAGE ===== */
.ei-footer-img {
  width: 100%;
  height: 410px;
  overflow: hidden;
}

.ei-footer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .ei-hero {
    height: auto;
    min-height: 80vh;
    padding: 140px 0 80px;
  }

  .ei-trap-grid {
    gap: 32px;
  }

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

  .ei-step-divider,
  .ei-partner-divider {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .ei-hero {
    min-height: 80vh;
    padding: 140px 0 80px;
  }

  .ei-hero-content {
    padding: 0 16px;
  }

  .ei-trap-grid,
  .ei-results-grid {
    grid-template-columns: 1fr;
  }

  .ei-steps-grid,
  .ei-partnership-icons {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .ei-step-divider,
  .ei-partner-divider {
    width: 200px;
    height: 1px;
  }

  .ei-hardware-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .ei-hw-body {
    margin-top: -150px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .ei-results-stats {
    flex-direction: column;
    gap: 32px;
  }

  .ei-rstat-divider {
    width: 128px;
    height: 2px;
  }

  .ei-cta-btn {
    min-width: auto;
    width: 100%;
    max-width: 400px;
    height: 64px;
    font-size: 18px;
    padding: 0 32px;
  }

  .ei-footer-img {
    height: 250px;
  }

  .ei-trap-alert {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .ei-hero-small {
    font-size: 1.2rem;
  }

  .ei-hero-big {
    font-size: 1.8rem;
  }

  .ei-hero-sub {
    font-size: 1rem;
  }

  .ei-label {
    font-size: 16px;
  }

  .ei-hw-img {
    height: 280px;
  }
}
