/* =========================================================
   MABROOK ENTERPRISES — harvest the sun
   Futuristic solar site
   ========================================================= */

:root {
  --bg: #05060c;
  --bg-2: #090c18;
  --ink: #f4ecd8;
  --ink-dim: #b9b3a5;
  --ink-faint: #6a6758;
  --sun: #ffb347;
  --sun-hot: #ff7a18;
  --sun-white: #fff3c2;
  --cyan: #00e5ff;
  --violet: #7a5cff;
  --line: rgba(255, 234, 180, 0.12);
  --glass: rgba(255, 240, 200, 0.03);
  --radius: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
  min-height: 100vh;
  cursor: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--sun); }
strong { color: var(--sun-white); font-weight: 600; }

/* ================== BACKGROUND ================== */
#starfield {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 122, 24, .15), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(122, 92, 255, .12), transparent 55%),
    linear-gradient(180deg, #05060c, #090c18 40%, #05060c);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

/* ================== LOADER ================== */
.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: #05060c;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.done { opacity: 0; visibility: hidden; }

.loader-sun {
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sun-white), var(--sun) 40%, var(--sun-hot) 80%);
  box-shadow: 0 0 80px rgba(255, 122, 24, .8), 0 0 160px rgba(255, 179, 71, .4);
  animation: loaderPulse 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.25); }
}
.loader-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .4em;
  color: var(--ink-dim);
}
.loader-bar {
  width: 240px; height: 2px;
  background: rgba(255, 234, 180, .1);
  overflow: hidden;
}
.loader-bar-fill {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--sun-hot), var(--sun), var(--sun-white));
  animation: loaderBar 2s ease forwards;
}
@keyframes loaderBar {
  to { width: 100%; }
}

/* ================== CURSOR ================== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 179, 71, .5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9998;
  transition: width .3s var(--ease), height .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease);
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 4px; height: 4px;
  background: var(--sun);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 9999;
  box-shadow: 0 0 12px var(--sun);
}
.cursor.hovering {
  width: 64px; height: 64px;
  background: rgba(255, 179, 71, .15);
  border-color: var(--sun);
}
@media (pointer: coarse) {
  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }
}

/* ================== FLOATING SUN ================== */
.sun-wrapper {
  position: fixed;
  top: 20vh; right: -15vw;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  pointer-events: none;
  z-index: 1;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.sun {
  position: relative;
  width: 100%; height: 100%;
  animation: sunSpin 80s linear infinite;
}
@keyframes sunSpin { to { transform: rotate(360deg); } }

.sun-core {
  position: absolute; inset: 30%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--sun-white), var(--sun) 40%, var(--sun-hot) 75%, #7a1f00 100%);
  box-shadow:
    0 0 60px rgba(255, 122, 24, .6),
    0 0 160px rgba(255, 179, 71, .3),
    0 0 300px rgba(255, 179, 71, .15);
  animation: sunBreathe 4s ease-in-out infinite;
}
@keyframes sunBreathe {
  0%, 100% { filter: brightness(1); transform: scale(1); }
  50% { filter: brightness(1.15); transform: scale(1.02); }
}

.sun-corona {
  position: absolute; inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(255, 122, 24, .25) 75%, transparent 85%);
  animation: coronaPulse 6s ease-in-out infinite;
}
@keyframes coronaPulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.sun-flare {
  position: absolute; inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 65%, rgba(255, 179, 71, .12) 72%, transparent 80%);
  animation: flareRotate 20s linear infinite reverse;
}
@keyframes flareRotate { to { transform: rotate(360deg); } }

