:root {
  --ink: #151827;
  --muted: #777f90;
  --line: #e6e9ef;
  --paper: #eef2f5;
  --panel: #ffffff;
  --green: #25c5bd;
  --green-dark: #10a79f;
  --green-soft: #e5fbf9;
  --blue: #4a90ff;
  --blue-dark: #3678df;
  --blue-soft: #edf5ff;
  --gold: #24d0cf;
  --gold-soft: #e6fbfb;
  --coral: #ff5d84;
  --coral-soft: #fff0f4;
  --violet: #6654d9;
  --violet-soft: #f0efff;
  --sidebar: #ffffff;
  --shadow: 0 18px 42px rgba(24, 28, 40, 0.07);
  --soft-shadow: 0 8px 22px rgba(24, 28, 40, 0.055);
}

/* Final public landing overrides: keep this at the end so older app rules cannot win. */
.landing-screen {
  background: #f1f2ef;
  color: #071e26;
}

.landing-screen .landing-nav {
  width: min(1160px, calc(100% - 48px));
  min-height: 54px;
  margin: 28px auto -82px;
  padding: 10px 12px 10px 18px;
  align-items: center;
  flex-direction: row;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(238, 248, 248, 0.78);
  box-shadow: 0 18px 45px rgba(2, 28, 36, 0.12);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 8;
}

.landing-screen .landing-brand strong {
  color: #062632;
  font-size: 18px;
}

.landing-screen .landing-brand span {
  color: rgba(6, 38, 50, 0.7);
}

.landing-screen .landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-screen .nav-link {
  color: rgba(6, 38, 50, 0.78);
  font-size: 12px;
}

.landing-screen .landing-nav .btn.primary {
  width: auto;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #062632;
  border-color: #062632;
  color: #fff;
}

.landing-screen .landing-main {
  display: block;
  padding-bottom: 36px;
}

.landing-screen .landing-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: min(730px, calc(100vh - 36px));
  display: block;
  margin: 0 auto;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  background: #062632;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 74px rgba(3, 27, 35, 0.18);
}

.landing-screen .landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 24, 31, 0.86) 0%, rgba(5, 24, 31, 0.58) 42%, rgba(5, 24, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 38, 50, 0.08), rgba(6, 38, 50, 0.78));
  opacity: 1;
  animation: none;
  pointer-events: none;
}

.landing-screen .landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 116px;
  height: 1px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.28);
}

.landing-screen .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-screen .hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroImageDrift 16s ease-in-out infinite alternate;
}

.landing-screen .landing-hero > * {
  position: relative;
  z-index: 2;
}

.landing-screen .hero-copy {
  width: min(660px, calc(100% - 48px));
  max-width: none;
  padding: clamp(136px, 15vw, 176px) 0 0 clamp(24px, 4vw, 34px);
  animation: landingRise 760ms ease both;
}

.landing-screen .landing-hero .eyebrow {
  background: rgba(207, 248, 238, 0.2);
  color: #8afbe6;
  border: 1px solid rgba(138, 251, 230, 0.24);
}

.landing-screen .landing-hero h1 {
  max-width: 650px;
  margin: 18px 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-screen .landing-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.landing-screen .hero-actions {
  margin-top: 28px;
}

.landing-screen .hero-actions .btn {
  width: auto;
  border-radius: 999px;
}

.landing-screen .hero-actions .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #062632;
}

