/* ============================================================
   SOLARA INVESTMENT — Hero Section
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background-color: var(--color-night);
  background-image: url('../img/hama-hero.jpg.png');
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

/* === PHOTO OVERLAY — layered gradient for full readability === */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Right-to-left dark sweep — covers text side strongly */
    linear-gradient(
      to left,
      rgba(6, 13, 26, 0.10) 0%,
      rgba(6, 13, 26, 0.70) 45%,
      rgba(6, 13, 26, 0.92) 100%
    ),
    /* Bottom darkening for stats bar */
    linear-gradient(
      to top,
      rgba(6, 13, 26, 0.80) 0%,
      transparent 40%
    ),
    /* Top darkening for nav contrast */
    linear-gradient(
      to bottom,
      rgba(6, 13, 26, 0.60) 0%,
      transparent 30%
    );
  pointer-events: none;
  z-index: 0;
}

/* === SUBTLE COLOUR TINT over photo === */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 15% 50%, rgba(6,13,26,0.4) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(16,185,129,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* === GRID TEXTURE — hidden over photo === */
.hero__grid {
  display: none;
}

/* === BLOBS — hidden when photo background is used === */
.hero__blobs {
  display: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: blobFade 2s ease forwards;
  opacity: 0;
}

.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.16) 0%, transparent 70%);
  top: -15%;
  inset-inline-end: -5%;
  animation: drift1 22s ease-in-out infinite, blobFade 2s ease 0.3s forwards;
}
.hero__blob--2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245,158,11,0.13) 0%, transparent 70%);
  bottom: 5%;
  inset-inline-start: 0%;
  animation: drift2 28s ease-in-out infinite, blobFade 2s ease 0.6s forwards;
}
.hero__blob--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(16,185,129,0.09) 0%, transparent 70%);
  top: 45%;
  inset-inline-start: 25%;
  animation: drift3 20s ease-in-out infinite, blobFade 2s ease 0.9s forwards;
}
.hero__blob--4 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.09) 0%, transparent 70%);
  top: 10%;
  inset-inline-start: 10%;
  animation: drift1 26s ease-in-out infinite reverse, blobFade 2s ease 1.2s forwards;
}

/* === INNER === */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-gutter);
  display: grid;
  gap: var(--space-12);
  align-items: center;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: calc(100vh - var(--nav-height));
    padding-top: 0;
    padding-bottom: var(--space-16);
    max-width: 860px;
  }
}

/* === TEXT CONTENT === */
.hero__content {
  max-width: 620px;
}

.hero__eyebrow {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  margin-bottom: var(--space-5);
}
.hero__eyebrow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === HEADING === */
.hero__heading {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__heading-line {
  display: block;
}

.hero__heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero__heading .word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === BODY === */
.hero__body {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 52ch;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero__body.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === ACTIONS === */
.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero__actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SOCIAL PROOF === */
.hero__social-proof {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__avatars {
  display: flex;
  align-items: center;
}

.hero__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(16, 185, 129, 0.5);
  flex-shrink: 0;
}

[dir="rtl"] .hero__avatar + .hero__avatar {
  margin-inline-start: -14px;
}
[dir="ltr"] .hero__avatar + .hero__avatar {
  margin-left: -14px;
}

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

.hero__social-proof-text {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  /* no white-space: nowrap — allow wrapping on small screens */
}

.hero__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}
.hero__secondary-link svg {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
[dir="rtl"] .hero__secondary-link svg {
  transform: scaleX(-1);
}
.hero__secondary-link:hover {
  color: var(--color-text-primary);
}
.hero__secondary-link:hover svg {
  transform: translateX(3px);
}
[dir="rtl"] .hero__secondary-link:hover svg {
  transform: scaleX(-1) translateX(3px);
}

/* === STATS BAR === */
.hero__stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero__stats.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-gold);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-weight: 500;
}

/* === VISUAL (RIGHT) — now just glow, 3D scene is fixed === */
.hero__visual {
  display: none;
  position: relative;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  /* Card is z-index:2, 3D scene is z-index:0, glow behind both */
}

@media (min-width: 1024px) {
  .hero__visual { display: flex; }
}

.hero__visual-glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at center, rgba(16,185,129,0.12) 0%, rgba(245,158,11,0.06) 40%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 5s ease-in-out infinite;
}

/* ============================================================
   FIXED SCROLL-DRIVEN SOLAR SCENE
   Spans hero → sections 2-3 as user scrolls
============================================================ */

