/* ==========================================================================
   Electric Modal — Tesla-Inspired Design System
   Colors: Electric Blue #3E6AE1 | Carbon Dark #171A20 | White #FFFFFF
   Typography: Inter (substitute for Universal Sans) — weights 400 & 500
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #393C41;
  background: #FFFFFF;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; cursor: pointer; font-family: inherit; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav--dark {
  background: transparent;
}

.nav--dark.nav--scrolled {
  background: rgba(23, 26, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 28px;
  width: auto;
}

.nav--over-dark .nav__logo-img {
  filter: brightness(0) invert(1);
}

.nav--scrolled .nav__logo-img {
  filter: none;
}

.nav--dark .nav__logo-img {
  filter: brightness(0) invert(1);
}

.nav--dark.nav--scrolled .nav__logo-img {
  filter: brightness(0) invert(1);
}

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

.nav__link {
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  color: #171A20;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.nav__link:hover {
  background: #F4F4F4;
}

.nav--over-dark .nav__link {
  color: #FFFFFF;
}

.nav--over-dark .nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav--scrolled .nav__link {
  color: #171A20;
}

.nav--scrolled .nav__link:hover {
  background: #F4F4F4;
}

.nav--dark .nav__link {
  color: #FFFFFF;
}

.nav--dark .nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav--dark.nav--scrolled .nav__link {
  color: #FFFFFF;
}

.nav--dark.nav--scrolled .nav__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #171A20;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.nav--over-dark .nav__menu-btn span {
  background: #FFFFFF;
}

.nav--dark .nav__menu-btn span {
  background: #FFFFFF;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 2000;
  padding: 80px 40px 40px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu--open {
  right: 0;
}

.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu__overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  font-size: 24px;
  color: #171A20;
  padding: 8px;
}

.mobile-menu__link {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: #171A20;
  padding: 16px 0;
  border-bottom: 1px solid #EEEEEE;
}

.mobile-menu__link:hover {
  color: #3E6AE1;
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    transparent 30%,
    transparent 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero--light .hero__bg::after {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 30%,
    transparent 70%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
}

.hero__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.hero--light .hero__title {
  color: #171A20;
}

.hero__subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
}

.hero--light .hero__subtitle {
  color: #393C41;
}

.hero__promo {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.hero--light .hero__promo {
  color: #5C5E62;
}

.hero__promo a {
  text-decoration: underline;
  color: inherit;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 80px;
}

.hero__scroll-indicator {
  position: relative;
  z-index: 1;
  padding-bottom: 24px;
  animation: bounceDown 2s ease infinite;
}

.hero__scroll-indicator svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 2;
}

.hero--light .hero__scroll-indicator svg {
  stroke: rgba(23, 26, 32, 0.4);
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  border-radius: 4px;
  height: 40px;
  padding: 0 24px;
  min-width: 200px;
  transition: background 0.25s ease, opacity 0.25s ease, transform 0.15s ease;
  text-transform: none;
  letter-spacing: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: #3E6AE1;
  color: #FFFFFF;
}

.btn--primary:hover {
  background: #3158C5;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.75);
  color: #171A20;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn--dark {
  background: #171A20;
  color: #FFFFFF;
}

.btn--dark:hover {
  background: #2a2d33;
}

.btn--outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Info / Specs Bar --- */
.specs-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 40px;
  background: #FFFFFF;
  flex-wrap: wrap;
}

.specs-bar--dark {
  background: #171A20;
}

.spec {
  text-align: center;
}

.spec__value {
  font-size: 28px;
  font-weight: 500;
  color: #171A20;
  line-height: 36px;
}

.specs-bar--dark .spec__value {
  color: #FFFFFF;
}

.spec__label {
  font-size: 14px;
  font-weight: 400;
  color: #5C5E62;
  margin-top: 4px;
}

.specs-bar--dark .spec__label {
  color: #8E8E8E;
}

/* --- Content Sections --- */
.section {
  padding: 80px 40px;
}

.section--dark {
  background: #171A20;
  color: #FFFFFF;
}

.section--gray {
  background: #F4F4F4;
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section__title {
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  color: #171A20;
  margin-bottom: 16px;
}

.section--dark .section__title {
  color: #FFFFFF;
}

.section__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #393C41;
}

.section--dark .section__text {
  color: #D0D1D2;
}