.landing-screen .hero-stats {
  position: absolute;
  right: clamp(24px, 5vw, 58px);
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.landing-screen .hero-stats strong {
  color: #fff;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 0.95;
}

.landing-screen .hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.landing-screen .hero-orbit {
  position: absolute;
  right: 10%;
  top: 21%;
  z-index: 2;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: slowSpin 22s linear infinite;
}

.landing-screen .hero-orbit span {
  position: absolute;
  border-radius: 50%;
}

.landing-screen .hero-orbit span:first-child {
  inset: 30px;
  background: radial-gradient(circle, #fff6bb 0 26%, #ffd55d 27% 48%, rgba(255, 213, 93, 0.14) 49% 100%);
}

.landing-screen .hero-orbit span:last-child {
  width: 11px;
  height: 11px;
  right: 16px;
  top: 54px;
  background: #23d6bd;
}

.landing-screen .landing-metrics {
  width: min(1040px, calc(100% - 72px));
  margin: -48px auto 74px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-screen .landing-metrics article {
  min-height: 108px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(6, 38, 50, 0.1);
}

.landing-screen .landing-section {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 12px 0 72px;
  text-align: center;
}

.landing-screen .landing-section > div:first-child {
  width: min(860px, 100%);
  margin: 0 auto;
}

.landing-screen .section-photo {
  width: min(560px, 100%);
  margin: -4px auto 0;
  aspect-ratio: 2.15 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(6, 38, 50, 0.13);
}

.landing-screen .section-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-screen .landing-feature-grid {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px auto 0;
}

.landing-screen .landing-feature-grid article {
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 18px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-screen .landing-feature-grid article::before {
  content: "";
  width: 58px;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(6, 38, 50, 0.12);
  background: #fff;
  box-shadow: 0 12px 26px rgba(6, 38, 50, 0.08);
}

.landing-screen .landing-feature-grid article:first-child::before {
  background: #062632;
}

.landing-screen .landing-feature-grid p {
  color: #7a8588;
  font-size: 12px;
  line-height: 1.45;
}

.landing-screen .proof-band,
.landing-screen .gallery-section,
.landing-screen .solar-process,
.landing-screen .faq-section,
.landing-screen .customer-cta,
.landing-screen .solar-footer {
  width: min(1120px, calc(100% - 48px));
}

.landing-screen .solar-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.landing-screen .featured-card {
  grid-row: span 2;
  grid-column: span 1;
}

.landing-screen .gallery-card {
  min-height: 0;
}

@media (max-width: 980px) {
  .landing-screen .landing-nav {
    width: calc(100% - 28px);
    margin-top: 14px;
    margin-bottom: -74px;
  }

  .landing-screen .landing-hero,
  .landing-screen .landing-metrics,
  .landing-screen .landing-section,
  .landing-screen .proof-band,
  .landing-screen .gallery-section,
  .landing-screen .solar-process,
  .landing-screen .faq-section,
  .landing-screen .customer-cta,
  .landing-screen .solar-footer {
    width: calc(100% - 28px);
  }

  .landing-screen .landing-hero {
    min-height: 700px;
  }

  .landing-screen .hero-stats {
    left: 22px;
    right: 22px;
  }

  .landing-screen .landing-feature-grid,
  .landing-screen .proof-band,
  .landing-screen .solar-process,
  .landing-screen .faq-section,
  .landing-screen .footer-columns {
    grid-template-columns: 1fr;
  }

  .landing-screen .solar-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-screen .featured-card {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .landing-screen .landing-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-screen .landing-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-screen .landing-nav .language-toggle,
  .landing-screen .landing-nav .btn {
    grid-column: span 2;
    justify-content: center;
    width: 100%;
  }

  .landing-screen .landing-hero {
    min-height: 740px;
  }

  .landing-screen .landing-hero h1 {
    font-size: 42px;
  }

  .landing-screen .hero-actions .btn {
    width: 100%;
  }

  .landing-screen .hero-stats,
  .landing-screen .landing-metrics,
  .landing-screen .solar-gallery,
  .landing-screen .process-steps,
  .landing-screen .proof-grid {
    grid-template-columns: 1fr;
  }

  .landing-screen .landing-metrics {
    margin-top: 14px;
  }
}

.landing-screen .landing-hero > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-screen .landing-hero > .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-screen .landing-metrics {
  margin: 28px auto 74px;
}

.landing-screen .landing-hero > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-screen .landing-hero > .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-screen .landing-hero > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-screen .landing-hero > .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Public landing refresh inspired by modern solar marketing layouts. */
.landing-screen {
  background: #f1f2ef;
  color: #071e26;
}

.landing-nav {
  width: min(1160px, calc(100% - 48px));
  min-height: 54px;
  margin: 28px auto -82px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(238, 248, 248, 0.78);
  box-shadow: 0 18px 45px rgba(2, 28, 36, 0.12);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 8;
}

.landing-brand {
  gap: 10px;
}

.landing-brand .brand-mark.large {
  width: 38px;
  height: 38px;
}

.landing-brand strong {
  color: #062632;
  font-size: 18px;
}

.landing-brand span {
  color: rgba(6, 38, 50, 0.7);
  font-size: 12px;
}

.landing-nav-actions {
  gap: 18px;
}

.nav-link {
  color: rgba(6, 38, 50, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.nav-link:hover {
  color: #04a887;
}

.language-toggle {
  border-color: rgba(6, 38, 50, 0.11);
  background: rgba(255, 255, 255, 0.62);
}

.language-toggle button.is-active {
  background: #d9fbf2;
  color: #00856f;
}

.landing-nav .btn.primary {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #062632;
  border-color: #062632;
  color: #fff;
  box-shadow: 0 12px 28px rgba(6, 38, 50, 0.2);
}

.landing-main {
  gap: 0;
  padding-bottom: 36px;
}

.landing-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: min(730px, calc(100vh - 36px));
  display: block;
  margin: 0 auto;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  background: #062632;
  box-shadow: 0 28px 74px rgba(3, 27, 35, 0.18);
}

.landing-hero::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 24, 31, 0.86) 0%, rgba(5, 24, 31, 0.62) 42%, rgba(5, 24, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 38, 50, 0.1), rgba(6, 38, 50, 0.78));
  opacity: 1;
  animation: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 116px;
  height: 1px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.28);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroImageDrift 16s ease-in-out infinite alternate;
}

.hero-copy {
  width: min(660px, calc(100% - 48px));
  max-width: none;
  padding: clamp(136px, 15vw, 176px) 0 0 clamp(24px, 4vw, 34px);
  animation: landingRise 760ms ease both;
}

.landing-hero .eyebrow {
  background: rgba(207, 248, 238, 0.2);
  color: #8afbe6;
  border: 1px solid rgba(138, 251, 230, 0.24);
}

.landing-hero h1 {
  max-width: 650px;
  margin: 18px 0 18px;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 28px;
}

.hero-actions .btn {
  border-radius: 999px;
}

.hero-actions .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #062632;
}

.hero-actions .btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats {
  position: absolute;
  right: clamp(24px, 5vw, 58px);
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: clamp(28px, 5vw, 72px);
  animation: landingRise 900ms 120ms ease both;
}

.hero-stats article {
  display: grid;
  gap: 8px;
  color: #fff;
}

.hero-stats strong {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 0.95;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-orbit {
  position: absolute;
  right: 10%;
  top: 21%;
  z-index: 2;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: slowSpin 22s linear infinite;
}

.hero-orbit span {
  position: absolute;
  border-radius: 50%;
}

.hero-orbit span:first-child {
  inset: 30px;
  background: radial-gradient(circle, #fff6bb 0 26%, #ffd55d 27% 48%, rgba(255, 213, 93, 0.14) 49% 100%);
  box-shadow: 0 0 48px rgba(255, 213, 93, 0.45);
}

.hero-orbit span:last-child {
  width: 11px;
  height: 11px;
  right: 16px;
  top: 54px;
  background: #23d6bd;
}

.landing-metrics {
  width: min(1040px, calc(100% - 72px));
  margin: -48px auto 74px;
  gap: 14px;
}

.landing-metrics article {
  min-height: 108px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(6, 38, 50, 0.1);
}

.landing-metrics strong {
  color: #061f28;
}

.landing-section {
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  width: min(1120px, calc(100% - 48px));
  padding: 12px 0 72px;
  text-align: center;
}

.landing-section > div:first-child {
  width: min(860px, 100%);
  margin: 0 auto;
}

.landing-section h2,
.gallery-section h2,
.solar-process h2,
.proof-band h2,
.customer-cta h2,
.faq-section h2 {
  color: #071e26;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.section-photo {
  width: min(560px, 100%);
  margin: -4px auto 0;
  aspect-ratio: 2.15 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(6, 38, 50, 0.13);
}

.section-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 500ms ease;
}

.section-photo:hover img {
  transform: scale(1.04);
}

.landing-feature-grid {
  width: min(820px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px auto 0;
}

.landing-feature-grid article {
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: 150px;
  padding: 18px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-feature-grid article::before {
  content: "";
  width: 58px;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(6, 38, 50, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(35, 214, 189, 0.22), transparent 34%),
    #fff;
  box-shadow: 0 12px 26px rgba(6, 38, 50, 0.08);
}

.landing-feature-grid article:first-child::before {
  background: #062632;
}

.landing-feature-grid strong {
  font-size: 14px;
}

.landing-feature-grid p {
  margin: 0;
  color: #7a8588;
  font-size: 12px;
  line-height: 1.45;
}

.proof-band {
  width: min(1120px, calc(100% - 48px));
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  padding: 54px 0;
  border-top: 1px solid rgba(6, 38, 50, 0.08);
}

.proof-grid {
  gap: 10px;
}

.proof-grid article,
.process-steps article {
  border-radius: 8px;
  background: #fff;
  border-color: rgba(6, 38, 50, 0.08);
  box-shadow: 0 20px 48px rgba(6, 38, 50, 0.08);
}

.gallery-section {
  width: min(1120px, calc(100% - 48px));
  padding: 50px 0;
}

.gallery-head {
  align-items: center;
  margin-bottom: 22px;
}

.social-links .btn {
  border-radius: 999px;
}

.solar-gallery {
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-card {
  min-height: 0;
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(6, 38, 50, 0.12);
}

.featured-card {
  grid-row: span 2;
  grid-column: span 1;
}

.gallery-card::before {
  background: linear-gradient(180deg, rgba(6, 38, 50, 0.06), rgba(6, 38, 50, 0.88));
}

.gallery-card::after {
  display: none;
}

.solar-process {
  width: min(1120px, calc(100% - 48px));
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  padding: 38px 0 64px;
}

.process-steps {
  gap: 14px;
}

.faq-section {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  margin: 0 auto 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgba(6, 38, 50, 0.12);
}

.faq-media {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  background: #062632;
}

.faq-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 600ms ease;
}

.faq-media:hover img {
  transform: scale(1.04);
}

.faq-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 38, 50, 0.9));
}

.faq-media > div {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 1;
  color: #fff;
}

.faq-media span {
  display: block;
  margin-bottom: 8px;
  color: #8afbe6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.faq-media strong {
  display: block;
  max-width: 420px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.faq-list {
  padding: clamp(28px, 5vw, 58px);
}

.faq-list .eyebrow {
  margin-bottom: 26px;
}

.faq-list details {
  border-bottom: 1px solid rgba(6, 38, 50, 0.1);
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #071e26;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: #062632;
  font-size: 24px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  max-width: 560px;
  margin: -6px 0 22px;
  color: #717d82;
  line-height: 1.65;
}

.customer-cta {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 0;
  border-radius: 8px 8px 0 0;
  background: #062632;
}

.customer-cta::after {
  background: radial-gradient(circle, rgba(35, 214, 189, 0.34), rgba(35, 214, 189, 0));
}

.solar-footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 44px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 0 0 8px 8px;
  color: #fff;
  background: #062632;
  overflow: hidden;
  position: relative;
}

.footer-photo {
  min-height: 230px;
  display: grid;
  align-items: end;
  padding: 24px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #071e26;
}

.footer-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.78;
}

