/* =====================
   HERO — Mobile First
   ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 6rem var(--container-padding) 4rem;
}

/* Grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 100%);
  pointer-events: none;
}

@media (min-width: 640px) {
  .hero-grid-bg { background-size: 60px 60px; }
  .hero { padding: 7rem var(--container-padding) 5rem; }
}

/* Glow blob */
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 120vw);
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.18) 0%, transparent 70%);
  pointer-events: none;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: glowPulse 6s ease-in-out infinite; }
}

@keyframes glowPulse {
  0%,100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.08); }
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  padding: 0.4rem 0.9rem;
  margin-bottom: var(--sp-lg);
  background: rgba(255,255,255,0.03);
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 0.82rem;
    margin-bottom: var(--sp-xl);
  }
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .badge-dot { animation: badgePulse 2.5s ease-in-out infinite; }
}

@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Title */
.hero-title {
  margin-bottom: var(--sp-lg);
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-title {
    margin-bottom: var(--sp-xl);
    max-width: 14ch;
  }
}

.hero-subtitle {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  line-height: 1.65;
  margin-bottom: var(--sp-xl);
}

@media (min-width: 640px) {
  .hero-subtitle {
    max-width: 52ch;
    margin-bottom: var(--sp-2xl);
  }
}

/* Actions */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
}

@media (min-width: 400px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-md);
  }
}

@media (min-width: 640px) {
  .hero-actions { margin-bottom: var(--sp-3xl); }
}

.hero-actions .btn { width: 100%; }

@media (min-width: 400px) {
  .hero-actions .btn { width: auto; }
}

/* Stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
}

@media (min-width: 640px) {
  .hero-stats {
    align-items: center;
    gap: var(--sp-2xl);
  }
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-primary);
}

@media (min-width: 640px) {
  .stat-number { font-size: 1.4rem; }
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  display: none;
}

@media (min-width: 640px) {
  .stat-divider {
    display: block;
    width: 1px;
    height: 40px;
    background: var(--border-strong);
  }
}

/* Scroll hint */
.hero-scroll-hint {
  display: none;
}

@media (min-width: 769px) {
  .hero-scroll-hint {
    display: flex;
    position: absolute;
    bottom: 2.5rem;
    right: var(--container-padding);
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
  }
}

.scroll-line {
  width: 50px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--text-muted));
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-line { animation: scrollLine 2s ease-in-out infinite; }
}

@keyframes scrollLine {
  0%   { width: 10px; opacity: 0.3; }
  50%  { width: 50px; opacity: 1; }
  100% { width: 10px; opacity: 0.3; }
}
