/* ============================================================
   SPACE MOON CREATIVE — ANIMATIONS
   ============================================================ */

/* ── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -30px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(0.97); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes count-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes border-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,137,251,0); }
  50%       { box-shadow: 0 0 0 6px rgba(0,137,251,0.12); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes nav-reveal {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL CLASSES ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ── STAGGER DELAYS ─────────────────────────────────────────── */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }
.delay-7 { transition-delay: 0.7s !important; }
.delay-8 { transition-delay: 0.8s !important; }

/* ── HERO ENTRANCE ──────────────────────────────────────────── */
.hero__eyebrow  { animation: fade-in-down 0.7s var(--ease-out) 0.2s both; }
.hero__title    { animation: fade-in-up 0.8s var(--ease-out) 0.35s both; }
.hero__subtitle { animation: fade-in-up 0.8s var(--ease-out) 0.5s both; }
.hero__actions  { animation: fade-in-up 0.8s var(--ease-out) 0.65s both; }
.hero__scroll   { animation: fade-in-up 0.6s var(--ease-out) 0.85s both; }

/* ── NAV ENTRANCE ───────────────────────────────────────────── */
.nav { animation: nav-reveal 0.6s var(--ease-out) both; }

/* ── FLOATING ELEMENTS ──────────────────────────────────────── */
.float {
  animation: float-orb 8s ease-in-out infinite;
}
.float-slow {
  animation: float-orb 14s ease-in-out infinite;
}
.float-fast {
  animation: float-orb 5s ease-in-out infinite;
}

/* ── PULSE ───────────────────────────────────────────────────── */
.pulse {
  animation: border-glow 2.5s ease-in-out infinite;
}

/* ── SHIMMER SKELETON ────────────────────────────────────────── */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--c-surface) 0%,
    var(--c-surface-2) 50%,
    var(--c-surface) 100%
  );
  background-size: 200% auto;
  animation: shimmer 1.8s linear infinite;
}

/* ── PARALLAX WRAPPER ────────────────────────────────────────── */
.parallax-layer {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ── COUNTER ─────────────────────────────────────────────────── */
.counter-value {
  display: inline-block;
}
.counter-value.counting {
  animation: count-up 0.4s var(--ease-out);
}

/* ── HOVER LIFT ──────────────────────────────────────────────── */
.hover-lift {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ── HOVER GLOW ──────────────────────────────────────────────── */
.hover-glow:hover {
  box-shadow: 0 0 32px var(--c-primary-glow);
}

/* ── GRADIENT BORDER ANIMATION ───────────────────────────────── */
@keyframes rotate-gradient {
  0%   { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ── VIDEO BG ────────────────────────────────────────────────── */
.video-bg-wrapper {
  position: relative;
}
.video-bg-wrapper video {
  width: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

/* ── MARQUEE (for capabilities) ─────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--c-text-2);
  font-weight: 500;
}
.marquee-item svg { color: var(--c-primary); flex-shrink: 0; }

/* ── SPOTLIGHT HOVER ─────────────────────────────────────────── */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,137,251,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
}
.spotlight:hover::after { opacity: 1; }

/* ── TABS ────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab-btn {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--c-border-hover); color: var(--c-text); }
.tab-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 20px rgba(0,137,251,0.3);
}
.tab-panel { display: none; animation: fade-in 0.3s var(--ease-out); }
.tab-panel.active { display: block; }

/* ── ACCORDION ───────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color 0.3s;
}
.accordion-item.open { border-color: var(--c-border-hover); }
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
}
.accordion-trigger-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
}
.accordion-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-3);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, color 0.3s;
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.accordion-body-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--c-text-2);
  line-height: 1.75;
}

/* ── NOTIFICATION TOAST ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
  max-width: 360px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: rgba(0,137,251,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.toast__text { font-size: 0.9rem; color: var(--c-text); font-weight: 500; }

/* ── PREFERS REDUCED MOTION ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  z-index: 9999;
  background: rgba(0, 29, 54, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 137, 251, 0.28);
  border-radius: var(--r-2xl, 1.25rem);
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 580px;
  width: calc(100% - 2rem);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 137, 251, 0.08);
  transition: transform 0.45s cubic-bezier(0.34, 1.30, 0.64, 1);
  will-change: transform;
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-banner__text {
  font-size: 0.8125rem;
  color: var(--c-text-2, #94a3b8);
  line-height: 1.55;
  flex: 1;
  min-width: 0;
}

.cookie-banner__text strong {
  color: var(--c-text, #e2e8f0);
  font-weight: 600;
}

.cookie-banner__text a {
  color: var(--c-primary, #0089FB);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.cookie-banner__actions {
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    border-radius: var(--r-2xl, 1.25rem) var(--r-2xl, 1.25rem) 0 0;
    transform: translateY(calc(100% + 1px));
    gap: 1rem;
    flex-wrap: wrap;
  }
  .cookie-banner.show {
    transform: translateY(0);
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