.footer-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 50, 0.84), rgba(6, 38, 50, 0.28));
}

.footer-photo div {
  width: min(520px, 100%);
  position: relative;
  z-index: 1;
}

.footer-photo span,
.footer-columns span {
  display: block;
  margin-bottom: 10px;
  color: #8afbe6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-photo strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  padding: 28px 4px 78px;
  position: relative;
  z-index: 1;
}

.footer-columns strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.footer-columns p,
.footer-columns a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-columns a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
}

.footer-columns a:hover {
  color: #8afbe6;
}

.footer-wordmark {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -40px;
  color: #18b684;
  font-size: clamp(76px, 15vw, 180px);
  font-weight: 1000;
  line-height: 0.8;
  opacity: 0.88;
  pointer-events: none;
}

@keyframes heroImageDrift {
  from {
    transform: scale(1.04) translateX(-6px);
  }
  to {
    transform: scale(1.09) translateX(10px);
  }
}

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

@media (max-width: 980px) {
  .landing-nav {
    width: calc(100% - 28px);
    margin-top: 14px;
    margin-bottom: -74px;
  }

  .landing-hero {
    width: calc(100% - 28px);
    min-height: 700px;
  }

  .hero-copy {
    width: min(620px, calc(100% - 36px));
    padding-left: 22px;
  }

  .hero-stats {
    left: 22px;
    right: 22px;
    gap: 18px;
  }

  .landing-metrics,
  .landing-section,
  .proof-band,
  .gallery-section,
  .solar-process,
  .faq-section,
  .customer-cta,
  .solar-footer {
    width: calc(100% - 28px);
  }

  .landing-feature-grid,
  .proof-band,
  .solar-process,
  .faq-section,
  .footer-columns {
    grid-template-columns: 1fr;
  }

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

  .featured-card {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .landing-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .landing-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-nav .language-toggle,
  .landing-nav .btn {
    grid-column: span 2;
    justify-content: center;
  }

  .landing-hero {
    min-height: 740px;
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats,
  .landing-metrics,
  .solar-gallery,
  .process-steps,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .landing-metrics {
    margin-top: 14px;
  }

  .faq-media {
    min-height: 340px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.landing-screen {
  min-height: 100vh;
  background: #f5f7fb;
}

.landing-nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  backdrop-filter: blur(14px);
}

.landing-brand strong {
  font-size: 17px;
}

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

.nav-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.language-toggle button {
  min-width: 36px;
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.language-toggle button.is-active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.landing-main {
  display: grid;
  gap: 20px;
}

.landing-hero {
  min-height: min(720px, calc(100vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.74fr);
  align-items: center;
  gap: clamp(26px, 5vw, 78px);
  padding: clamp(42px, 7vw, 92px) clamp(20px, 5vw, 76px);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 212, 90, 0.26), transparent 22%),
    radial-gradient(circle at 18% 80%, rgba(37, 197, 189, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(3, 12, 51, 1) 0%, rgba(6, 17, 68, 0.98) 54%, rgba(7, 33, 84, 0.94) 100%),
    #061144;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.08) 43%, transparent 46%),
    linear-gradient(128deg, transparent 0 55%, rgba(37, 197, 189, 0.12) 56%, transparent 59%);
  opacity: 0.7;
  animation: heroSweep 7s ease-in-out infinite;
  pointer-events: none;
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 197, 189, 0.14);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.landing-hero h1 {
  margin: 18px 0 18px;
  max-width: 780px;
  color: #fff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.landing-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
}

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

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hero-compass,
.solar-scene {
  justify-self: center;
  width: min(360px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.hero-showcase {
  min-height: 520px;
  position: relative;
  isolation: isolate;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 32px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}

.hero-photo-card {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #061144;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.hero-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 68, 0.03), rgba(6, 17, 68, 0.78));
}

.hero-photo-card > div,
.hero-photo-card > strong {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}

.hero-photo-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-photo-card strong {
  color: #fff;
  font-size: 24px;
  line-height: 1.05;
}

.main-photo {
  inset: 52px 72px 44px 8px;
  animation: floatMain 6s ease-in-out infinite;
}

.mini-photo {
  width: 190px;
  height: 142px;
  z-index: 2;
}

.mini-photo.top {
  right: 0;
  top: 0;
  animation: floatMini 5.4s ease-in-out infinite;
}

.mini-photo.bottom {
  right: 26px;
  bottom: 10px;
  animation: floatMini 5.8s ease-in-out infinite reverse;
}

.hero-showcase .sun-core {
  top: 18px;
  left: 38px;
  right: auto;
  z-index: 3;
}

.hero-showcase .line-one {
  top: 118px;
  left: 126px;
  right: auto;
  transform: rotate(22deg);
  z-index: 3;
}

.hero-showcase .line-two {
  top: 152px;
  left: 116px;
  right: auto;
  transform: rotate(8deg);
  z-index: 3;
}

@keyframes heroSweep {
  0%,
  100% {
    transform: translateX(-5%);
  }
  50% {
    transform: translateX(5%);
  }
}

@keyframes slowSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatMain {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes floatMini {
  0%,
  100% {
    transform: translateY(0) rotate(2deg);
  }
  50% {
    transform: translateY(10px) rotate(-1deg);
  }
}

.hero-compass img {
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.solar-scene {
  position: relative;
  overflow: hidden;
}

.sun-core {
  position: absolute;
  top: 42px;
  right: 50px;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7b8 0 26%, #ffd45a 27% 48%, rgba(255, 212, 90, 0.14) 49% 100%);
  box-shadow: 0 0 48px rgba(255, 212, 90, 0.62);
  animation: solarPulse 3.4s ease-in-out infinite;
}

.panel-array {
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 76px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  transform: perspective(680px) rotateX(58deg) rotateZ(-12deg);
  transform-origin: center bottom;
}

.panel-array span {
  min-height: 74px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, #2f70d4, #14275f);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: panelGlow 4s ease-in-out infinite;
}

.panel-array span:nth-child(2n) {
  animation-delay: 0.35s;
}

.panel-array span:nth-child(3n) {
  animation-delay: 0.7s;
}

.energy-line {
  position: absolute;
  width: 190px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37, 197, 189, 0.9), transparent);
  transform-origin: left center;
  opacity: 0;
  animation: energySweep 2.8s ease-in-out infinite;
}

.line-one {
  top: 130px;
  right: 118px;
  transform: rotate(142deg);
}

.line-two {
  top: 164px;
  right: 88px;
  transform: rotate(156deg);
  animation-delay: 0.6s;
}

@keyframes solarPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes panelGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes energySweep {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  18%,
  62% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 100%);
  }
}

.landing-metrics {
  width: min(1180px, calc(100% - 40px));
  margin: -52px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}

.landing-metrics article,
.landing-feature-grid article,
.landing-access {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 46px rgba(24, 28, 40, 0.08);
}

.landing-metrics article {
  padding: 18px;
}

.landing-metrics span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.landing-metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(18px, 2vw, 24px);
}

.landing-section,
.landing-access,
.solar-process,
.customer-cta,
.proof-band,
.gallery-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.landing-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: 58px 0 24px;
}

.landing-section h2,
.landing-access h2,
.solar-process h2,
.customer-cta h2,
.proof-band h2,
.gallery-section h2 {
  margin: 14px 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.05;
}

.landing-section p,
.landing-access p,
.solar-process p,
.customer-cta p,
.proof-band p,
.gallery-section p {
  font-size: 15px;
  line-height: 1.65;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-feature-grid article {
  padding: 18px;
  box-shadow: none;
}

.landing-feature-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: 30px 0 18px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proof-grid article,
.gallery-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 28, 40, 0.065);
}

.proof-grid article {
  padding: 18px;
}

.proof-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.proof-grid strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
}

