/* ─── SELECTION ─────────────────────────────────────── */
::selection {
  background-color: rgba(34,168,50, 0.25);
  color: #F4F7F4;
}

/* ─── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050706; }
::-webkit-scrollbar-thumb {
  background: rgba(34,168,50, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(34,168,50, 0.45); }

/* ─── GLASS PANELS ──────────────────────────────────── */
.glass-panel {
  background: rgba(10, 13, 11, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
}
@media (min-width: 1024px) {
  .glass-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}
.glass-panel:hover {
  border-color: rgba(34,168,50, 0.3) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 25px rgba(34,168,50,0.07);
}
.glass-panel-glow {
  background: rgba(17, 22, 18, 0.85);
  border: 1px solid rgba(34,168,50, 0.18);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 18px rgba(34,168,50,0.06);
  will-change: transform, opacity;
}

/* ─── NEON TECH GRADIENT ────────────────────────────── */
.neon-tech-gradient {
  background: linear-gradient(-45deg, #050706, #0a1f11, #050706, #05140b, #08170b);
  background-size: 400% 400%;
  animation: neonTechGradient 18s ease infinite;
}
@keyframes neonTechGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── BACKGROUND GRID ───────────────────────────────── */
.perspective-grid {
  perspective: 500px;
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}
.perspective-grid-inner {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-size: 50px 50px;
  background-image:
    linear-gradient(to right, rgba(34,168,50,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34,168,50,0.045) 1px, transparent 1px);
  transform: rotateX(60deg);
  will-change: transform;
  animation: grid-drift 20s ease-in-out infinite alternate;
}
@keyframes grid-drift {
  0%   { transform: rotateX(60deg) translateX(0px);  }
  100% { transform: rotateX(60deg) translateX(30px); }
}

/* ─── AURORA BLOBS ──────────────────────────────────── */
.aurora-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.aurora-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}
.aurora-glow:nth-child(1) { animation: aurora-drift-1 22s ease-in-out infinite alternate; }
.aurora-glow:nth-child(2) { animation: aurora-drift-2 28s ease-in-out infinite alternate; }
.aurora-glow:nth-child(3) { animation: aurora-drift-3 18s ease-in-out infinite alternate; }
@keyframes aurora-drift-1 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,80px) scale(1.15); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0,0) scale(1.05); }
  100% { transform: translate(-80px,-60px) scale(0.9); }
}
@keyframes aurora-drift-3 {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(40px,-50px) scale(1.1); }
}

/* ─── HERO MESH GRADIENT ────────────────────────────── */
.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%,  rgba(34,168,50,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(26,132,38,0.06)  0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(34,168,50,0.05) 0%, transparent 55%);
  animation: mesh-shift 14s ease-in-out infinite alternate;
}
@keyframes mesh-shift {
  0%   { opacity: 0.8; }
  100% { opacity: 1.0; }
}

/* ─── TEXT GRADIENTS ────────────────────────────────── */
.text-gradient-emerald {
  background: linear-gradient(130deg, #22A832 0%, #5DD96B 45%, #C8F5CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shine-emerald 5s linear infinite;
}
@keyframes shine-emerald {
  to { background-position: 200% center; }
}

/* ─── RADIAL GLOWS ──────────────────────────────────── */
.bg-glow-radial {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,168,50,0.07) 0%, rgba(26,132,38,0.03) 40%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  transform: translateZ(0);
  animation: glow-pulse 12s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  0%   { opacity: 0.6; transform: translateZ(0) scale(1);    }
  100% { opacity: 1.0; transform: translateZ(0) scale(1.18); }
}

/* ─── NETWORK FLOW ──────────────────────────────────── */
.network-line {
  stroke-dasharray: 6 6;
  animation: dash-flow 20s linear infinite;
}
@keyframes dash-flow { to { stroke-dashoffset: -800; } }

/* ─── TILT CARDS ─────────────────────────────────────── */
.tilt-card {
  transition: transform 0.2s ease-out, border-color 0.3s;
  will-change: transform;
}
.tilt-card:hover { border-color: rgba(34,168,50,0.35) !important; }

.card-spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle 220px at var(--mx,50%) var(--my,50%),
    rgba(34,168,50,0.09) 0%, transparent 70%);
}
.tilt-card:hover .card-spotlight { opacity: 1; }

/* ─── PREMIUM BUTTONS ───────────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.35s ease;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  transform: translateX(-102%);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { box-shadow: 0 0 32px rgba(34,168,50,0.5); }

.btn-secondary { transition: all 0.3s ease; }
.btn-secondary:hover {
  border-color: rgba(34,168,50,0.45) !important;
  background: rgba(34,168,50,0.05);
}
.btn-icon { transition: transform 0.25s ease; display: inline-block; }
.btn-secondary:hover .btn-icon { transform: translateX(4px); }

/* ─── ECOSYSTEM ORBITS ──────────────────────────────── */
.orbit-inner { animation: orbit-spin 20s linear infinite; }
.orbit-outer { animation: orbit-spin 34s linear infinite reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.eco-node {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.eco-node:hover {
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(34,168,50,0.4);
  border-color: rgba(34,168,50,0.5) !important;
}

/* ─── TIMELINE ──────────────────────────────────────── */
.timeline-card-anim { will-change: transform, opacity; }
#timeline-glow-line { filter: drop-shadow(0 0 5px rgba(34,168,50,0.9)); }
.timeline-dot { position: relative; }
.timeline-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(34,168,50,0.4);
  animation: ring-pulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes ring-pulse {
  0%   { transform: scale(0.8); opacity: 0.8; }
  70%  { transform: scale(2.1); opacity: 0;   }
  100% { transform: scale(0.8); opacity: 0;   }
}

/* ─── FORM INPUTS ───────────────────────────────────── */
.form-input {
  background: rgba(17,21,18,0.65);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #F4F7F4;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
@media (min-width: 1024px) {
  .form-input {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
.form-input:focus {
  outline: none;
  border-color: rgba(34,168,50,0.6);
  box-shadow: 0 0 0 3px rgba(34,168,50,0.12), 0 0 20px rgba(34,168,50,0.08);
}
.form-input::placeholder { color: rgba(155,164,157,0.5); }

/* ─── HERO BADGES ───────────────────────────────────── */
.hero-badge {
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.hero-badge:hover {
  background: rgba(34,168,50,0.1) !important;
  border-color: rgba(34,168,50,0.4) !important;
  color: #5DD96B;
}

/* ─── FOOTER COLS ───────────────────────────────────── */
.footer-col { opacity: 0; }

/* ─── REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
}