.sun-rays { position: absolute; inset: 0; }
.sun-rays span {
  position: absolute; top: 50%; left: 50%;
  width: 2px; height: 50%;
  background: linear-gradient(to top, transparent, rgba(255, 179, 71, .6), transparent);
  transform-origin: 50% 0;
  animation: rayFlicker 3s ease-in-out infinite;
}
.sun-rays span:nth-child(1) { transform: translateX(-50%) rotate(0deg); }
.sun-rays span:nth-child(2) { transform: translateX(-50%) rotate(30deg); animation-delay: .2s; }
.sun-rays span:nth-child(3) { transform: translateX(-50%) rotate(60deg); animation-delay: .4s; }
.sun-rays span:nth-child(4) { transform: translateX(-50%) rotate(90deg); animation-delay: .6s; }
.sun-rays span:nth-child(5) { transform: translateX(-50%) rotate(120deg); animation-delay: .8s; }
.sun-rays span:nth-child(6) { transform: translateX(-50%) rotate(150deg); animation-delay: 1s; }
.sun-rays span:nth-child(7) { transform: translateX(-50%) rotate(180deg); animation-delay: 1.2s; }
.sun-rays span:nth-child(8) { transform: translateX(-50%) rotate(210deg); animation-delay: 1.4s; }
.sun-rays span:nth-child(9) { transform: translateX(-50%) rotate(240deg); animation-delay: 1.6s; }
.sun-rays span:nth-child(10) { transform: translateX(-50%) rotate(270deg); animation-delay: 1.8s; }
.sun-rays span:nth-child(11) { transform: translateX(-50%) rotate(300deg); animation-delay: 2s; }
.sun-rays span:nth-child(12) { transform: translateX(-50%) rotate(330deg); animation-delay: 2.2s; }
@keyframes rayFlicker {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* ================== NAV ================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 12, .7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--sun);
}
.logo-mark {
  width: 28px; height: 28px;
  animation: sunSpin 20s linear infinite;
}
.logo-mark.big { width: 44px; height: 44px; }
.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
  font-weight: 700; font-size: 14px;
  letter-spacing: .15em;
  color: var(--ink);
  display: flex; flex-direction: column; line-height: 1;
}
.logo-text small {
  font-size: 9px; letter-spacing: .3em;
  color: var(--ink-faint);
  font-weight: 500;
  margin-top: 3px;
}

.nav-links {
  display: flex; gap: 34px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .05em;
}
.nav-links a {
  color: var(--ink-dim);
  position: relative;
  transition: color .3s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-phones {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-cta {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .nav-phones .nav-cta:nth-child(2) { display: none; }
}
.nav-cta:hover {
  border-color: var(--sun);
  background: rgba(255, 179, 71, .08);
  color: var(--sun-white);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7cff7c;
  box-shadow: 0 0 10px #7cff7c;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .6; }
}

/* ================== HERO ================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 40px 80px;
  display: flex; flex-direction: column; justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent, var(--bg) 90%),
    repeating-linear-gradient(90deg, transparent 0, transparent 118px, rgba(255, 179, 71, .08) 118px, rgba(255, 179, 71, .08) 120px),
    repeating-linear-gradient(0deg, transparent 0, transparent 118px, rgba(255, 179, 71, .04) 118px, rgba(255, 179, 71, .04) 120px);
  perspective: 400px;
  transform: perspective(600px) rotateX(45deg) translateY(30%);
  transform-origin: center bottom;
  opacity: .6;
  animation: gridSlide 20s linear infinite;
}
@keyframes gridSlide {
  from { background-position-y: 0; }
  to { background-position-y: 120px; }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-dim);
  margin-bottom: 32px;
  animation: fadeUp .8s var(--ease) both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 8px var(--sun);
  animation: pulse 1.6s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 10vw, 160px);
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 32px;
}
.title-line { display: block; overflow: hidden; }
.title-word {
  display: inline-block;
  animation: titleRise 1s var(--ease) both;
}
.title-line:nth-child(1) .title-word:nth-child(1) { animation-delay: .2s; }
.title-line:nth-child(1) .title-word:nth-child(2) { animation-delay: .3s; }
.title-line:nth-child(2) .title-word:nth-child(2) { animation-delay: .5s; }
@keyframes titleRise {
  from { transform: translateY(110%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.title-word.glow {
  background: linear-gradient(135deg, var(--sun-white), var(--sun) 40%, var(--sun-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 179, 71, .4));
  animation: titleRise 1s var(--ease) .5s both, glowShift 4s ease-in-out infinite 1.5s;
}
@keyframes glowShift {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(255, 179, 71, .4)); }
  50% { filter: drop-shadow(0 0 50px rgba(255, 122, 24, .6)); }
}

.hero-sub {
  max-width: 720px;
  margin-bottom: 48px;
  animation: fadeUp .8s var(--ease) .8s both;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-sub-lead {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--sun);
  letter-spacing: -.005em;
  margin-bottom: 4px;
}
.hero-sub-row {
  font-size: 16px;
  color: var(--ink-dim);
  letter-spacing: .01em;
  font-weight: 400;
}
.hero-sub-row i {
  font-style: normal;
  color: var(--sun);
  margin: 0 .35em;
  opacity: .8;
}
@media (max-width: 700px) {
  .hero-sub-lead { font-size: 22px; }
  .hero-sub-row { font-size: 14px; }
}

.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .8s var(--ease) 1s both;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn-primary {
  background: linear-gradient(135deg, var(--sun-hot), var(--sun));
  color: #1a0a00;
  box-shadow: 0 4px 20px rgba(255, 122, 24, .4), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--sun-white), var(--sun));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 122, 24, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--sun);
  color: var(--sun-white);
  background: rgba(255, 179, 71, .08);
  transform: translateY(-2px);
}
.btn-xl { padding: 22px 40px; font-size: 16px; }

.hero-scroll {
  position: absolute; bottom: 40px; right: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  animation: fadeUp 1s var(--ease) 1.4s both;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--sun), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: -30px; left: 0;
  width: 100%; height: 30px;
  background: var(--sun);
  box-shadow: 0 0 10px var(--sun);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { top: -30px; }
  100% { top: 100%; }
}

/* Ticker */
.ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 179, 71, .04);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.ticker-track {
  display: flex; gap: 40px;
  white-space: nowrap;
  animation: tickerSlide 40s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--ink-dim);
}
.ticker-track span:not(:only-child) { flex-shrink: 0; }
.ticker-track span:nth-child(even) { color: var(--sun); }
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

