/* ============================================
   Web Hosting Sayfası Stilleri
   Tailwind öncelikli — burada yalnızca Tailwind ile
   çözülemeyen arka plan ve animasyonlar bulunur.
   ============================================ */

/* ---- Hero arka planı ---- */
.hp-hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.25), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(56, 130, 246, 0.18), transparent 60%),
    linear-gradient(160deg, #0e0c28 0%, #171436 45%, #1e1b4b 100%);
}

/* Nokta deseni (koyu bölümler ve CTA'da kullanılır) */
.hp-dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* Birincil CTA parlaması */
.hp-cta-glow {
  position: relative;
}

.hp-cta-glow::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 0.875rem;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #38bdf8);
  filter: blur(14px);
  opacity: 0.45;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.hp-cta-glow:hover::after {
  opacity: 0.7;
}

/* ---- Sunucu paneli mockup'ı ---- */
.hp-mockup-glow {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(56, 189, 248, 0.3));
  filter: blur(40px);
  transform: scale(0.92) translateY(12px);
}

@media (min-width: 1024px) {
  .hp-mockup {
    animation: hp-drift 8s ease-in-out infinite;
  }
}

@keyframes hp-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Uptime çubukları: alttan yukarı büyüme */
.hp-bar {
  transform-origin: bottom;
  animation: hp-bar-grow 0.8s cubic-bezier(0.34, 1.4, 0.64, 1) backwards;
}

@keyframes hp-bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Kaynak göstergeleri: soldan dolma */
.hp-meter {
  transform-origin: left;
  animation: hp-meter-fill 1s ease-out backwards;
}

@keyframes hp-meter-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Durum noktası */
.hp-pulse-dot {
  animation: hp-pulse 1.4s ease-in-out infinite;
}

@keyframes hp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Yüzen rozetler */
.hp-float-badge {
  animation: float 5s ease-in-out infinite;
}

.hp-float-badge-2 {
  animation: float-delay 6s ease-in-out infinite;
}

/* ---- Kart hover'ları ---- */
.hp-feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hp-feature-card:hover {
  transform: translateY(-4px);
}

/* Hareket azaltma tercihi olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
  .hp-mockup,
  .hp-bar,
  .hp-meter,
  .hp-pulse-dot,
  .hp-float-badge,
  .hp-float-badge-2 {
    animation: none;
  }
}

/* ---- Taşıma bölümü: canlı süreç paneli ---- */

/* İlerleme çubuğu: soldan %75'e dolar */
.hp-migrate-progress {
  transform-origin: left;
  animation: hp-migrate-fill 1.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes hp-migrate-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Aktarım hattında süzülen veri paketleri (abartısız, yavaş) */
.hp-packet {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #a5b4fc, #c4b5fd);
  box-shadow: 0 0 8px rgba(165, 180, 252, 0.7);
  opacity: 0;
  animation: hp-packet-flow 2.7s linear infinite;
}

@keyframes hp-packet-flow {
  0% { left: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Hedef (DomainQ) kutusu: yumuşak nefes alan parlama */
.hp-dest {
  animation: hp-dest-glow 3.2s ease-in-out infinite;
}

@keyframes hp-dest-glow {
  0%, 100% { box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.45); }
  50% { box-shadow: 0 10px 32px -2px rgba(139, 92, 246, 0.65); }
}

/* Görev satırları: sırayla yumuşak belirme (tek sefer) */
.hp-task {
  animation: hp-task-in 0.6s ease-out backwards;
}

.hp-task:nth-child(1) { animation-delay: 0.15s; }
.hp-task:nth-child(2) { animation-delay: 0.3s; }
.hp-task:nth-child(3) { animation-delay: 0.45s; }
.hp-task:nth-child(4) { animation-delay: 0.6s; }

@keyframes hp-task-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Devam eden görev ikonu: yavaş dönüş */
.hp-spin {
  animation: hp-spin 2.6s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hp-migrate-progress,
  .hp-packet,
  .hp-dest,
  .hp-task,
  .hp-spin {
    animation: none;
  }

  .hp-packet {
    opacity: 0;
  }
}
