:root {
  --green: #168a45;
  --green-dark: #0d5f33;
  --lime: #77b82a;
  --orange: #f28c24;
  --gold: #ffc24b;
  --page: #f4f8f0;
  --text: #15231c;
  --muted: #637268;
  --line: #dfe8dc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(18, 54, 32, .12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(244, 248, 240, 0) 0, var(--page) 720px),
    var(--page);
  color: var(--text);
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 720px;
  padding: 26px clamp(18px, 4vw, 64px) 125px;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/heatx-solarx-hero.png") center 43% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 17, 16, .72) 0%, rgba(12, 32, 24, .48) 28%, rgba(255,255,255,.03) 55%, rgba(9, 24, 18, .18) 100%),
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.03) 48%, rgba(244,248,240,.98) 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  max-width: min(620px, 92vw);
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(6, 22, 18, .48);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.heat-logo,
.solar-logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 950;
  letter-spacing: .14em;
  color: rgba(255,255,255,.92);
  line-height: 1;
}

.heat-logo {
  font-size: 23px;
}

.solar-logo {
  font-size: 17px;
}

.heat-logo span {
  color: #80bf32;
  font-size: 31px;
  letter-spacing: 0;
  margin-left: 1px;
}

.solar-logo span {
  color: var(--orange);
  font-size: 22px;
  letter-spacing: 0;
  margin-left: 1px;
}

.powered {
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.22);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 390px);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
  max-width: 1260px;
  min-height: 510px;
  margin-top: 28px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 900;
  color: #ffcf79;
  text-shadow: 0 10px 26px rgba(0,0,0,.36);
}

h1 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 14px 32px rgba(0,0,0,.38);
}

.lead {
  margin: 24px 0 10px;
  max-width: 610px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.45;
  color: rgba(255,255,255,.95);
}

.hero-grid > div:first-child {
  padding: 24px;
  margin-left: -24px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(5, 20, 17, .52), rgba(5, 20, 17, .18), rgba(5, 20, 17, 0));
}

.note {
  display: inline-flex;
  margin: 4px 0 0;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(22, 138, 69, .82);
  font-size: 15px;
  font-weight: 750;
  color: white;
}

.status-box {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 13px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.42);
  background: rgba(255,255,255,.89);
  color: var(--text);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.status-box p {
  margin: 5px 0 0;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(255, 194, 75, .22);
}

.dot.ok {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 138, 69, .18);
}

.dot.err {
  background: #d92d20;
  box-shadow: 0 0 0 5px rgba(217, 45, 32, .16);
}

.slots-section {
  max-width: 1200px;
  margin: -74px auto 0;
  padding: 0 clamp(16px, 3vw, 28px) 56px;
  position: relative;
  z-index: 3;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(223, 232, 220, .9);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

h2 {
  margin: 0 0 5px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.slot {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94)),
    linear-gradient(135deg, rgba(242, 140, 36, .16), rgba(22, 138, 69, .12));
  border: 1px solid rgba(208, 224, 204, .95);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(18, 58, 32, .08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.slot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--lime), var(--green));
  transition: height .18s ease, filter .18s ease;
}

.slot:hover {
  transform: translateY(-5px);
  border-color: rgba(22, 138, 69, .34);
  box-shadow: 0 22px 46px rgba(18, 58, 32, .16);
}

.slot:hover::before {
  height: 6px;
  filter: saturate(1.12);
}

.slot .kw {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff2df;
  color: #9b5100;
  font-weight: 900;
  font-size: 13px;
}

.slot h3 {
  margin: 16px 0 9px;
  font-size: 23px;
  letter-spacing: 0;
}

.slot p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--green), #32a852);
  color: white;
  font-weight: 900;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(22, 138, 69, .22);
}

button:hover { filter: brightness(.96); }
button:disabled { opacity: .65; cursor: wait; }

.secondary {
  background: white;
  color: var(--green-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}

.secondary:hover {
  background: #f1f7ef;
}

.empty {
  grid-column: 1 / -1;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  box-shadow: 0 12px 28px rgba(18, 58, 32, .06);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
}

.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 18, .68);
  backdrop-filter: blur(4px);
}

.dialog {
  position: relative;
  width: min(540px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: white;
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
}

.dialog h3 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: 0;
}

.modal-text {
  margin: 0 0 18px;
  color: var(--muted);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: #eef4ec;
  color: var(--text);
  box-shadow: none;
}

label {
  display: block;
  margin: 12px 0;
  font-weight: 850;
}

input, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: #fbfdf9;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

input:focus, textarea:focus {
  outline: 3px solid rgba(22, 138, 69, .18);
  border-color: var(--green);
}

.form-error {
  min-height: 20px;
  color: #b3261e;
  font-weight: 850;
  margin-top: 8px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 680px;
    padding-bottom: 110px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 80px;
  }

  .hero-grid > div:first-child {
    margin-left: 0;
    background: rgba(5, 20, 17, .5);
    backdrop-filter: blur(5px);
  }

  .status-box {
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 760px;
    padding-inline: 18px;
  }

  .hero::before {
    background-position: 63% center;
  }

  .brand {
    max-width: 100%;
    padding: 9px 11px;
    gap: 8px;
  }

  .heat-logo {
    font-size: 19px;
  }

  .heat-logo span {
    font-size: 25px;
  }

  .solar-logo {
    font-size: 14px;
  }

  .solar-logo span {
    font-size: 18px;
  }

  .powered {
    font-size: 11px;
  }

  .lead {
    font-size: 17px;
  }

  .note {
    display: flex;
    line-height: 1.35;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head button,
  .slot button,
  .actions button {
    width: 100%;
  }

  .actions {
    flex-direction: column-reverse;
  }
}
