/* ====================================================
   Hero 2.0 — Solar Gradient + Hex Panel Grid + Live Energy Meter
   ==================================================== */

.hero2 {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  /* Light corporate hero — biała baza z subtelnymi akcentami sunrise w rogach */
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(252, 211, 77, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 15% 85%, rgba(16, 185, 129, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
}

/* Photo subtle behind, multiplied with gradient */
.hero2::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/hero-solar-farm.jpg') center/cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: multiply;
  z-index: -3;
}

/* Vignette over everything (push attention to center) */
.hero2::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 0%, rgba(209, 250, 229, 0.07) 65%, rgba(209, 250, 229, 0.14) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ----- Parallax sun disc — subtelny na białym tle ----- */
.hero2__sun {
  position: absolute;
  top: 8%;
  right: 6%;
  width: 240px; height: 240px;
  background: radial-gradient(circle at center,
    rgba(255, 247, 204, 0.55) 0%,
    rgba(252, 211, 77, 0.28) 30%,
    rgba(245, 158, 11, 0.10) 60%,
    transparent 78%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -2;
  pointer-events: none;
  animation: sunPulse 10s ease-in-out infinite;
  transform: translateY(var(--parallax-sun, 0px));
  transition: transform 80ms linear;
  opacity: 0.7;
}
@keyframes sunPulse {
  0%, 100% { filter: blur(10px); opacity: 0.62; }
  50%      { filter: blur(14px); opacity: 0.78; }
}

/* ----- Hex panel grid (animated PV cell field) ----- */
.hero2__hex {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.40;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}
.hero2__hex svg { width: 100%; height: 100%; display: block; }

/* Hex cells "boot up" animation */
.hex-cell {
  fill: rgba(15, 23, 42, 0.064);
  stroke: rgba(15, 23, 42, 0.15);
  stroke-width: 1.2;
  transition: fill 600ms var(--ease-out), stroke 600ms var(--ease-out);
}
.hex-cell.is-on {
  fill: rgba(16, 185, 129, 0.18);
  stroke: rgba(16, 185, 129, 0.55);
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.3));
}

/* ----- Floating energy particles ----- */
.hero2__particles {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--emerald-light);
  box-shadow: 0 0 8px var(--emerald-light), 0 0 16px rgba(16,185,129,0.6);
  bottom: -20px;
  animation: floatUp linear infinite;
  opacity: 0;
}
.particle--gold {
  background: var(--solar-light);
  box-shadow: 0 0 8px var(--solar-light), 0 0 16px var(--solar-glow);
}
@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.6; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 30px)); opacity: 0; }
}

/* ----- Cursor follow glow ----- */
.hero2__cursor-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  transition: left 120ms ease-out, top 120ms ease-out;
  opacity: 0;
}
.hero2:hover .hero2__cursor-glow { opacity: 1; }

/* ----- Content shell ----- */
.hero2__shell {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 3rem));
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 8rem 0 4rem;
}

/* Headline card */
.hero2__card {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.75rem 3rem 3rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-xl);
  box-shadow:
    0 12px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(16, 185, 129, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: center;
}

.hero2__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.40);
  color: var(--emerald-dark);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px; margin-bottom: 1.5rem;
}
.hero2__badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-light); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.6; transform:scale(1.15); } }