/* ================== STATS ================== */
.stats {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1;
  color: var(--sun-white);
  letter-spacing: -.02em;
  background: linear-gradient(180deg, var(--sun-white), var(--sun));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.stat-num em {
  font-size: .35em;
  vertical-align: super;
  color: var(--sun);
  margin-left: 4px;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-dim);
  margin-top: 12px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
}

/* ================== SECTION HEAD ================== */
section { position: relative; z-index: 2; }
.section-head {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--sun);
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto;
}

/* ================== SCHEME CARDS ================== */
.scheme { padding: 160px 40px; }
.scheme-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.scheme-card {
  position: relative;
  padding: 40px 32px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .5s var(--ease);
  overflow: hidden;
  transform-style: preserve-3d;
}
.scheme-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 179, 71, .15), transparent 40%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.scheme-card:hover {
  border-color: rgba(255, 179, 71, .3);
  background: rgba(255, 179, 71, .03);
  transform: translateY(-6px);
}
.scheme-card:hover::before { opacity: 1; }

.card-icon {
  font-size: 40px;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(255, 179, 71, .6));
  transition: transform .5s var(--ease);
}
.scheme-card:hover .card-icon { transform: scale(1.15) rotate(8deg); }
.scheme-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.scheme-card p {
  color: var(--ink-dim);
  font-size: 15px;
}

/* ================== OFFER / PANELS ================== */
.offer { padding: 160px 40px; }
.panels {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.panel-glow {
  position: absolute; inset: -1px;
  background: conic-gradient(from 0deg, transparent, var(--sun), transparent 40%, var(--cyan), transparent);
  border-radius: var(--radius);
  opacity: 0;
  z-index: 0;
  animation: glowRotate 4s linear infinite;
  transition: opacity .5s var(--ease);
}
.panel:hover .panel-glow { opacity: .6; }
@keyframes glowRotate { to { transform: rotate(360deg); } }

.panel-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #0c0e1a, #090b16);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .6s var(--ease);
}

