:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --ink: #f4f6f8;
  --muted: #9aa3b2;
  --line: rgba(255, 255, 255, 0.1);
  --green: #b6f34d;
  --green-dark: #8fd41f;
  --green-soft: rgba(182, 243, 77, 0.14);
  --glass: rgba(18, 20, 26, 0.55);
  --glass-strong: rgba(18, 20, 26, 0.78);
  --wrap: 1180px;
  --radius: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 90;
  background: var(--green);
  color: #111;
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff59a, var(--green) 55%, #3a7a00);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px rgba(182, 243, 77, 0.18);
}

.logo-mark svg {
  width: 16px;
  height: 16px;
  color: #111;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  position: relative;
  color: rgba(244, 246, 248, 0.78);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a.is-active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: relative;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--green);
  color: #111;
}

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 12px 28px rgba(182, 243, 77, 0.28);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: #fff;
}

.btn-ghost:hover {
  border-color: rgba(182, 243, 77, 0.45);
  color: var(--green);
}

.btn-lg {
  min-height: 52px;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 0 48px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 13, 0.62) 0%, rgba(10, 11, 13, 0.18) 38%, rgba(10, 11, 13, 0.82) 100%),
    url("img/solar-roof.jpg") center 40% / cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-top {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: end;
  min-height: 48vh;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero-title span {
  display: block;
}

.hero-title .line-2 {
  text-align: right;
  margin-top: 0.12em;
}

.hero-lead {
  max-width: 28rem;
  margin: 18px 0 0;
  color: rgba(244, 246, 248, 0.78);
}

.hotspots {
  position: absolute;
  inset: 18% 8% auto auto;
  width: min(280px, 36vw);
  pointer-events: none;
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
}

.hotspot:nth-child(1) {
  top: 0;
  right: 20px;
}

.hotspot:nth-child(2) {
  top: 58px;
  right: 0;
}

.hotspot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(182, 243, 77, 0.18);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.hotspot-line {
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.email-bar {
  margin: 42px auto 14px;
  width: min(560px, 100%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.email-bar input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0 16px;
  outline: none;
}

.email-bar input::placeholder {
  color: rgba(244, 246, 248, 0.45);
}

.hero-caption {
  text-align: center;
  color: rgba(244, 246, 248, 0.7);
  max-width: 34rem;
  margin: 0 auto 28px;
  font-size: 0.95rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #111;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--green-dark);
}

.feature-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.glass-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(182, 243, 77, 0.35);
}

.glass-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.glass-card .body {
  padding: 18px 20px 20px;
}

.glass-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.glass-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.glass-card .link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
}

.ipx-card {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 20px;
  min-height: 260px;
  background:
    radial-gradient(circle at 50% 30%, rgba(182, 243, 77, 0.18), transparent 55%),
    var(--glass);
}

.ipx-card .badge {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 40% 35%, #dfffa8, var(--green) 60%, #4d7c0f);
  color: #111;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(182, 243, 77, 0.25);
}

.ipx-card h3 {
  margin: 0;
}

.ipx-card .spec {
  margin-top: 6px;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section {
  padding: 88px 0;
}

.section.soft {
  background: linear-gradient(180deg, #0d0f14, #0a0b0d);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.section-head p,
.page-hero p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cards-3,
.cards-2 {
  display: grid;
  gap: 18px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(182, 243, 77, 0.3);
  box-shadow: var(--shadow);
}

.card img.cover {
  width: calc(100% + 44px);
  max-width: none;
  margin: -22px -22px 16px;
  height: 170px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: transform 0.45s ease;
}

.card {
  overflow: hidden;
}

.card:hover img.cover {
  transform: scale(1.04);
}

.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card .meta {
  margin-top: 14px;
  color: var(--green);
  font-weight: 700;
  font-size: 0.88rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}

.steps article:hover .step-num {
  transform: scale(1.08);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  color: rgba(244, 246, 248, 0.86);
}

.checklist svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--green);
}

.stat span {
  color: var(--muted);
  font-size: 0.88rem;
}

.quote {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 22px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.quote:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 243, 77, 0.28);
}

.quote p {
  margin: 0 0 16px;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quote img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.page-hero {
  padding: 130px 0 20px;
}

.prose {
  max-width: 44rem;
}

.prose p,
.prose li {
  color: rgba(244, 246, 248, 0.82);
}

.prose h2 {
  margin-top: 2rem;
  letter-spacing: -0.03em;
}

.form {
  display: grid;
  gap: 14px;
}

label span {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(182, 243, 77, 0.45);
  outline-offset: 1px;
  border-color: rgba(182, 243, 77, 0.4);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-success {
  display: none;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(182, 243, 77, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 600;
}

.form.is-sent .form-success {
  display: block;
  animation: success-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.form.is-sent .form-fields {
  display: none;
}

.email-bar.is-sent {
  justify-content: center;
}

.email-bar.is-sent .form-success {
  display: block;
  flex: 1;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--green);
  padding: 8px 12px;
  animation: success-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.email-bar.is-sent .form-fields {
  display: none;
}

.cta-band {
  border-radius: 28px;
  padding: 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(182, 243, 77, 0.25);
  background:
    radial-gradient(circle at 15% 20%, rgba(182, 243, 77, 0.16), transparent 45%),
    var(--bg-elevated);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-band:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cta-band p {
  margin: 8px 0 0;
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--green);
  font-size: 1.3rem;
}

.faq details[open] summary {
  color: var(--green);
}

.faq details[open] summary::after {
  content: "-";
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
  background: #07080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.site-footer a,
.site-footer p {
  color: var(--muted);
  display: block;
  margin: 8px 0;
  font-size: 0.92rem;
}

.copyright {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6b7380;
  font-size: 0.82rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-in {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-in {
  opacity: 1;
  transform: none;
}

.hero-enter > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-enter > *:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-enter > *:nth-child(2) {
  animation-delay: 0.16s;
}

.hero-enter > *:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(182, 243, 77, 0.16);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(182, 243, 77, 0.06);
  }
}

@keyframes success-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .hero-enter > * {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .hotspot-dot {
    animation: none;
  }

  .hero-bg {
    animation: none;
    transform: scale(1.05);
  }

  .btn:hover,
  .card:hover,
  .glass-card:hover,
  .quote:hover,
  .cta-band:hover,
  .card:hover img.cover,
  .socials a:hover,
  .steps article:hover .step-num {
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero-top,
  .feature-row,
  .cards-3,
  .cards-2,
  .steps,
  .split,
  .stats,
  .footer-grid,
  .cta-band,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-title .line-2 {
    text-align: left;
  }

  .hotspots {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    background: rgba(10, 11, 13, 0.96);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav a::after {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .split img {
    height: 280px;
  }
}