.gallery-section {
  padding: 34px 0 20px;
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.solar-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 68, 0.04), rgba(6, 17, 68, 0.88));
  z-index: 1;
}

.gallery-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -34px;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.78), rgba(255, 212, 90, 0));
  z-index: 1;
}

.gallery-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 380ms ease;
}

.gallery-card:hover img {
  transform: scale(1.045);
}

.gallery-card > * {
  position: relative;
  z-index: 2;
}

.gallery-card span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.gallery-card strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.08;
}

.gallery-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.featured-card {
  grid-column: span 2;
}

.landing-access {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 430px);
  gap: clamp(22px, 5vw, 66px);
  align-items: center;
  margin-bottom: 42px;
  padding: clamp(22px, 4vw, 42px);
}

.access-copy {
  max-width: 620px;
}

.landing-access .login-card {
  width: 100%;
  box-shadow: none;
}

.solar-process {
  display: grid;
  grid-template-columns: minmax(280px, 0.5fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  padding: 34px 0 22px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.process-steps article {
  min-height: 190px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 28, 40, 0.065);
}

.process-steps span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.process-steps strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
}

.customer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(6, 17, 68, 0.98), rgba(10, 38, 96, 0.94)),
    #061144;
  overflow: hidden;
  position: relative;
}

.customer-cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 90, 0.62), rgba(255, 212, 90, 0));
  animation: solarPulse 3.4s ease-in-out infinite;
}