.solar-scroll-scene {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;      /* always right side */
  width: 50vw;
  max-width: 580px;
  z-index: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

@media (min-width: 1024px) {
  .solar-scroll-scene { display: block; }
}

/* The perspective viewport inside */
.solar-scroll-viewport {
  width: 100%;
  height: 100%;
  perspective: 900px;
  perspective-origin: 50% 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer: receives scroll-driven 3D rotation from JS via style attribute */
.solar-scroll-array {
  width: 440px;
  height: 400px;
  position: relative;
  transform-style: preserve-3d;
  /* Default orientation — JS overrides this inline */
  transform: rotateX(18deg) rotateY(-8deg);
  will-change: transform;
}

/* Inner float wrapper: gentle ambient bob on top of the JS-driven rotation */
.solar-scroll-array > * {
  animation: none; /* panels handle their own shimmer */
}

/* Panel rows */
.panel-row {
  position: absolute;
  display: flex;
  gap: 10px;
  transform-style: preserve-3d;
}

.panel-row:nth-child(2) { bottom: 80px;  left: 30px; transform: translateZ(0px); }
.panel-row:nth-child(3) { bottom: 115px; left: 20px; transform: translateZ(35px); }
.panel-row:nth-child(4) { bottom: 150px; left: 10px; transform: translateZ(70px); }
.panel-row:nth-child(5) { bottom: 185px; left: 0px;  transform: translateZ(105px); }

/* Individual panel */
.solar-panel {
  width: 95px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-28deg);
}

/* Panel face */
.panel-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.22) 0%, rgba(6,13,26,0.85) 50%, rgba(16,185,129,0.12) 100%);
  border: 1.5px solid rgba(16,185,129,0.55);
  border-radius: 3px;
  overflow: hidden;
}

.panel-face::before {
  content: '';
  position: absolute;
  inset: 3px;
  background-image:
    linear-gradient(rgba(16,185,129,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,185,129,0.3) 1px, transparent 1px);
  background-size: 23px 14px;
}

/* Gold shimmer sweep — staggered per panel */
.panel-face::after {
  content: '';
  position: absolute;
  inset: -100%;
  background: linear-gradient(115deg, transparent 30%, rgba(245,158,11,0.20) 50%, transparent 70%);
  animation: panelSweep 3.8s ease-in-out infinite;
}

.panel-row:nth-child(2) .solar-panel:nth-child(1) .panel-face::after { animation-delay: 0s; }
.panel-row:nth-child(2) .solar-panel:nth-child(2) .panel-face::after { animation-delay: 0.6s; }
.panel-row:nth-child(2) .solar-panel:nth-child(3) .panel-face::after { animation-delay: 1.2s; }
.panel-row:nth-child(2) .solar-panel:nth-child(4) .panel-face::after { animation-delay: 1.8s; }
.panel-row:nth-child(3) .solar-panel:nth-child(1) .panel-face::after { animation-delay: 0.3s; }
.panel-row:nth-child(3) .solar-panel:nth-child(2) .panel-face::after { animation-delay: 0.9s; }
.panel-row:nth-child(3) .solar-panel:nth-child(3) .panel-face::after { animation-delay: 1.5s; }
.panel-row:nth-child(4) .solar-panel:nth-child(1) .panel-face::after { animation-delay: 0.7s; }
.panel-row:nth-child(5) .solar-panel:nth-child(1) .panel-face::after { animation-delay: 1.1s; }

@keyframes panelSweep {
  0%   { transform: translateX(-150%) translateY(-150%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateX(150%) translateY(150%); opacity: 0; }
}

/* 3D edge */
.panel-edge-bottom {
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to bottom, rgba(16,185,129,0.3), rgba(6,13,26,0.6));
  transform: rotateX(-90deg);
  transform-origin: top center;
}

/* Support pole */
.panel-pole {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 30px;
  background: linear-gradient(to bottom, var(--color-border), transparent);
  border-radius: 2px;
}

/* Energy particles */
.solar-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 8px var(--color-gold);
  opacity: 0;
}
.solar-particle:nth-child(6)  { top: 35%; left: 18%; animation: particleFloat 2.8s ease-in-out infinite 0s; }
.solar-particle:nth-child(7)  { top: 22%; left: 48%; animation: particleFloat 3.3s ease-in-out infinite 0.8s; background: var(--color-emerald); box-shadow: 0 0 8px var(--color-emerald); }
.solar-particle:nth-child(8)  { top: 45%; left: 72%; animation: particleFloat 2.5s ease-in-out infinite 1.6s; }
.solar-particle:nth-child(9)  { top: 18%; left: 32%; animation: particleFloat 3.6s ease-in-out infinite 0.4s; background: var(--color-emerald); box-shadow: 0 0 8px var(--color-emerald); }
.solar-particle:nth-child(10) { top: 55%; left: 58%; animation: particleFloat 2.9s ease-in-out infinite 2.1s; }

@keyframes particleFloat {
  0%   { transform: translateY(0)     scale(0);   opacity: 0; }
  15%  { transform: translateY(-5px)  scale(1);   opacity: 1; }
  85%  { transform: translateY(-55px) scale(0.5); opacity: 0.5; }
  100% { transform: translateY(-70px) scale(0);   opacity: 0; }
}

/* Sun orb */
.solar-sun {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.95) 0%, rgba(245,158,11,0.3) 50%, transparent 70%);
  box-shadow: 0 0 50px rgba(245,158,11,0.45), 0 0 100px rgba(245,158,11,0.15);
  animation: sunPulse 5s ease-in-out infinite;
}

