/* =============================================
   EMUI.ru — hero.css
   Hero section, particle background, orbs
   ============================================= */

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 5rem;
  overflow: hidden;
  background: var(--gradient-hero);
}

/* ---- Background ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
[data-theme="dark"] #particleCanvas { opacity: 0.35; }

/* Decorative gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-orb-1 {
  width: min(640px, 80vw);
  height: min(640px, 80vw);
  background: radial-gradient(circle, rgba(167,139,250,0.18) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-2 {
  width: min(480px, 60vw);
  height: min(480px, 60vw);
  background: radial-gradient(circle, rgba(96,165,250,0.15) 0%, transparent 70%);
  bottom: 5%;
  right: -8%;
  animation: orbFloat 18s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: min(320px, 45vw);
  height: min(320px, 45vw);
  background: radial-gradient(circle, rgba(244,114,182,0.12) 0%, transparent 70%);
  top: 30%;
  right: 20%;
  animation: orbFloat 22s ease-in-out infinite 2s;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -25px) scale(1.04); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
}

/* ---- Hero Inner ---- */
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  margin-inline: auto;
}

/* ---- Badge ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-violet);
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.2);
  animation: pulseDot 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(45,212,191,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(45,212,191,0.08); }
  }
}

/* ---- Hero Title ---- */
.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.hero-title-line { display: block; }
.hero-title-gradient {
  background: var(--gradient-logo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 6s ease infinite;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
  }
}

/* ---- Hero Subtitle ---- */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 620px;
  margin-inline: auto;
}

/* ---- Hero Actions ---- */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

/* ---- Hero Stats ---- */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 16px;
  padding: 1rem 0;
  max-width: 580px;
  margin-inline: auto;
  flex-wrap: wrap;
}
[data-theme="dark"] .hero-stats {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.06);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 1.5rem;
  flex: 1;
  min-width: 110px;
}
.hero-stat strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.hero-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ---- Scroll indicator ---- */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  animation: fadeInUp 1s ease 1.2s both;
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--color-border-strong);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 4px;
  height: 7px;
  background: var(--color-text-muted);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateY(0); }
    60% { opacity: 0; transform: translateY(8px); }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  .scroll-wheel { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-stats { gap: 0; padding: 0.75rem 0; }
  .hero-stat { padding: 0.25rem 0.75rem; min-width: 80px; }
  .hero-stat strong { font-size: 0.95rem; }
  .hero-stat span { font-size: 0.65rem; }
  .hero-subtitle br { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