.hero2__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.02;
  margin: 0 0 1.25rem;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 24px rgba(15, 23, 42, 0.09);
}
.hero2__title em {
  font-style: normal;
  /* Solar gradient — czytelny na białym tle */
  background: linear-gradient(135deg, #B45309 0%, #D97706 50%, #F59E0B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero2__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(15, 23, 42, 1);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero2__sub strong { color: var(--heading); font-weight: 700; }

.hero2__cta {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ====================================================
   Spółdzielnia w liczbach — stats panel (replaces live meter)
   ==================================================== */
.meter {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 12px 36px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(16, 185, 129, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.meter__left {
  position: relative;
  padding: 1.5rem 1.25rem;
  background:
    radial-gradient(ellipse at center, rgba(245, 158, 11, 0.10), transparent 70%),
    linear-gradient(180deg, rgba(236, 253, 245, 0.6) 0%, rgba(255, 255, 255, 0.8) 100%);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.85rem;
}

.meter__tag {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--solar-dark);
  text-transform: uppercase;
}

/* ----- Solar Spec Badge (replaces the live gauge) ----- */
.spec-badge {
  position: relative;
  width: 220px; height: 220px;
  display: grid; place-items: center;
}
.spec-badge__rays {
  position: absolute; inset: -10px;
  animation: sunSpin 28s linear infinite;
  pointer-events: none;
}
.spec-badge__rays svg { width: 100%; height: 100%; }
.spec-badge__ring {
  position: absolute; inset: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.40);
  box-shadow:
    0 0 18px rgba(245, 158, 11, 0.18),
    inset 0 0 18px rgba(245, 158, 11, 0.06);
}
.spec-badge__core {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(circle at center, #ffffff 0%, #fef3c7 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(245, 158, 11, 0.10);
}
.spec-badge__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #B45309 0%, #D97706 50%, #F59E0B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.spec-badge__unit {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--solar-dark);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-top: 2px;
  text-transform: uppercase;
}
.spec-badge__caption {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
}
@keyframes sunSpin { to { transform: rotate(360deg); } }

.meter__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(15, 23, 42, 0.06);
}

.metric {
  padding: 1.1rem 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  display: flex; flex-direction: column; gap: 0.35rem; justify-content: center;
  min-height: 102px;
  position: relative;
  transition: background 200ms var(--ease-out);
}
.metric:hover { background: #ffffff; }
.metric__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 6px;
  font-weight: 700;
}
.metric__label svg { width: 12px; height: 12px; color: var(--emerald-dark); }
.metric__value {
  font-family: var(--font-display);
  font-size: 1.85rem; font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.025em;
  line-height: 1;
}
.metric__value--emerald { color: var(--emerald-dark); }
.metric__value--gold    { color: var(--solar-dark); }
.metric__value--sky     { color: var(--sky-blue); }
.metric__value small { font-family: var(--font-sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text-muted); margin-left: 6px; text-transform: uppercase; }
.metric__sub {
  font-size: 0.78rem; color: var(--text-secondary); line-height: 1.4; font-weight: 500;
}

/* progress bar (kept for stat “wartość członkostwa”) */
.metric__bar {
  margin-top: 8px;
  height: 4px;
  background: rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.metric__bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #34d399, #6EE7B7, #FCD34D);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.6);
  width: var(--p, 60%);
}

/* Responsive */
@media (max-width: 760px) {
  .meter { grid-template-columns: 1fr; }
  .meter__left { border-right: 0; border-bottom: 1px solid rgba(15, 23, 42, 0.112); }
  .hero2__shell { padding: 6rem 0 3rem; }
  .hero2__card { padding: 1.75rem 1.5rem 2rem; }
  .hero2__sun { width: 220px; height: 220px; top: 6%; right: -40px; }
  .spec-badge { width: 170px; height: 170px; }
  .spec-badge__core { width: 130px; height: 130px; }
  .spec-badge__num { font-size: 2.4rem; }
}

/* ====================================================
   PV field horizon — stylized SVG silhouette at hero bottom
   ==================================================== */
.hero2__horizon {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 280px;
  z-index: -2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
  mask-image: linear-gradient(to top, black 70%, transparent 100%);
}
.hero2__horizon svg { width: 100%; height: 100%; display: block; }

/* Distant horizon line glow */
.horizon-line {
  stroke: rgba(252, 211, 77, 0.55);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(252, 211, 77, 0.65));
}

/* PV panel rows */
.pv-row { transition: opacity 600ms var(--ease-out); }
.pv-row--back { opacity: 0.55; }
.pv-row--mid  { opacity: 0.80; }
.pv-row--front { opacity: 1; }