/* --- Service Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card__bg {
  transform: scale(1.03);
}

.card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.card__content {
  position: relative;
  z-index: 1;
  padding: 40px 24px 0;
}

.card__title {
  font-size: 28px;
  font-weight: 500;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.card__subtitle {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

.card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  padding: 0 24px 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Feature Row (alternating image + text) --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.feature-row--reverse .feature-row__image {
  order: 2;
}

.feature-row--reverse .feature-row__text {
  order: 1;
}

.feature-row__image {
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.feature-row__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

.feature-row__title {
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  color: #171A20;
  margin-bottom: 16px;
}

.feature-row__body {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: #393C41;
  margin-bottom: 32px;
  max-width: 480px;
}

.section--dark .feature-row__title { color: #FFFFFF; }
.section--dark .feature-row__body { color: #D0D1D2; }

/* --- Solar Roof Section --- */
.solar-roof {
  padding: 96px 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.solar-roof__header {
  text-align: center;
  margin-bottom: 48px;
}

.solar-roof__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  color: #171A20;
  margin-bottom: 16px;
}

.solar-roof__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #5C5E62;
  max-width: 640px;
  margin: 0 auto;
}

.solar-roof__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 56px;
}

.solar-roof__fig {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.solar-roof__fig--hero {
  grid-column: 1 / -1;
}

.solar-roof__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.solar-roof__fig:hover .solar-roof__img {
  transform: scale(1.03);
}

.solar-roof__caption {
  font-size: 13px;
  color: #5C5E62;
  text-align: center;
  padding: 12px 8px 4px;
  line-height: 18px;
}

.solar-roof__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.solar-roof__feature {
  text-align: center;
  padding: 32px 16px;
}

.solar-roof__icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.solar-roof__feature-title {
  font-size: 16px;
  font-weight: 600;
  color: #171A20;
  margin-bottom: 8px;
}

.solar-roof__feature-text {
  font-size: 14px;
  line-height: 21px;
  color: #5C5E62;
}

.solar-roof__cta {
  text-align: center;
}

/* --- Solar Consultation Form --- */
.consultation-form {
  background: #F5F5F7;
  padding: 80px 64px;
}

.consultation-form__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.consultation-form__title {
  font-size: 28px;
  font-weight: 500;
  color: #171A20;
  margin-bottom: 8px;
}

.consultation-form__subtitle {
  font-size: 14px;
  color: #5C5E62;
  margin-bottom: 32px;
}

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

.consultation-form__option {
  cursor: pointer;
}

.consultation-form__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consultation-form__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: #FFFFFF;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.consultation-form__radio:checked + .consultation-form__card {
  border-color: #3E6AE1;
  box-shadow: 0 0 0 3px rgba(62, 106, 225, 0.15);
}

.consultation-form__card:hover {
  border-color: #3E6AE1;
}

.consultation-form__card-icon {
  font-size: 28px;
}

.consultation-form__card-label {
  font-size: 15px;
  font-weight: 600;
  color: #171A20;
}

.consultation-form__card-desc {
  font-size: 12px;
  color: #5C5E62;
  line-height: 17px;
}

.consultation-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.consultation-form__input {
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Inter', -apple-system, sans-serif;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  background: #FFFFFF;
  color: #171A20;
  transition: border-color 0.2s ease;
}

.consultation-form__input:focus {
  outline: none;
  border-color: #3E6AE1;
}

.consultation-form__input::placeholder {
  color: #9B9DA0;
}

.consultation-form__submit {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
}

.consultation-form__fine {
  font-size: 12px;
  color: #9B9DA0;
  margin-top: 12px;
}

/* --- Vision / Full-width Text Section --- */
.vision {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  overflow: hidden;
}

.vision__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.vision__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(23, 26, 32, 0.6);
}