.solar-sun::before {
  content: '';
  position: absolute;
  inset: -25px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 38%, rgba(245,158,11,0.07) 55%, transparent 70%);
  animation: sunRays 9s linear infinite;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 50px rgba(245,158,11,0.45), 0 0 100px rgba(245,158,11,0.15); }
  50%       { transform: scale(1.06); box-shadow: 0 0 70px rgba(245,158,11,0.55), 0 0 140px rgba(245,158,11,0.22); }
}

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

/* Ground reflection */
.solar-reflection {
  position: absolute;
  bottom: 15px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(16,185,129,0.3), rgba(245,158,11,0.25), transparent);
  animation: reflectionPulse 3s ease-in-out infinite;
}

@keyframes reflectionPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.85; }
}

.hero__solar-svg {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

/* === MOBILE HERO === */
@media (max-width: 639px) {
  .hero__inner {
    padding-top: var(--space-10);
    padding-bottom: var(--space-12);
    gap: var(--space-8);
  }
  .hero__heading {
    font-size: clamp(2rem, 10vw, 3.5rem);
    margin-bottom: var(--space-4);
  }
  .hero__slogan {
    font-size: var(--text-sm);
  }
  .hero__body {
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
  }
  .hero__stats {
    gap: var(--space-4);
    padding-top: var(--space-6);
  }
  .hero__stat-value {
    font-size: var(--text-xl);
  }
}

/* === SCROLL INDICATOR === */
.hero__scroll {
  position: absolute;
  bottom: var(--space-4);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-tertiary);
  transition: opacity var(--transition-normal);
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero__scroll {
    display: none;
  }
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-border));
  position: relative;
  overflow: hidden;
}

.hero__scroll-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--color-emerald);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}

.hero__scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}


/* ============================================================
   HERO INVESTMENT CARD
============================================================ */

.hero__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 400px;
  background: rgba(6, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(16, 185, 129, 0.08);
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Card header */
.hero-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card__project-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.hero-card__status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-emerald);
  animation: statusPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--color-emerald); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--color-emerald); }
}

.hero-card__status-label {
  color: var(--color-emerald);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero-card__sep {
  color: var(--color-border);
}

.hero-card__location {
  font-size: var(--text-xs);
}

.hero-card__power {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-weight: 600;
}

/* Big IRR */
.hero-card__irr-block {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.hero-card__irr-value {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-card__irr-pct {
  font-size: 0.5em;
  vertical-align: super;
  color: var(--color-gold);
  opacity: 0.7;
}

.hero-card__irr-label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}

/* Mini metrics */
.hero-card__metrics {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero-card__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.hero-card__metric-val {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.hero-card__metric-lbl {
  font-size: 0.65rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hero-card__metric-divider {
  width: 1px;
  height: 36px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Chart */
.hero-card__chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-card__chart-label {
  font-size: 0.6rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: var(--space-2);
  text-transform: uppercase;
}

/* Funding progress */
.hero-card__funding {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-card__funding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card__funding-label {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 600;
}

.hero-card__funding-pct {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-emerald);
}

.hero-card__progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.hero-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-emerald) 0%, #34D399 100%);
  border-radius: 999px;
  position: relative;
  transition: width 1.5s ease;
}

.hero-card__progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero-card__funding-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
}

/* CTA button */
.hero-card__cta {
  display: block;
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-emerald);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.hero-card__cta:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--color-emerald);
}


/* ============================================================
   HERO FLOATING CHIPS
============================================================ */

.hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(6, 13, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

.hero-chip--1 {
  top: 4%;
  inset-inline-end: 0;
  animation: chipFloat1 7s ease-in-out infinite;
}

.hero-chip--2 {
  bottom: 22%;
  inset-inline-start: 0; /* was -8%, caused left overflow on mobile */
  animation: chipFloat2 8s ease-in-out infinite 1s;
}

.hero-chip--3 {
  bottom: 4%;
  inset-inline-end: 8%;
  animation: chipFloat3 6s ease-in-out infinite 0.5s;
}

@keyframes chipFloat1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-6px) translateX(3px); }
}

@keyframes chipFloat2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(5px) translateX(-4px); }
}

@keyframes chipFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}


/* ============================================================
   MOBILE HERO FIXES (max-width: 767px)
   Targets iPhone, Android small screens
============================================================ */

@media (max-width: 767px) {

  .hero {
    background-position: center center;
    background-attachment: scroll; /* fixes iOS fixed background bug */
  }

  .hero__inner {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }

  /* Stat items: 2 per row on mobile */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--space-4);
    flex-wrap: unset;
  }

  .hero__stat-value {
    font-size: var(--text-xl);
  }

  .hero__stat-label {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  /* Social proof: allow wrapping */
  .hero__social-proof {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  /* Hero actions: stack cleanly */
  .hero__actions {
    gap: var(--space-3);
  }

  /* Hero chips: hide on mobile to prevent overflow */
  .hero-chip {
    display: none;
  }
}


/* ============================================================
   SMALL SCREEN FIXES (max-width: 374px — iPhone SE, old phones)
============================================================ */

@media (max-width: 374px) {

  .hero__heading {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .hero__body {
    font-size: var(--text-base);
  }

  .hero__stat-value {
    font-size: var(--text-lg);
  }
}
