/* HERO — hero section, mesh blobs, title, stats strip, keyframes */
@keyframes blobFloat1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-30px,40px) scale(1.1); } 66% { transform: translate(20px,-20px) scale(0.95); } }
@keyframes blobFloat2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px) scale(1.15); } }
@keyframes blobFloat3 { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-20px,30px) rotate(180deg); } }
@keyframes gradMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes scrollWheel { 0%,100% { transform: translateX(-50%) translateY(0); opacity: 1; } 100% { transform: translateX(-50%) translateY(12px); opacity: 0; } }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes rotateBorder { to { transform: rotate(360deg); } }

#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#particles-canvas { position: absolute; inset: 0; z-index: 0; }

.hero-mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; will-change: transform; }
.mb1 { width: 850px; height: 850px; background: rgba(176,96,255,0.38); top: -10%; right: -10%; animation: blobFloat1 12s ease-in-out infinite; }
.mb2 { width: 620px; height: 620px; background: rgba(0,245,255,0.28); bottom: 0; left: -5%; animation: blobFloat2 15s ease-in-out infinite; }
.mb3 { width: 450px; height: 450px; background: rgba(255,122,26,0.20); top: 40%; left: 30%; animation: blobFloat3 18s ease-in-out infinite; }

/* Мобиль — уменьшаем blobs и убираем самый дорогой blur */
.is-touch .mesh-blob { filter: blur(60px); }
.is-touch .mb1 { width: 500px; height: 500px; }
.is-touch .mb2 { width: 380px; height: 380px; }
.is-touch .mb3 { display: none; } /* третий blob убираем на touch */
/* Text glow (blur:40px псевдоэлемент) — убираем на touch, слишком дорого при скролле */
.is-touch .hero-title .t2::after { display: none; }
/* gradMove анимация текста — на mid оставляем, на low убираем */
.perf-low .hero-title .t2 { animation: none !important; }

/* prefers-reduced-motion — стоп всем анимациям */
.reduced-motion .mesh-blob,
.reduced-motion .hero-eyebrow,
.reduced-motion .hero-title,
.reduced-motion .hero-desc,
.reduced-motion .hero-btns,
.reduced-motion .hero-badges-row,
.reduced-motion .hero-scroll-hint,
.reduced-motion .hero-title .t2 { animation: none !important; }

.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 960px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(0,245,255,0.1); border: 1px solid rgba(0,245,255,0.28);
  border-radius: 100px; padding: 0.4rem 1.2rem;
  font-family: var(--mono); font-size: 0.75rem; color: var(--c);
  letter-spacing: 2px; margin-bottom: 2.5rem;
  animation: fadeDown 0.8s ease both;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; animation: pulse 2s infinite; }

.hero-title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 900; letter-spacing: -3px; line-height: 1.1;
  margin-bottom: 1.75rem; animation: fadeUp 0.9s 0.2s ease both;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 0.3em;
}
.hero-title .t1 { display: inline; color: var(--text); white-space: nowrap; }
.hero-title .t2 {
  display: inline-flex; align-items: baseline;
  background: linear-gradient(135deg, #00f5ff 0%, #b060ff 35%, #f97316 65%, #00f5ff 100%);
  background-size: 250% 250%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  position: relative; animation: gradMove 6s ease-in-out infinite;
}
.hero-title .t2::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: linear-gradient(135deg, #00f5ff, #b060ff, #f97316);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  filter: blur(40px); opacity: 0.9;
}

.typing-wrap { display: inline-block; min-width: 460px; }
.hero-title .t2 { min-height: 1.15em; overflow: visible; }
.cursor-blink {
  display: inline-block; width: 3px; height: 0.75em;
  background: var(--c); margin-left: 3px; vertical-align: middle;
  animation: cursorBlink 1s step-end infinite;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 580px; margin: 0 auto 3rem; line-height: 1.9;
  animation: fadeUp 0.9s 0.4s ease both;
}
.hero-desc strong { color: var(--c); font-weight: 600; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.9s 0.6s ease both; }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: float 3s ease-in-out infinite;
}
.scroll-mouse { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.2); border-radius: 11px; position: relative; }
.scroll-mouse::before {
  content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 7px; background: var(--c); border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

.hero-badges-row { display: flex; justify-content: center; gap: 1.5rem; margin-top: 3.5rem; flex-wrap: wrap; animation: fadeUp 0.9s 0.8s ease both; }
.hero-micro-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }
.hero-micro-badge .micro-icon { font-size: 1rem; }

/* STATS STRIP */
#stats { padding: 0; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.stat-item { padding: 3.5rem 2rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; transition: background 0.4s; }
.stat-item:last-child { border-right: none; }
.stat-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.stat-item:hover { background: rgba(255,255,255,0.02); }
.stat-item:hover::before { transform: scaleX(1); }
.stat-n { font-family: var(--mono); font-size: 3.8rem; font-weight: 900; line-height: 1; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; margin-bottom: 0.5rem; }
.stat-l { font-size: 0.75rem; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.stat-s { font-size: 0.7rem; color: rgba(255,255,255,0.28); letter-spacing: 0.5px; display: block; margin-top: 0.2rem; font-style: italic; }