.customer-cta > * {
  position: relative;
  z-index: 1;
}

.customer-cta h2 {
  color: #fff;
}

.customer-cta p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 0;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.btn.ghost.dark {
  color: #fff;
}

.staff-login-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 17, 68, 0.62);
  backdrop-filter: blur(10px);
}

.staff-login-modal .login-card {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

a.btn {
  text-decoration: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 430px);
  display: grid;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 227, 234, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-brand {
  color: var(--ink);
}

.login-brand span {
  color: var(--muted);
}

.login-card h1 {
  font-size: 36px;
}

.login-help {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
}

.login-help span {
  overflow-wrap: anywhere;
}

.app-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  background: #f7f8fb;
}

.sidebar {
  background: var(--sidebar);
  color: var(--ink);
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #061144;
  border: 1px solid rgba(6, 17, 68, 0.12);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(6, 17, 68, 0.14);
}

.brand-mark.large {
  width: 52px;
  height: 52px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-btn {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4f5968;
  padding: 9px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.nav-count {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1;
}

.nav-btn.active {
  background: #f2f3f8;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--violet);
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid var(--line);
  background: #fafbfe;
  border-radius: 8px;
  padding: 14px;
}

.sidebar-card span,
.sidebar-card small {
  display: block;
  color: var(--muted);
}

.sidebar-card strong {
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.main {
  min-width: 0;
  overflow-x: hidden;
  padding: 22px 28px 32px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 7px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.1;
  letter-spacing: 0;
  color: #121522;
}

h2 {
  margin-bottom: 5px;
  font-size: 16px;
}

p {
  color: var(--muted);
  font-size: 13px;
}

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

.user-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.btn {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(24, 28, 40, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.btn.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.btn.danger {
  border-color: var(--coral);
  color: var(--coral);
  background: #fff;
}

.btn.danger:hover {
  background: var(--coral-soft);
}

.btn.small {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.metric-card,
.panel,
.chart-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.metric-card {
  min-height: 86px;
  padding: 16px 14px 14px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--green);
  opacity: 0.95;
}

.metric-card:nth-child(2)::before {
  background: var(--coral);
}

.metric-card:nth-child(3)::before {
  background: var(--blue);
}

.metric-card:nth-child(4)::before {
  background: var(--green);
}

.metric-card.featured {
  background: #fff;
  border-color: var(--line);
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
}

.metric-card span {
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 7px 0 6px;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1;
  overflow-wrap: normal;
  white-space: nowrap;
}

.metric-card small {
  font-size: 11px;
}

.layout-two,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 16px;
}

.panel,
.chart-card {
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-head.compact {
  margin-bottom: 10px;
}

.panel-head p {
  margin-bottom: 0;
  font-size: 13px;
}

.quick-summary {
  min-width: 0;
}

.portfolio-overview,
.project-focus {
  padding: 16px;
  background: #fff;
  border-color: var(--line);
}

.portfolio-overview {
  position: relative;
  overflow: hidden;
}

.portfolio-overview::before {
  display: none;
}

.portfolio-overview > * {
  position: relative;
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  align-items: start;
}

.summary-panel {
  padding-bottom: 14px;
}

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

.mini-chart {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.mini-chart::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: auto;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: var(--green);
}

.summary-grid .mini-chart:nth-child(2)::before {
  background: var(--violet);
}

.summary-grid .mini-chart:nth-child(3)::before {
  background: var(--blue);
}

.summary-grid .mini-chart:nth-child(4)::before {
  background: var(--green);
}

.summary-grid .mini-chart {
  min-height: 170px;
}

.summary-grid .mini-chart:nth-child(1) {
  background: #fff;
}

.summary-grid .mini-chart:nth-child(2) {
  background: #fff;
}

.summary-grid .mini-chart:nth-child(3) {
  background: #fff;
}

.summary-grid .mini-chart:nth-child(4) {
  background: #fff;
}

.decision-card {
  align-content: center;
}

.decision-card strong {
  display: block;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.mini-chart h3 {
  margin: 0;
  font-size: 13px;
}

.mini-bars {
  display: grid;
  gap: 12px;
}

.mini-bar-row {
  display: grid;
  gap: 6px;
}

.mini-bar-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 11px;
}

.mini-bar-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-bar-line span {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.mini-chart p {
  margin: 0;
  font-size: 12px;
}

.donut-wrap {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.donut {
  width: 96px;
  height: 96px;
}

.donut-bg {
  fill: none;
  stroke: #edf0f4;
  stroke-width: 10;
}

.donut-ring {
  fill: none;
  stroke: var(--green);
  stroke-width: 10;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.donut-ring.blue {
  stroke: var(--blue);
}

.donut-ring.gold {
  stroke: var(--gold);
}

.donut-ring.coral {
  stroke: var(--coral);
}

.donut-text {
  font-size: 16px;
  font-weight: 800;
  fill: var(--ink);
  text-anchor: middle;
}

.legend {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.legend-dot.blue,
.pie-slice.blue {
  background: var(--blue);
}

.legend-dot.gold,
.pie-slice.gold {
  background: var(--gold);
}

.legend-dot.coral,
.pie-slice.coral {
  background: var(--coral);
}

.legend-dot.violet,
.pie-slice.violet {
  background: var(--violet);
}

.legend-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pie {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0deg 120deg, var(--blue) 120deg 220deg, var(--gold) 220deg 300deg, var(--coral) 300deg 360deg);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(24, 28, 40, 0.06);
}

.pie::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
}

.completion-list {
  display: grid;
  gap: 9px;
}

.project-head {
  align-items: center;
}

.project-tools {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px);
  gap: 10px;
  align-items: end;
}

.compact-label {
  font-size: 12px;
  min-width: 0;
}

.compact-label input,
.compact-label select {
  padding: 9px 10px;
}

.project-browser {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.project-picker {
  display: grid;
  gap: 8px;
  max-height: 640px;
  overflow: auto;
  padding-right: 3px;
}

.project-chip {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  display: grid;
  gap: 9px;
}

.project-chip[aria-pressed="true"] {
  background: #f5f4ff;
  border-color: rgba(102, 84, 217, 0.35);
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--violet);
}

.project-chip strong,
.project-chip small {
  display: block;
}

.project-chip small {
  color: var(--muted);
  margin-top: 3px;
  font-weight: 700;
}

.project-chip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-chip-metrics small {
  margin: 0;
  border-radius: 999px;
  background: #f2f4f8;
  padding: 4px 7px;
  font-size: 11px;
}

.project-breakdown {
  display: grid;
  gap: 16px;
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.project-hero h3 {
  margin: 8px 0 4px;
  font-size: clamp(19px, 2vw, 25px);
}

.project-hero p {
  margin-bottom: 0;
}

.project-money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
}

.project-money-grid div {
  min-width: 0;
  border-radius: 8px;
  background: #fafbfe;
  border: 1px solid var(--line);
  padding: 11px;
}

.project-money-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.project-money-grid strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(16px, 1.7vw, 21px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: stretch;
}

.project-health-card,
.project-cost-card,
.project-entry-card,
.project-pdf-card {
  min-width: 0;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  box-shadow: none;
}

.project-entry-card {
  grid-column: 1 / -1;
}

.project-pdf-card {
  grid-column: 1 / -1;
}

.project-health-card h3,
.project-cost-card h3,
.project-entry-card h3,
.project-pdf-card h3 {
  margin: 0;
  font-size: 15px;
}

.project-pdf-card p {
  margin: 4px 0 0;
  font-size: 13px;
}

.pdf-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.pdf-totals {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pdf-totals span {
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.detail-tab.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.detail-table-wrap {
  min-width: 0;
}

.compact-table table {
  min-width: 860px;
}

.compact-table th,
.compact-table td {
  padding: 9px 8px;
  font-size: 13px;
}

.compact-table td span {
  color: var(--muted);
  font-size: 12px;
}

.cost-breakdown-list {
  display: grid;
  gap: 12px;
}

.cost-breakdown-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfe;
}

.cost-breakdown-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cost-breakdown-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cost-breakdown-line b {
  white-space: nowrap;
}

.cost-breakdown-row small {
  color: var(--muted);
}

.health-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfe;
}

.health-row strong,
.health-row span {
  display: block;
}

.health-row span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.health-row b {
  font-size: 20px;
}

.health-row .mini-track {
  grid-column: 1 / -1;
}

.completion-health {
  grid-template-columns: minmax(0, 1fr) 98px;
  min-height: 118px;
}

.completion-health .health-donut {
  justify-self: end;
}

.health-donut {
  width: 98px;
  height: 98px;
}

.chart-split.roomy {
  grid-template-columns: 132px minmax(0, 1fr);
}

.project-cost-card .chart-split.roomy {
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 10px;
}

.project-cost-card .pie {
  width: 126px;
  height: 126px;
}

.entry-list {
  display: grid;
  gap: 9px;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  font-size: 13px;
}

.entry-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.source-tag {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 0 0 7px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.source-tag.pending {
  background: var(--gold-soft);
  color: var(--gold);
}

.tag-button {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 7px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfe;
  padding: 12px;
}

.approval-card h3 {
  margin: 7px 0 3px;
  font-size: 15px;
}

.approval-card p,
.approval-card small {
  display: block;
  margin: 0;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(18, 21, 34, 0.34);
  padding: 20px;
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 28, 40, 0.2);
  padding: 18px;
}

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

.modal-head h2 {
  margin-bottom: 4px;
}

.modal-head p {
  margin-bottom: 0;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.history-modal-card {
  width: min(820px, 100%);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfe;
  padding: 12px;
}

.history-card h3 {
  margin: 0;
  font-size: 15px;
}

.history-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.history-diff {
  display: grid;
  gap: 8px;
}

.history-diff-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 12px;
}

.history-diff-row span {
  color: var(--muted);
}

.history-diff-row strong {
  overflow-wrap: anywhere;
}

.completion-row {
  display: grid;
  gap: 5px;
  font-size: 12px;
}

.completion-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-track {
  height: 7px;
  border-radius: 999px;
  background: #edf0f4;
  overflow: hidden;
}

.mini-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--green);
}

.mini-fill.blue {
  background: var(--blue);
}

.mini-fill.gold {
  background: var(--gold);
}

.mini-fill.coral {
  background: var(--coral);
}

.mini-fill.violet {
  background: var(--violet);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  background: #fafbfe;
}

td {
  font-size: 13px;
}

td span {
  color: var(--muted);
}

.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.table-input {
  min-width: 130px;
  padding: 7px 8px;
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.green {
  background: var(--green-soft);
  color: #008b84;
}

.badge.blue {
  background: var(--violet-soft);
  color: var(--violet);
}

.badge.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge.coral {
  background: var(--coral-soft);
  color: var(--coral);
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-row input {
  width: 18px;
  height: 18px;
}

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

.secondary-tools {
  box-shadow: none;
}

.secondary-tools summary {
  cursor: pointer;
  font-weight: 800;
}

.settings-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.settings-body .graph-grid {
  margin-top: 2px;
}

.chart-card {
  min-width: 0;
}

.chart-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  background: #e8eef2;
  border-radius: 999px;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--green);
}

.bar-fill.blue {
  background: var(--blue);
}

.bar-fill.gold {
  background: var(--gold);
}

.bar-fill.violet {
  background: var(--violet);
}

.chart-split {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.chart-split .pie,
.chart-split .donut {
  width: 150px;
  height: 150px;
}

.form-panel {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  font-weight: 500;
  font-size: 13px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(102, 84, 217, 0.16);
  border-color: var(--violet);
}

input[readonly] {
  background: #edf3f6;
  color: var(--muted);
}

textarea {
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-row:has(label:nth-child(3)) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-message {
  margin: 0;
  min-height: 20px;
  font-weight: 700;
}

.guide-panel ol {
  color: var(--muted);
  padding-left: 22px;
}

.guide-panel li + li {
  margin-top: 9px;
}

.empty {
  color: var(--muted);
  padding: 16px 0;
}

@media (max-width: 1120px) {
  .metric-grid,
  .graph-grid,
  .summary-grid,
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-two,
  .form-layout,
  .portfolio-layout,
  .project-detail-grid,
  .project-hero,
  .project-browser,
  .landing-hero,
  .landing-section,
  .landing-access,
  .solar-process,
  .proof-band {
    grid-template-columns: 1fr;
  }

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

  .landing-hero {
    min-height: auto;
    background:
      radial-gradient(circle at 80% 18%, rgba(255, 212, 90, 0.22), transparent 24%),
      linear-gradient(180deg, rgba(6, 17, 68, 0.98) 0%, rgba(6, 17, 68, 0.94) 100%),
      #061144;
  }

  .project-tools {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
}

@media (max-width: 1320px) {
  .portfolio-layout {
    grid-template-columns: 1fr;
  }

  .compact-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .landing-nav {
    position: static;
  }

  .landing-nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .landing-metrics {
    margin-top: 0;
    grid-template-columns: 1fr;
  }

  .process-steps,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    justify-content: flex-start;
  }

  .customer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .hero-compass,
  .solar-scene,
  .hero-showcase {
    width: min(310px, 78vw);
  }

  .hero-showcase {
    width: min(620px, 100%);
    min-height: 430px;
    justify-self: center;
  }

  .main-photo {
    inset: 50px 58px 40px 0;
  }

  .mini-photo {
    width: 164px;
    height: 122px;
  }

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

  .sidebar {
    padding: 16px;
  }

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

  .sidebar-card {
    display: none;
  }

  .topbar {
    flex-direction: column;
  }

  .top-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 580px) {
  .main {
    padding: 16px;
  }

  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-nav .btn {
    width: 100%;
  }

  .landing-hero {
    padding: 40px 20px;
  }

  .landing-hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .hero-actions .btn,
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }

  .hero-showcase {
    min-height: 360px;
  }

  .main-photo {
    inset: 62px 24px 56px 0;
  }

  .mini-photo {
    width: 138px;
    height: 104px;
  }

  .mini-photo.top {
    right: 0;
  }

  .mini-photo.bottom {
    right: 10px;
  }

  .hero-photo-card > div,
  .hero-photo-card > strong {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .hero-photo-card strong {
    font-size: 18px;
  }

  .landing-section,
  .landing-access,
  .solar-process,
  .customer-cta,
  .proof-band,
  .gallery-section,
  .landing-metrics {
    width: calc(100% - 28px);
  }

  .nav,
  .metric-grid,
  .compact-metrics,
  .graph-grid,
  .summary-grid,
  .landing-feature-grid,
  .solar-gallery,
  .project-money-grid,
  .project-tools,
  .field-row,
  .field-row:has(label:nth-child(3)) {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .top-actions .btn {
    width: 100%;
  }

  .user-pill {
    width: 100%;
    justify-content: center;
  }

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

  .summary-grid,
  .donut-wrap,
  .chart-split,
  .chart-split.roomy {
    grid-template-columns: 1fr;
  }

  .portfolio-overview,
  .project-focus {
    padding: 16px;
  }

  .featured-card {
    grid-column: span 1;
  }

  .metric-card strong {
    white-space: normal;
  }

  .project-picker {
    max-height: 360px;
  }
}

/* Final public landing overrides: keep this at the end so older app rules cannot win. */
.landing-screen {
  background: #f1f2ef;
  color: #071e26;
}

.landing-screen .landing-nav {
  width: min(1160px, calc(100% - 48px));
  min-height: 54px;
  margin: 28px auto -82px;
  padding: 10px 12px 10px 18px;
  align-items: center;
  flex-direction: row;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(238, 248, 248, 0.78);
  box-shadow: 0 18px 45px rgba(2, 28, 36, 0.12);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 8;
}

.landing-screen .landing-brand strong {
  color: #062632;
  font-size: 18px;
}

.landing-screen .landing-brand span {
  color: rgba(6, 38, 50, 0.7);
}

.landing-screen .landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-screen .nav-link {
  color: rgba(6, 38, 50, 0.78);
  font-size: 12px;
}

.landing-screen .landing-nav .btn.primary {
  width: auto;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: #062632;
  border-color: #062632;
  color: #fff;
}

.landing-screen .landing-main {
  display: block;
  padding-bottom: 36px;
}

.landing-screen .landing-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: min(730px, calc(100vh - 36px));
  display: block;
  margin: 0 auto;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  background: #062632;
  overflow: hidden;
  position: relative;
  box-shadow: 0 28px 74px rgba(3, 27, 35, 0.18);
}

.landing-screen .landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 24, 31, 0.86) 0%, rgba(5, 24, 31, 0.58) 42%, rgba(5, 24, 31, 0.18) 100%),
    linear-gradient(180deg, rgba(6, 38, 50, 0.08), rgba(6, 38, 50, 0.78));
  opacity: 1;
  animation: none;
  pointer-events: none;
}

.landing-screen .landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 116px;
  height: 1px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.28);
}

.landing-screen .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-screen .hero-bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroImageDrift 16s ease-in-out infinite alternate;
}

