:root {
  --display: "Oswald", sans-serif;
  --body: "Inter", sans-serif;
  --navy-deep: #07253d;
  --navy: #002d52;
  --navy-mid: #003e71;
  --cyan: #2ea6d1;
  --cyan-light: #88e5ff;
  --yellow: #fdfd00;
  --green: #4de9b0;
  --red: #ff6f7d;
  --amber: #ffca63;
  --violet: #bba3ff;
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.9);
  --white-72: rgba(255, 255, 255, 0.72);
  --white-56: rgba(255, 255, 255, 0.56);
  --white-36: rgba(255, 255, 255, 0.36);
  --white-16: rgba(255, 255, 255, 0.16);
  --white-08: rgba(255, 255, 255, 0.08);
  --ink: #08111d;
  --surface: rgba(9, 26, 49, 0.84);
  --surface-strong: rgba(9, 26, 49, 0.92);
  --surface-soft: rgba(12, 34, 64, 0.68);
  --border: rgba(125, 212, 239, 0.14);
  --shadow: rgba(0, 0, 0, 0.3);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(46, 166, 209, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(253, 253, 0, 0.08), transparent 25%),
    var(--navy-deep);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.aurora-mesh,
.aurora-veil {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora-mesh {
  inset: -18%;
  z-index: -3;
  filter: blur(64px) saturate(150%);
  background:
    radial-gradient(40% 38% at 16% 12%, rgba(46, 166, 209, 0.6), transparent 60%),
    radial-gradient(42% 36% at 50% 8%, rgba(46, 110, 255, 0.36), transparent 62%),
    radial-gradient(34% 34% at 84% 12%, rgba(253, 253, 0, 0.26), transparent 56%),
    radial-gradient(34% 40% at 78% 66%, rgba(162, 109, 255, 0.26), transparent 60%),
    radial-gradient(38% 36% at 18% 82%, rgba(77, 233, 176, 0.22), transparent 58%);
  animation: auroraShift 20s ease-in-out infinite alternate;
}

.aurora-veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(2, 11, 23, 0.12), rgba(4, 16, 32, 0.4) 30%, rgba(3, 10, 18, 0.9)),
    radial-gradient(circle at top, rgba(16, 61, 109, 0.32), transparent 48%);
}

@keyframes auroraShift {
  from {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 3%, 0) scale(1.06);
  }
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 14px 0;
}

.nav-inner,
.mobile-menu,
.panel,
.cta-band,
.site-footer {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(13, 36, 66, 0.88), rgba(8, 23, 44, 0.84)),
    var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 60px var(--shadow);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  min-height: 88px;
  padding: 12px 20px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand img {
  width: auto;
  height: 58px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a,
.mobile-menu a,
.btn,
.filter-chip,
.region-tab,
.count-chip,
.eyebrow,
.state-chip,
.tag,
.mini-label {
  font-family: var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--white-72);
  text-decoration: none;
  font-size: 0.78rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background: rgba(46, 166, 209, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.nav-cta,
.btn-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 18px 34px rgba(253, 253, 0, 0.18);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--white-16);
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.btn-secondary:hover {
  border-color: rgba(46, 166, 209, 0.34);
  background: rgba(46, 166, 209, 0.08);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--white-16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  max-width: 1320px;
  margin: 10px auto 0;
  border-radius: 24px;
  padding: 12px 18px;
  display: none;
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  padding: 12px 0;
  text-decoration: none;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--white-08);
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 14px 96px;
}

