﻿:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --card: #ffffff;
  --text: #14213d;
  --muted: #4a5568;
  --brand: #0f2245;
  --brand-2: #1a2b56;
  --accent: #f7b500;
  --accent-2: #ffd85d;
  --border: #d8e2ef;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(15, 34, 69, 0.12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.section-padding { padding: 5rem 0; }
.alt-bg { background: var(--surface); }
.narrow { max-width: 840px; }
.center-block { text-align: center; }

/* Improve first paint on long pages by deferring off-screen section rendering. */
main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--brand);
  border-radius: 10px;
  padding: .5rem .75rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: hsl(220, 30%, 14%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.header-wrap {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}
.brand-logo { width: 90px; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.main-nav a { color: rgba(255,255,255,.85); font-weight: 600; }
.main-nav a:hover { color: #fff; }
.header-cta { display: flex; gap: .6rem; }
.menu-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: .45rem .9rem;
  font-weight: 700;
}

.site-header .btn-outline { border-color: #f7b500; color: #f7b500; }
.site-header .btn-outline:hover { background: rgba(245,168,0,.12); }
.site-header .btn-primary { background:#f7b500; color: #1f2937; }
.site-header .btn-primary:hover { background: #f7b500; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .7rem 1.15rem;
  font-weight: 700;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #0a1935; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: rgba(15,34,69,.07); }
.btn-accent { background: var(--accent); color: #1f2937; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(15,34,69,.94), rgba(26,43,86,.78)),
    url('/assets/img/hero-solar.svg') center/cover no-repeat;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8rem;
}
h1,h2,h3 { line-height: 1.2; margin: 0 0 .8rem; }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.2rem; }
.lead, .section-intro { color: var(--muted); font-size: 1.08rem; }
.hero .lead, .hero .trust { color: rgba(255,255,255,.9); }
.pill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding: 0;
  margin: 1rem 0 1.2rem;
}
.pill-list li {
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: .35rem .8rem;
  font-size: .95rem;
}
.btn-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.trust { margin-top: 1rem; font-size: .94rem; color: var(--muted); }
.hero-logo-wrap { display: flex; justify-content: center; }
.hero-logo { width: min(340px, 70%); }

.card-grid {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 6px 20px rgba(20,33,61,.06);
}
.card-featured {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: #fff;
}
.card-featured p { color: rgba(255,255,255,.9); }

.dark-band {
  background: hsl(220, 30%, 14%);
  color: #fff;
}
.dark-band .section-intro { color: rgba(255,255,255,.85); }
.card-dark {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.card-dark p { color: rgba(255,255,255,.88); }

.video-frame {
  margin: 2rem 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0c162e;
  box-shadow: var(--shadow);
}
.video-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}
.video-frame figcaption {
  font-size: .9rem;
  color: #f8fafc;
  padding: .7rem 1rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: center;
}
.panel-logo {
  background: linear-gradient(150deg, var(--brand), #243f76);
  border-radius: 24px;
  padding: 2rem;
}
.stats-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .8rem;
}
.stats-list li { background: var(--surface); border-radius: 12px; padding: .8rem; }
.stats-list strong { display: block; font-size: 1.2rem; color: var(--brand); }

.faq-list { margin-top: 1.5rem; }
.faq-list details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .8rem .9rem;
  margin-bottom: .7rem;
}
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-list p { margin: .7rem 0 0; }

.final-cta {
  color: #fff;
  background: hsl(220, 30%, 14%);
}
.final-cta .section-intro, .final-cta .trust { color: rgba(255,255,255,.9); }

.site-footer {
  background: hsl(220, 30%, 14%);
  color: #fff;
  padding: 3.5rem 1rem 0;
  border-top: 1px solid rgba(255,255,255,.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .75rem;
}

.footer-brand-white { color: #fff; }
.footer-brand-yellow { color: #f5a800; }

.footer-tagline {
  margin: 0 0 .5rem;
  font-size: .9rem;
  font-style: italic;
  color: rgba(255,255,255,.85);
}

.footer-desc {
  margin: 0;
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(255,255,255,.7);
}

.footer-col-title {
  margin: 0 0 1rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #f5a800;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}

.footer-nav-list a {
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  transition: color .2s;
}

.footer-nav-list a:hover { color: #fff; }

.footer-contact-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .9rem 0 0;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.footer-contact-label:first-child { margin-top: 0; }
.footer-contact-label svg { color: #f5a800; flex-shrink: 0; }

.footer-contact-val {
  margin: .2rem 0 0 1.65rem;
  font-size: .875rem;
  color: rgba(255,255,255,.8);
  line-height: 1.4;
}

.footer-contact-val a { color: inherit; }
.footer-contact-val a:hover { color: #fff; }

.footer-social {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.8);
  transition: color .2s ease, background-color .2s ease;
}

.footer-social a:hover {
  background: #fff;
  color: hsl(220, 30%, 14%);
}

.footer-legal-bar {
  padding: 1.5rem 0 1.75rem;
  text-align: center;
  color: rgba(255,255,255,.65);
  font-size: .75rem;
  line-height: 1.7;
}

.footer-legal-bar p { margin: 0; }

.login-page, .notfound-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: linear-gradient(160deg, #0f2245, #243f76);
}
.login-card, .notfound-card {
  background: #fff;
  width: min(980px, 100%);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.notfound-card { width: min(520px, 100%); text-align: center; }

.login-card-hub,
.login-card-state {
  width: min(520px, 100%);
  border: 0;
  box-shadow: 0 20px 48px rgba(15, 34, 69, 0.35);
  border-radius: 16px;
  padding: 1.4rem;
}

.login-head {
  text-align: center;
  padding: .5rem .5rem .25rem;
}

.login-head h1,
.login-head h2 {
  margin: .2rem 0 .35rem;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem);
}

.login-head .section-intro {
  font-size: .98rem;
}

.login-logo-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .2rem;
}

.login-logo {
  width: 8rem;
  height: auto;
}

.login-actions {
  display: grid;
  gap: .75rem;
  padding: .75rem .25rem .25rem;
}

.login-option {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(15, 34, 69, 0.14);
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .75rem .9rem;
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
}

.login-option:hover {
  background: rgba(15, 34, 69, 0.05);
  border-color: rgba(15, 34, 69, 0.28);
}

.login-option-icon,
.login-state-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 150, 9, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.login-option strong {
  display: block;
  line-height: 1.2;
}

.login-option small {
  display: block;
  color: var(--muted);
  margin-top: .15rem;
  line-height: 1.35;
}

.login-back-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-state-body {
  display: grid;
  gap: .85rem;
  padding-top: .7rem;
}

.login-feedback {
  margin: 0;
  border-radius: 8px;
  background: #f3f6fb;
  color: #0f2245;
  padding: .82rem .95rem;
  font-size: .92rem;
  line-height: 1.45;
}

@media (max-width: 1024px) {
  .header-wrap {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "cta cta";
    padding: .75rem 0;
  }
  .brand-link { grid-area: brand; }
  .menu-toggle { grid-area: toggle; display: inline-flex; justify-self: end; }
  .main-nav { grid-area: nav; display: none; }
  .header-cta { grid-area: cta; display: none; }
  .main-nav ul, .header-cta { justify-content: center; padding-top: .5rem; }
  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-cta { display: block; }
  .site-header.menu-open .header-cta { display: flex; flex-wrap: wrap; }
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .four-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section-padding { padding: 3.8rem 0; }
  .two-cols, .three-cols, .four-cols, .stats-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .login-card-hub,
  .login-card-state {
    padding: 1rem;
  }
  .login-option {
    min-height: 56px;
    padding: .7rem .8rem;
  }
  .login-option small {
    font-size: .79rem;
  }
}