.landing-screen .landing-hero > * {
  position: relative;
  z-index: 2;
}

.landing-screen .hero-copy {
  width: min(660px, calc(100% - 48px));
  max-width: none;
  padding: clamp(136px, 15vw, 176px) 0 0 clamp(24px, 4vw, 34px);
  animation: landingRise 760ms ease both;
}

.landing-screen .landing-hero .eyebrow {
  background: rgba(207, 248, 238, 0.2);
  color: #8afbe6;
  border: 1px solid rgba(138, 251, 230, 0.24);
}

.landing-screen .landing-hero h1 {
  max-width: 650px;
  margin: 18px 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: 0;
}

.landing-screen .landing-hero p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.7;
}

.landing-screen .hero-actions {
  margin-top: 28px;
}

.landing-screen .hero-actions .btn {
  width: auto;
  border-radius: 999px;
}

.landing-screen .hero-actions .btn.primary {
  background: #fff;
  border-color: #fff;
  color: #062632;
}

.landing-screen .hero-stats {
  position: absolute;
  right: clamp(24px, 5vw, 58px);
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: clamp(28px, 5vw, 72px);
}

.landing-screen .hero-stats strong {
  color: #fff;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 0.95;
}

.landing-screen .hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.landing-screen .hero-orbit {
  position: absolute;
  right: 10%;
  top: 21%;
  z-index: 2;
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: slowSpin 22s linear infinite;
}