.panel-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
.panel-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--ink-faint);
}
.panel-years {
  font-family: 'Instrument Serif', serif;
  font-size: 56px;
  line-height: 1;
  color: var(--sun);
  background: linear-gradient(180deg, var(--sun-white), var(--sun-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.panel-years em {
  font-size: 14px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-faint);
  margin-left: 2px;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--ink-faint);
}

.panel-art {
  aspect-ratio: 16/10;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a0d18, #040608);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Solar panel grid illustration */
.solar-grid {
  position: absolute; inset: 16%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  transform: perspective(600px) rotateX(35deg) rotateZ(-5deg);
  transform-style: preserve-3d;
}
.solar-grid span {
  background:
    linear-gradient(135deg, #1a3a6b, #0a1a3a),
    repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(0, 229, 255, .1) 8px, rgba(0, 229, 255, .1) 9px);
  background-blend-mode: overlay;
  border: 1px solid rgba(0, 229, 255, .2);
  border-radius: 2px;
  position: relative;
  transition: all .4s var(--ease);
}
.solar-grid span::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, .4), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.panel:hover .solar-grid span {
  background:
    linear-gradient(135deg, #2a5a9b, #1a2a4a),
    repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255, 179, 71, .3) 8px, rgba(255, 179, 71, .3) 9px);
  border-color: rgba(255, 179, 71, .5);
  box-shadow: 0 0 12px rgba(255, 179, 71, .3);
}
.panel:hover .solar-grid span:nth-child(1) { animation: cellFlicker 2s ease-in-out infinite .1s; }
.panel:hover .solar-grid span:nth-child(5) { animation: cellFlicker 2s ease-in-out infinite .3s; }
.panel:hover .solar-grid span:nth-child(9) { animation: cellFlicker 2s ease-in-out infinite .5s; }
.panel:hover .solar-grid span:nth-child(3) { animation: cellFlicker 2s ease-in-out infinite .7s; }
.panel:hover .solar-grid span:nth-child(7) { animation: cellFlicker 2s ease-in-out infinite .9s; }
@keyframes cellFlicker {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.6) saturate(1.4); }
}

/* Inverter art */
.panel-art-inverter { display: flex; align-items: center; justify-content: center; }
.panel-art-inverter .wave {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(0, 229, 255, .15) 40px, rgba(0, 229, 255, .15) 41px);
}
.panel-art-inverter::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  transform: translateY(-50%);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M0,10 Q25,0 50,10 T100,10 T150,10 T200,10' fill='none' stroke='black' stroke-width='4'/></svg>");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M0,10 Q25,0 50,10 T100,10 T150,10 T200,10' fill='none' stroke='black' stroke-width='4'/></svg>");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  animation: waveSlide 3s linear infinite;
}
.panel-art-inverter::after {
  content: 'AC ← DC';
  position: absolute; top: 16px; right: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .2em;
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}
@keyframes waveSlide {
  0% { background-position-x: 0; }
  100% { background-position-x: 200px; }
}

/* System art */
.panel-art-system { display: flex; align-items: center; justify-content: center; }
.panel-art-system svg { width: 100%; height: 100%; position: absolute; inset: 0; opacity: .6; }
.panel-art-system .node {
  position: absolute;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 16px var(--sun);
  animation: nodePulse 2s ease-in-out infinite;
}
.node.n1 { top: 20%; left: 18%; }
.node.n2 { top: 50%; right: 18%; animation-delay: .5s; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.node.n3 { bottom: 20%; left: 48%; animation-delay: 1s; }
@keyframes nodePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .6; }
}

.panel-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.panel-copy {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}
.panel-meter {
  height: 4px;
  background: rgba(255, 234, 180, .08);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}
.panel-meter-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sun-hot), var(--sun), var(--sun-white));
  border-radius: 100px;
  box-shadow: 0 0 12px rgba(255, 179, 71, .6);
  transition: width 1.5s var(--ease);
}
.panel.in-view .panel-meter-fill { width: var(--to); }
.panel-meter-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink-faint);
}

/* ================== TIMELINE / HOW ================== */
.how { padding: 160px 40px; }
.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}
.timeline-line {
  position: absolute;
  top: 0; bottom: 0; left: 20px;
  width: 2px;
  background: var(--line);
}
.timeline-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to bottom, var(--sun-hot), var(--sun), var(--sun-white));
  box-shadow: 0 0 20px var(--sun);
  transition: height .2s linear;
}