.hero {
  min-height: min(820px, calc(100svh - 120px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 28px;
  padding: 24px 0 18px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(46, 166, 209, 0.28);
  background: rgba(46, 166, 209, 0.08);
  color: var(--cyan-light);
  font-size: 0.74rem;
}

.hero h1,
.panel h2,
.cta-band h2 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
  max-width: 11ch;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--white-56);
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.hero-lead,
.section-copy p,
.footer-brand p,
.footer-note,
.state-insight,
.nexus-card p,
.nexus-support p {
  color: var(--white-72);
}

.hero-lead {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.hero-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid var(--white-08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.hero-preview-tile {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--white-08);
  background:
    radial-gradient(circle at top, var(--tile-accent, rgba(46, 166, 209, 0.16)), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.hero-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  padding: 22px 20px;
  border-radius: 24px;
  border: 1px solid var(--white-08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  color: var(--white);
}

.stat-label {
  margin-top: 8px;
  color: var(--white-56);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel,
.cta-band,
.site-footer {
  border-radius: var(--radius-lg);
}

.panel {
  padding: 28px;
  margin-top: 18px;
}

.section-copy {
  max-width: 760px;
}

.section-copy h2,
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.section-copy > p:last-child {
  margin-top: 12px;
  line-height: 1.72;
}

.toolbar,
.toolbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar {
  justify-content: space-between;
  margin-top: 26px;
}

.search-field {
  min-width: min(100%, 360px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--white-08);
  color: var(--white-56);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.search-field input::placeholder {
  color: var(--white-36);
}

.count-chip,
.filter-chip,
.region-tab,
.state-chip,
.tag,
.mini-label {
  font-size: 0.72rem;
}

.count-chip,
.filter-chip,
.region-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--white-08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white-72);
}

.count-chip strong {
  margin-right: 6px;
  color: var(--cyan-light);
}

.filter-row,
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip,
.region-tab {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip:hover,
.region-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 166, 209, 0.34);
}

.filter-chip.is-active,
.region-tab.is-active {
  color: var(--ink);
  background: var(--cyan);
  border-color: rgba(46, 166, 209, 0.42);
}

.installer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.installer-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  border: 1px solid var(--tile-border, var(--white-08));
  border-radius: 28px;
  background:
    radial-gradient(circle at top, var(--tile-accent, rgba(46, 166, 209, 0.16)), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
  cursor: pointer;
}

.installer-tile:hover,
.installer-tile:focus-visible,
.installer-tile.is-active {
  transform: translateY(-4px);
  border-color: rgba(46, 166, 209, 0.38);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(46, 166, 209, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  outline: none;
}

.installer-tile.is-dimmed {
  opacity: 0.18;
  pointer-events: none;
}

.installer-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.installer-fallback {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.installer-tile.is-unresolved::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.installer-tile[hidden],
.state-card[hidden],
.no-results[hidden] {
  display: none !important;
}

.no-results {
  margin-top: 18px;
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.no-results h3 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

.no-results p {
  margin: 8px 0 0;
  color: var(--white-56);
}

.state-grid,
.nexus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.finance-tile {
  min-height: 148px;
  display: grid;
  place-items: center;
  padding: 22px 18px;
  border-radius: 26px;
  border: 1px solid var(--white-08);
  background:
    radial-gradient(circle at top, rgba(46, 166, 209, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease;
  cursor: default;
}

.finance-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 166, 209, 0.32);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(46, 166, 209, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.finance-tile img {
  width: 100%;
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.2));
  transition: filter 0.26s ease;
}

.finance-tile:hover img {
  filter: drop-shadow(0 12px 20px rgba(46, 166, 209, 0.22));
}

.state-card,
.nexus-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--white-08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.state-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.state-code {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--cyan-light);
}

.state-name {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.state-lane {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--white-56);
  line-height: 1.6;
}

.state-status {
  flex-shrink: 0;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  color: var(--ink);
  background: var(--yellow);
}

.state-insight {
  font-size: 0.9rem;
  line-height: 1.72;
}

.state-meta,
.tag-row,
.flow-list,
.nexus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--white-08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-72);
}

.tag.green {
  color: var(--green);
}

.tag.blue {
  color: var(--cyan-light);
}

.tag.amber {
  color: var(--amber);
}

.tag.red {
  color: var(--red);
}

.tag.violet {
  color: var(--violet);
}

.flow-toggle {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--cyan-light);
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-list {
  display: none;
  flex-direction: column;
}

.state-card.is-open .flow-list {
  display: flex;
}

.flow-step {
  padding-left: 12px;
  border-left: 2px solid rgba(46, 166, 209, 0.28);
}

.flow-step h4,
.nexus-card h3,
.nexus-support strong {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flow-step h4 {
  font-size: 0.85rem;
  color: var(--cyan-light);
}

.flow-step p {
  margin: 6px 0 0;
  color: var(--white-56);
  line-height: 1.6;
  font-size: 0.85rem;
}

.nexus-card h3 {
  font-size: 1.1rem;
}

.nexus-support {
  margin-top: 18px;
  padding: 22px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nexus-support-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nexus-support a {
  color: var(--cyan-light);
  text-decoration: none;
}

.nexus-support a:hover {
  text-decoration: underline;
}

.portal-strip {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--white-08);
}

.portal-password {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--white-08);
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  color: var(--white-90);
}

.cta-band {
  margin-top: 18px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer {
  max-width: 1320px;
  margin: 0 auto 18px;
  padding: 24px 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: end;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-brand p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
  color: var(--white-72);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.84rem;
}

@media (max-width: 1100px) {
  .hero,
  .cta-band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .state-grid,
  .nexus-grid,
  .nexus-support,
  .finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .page-shell {
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-stats,
  .state-grid,
  .nexus-grid,
  .nexus-support,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .finance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel,
  .site-footer,
  .cta-band {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .page-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-inner {
    min-height: 74px;
  }

  .nav-brand img {
    height: 46px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.35rem);
  }

  .hero-stats,
  .installer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .toolbar,
  .cta-actions {
    align-items: stretch;
  }

  .toolbar,
  .toolbar-meta,
  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .search-field {
    min-width: 100%;
  }
}

@media (max-width: 460px) {
  .installer-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Scroll-reveal ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.56s ease, transform 0.56s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Finance section accent line ───────────────────────────── */
.panel-finance .section-copy h2 {
  color: var(--white);
  position: relative;
  padding-bottom: 16px;
}

.panel-finance .section-copy h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--yellow));
}

/* ─── Installer tile count badge ────────────────────────────── */
.section-copy .stat-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--display);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-light);
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