.landing-screen .hero-orbit span {
  position: absolute;
  border-radius: 50%;
}

.landing-screen .hero-orbit span:first-child {
  inset: 30px;
  background: radial-gradient(circle, #fff6bb 0 26%, #ffd55d 27% 48%, rgba(255, 213, 93, 0.14) 49% 100%);
}

.landing-screen .hero-orbit span:last-child {
  width: 11px;
  height: 11px;
  right: 16px;
  top: 54px;
  background: #23d6bd;
}

.landing-screen .landing-metrics {
  width: min(1040px, calc(100% - 72px));
  margin: -48px auto 74px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.landing-screen .landing-metrics article {
  min-height: 108px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(6, 38, 50, 0.1);
}

.landing-screen .landing-section {
  width: min(1120px, calc(100% - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding: 12px 0 72px;
  text-align: center;
}

.landing-screen .landing-section > div:first-child {
  width: min(860px, 100%);
  margin: 0 auto;
}

.landing-screen .section-photo {
  width: min(560px, 100%);
  margin: -4px auto 0;
  aspect-ratio: 2.15 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(6, 38, 50, 0.13);
}

.landing-screen .section-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-screen .landing-feature-grid {
  width: min(820px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px auto 0;
}

.landing-screen .landing-feature-grid article {
  display: grid;
  justify-items: center;
  min-height: 150px;
  padding: 18px 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.landing-screen .landing-feature-grid article::before {
  content: "";
  width: 58px;
  aspect-ratio: 1;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid rgba(6, 38, 50, 0.12);
  background: #fff;
  box-shadow: 0 12px 26px rgba(6, 38, 50, 0.08);
}

.landing-screen .landing-feature-grid article:first-child::before {
  background: #062632;
}

.landing-screen .landing-feature-grid p {
  color: #7a8588;
  font-size: 12px;
  line-height: 1.45;
}

.landing-screen .proof-band,
.landing-screen .gallery-section,
.landing-screen .solar-process,
.landing-screen .faq-section,
.landing-screen .customer-cta,
.landing-screen .solar-footer {
  width: min(1120px, calc(100% - 48px));
}

.landing-screen .solar-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.landing-screen .featured-card {
  grid-row: span 2;
  grid-column: span 1;
}

.landing-screen .gallery-card {
  min-height: 0;
}

@media (max-width: 980px) {
  .landing-screen .landing-nav {
    width: calc(100% - 28px);
    margin-top: 14px;
    margin-bottom: -74px;
  }

  .landing-screen .landing-hero,
  .landing-screen .landing-metrics,
  .landing-screen .landing-section,
  .landing-screen .proof-band,
  .landing-screen .gallery-section,
  .landing-screen .solar-process,
  .landing-screen .faq-section,
  .landing-screen .customer-cta,
  .landing-screen .solar-footer {
    width: calc(100% - 28px);
  }

  .landing-screen .landing-hero {
    min-height: 700px;
  }

  .landing-screen .hero-stats {
    left: 22px;
    right: 22px;
  }

  .landing-screen .landing-feature-grid,
  .landing-screen .proof-band,
  .landing-screen .solar-process,
  .landing-screen .faq-section,
  .landing-screen .footer-columns {
    grid-template-columns: 1fr;
  }

  .landing-screen .solar-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-screen .featured-card {
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .landing-screen .landing-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-screen .landing-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .landing-screen .landing-nav .language-toggle,
  .landing-screen .landing-nav .btn {
    grid-column: span 2;
    justify-content: center;
    width: 100%;
  }

  .landing-screen .landing-hero {
    min-height: 740px;
  }

  .landing-screen .landing-hero h1 {
    font-size: 42px;
  }

  .landing-screen .hero-actions .btn {
    width: 100%;
  }

  .landing-screen .hero-stats,
  .landing-screen .landing-metrics,
  .landing-screen .solar-gallery,
  .landing-screen .process-steps,
  .landing-screen .proof-grid {
    grid-template-columns: 1fr;
  }

  .landing-screen .landing-metrics {
    margin-top: 14px;
  }
}
.landing-screen .landing-hero > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-screen .landing-hero > .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.landing-screen .landing-metrics {
  margin: 28px auto 74px;
}
.landing-screen .section-photo.solar-generated {
  width: min(760px, 100%);
  aspect-ratio: 16 / 9;
}

.landing-screen .section-photo.solar-generated img {
  object-fit: cover;
}
@media (max-width: 640px) {
  .landing-screen .hero-orbit {
    display: none;
  }
}
.landing-screen .landing-feature-grid article::before {
  display: none;
}

.landing-screen .landing-feature-grid article img {
  width: min(100%, 190px);
  aspect-ratio: 3 / 2;
  display: block;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(6, 38, 50, 0.1);
}

.landing-screen .landing-feature-grid article {
  min-height: 260px;
}