.step {
  position: relative;
  padding: 24px 0 80px;
}
.step:last-child { padding-bottom: 0; }
.step-node {
  position: absolute;
  left: -48px; top: 28px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  transition: all .5s var(--ease);
  z-index: 2;
}
.step.active .step-node {
  border-color: var(--sun);
  background: var(--sun);
  box-shadow: 0 0 20px var(--sun), 0 0 40px rgba(255, 179, 71, .3);
}
.step.active .step-node::after {
  content: '';
  position: absolute; inset: -8px;
  border: 1px solid var(--sun);
  border-radius: 50%;
  animation: nodeRing 1.6s ease-out infinite;
}
@keyframes nodeRing {
  0% { transform: scale(.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.step-body {
  padding: 24px 32px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .4s var(--ease);
}
.step.active .step-body {
  border-color: rgba(255, 179, 71, .3);
  background: rgba(255, 179, 71, .04);
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--sun);
  display: block;
  margin-bottom: 8px;
}
.step h4 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.step p { color: var(--ink-dim); font-size: 15px; }

/* ================== WHY US ================== */
.why { padding: 160px 40px; }
.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why-card {
  padding: 48px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: all .5s var(--ease);
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(255, 179, 71, .12), transparent 60%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.why-card:hover {
  background: rgba(255, 179, 71, .03);
}
.why-card:hover::before { opacity: 1; }
.why-card > * { position: relative; }

.why-num {
  font-size: 48px;
  color: var(--sun);
  margin-bottom: 24px;
  transition: transform .5s var(--ease);
  display: inline-block;
}
.why-card:hover .why-num { transform: rotate(90deg) scale(1.1); }
.why-card h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}
.why-card p { color: var(--ink-dim); font-size: 14px; }

/* ================== CTA ================== */
.cta {
  position: relative;
  padding: 180px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-sun {
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 122, 24, .25) 0%, rgba(255, 179, 71, .1) 30%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: ctaBreathe 6s ease-in-out infinite;
  filter: blur(40px);
}
@keyframes ctaBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .8; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.cta-inner { position: relative; max-width: 900px; margin: 0 auto; }
.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 24px 0;
}
.cta-glow {
  background: linear-gradient(135deg, var(--sun-white), var(--sun), var(--sun-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 179, 71, .4));
}
.cta-sub {
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 600px;
  margin: 0 auto 48px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-email {
  display: flex; justify-content: center;
  margin-bottom: 36px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: .08em;
}
.cta-email a {
  color: var(--ink-soft, #b9b3a8);
  opacity: .85;
  transition: color .3s var(--ease), opacity .3s var(--ease);
  text-decoration: none;
}
.cta-email a:hover { color: var(--sun); opacity: 1; }
.cta-trust {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-faint);
}
.cta-trust span { transition: color .3s var(--ease); }
.cta-trust span:hover { color: var(--sun); }

/* ================== FOOTER ================== */
.footer {
  position: relative; z-index: 2;
  padding: 80px 40px 32px;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 12, .6);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0 12px;
}
.footer-brand p {
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 360px;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--sun);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.footer-col a, .footer-col span {
  color: var(--ink-dim);
  font-size: 14px;
  transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--sun); }

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--ink-faint);
}
.footer-sig { color: var(--sun); }
.footer-credit { letter-spacing: .12em; }
.footer-credit a {
  color: var(--ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--sun), var(--sun));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size .4s ease, color .3s ease;
}
.footer-credit a:hover { color: var(--sun); background-size: 100% 1px; }

/* ================== REVEAL ANIMATIONS ================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .logo-text small { display: none; }
  .hero { padding: 100px 20px 80px; }
  .hero-scroll { display: none; }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 20px;
  }
  .stat-divider { display: none; }
  .scheme, .offer, .how, .why, .cta { padding: 100px 20px; }
  .timeline { padding-left: 44px; }
  .step-node { left: -40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .sun-wrapper { top: 5vh; width: 120vw; height: 120vw; right: -40vw; }
}