.vision__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.vision__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.vision__text {
  font-size: 17px;
  font-weight: 400;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

/* --- Benefits Strip --- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.benefit {
  padding: 64px 32px;
  border-right: 1px solid #EEEEEE;
}

.benefit:last-child {
  border-right: none;
}

.section--dark .benefit {
  border-color: rgba(255, 255, 255, 0.1);
}

.benefit__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.benefit__icon svg {
  width: 100%;
  height: 100%;
  stroke: #3E6AE1;
  fill: none;
  stroke-width: 1.5;
}

.benefit__title {
  font-size: 17px;
  font-weight: 500;
  color: #171A20;
  margin-bottom: 8px;
}

.section--dark .benefit__title {
  color: #FFFFFF;
}

.benefit__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #5C5E62;
  max-width: 260px;
  margin: 0 auto;
}

.section--dark .benefit__text {
  color: #8E8E8E;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 40px;
  text-align: center;
  background: #F4F4F4;
}

.cta-banner__title {
  font-size: 28px;
  font-weight: 500;
  color: #171A20;
  margin-bottom: 8px;
}

.cta-banner__text {
  font-size: 14px;
  color: #5C5E62;
  margin-bottom: 32px;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Newsletter --- */
.newsletter {
  padding: 80px 40px;
  background: #F4F4F4;
}

.newsletter__box {
  max-width: 480px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: 12px;
  padding: 48px 40px 36px;
  text-align: center;
}

.newsletter__headline {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: #171A20;
  margin-bottom: 24px;
}

.newsletter__form {
  width: 100%;
}

.newsletter__field {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.newsletter__input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #171A20;
  background: #F4F4F4;
  border: 1px solid #E0E0E0;
  border-radius: 4px 0 0 4px;
  border-right: none;
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter__input:focus {
  border-color: #3E6AE1;
}

.newsletter__input::placeholder {
  color: #8E8E8E;
}

.newsletter__submit {
  height: 48px;
  min-width: auto;
  padding: 0 28px;
  border-radius: 0 4px 4px 0;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.newsletter__note {
  font-size: 12px;
  color: #8E8E8E;
}

/* --- Exit-Intent Popup --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.popup-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.popup {
  position: relative;
  background: #FFFFFF;
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  padding: 48px 36px 36px;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-overlay--visible .popup {
  transform: translateY(0) scale(1);
}

.popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: #8E8E8E;
  padding: 4px;
  transition: color 0.2s ease;
}

.popup__close:hover {
  color: #171A20;
}

.popup__icon {
  margin-bottom: 16px;
}

.popup__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  color: #171A20;
  margin-bottom: 8px;
}

.popup__text {
  font-size: 14px;
  line-height: 22px;
  color: #5C5E62;
  margin-bottom: 24px;
}

.popup__text strong {
  color: #171A20;
  font-weight: 500;
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.popup__input {
  height: 48px;
  padding: 0 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #171A20;
  background: #F4F4F4;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}

.popup__input:focus {
  border-color: #3E6AE1;
}

.popup__input::placeholder {
  color: #8E8E8E;
}

.popup__submit {
  height: 48px;
  width: 100%;
  min-width: auto;
  font-size: 15px;
  font-weight: 500;
  border-radius: 4px;
}

.popup__note {
  font-size: 12px;
  color: #8E8E8E;
}

/* --- Blog Header --- */
.blog-header {
  padding: 120px 40px 48px;
  text-align: center;
  background: #FFFFFF;
}

.blog-header__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 48px;
  color: #171A20;
  margin-bottom: 8px;
}

.blog-header__subtitle {
  font-size: 17px;
  font-weight: 400;
  line-height: 24px;
  color: #5C5E62;
}

/* --- Blog Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.blog-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3E6AE1;
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: #171A20;
  margin-bottom: 8px;
}

.blog-card__excerpt {
  font-size: 14px;
  line-height: 22px;
  color: #5C5E62;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card__date {
  font-size: 12px;
  color: #8E8E8E;
}

/* --- Article Page --- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.article__header {
  padding-top: 96px;
  padding-bottom: 32px;
  text-align: center;
}

.article__back {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: #3E6AE1;
  margin-bottom: 24px;
  transition: opacity 0.2s ease;
}

.article__back:hover {
  opacity: 0.7;
}

.article__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3E6AE1;
  margin-bottom: 12px;
}

.article__title {
  font-size: 36px;
  font-weight: 500;
  line-height: 44px;
  color: #171A20;
  margin-bottom: 12px;
}

.article__date {
  font-size: 14px;
  color: #8E8E8E;
}

.article__hero {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 48px;
}

.article__body {
  padding-bottom: 64px;
}

.article__lead {
  font-size: 17px;
  line-height: 28px;
  color: #393C41;
  margin-bottom: 32px;
}

.article__body h2 {
  font-size: 22px;
  font-weight: 500;
  line-height: 30px;
  color: #171A20;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article__body p {
  font-size: 16px;
  line-height: 26px;
  color: #393C41;
  margin-bottom: 16px;
}

.article__body ul {
  margin: 0 0 16px 24px;
  list-style: disc;
}

.article__body ul ul {
  margin-top: 8px;
  margin-bottom: 8px;
}

.article__body li {
  font-size: 16px;
  line-height: 26px;
  color: #393C41;
  margin-bottom: 6px;
}

.article__body strong {
  font-weight: 500;
  color: #171A20;
}

.article__cta {
  margin-top: 48px;
  text-align: center;
}

/* --- Active Nav Link --- */
.nav__link--active {
  opacity: 1;
  color: #3E6AE1;
}

/* --- Footer --- */
.footer {
  padding: 40px;
  text-align: center;
  background: #FFFFFF;
  border-top: 1px solid #EEEEEE;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer__link {
  font-size: 12px;
  font-weight: 400;
  color: #5C5E62;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: #171A20;
}

.footer__copy {
  font-size: 12px;
  color: #8E8E8E;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Placeholder Backgrounds (replace with real images) --- */
.bg-hero-main {
  background-image:
    url('/images/hero-main.jpg');
}

.bg-solar {
  background-image:
    url('/images/solar.jpg');
}

.bg-cybercab {
  background-image:
    url('/images/cybercab.jpg');
}

.bg-semi {
  background-image:
    url('/images/semi.jpg');
}

.bg-optimus {
  background-image:
    url('/images/optimus.jpg');
}

.bg-vision {
  background-image:
    url('/images/vision.jpg');
}

.bg-card-solar {
  background-image:
    url('/images/solar.jpg');
}

.bg-card-cybercab {
  background-image:
    url('/images/cybercab.jpg');
}

.bg-card-semi {
  background-image:
    url('/images/semi.jpg');
}

.bg-card-optimus {
  background-image:
    url('/images/optimus.jpg');
}

.bg-feature-solar {
  background-image:
    url('/images/solar.jpg');
}

.bg-feature-cybercab {
  background-image:
    url('/images/cybercab.jpg');
}

.bg-feature-semi {
  background-image:
    url('/images/semi.jpg');
}

.bg-feature-optimus {
  background-image:
    url('/images/optimus.jpg');
}

.bg-feature-energy {
  background-image:
    url('/images/energy.jpg');
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefit:nth-child(2) {
    border-right: none;
  }
  .benefit:nth-child(1),
  .benefit:nth-child(2) {
    border-bottom: 1px solid #EEEEEE;
  }
  .section--dark .benefit:nth-child(1),
  .section--dark .benefit:nth-child(2) {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: block; }

  .hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .hero__subtitle {
    font-size: 14px;
    padding: 0 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 60px;
  }

  .btn { min-width: 260px; }

  .specs-bar {
    gap: 32px;
    padding: 32px 24px;
  }

  .spec__value { font-size: 22px; }

  .section { padding: 64px 24px; }

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

  .card { height: 420px; }

  .feature-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-row--reverse .feature-row__image { order: 0; }
  .feature-row--reverse .feature-row__text { order: 0; }

  .feature-row__image { min-height: 300px; }

  .feature-row__text {
    padding: 48px 24px;
  }

  .feature-row__title {
    font-size: 22px;
    line-height: 28px;
  }

  .solar-roof { padding: 64px 24px; }
  .solar-roof__title { font-size: 28px; line-height: 34px; }
  .solar-roof__gallery { grid-template-columns: 1fr; }
  .solar-roof__features { grid-template-columns: 1fr 1fr; gap: 24px; }

  .consultation-form { padding: 64px 24px; }
  .consultation-form__options { grid-template-columns: 1fr; }
  .consultation-form__fields { grid-template-columns: 1fr; }

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

  .benefit {
    border-right: none;
    border-bottom: 1px solid #EEEEEE;
    padding: 40px 24px;
  }

  .section--dark .benefit {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .benefit:last-child { border-bottom: none; }

  .vision__title {
    font-size: 28px;
    line-height: 34px;
  }

  .vision__text {
    font-size: 14px;
    line-height: 22px;
  }

  .section__title {
    font-size: 22px;
    line-height: 28px;
  }

  .cta-banner { padding: 64px 24px; }

  .newsletter { padding: 64px 24px; }

  .newsletter__box {
    padding: 36px 24px 28px;
  }

  .newsletter__headline {
    font-size: 17px;
    line-height: 24px;
  }

  .newsletter__field {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter__input {
    border-radius: 4px;
    border-right: 1px solid #E0E0E0;
  }

  .newsletter__submit {
    border-radius: 4px;
    width: 100%;
  }

  .popup {
    padding: 40px 24px 28px;
  }

  .popup__title {
    font-size: 18px;
    line-height: 26px;
  }

  .blog-header {
    padding: 96px 24px 32px;
  }

  .blog-header__title {
    font-size: 28px;
    line-height: 34px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 24px 64px;
  }

  .article__header {
    padding-top: 80px;
  }

  .article__title {
    font-size: 24px;
    line-height: 32px;
  }

  .article__hero {
    height: 240px;
    border-radius: 8px;
  }

  .article__body h2 {
    font-size: 18px;
    line-height: 26px;
  }

  .article__body p,
  .article__body li {
    font-size: 15px;
    line-height: 24px;
  }

  .footer__links { gap: 16px; }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 24px;
    line-height: 30px;
  }

  .btn { min-width: 240px; }

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

  .card { height: 380px; }
}