/* ═══════════════════════════════════════════════════════════
   HERO FUSION · Акт I объединённый с globe
   Full-viewport cinematic opening
   ═══════════════════════════════════════════════════════════ */

.hero-fusion {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: #03060d;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  isolation: isolate;
}

/* ─── Фоновые слои ─── */

.hero-fusion-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 45%, #f0c33c 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 15%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 75% 35%, #5dd3ff 0%, transparent 100%),
    radial-gradient(2px 2px at 90% 60%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 75%, #f0c33c 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 85%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, #fafcff 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 70% 80%, #5dd3ff 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 20% 55%, #f0c33c 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 55%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 95% 90%, #fafcff 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 40%, #5dd3ff 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 95%, #f0c33c 0%, transparent 100%);
  background-size: 100% 100%;
  opacity: 0.85;
  z-index: 0;
  animation: hero-stars-twinkle 8s ease-in-out infinite;
}

@keyframes hero-stars-twinkle {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.hero-fusion-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 20%, rgba(93, 211, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 80% 50% at 85% 80%, rgba(240, 195, 60, 0.08), transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(93, 211, 255, 0.10), transparent 60%);
  z-index: 1;
  pointer-events: none;
  animation: hero-aurora-drift 18s ease-in-out infinite;
}

@keyframes hero-aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50%      { transform: translate(2%, -1%) scale(1.05); opacity: 1; }
}

/* ─── Контейнер + сетка ─── */

.hero-fusion-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  z-index: 3;
}

.hero-fusion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 60px);
  align-items: center;
  min-height: calc(100vh - 160px);
  min-height: calc(100svh - 160px);
}

@media (max-width: 1024px) {
  .hero-fusion-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }
}

/* ─── Левая колонка: текст ─── */

.hero-fusion-text {
  position: relative;
  z-index: 5;
  opacity: 0;
  animation: hero-text-enter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

@keyframes hero-text-enter {
  0%   { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-fusion-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(240, 195, 60, 0.08);
  border: 1px solid rgba(240, 195, 60, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f0c33c;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-fusion-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #f0c33c;
  border-radius: 50%;
  box-shadow: 0 0 10px #f0c33c;
  animation: hero-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes hero-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.6; }
}

.hero-fusion-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fafcff;
  margin: 0 0 28px;
}

.hero-fusion-title em {
  display: block;
  font-style: italic;
  background: linear-gradient(135deg, #f0c33c 0%, #fcdf7c 50%, #f0c33c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-fusion-subtitle {
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.65;
  color: rgba(250, 252, 255, 0.72);
  margin: 0 0 40px;
  max-width: 520px;
}

.hero-fusion-subtitle strong {
  color: #f0c33c;
  font-weight: 600;
}

.hero-fusion-subtitle .temp {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(93, 211, 255, 0.12);
  border: 1px solid rgba(93, 211, 255, 0.3);
  border-radius: 6px;
  color: #5dd3ff;
  font-weight: 700;
  font-feature-settings: 'tnum' 1;
}

/* ─── Server chips ─── */

.hero-fusion-servers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-fusion-server {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(20, 30, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 13px;
  color: #fafcff;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.hero-fusion-server--online {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.hero-fusion-server--online:hover {
  border-color: rgba(34, 197, 94, 0.6);
  transform: translateY(-2px);
}

.hero-fusion-server--soon {
  opacity: 0.55;
  font-style: italic;
}

.hero-fusion-server-flag {
  font-size: 18px;
  line-height: 1;
}

.hero-fusion-server-name {
  font-weight: 600;
}

.hero-fusion-server-ping {
  font-size: 11px;
  color: rgba(250, 252, 255, 0.5);
  font-feature-settings: 'tnum' 1;
}

.hero-fusion-server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 252, 255, 0.3);
}

.hero-fusion-server--online .hero-fusion-server-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: hero-server-dot-pulse 2s ease-in-out infinite;
}

@keyframes hero-server-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}

