*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #162238;
  --navy2: #1e2f4a;
  --green: #5db848;
  --green2: #4aa53b;
  --white: #ffffff;
  --off: #f5f7fa;
  --muted: #6b7f95;
  --border: #dde3ec;
  --header-h: 76px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* ── NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(22, 34, 56, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
}

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

nav a.active {
  box-shadow: inset 0 -2px 0 var(--green);
  padding-bottom: 4px;
}

nav a.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s;
}

nav a.nav-cta:hover {
  background: var(--green2);
}

/* ── HERO (photo background) ── */
.hero {
  background:
    linear-gradient(rgba(22, 34, 56, 0.15), rgba(22, 34, 56, 0.45)),
    url('images/hero-house.jpg') center 15% / cover no-repeat;
  background-image:
    linear-gradient(rgba(22, 34, 56, 0.15), rgba(22, 34, 56, 0.45)),
    image-set(url('images/hero-house.webp') type('image/webp'), url('images/hero-house.jpg') type('image/jpeg'));
  margin-top: calc(-1 * var(--header-h)); /* tuck under the sticky glass header */
  padding: calc(var(--header-h) + 40px) 24px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start; /* keep copy over the roof so the product below stays clear */
  /* match the image's 16:9 shape so the whole house — solar and product — stays in view */
  min-height: max(calc(100vw * 1349 / 2398), 780px);
}

.hero:not(.compact) h1 {
  margin-bottom: 20px;
}

.hero:not(.compact) .divider {
  margin-bottom: 28px;
}

.hero:not(.compact) .tagline {
  margin-bottom: 32px;
}

.hero.compact {
  min-height: 0;
  padding: calc(var(--header-h) + 72px) 24px 72px;
}

.hero.compact h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  max-width: 1000px;
}

h1 {
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.45),
    0 8px 36px rgba(0, 0, 0, 0.35);
  max-width: 900px;
  margin-bottom: 28px;
}

h1 em {
  font-style: normal;
  color: var(--green);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 0 auto 40px;
}

.tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.96);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 4px 24px rgba(0, 0, 0, 0.35);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--green2);
  transform: translateY(-1px);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── SECTIONS ── */
section {
  padding: 96px 24px;
}

section.alt {
  background: var(--off);
}

section.dark {
  background: var(--navy);
  color: var(--white);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green2);
  margin-bottom: 14px;
}

section.dark .kicker {
  color: var(--green);
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

h2 em {
  font-style: normal;
  color: var(--green2);
}

section.dark h2 em {
  color: var(--green);
}

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

section.dark .lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ── SPLIT (image + copy) ── */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.split .section-head {
  text-align: left;
  margin: 0 0 28px;
}

.media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(22, 34, 56, 0.18);
}

.media.plain {
  box-shadow: none;
  border-radius: 0;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 16px;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

section.dark .checklist li {
  color: rgba(255, 255, 255, 0.72);
}

.checklist strong {
  color: var(--navy);
  font-weight: 700;
}

section.dark .checklist strong {
  color: var(--white);
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── CARDS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s;
}

section.alt .card {
  background: var(--white);
}

.card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(93, 184, 72, 0.12);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

/* benefit cards: icon sits left of the title */
#benefits .card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: center;
}

#benefits .card-icon {
  margin-bottom: 0;
}

#benefits .card h3 {
  margin-bottom: 0;
}

#benefits .card p {
  grid-column: 1 / -1;
  margin-top: 16px;
}

/* ── STEPS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  border-top: 3px solid var(--green);
  padding-top: 24px;
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

/* ── PARTNERS ── */
.partners {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.partner {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--green);
  border-radius: 16px;
  padding: 36px 32px;
}

.partner-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.partner-head .card-icon {
  margin-bottom: 0;
}

.partner h3 {
  font-size: 22px;
  font-weight: 800;
}

.partner .checklist {
  margin-bottom: 32px;
}

.partner .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ── BANNER ── */
.banner {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 22px 24px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
}

/* ── SIGNUP ── */
.cta {
  text-align: center;
}

.signup {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup input {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  color: var(--navy);
  width: 300px;
  max-width: 100%;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.signup input::placeholder {
  color: var(--muted);
}

.signup input:focus {
  border-color: var(--green);
}

.signup-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(93, 184, 72, 0.15);
  border: 1px solid rgba(93, 184, 72, 0.4);
  border-radius: 12px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  animation: fadeIn 0.35s ease;
}

.signup-success svg {
  width: 20px;
  height: 20px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.signup-error {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  color: #ffb4a8;
}

.signup-error a {
  color: var(--white);
}

/* ── TEAM ── */



.team {
  display: grid;
  gap: 24px;
}

.member {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.member:hover {
  border-color: var(--green);
  box-shadow: 0 4px 24px rgba(93, 184, 72, 0.1);
}

.member img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--off);
  box-shadow: 0 0 0 2px var(--green);
}

.member h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.member h3 .linkedin {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--muted);
  transition: color 0.2s;
}

.member h3 .linkedin:hover {
  color: #0a66c2;
}

.member h3 .linkedin svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.member .role {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green2);
  margin: 6px 0 18px;
}

.member p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.member p + p {
  margin-top: 12px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
}


.tags span.patent {
  color: var(--green2);
  background: rgba(93, 184, 72, 0.08);
  border-color: rgba(93, 184, 72, 0.35);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .split,
  .grid,
  .steps,
  .partners {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }

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

  .member {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
    justify-items: center;
  }

  .tags {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 60px;
  }

  header {
    padding: 0 16px;
  }

  .logo-img {
    height: 30px;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 14px;
  }

  nav a.nav-cta {
    display: none;
  }

  .hero {
    padding: calc(var(--header-h) + 56px) 16px 72px;
  }

  .hero.compact {
    padding: calc(var(--header-h) + 48px) 16px 56px;
  }

  section {
    padding: 64px 16px;
  }

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

  .member {
    padding: 28px 20px;
  }


  .member img {
    width: 140px;
    height: 140px;
  }
}
