/* ============================================================
   GREEN-ENERGY.UA  |  Coming Soon  |  style.css
   ============================================================ */

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

:root {
  --green-light: #A8E063;
  --green-mid:   #56AB2F;
  --green-dark:  #1E4D10;
  --sky-top:     #0a1628;
  --sky-bot:     #0d2d1a;
  --gold:        #FFD166;
  --white:       #F0FAE8;
  --muted:       rgba(168,224,99,0.55);
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--sky-top);
  font-family: var(--font-body);
  color: var(--white);
}

/* ── BACKGROUND SCENE ───────────────────────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(170deg, #05101f 0%, #0a2212 55%, #102e0a 100%);
}

/* Sun */
.sun-wrap {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-core {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8c8 10%, #FFD166 50%, #ff9d00 100%);
  box-shadow: 0 0 60px 30px rgba(255,180,0,0.5), 0 0 120px 60px rgba(255,140,0,0.25);
  animation: sunPulse 6s ease-in-out infinite;
  z-index: 3;
}

.sun-halo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,210,80,0.12);
  animation: haloPulse 6s ease-in-out infinite;
}
.h1 { width: 180px; height: 180px; animation-delay: 0s; }
.h2 { width: 250px; height: 250px; animation-delay: 0.8s; }
.h3 { width: 330px; height: 330px; animation-delay: 1.6s; }

@keyframes sunPulse {
  0%,100% { transform: scale(1);   box-shadow: 0 0 60px 30px rgba(255,180,0,0.5), 0 0 120px 60px rgba(255,140,0,0.25); }
  50%      { transform: scale(1.06); box-shadow: 0 0 80px 40px rgba(255,200,0,0.65), 0 0 160px 80px rgba(255,160,0,0.3); }
}
@keyframes haloPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* Sun rays — generated by JS */
.sun-rays {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  animation: raysRotate 40s linear infinite;
}
@keyframes raysRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Ground */
.ground-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, #07200a 40%, #041508 100%);
}

/* Solar panels row */
.panels-row {
  position: absolute;
  bottom: 12%;
  left: 0;
  right: 0;
  height: 120px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  perspective: 600px;
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0;
  animation: floatUp var(--dur) ease-in var(--delay) infinite;
}
@keyframes floatUp {
  0%   { opacity: 0;    transform: translateY(0)   scale(0.5); }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.4; }
  100% { opacity: 0;    transform: translateY(-60vh) scale(0.2); }
}

/* ── CONTENT ───────────────────────────────────────────── */
.content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 32px;
  text-align: center;
}

/* Logo */
.logo-wrap {
  position: fixed;
  top: 28px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: lowercase;
}
.logo-text em {
  font-style: normal;
  color: var(--green-light);
}

/* Hero */
.hero {
  max-width: 700px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green-light);
  opacity: 0.8;
}

.headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
  color: var(--white);
  text-shadow: 0 0 80px rgba(168,224,99,0.25);
  white-space: pre-line;
}

.subline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  line-height: 1.65;
  color: rgba(240,250,232,0.7);
  max-width: 480px;
  white-space: pre-line;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid rgba(168,224,99,0.3);
  background: rgba(168,224,99,0.07);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--green-light);
  font-family: var(--font-body);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; box-shadow: 0 0 6px var(--green-light); }
  50%      { opacity: 0.3; box-shadow: none; }
}

/* Footer */
.footer {
  position: fixed;
  bottom: 22px;
  font-size: 0.72rem;
  color: rgba(240,250,232,0.3);
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}

/* ── REVEAL ANIMATION ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SOLAR PANEL SVG ───────────────────────────────────── */
.panel-svg {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5));
  animation: panelSway var(--sw) ease-in-out var(--sd) infinite;
}
@keyframes panelSway {
  0%,100% { transform: rotateY(0deg) translateY(0); }
  50%      { transform: rotateY(3deg) translateY(-4px); }
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .logo-wrap { left: 20px; top: 20px; }
  .panels-row { gap: 8px; }
}