/* PR-2.4.3: hover pulse ripple на чипах серверов */
@keyframes chip-pulse-cyan {
  0%   { box-shadow: 0 4px 16px rgba(93, 211, 255, 0.3), 0 0 0 0   rgba(93, 211, 255, 0.5); }
  60%  { box-shadow: 0 4px 16px rgba(93, 211, 255, 0.2), 0 0 0 10px rgba(93, 211, 255, 0); }
  100% { box-shadow: 0 4px 16px rgba(93, 211, 255, 0),   0 0 0 0   rgba(93, 211, 255, 0); }
}

@keyframes chip-pulse-gold {
  0%   { box-shadow: 0 4px 16px rgba(240, 195, 60, 0.25), 0 0 0 0   rgba(240, 195, 60, 0.4); }
  60%  { box-shadow: 0 4px 16px rgba(240, 195, 60, 0.1),  0 0 0 10px rgba(240, 195, 60, 0); }
  100% { box-shadow: 0 4px 16px rgba(240, 195, 60, 0),    0 0 0 0   rgba(240, 195, 60, 0); }
}

.hero-fusion-server--pulse-cyan {
  animation: chip-pulse-cyan 0.55s ease-out forwards;
}

.hero-fusion-server--pulse-gold {
  animation: chip-pulse-gold 0.55s ease-out forwards;
}

.hero-fusion-server--soon:hover {
  opacity: 0.8;
  cursor: pointer;
}

.hero-fusion-server--online {
  cursor: pointer;
}

/* ─── CTA кнопки ─── */

.hero-fusion-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-fusion-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.hero-fusion-btn--primary {
  background: linear-gradient(135deg, #f0c33c 0%, #fcdf7c 100%);
  color: #0a1628;
  box-shadow: 0 10px 40px -10px rgba(240, 195, 60, 0.6);
}

.hero-fusion-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -10px rgba(240, 195, 60, 0.8);
}

.hero-fusion-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fafcff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero-fusion-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-fusion-btn .arr {
  transition: transform 0.3s ease;
}
.hero-fusion-btn:hover .arr {
  transform: translateX(4px);
}

/* ─── Route indicator ─── */

.hero-fusion-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(250, 252, 255, 0.45);
  font-feature-settings: 'tnum' 1;
  letter-spacing: 0.02em;
}

.hero-fusion-route strong {
  color: #fafcff;
  font-weight: 600;
}

.hero-fusion-route-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f0c33c;
  box-shadow: 0 0 6px #f0c33c;
}

/* ─── Правая колонка: Globe ─── */

.hero-fusion-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0;
  animation: hero-visual-enter 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

