/* ========================================
   HERO & GLOBAL BACKGROUND
   ======================================== */
.hero {
  min-height:100vh; display:flex; align-items:center;
  position:relative;
  padding-top:var(--header-h);
}
.global-bg {
  position:fixed; inset:0; z-index:-1;
  pointer-events:none;
}
/* Animated grid */
.hero-grid {
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(74,222,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.03) 1px, transparent 1px);
  background-size:60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%,100% { opacity:0.5; }
  50% { opacity:1; }
}
/* Floating orbs */
.hero-orb {
  position:absolute; border-radius:50%;
  filter:blur(80px); opacity:0.15;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 {
  width:500px; height:500px;
  background:var(--accent);
  top:-10%; right:-5%;
  animation-delay:0s;
}
.hero-orb-2 {
  width:350px; height:350px;
  background:#06b6d4;
  bottom:5%; left:-5%;
  animation-delay:-4s;
}
.hero-orb-3 {
  width:250px; height:250px;
  background:var(--accent);
  top:50%; left:40%;
  animation-delay:-8s;
  opacity:0.08;
}
@keyframes orbFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  33% { transform:translate(30px,-20px) scale(1.05); }
  66% { transform:translate(-20px,15px) scale(0.95); }
}
/* Particles */
.particles {
  position:absolute; inset:0;
}
.particle {
  position:absolute; width:3px; height:3px;
  background:var(--accent); border-radius:50%;
  opacity:0; animation: particleFade 6s ease-in-out infinite;
}
@keyframes particleFade {
  0%,100% { opacity:0; transform:translateY(0); }
  50% { opacity:0.6; transform:translateY(-40px); }
}

.hero-content {
  position:relative; z-index:1;
  max-width:720px;
}
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 16px; border-radius:50px;
  background:var(--accent-dim);
  border:1px solid rgba(74,222,128,0.2);
  font-size:0.8rem; font-weight:600;
  color:var(--accent); margin-bottom:28px;
}
.hero-badge .dot {
  width:8px; height:8px; border-radius:50%;
  background:var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(74,222,128,0.4); }
  50% { opacity:0.8; box-shadow:0 0 0 8px rgba(74,222,128,0); }
}
.hero h1 {
  font-size:clamp(2.2rem,5.5vw,3.8rem);
  font-weight:700; line-height:1.1;
  margin-bottom:24px;
}
.hero h1 .highlight {
  background:linear-gradient(135deg,var(--accent),#06b6d4);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero p {
  font-size:clamp(1rem,2vw,1.2rem);
  color:var(--text-secondary);
  max-width:560px;
  margin-bottom:40px;
  line-height:1.7;
}
.hero-buttons { display:flex; gap:16px; flex-wrap:wrap; }

/* Tech Metrics Panel */
.tech-metrics {
  margin-top: 48px;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 222, 128, 0.1);
  border-radius: 14px;
  padding: 14px 20px 18px;
  max-width: 460px;
  opacity: 0;
  animation: metricsReveal 0.8s ease 1.2s forwards;
  position: relative;
  overflow: hidden;
}
.tech-metrics::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
}
@keyframes metricsReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.metrics-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 222, 128, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent);
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.metrics-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Cards Grid */
.metrics-cards {
  display: flex;
  align-items: center;
  gap: 0;
}
.metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.metric-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
.metric-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* Icon */
.metric-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  flex-shrink: 0;
  stroke: var(--text-muted);
  transition: stroke 0.3s ease;
  display: block;
}
.metric-card:hover .metric-icon {
  stroke: var(--accent);
}

/* Value */
.metric-data {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.metric-value {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  transition: color 0.3s ease;
}
.metric-value.counting {
  color: var(--accent);
}
.metric-unit {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Label */
.metric-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
  .tech-metrics {
    padding: 12px 14px 14px;
    max-width: 100%;
  }
  .metric-value {
    font-size: 1.2rem;
  }
  .metrics-header {
    margin-bottom: 10px;
  }
}