@keyframes hero-visual-enter {
  0%   { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

@media (min-width: 1025px) {
  .hero-fusion-visual {
    margin-right: -6vw;
  }
}

@media (max-width: 1024px) {
  .hero-fusion-visual {
    max-width: 520px;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 640px) {
  .hero-fusion-visual {
    max-width: 380px;
  }
}

.hero-fusion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-fusion-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(93, 211, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
  pointer-events: none;
}

.hero-fusion-loading::before {
  content: '';
  width: 38px;
  height: 38px;
  border: 2px solid rgba(93, 211, 255, 0.15);
  border-top-color: #5dd3ff;
  border-radius: 50%;
  animation: hero-loading-spin 1s linear infinite;
}

@keyframes hero-loading-spin {
  to { transform: rotate(360deg); }
}

.hero-fusion-fallback {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
}
.hero-fusion-fallback.is-visible { display: block; }
.hero-fusion-fallback svg { width: 100%; height: 100%; }

/* ═══ КОНЬ-СОЗВЕЗДИЕ · МОНУМЕНТАЛЬНОЕ ═══ */

.hero-fusion-horse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 900px);
  height: min(50vh, 560px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: screen;
  animation: hero-horse-enter 2.5s ease 2.2s forwards;
}

@keyframes hero-horse-enter {
  0%   { opacity: 0; }
  100% { opacity: 0.55; }
}

.hero-fusion-horse-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: hero-horse-float 14s ease-in-out 3s infinite;
  filter:
    drop-shadow(0 0 30px rgba(240, 195, 60, 0.4))
    drop-shadow(0 0 80px rgba(240, 195, 60, 0.2));
}

@keyframes hero-horse-float {
  0%, 100% { transform: translate(-3%, 0) rotate(-5deg);  }
  25%      { transform: translate(2%, -3%) rotate(-8deg);  }
  50%      { transform: translate(5%, 1%) rotate(-12deg); }
  75%      { transform: translate(1%, 3%) rotate(-9deg);  }
}

.hero-horse-star {
  fill: #f0c33c;
  animation: hero-horse-star-twinkle 3s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.hero-horse-star--bright {
  fill: #fafcff;
  animation-duration: 2s;
}
.hero-horse-star--hoof {
  fill: #fcdf7c;
  animation: hero-horse-hoof-glow 1.5s ease-in-out infinite;
}

.hero-horse-line {
  stroke: #f0c33c;
  stroke-width: 1;
  fill: none;
  opacity: 0;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: hero-horse-line-draw 2s ease forwards;
}

.hero-horse-tail {
  fill: #f0c33c;
  animation: hero-horse-tail-wave 2s ease-in-out infinite;
}

.hero-horse-mane {
  fill: #fcdf7c;
  animation: hero-horse-mane-wave 1.8s ease-in-out infinite;
}

@keyframes hero-horse-star-twinkle {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.4); }
}

@keyframes hero-horse-hoof-glow {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 4px #f0c33c); }
  50%      { opacity: 1;   filter: drop-shadow(0 0 12px #fcdf7c); }
}

@keyframes hero-horse-line-draw {
  0%   { opacity: 0; stroke-dashoffset: 200; }
  30%  { opacity: 0.6; }
  100% { opacity: 0.45; stroke-dashoffset: 0; }
}

@keyframes hero-horse-tail-wave {
  0%, 100% { transform: translate(0, 0); opacity: 0.8; }
  50%      { transform: translate(-4px, -3px); opacity: 0.4; }
}

@keyframes hero-horse-mane-wave {
  0%, 100% { transform: translate(0, 0) rotate(0); opacity: 0.9; }
  50%      { transform: translate(-3px, -2px) rotate(-6deg); opacity: 1; }
}

/* ─── Scroll hint ─── */

.hero-fusion-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(250, 252, 255, 0.5);
  z-index: 5;
  opacity: 0;
  animation: hero-scroll-enter 1s ease 3s forwards;
  pointer-events: none;
}

@keyframes hero-scroll-enter {
  to { opacity: 1; }
}

.hero-fusion-scroll-arrow {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(250, 252, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.hero-fusion-scroll-arrow::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: #f0c33c;
  border-radius: 2px;
  animation: hero-scroll-drop 2s ease-in-out infinite;
}

@keyframes hero-scroll-drop {
  0%   { opacity: 0; top: 6px; }
  30%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; top: 20px; }
}

@media (max-width: 768px) {
  .hero-fusion-scroll { display: none; }
  .hero-fusion { padding: 90px 0 40px; }
}

/* ─── Reduced motion ─── */

@media (prefers-reduced-motion: reduce) {
  .hero-fusion-stars,
  .hero-fusion-aurora,
  .hero-fusion-horse-svg,
  .hero-horse-star,
  .hero-horse-line,
  .hero-horse-tail,
  .hero-horse-mane,
  .hero-fusion-scroll-arrow::before,
  .hero-fusion-label::before,
  .hero-fusion-server--online .hero-fusion-server-dot {
    animation: none !important;
  }

  .hero-fusion-text,
  .hero-fusion-visual,
  .hero-fusion-horse,
  .hero-fusion-scroll {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .hero-fusion-horse { opacity: 0.4 !important; }
}
