/* ==========================================================================
   AFTER EFFECTS MASTERCLASS — ULTRA-PRO 3D STUDIO DESIGN SYSTEM
   Deep Cosmic Slate (#06070B) • Royal Violet (#7C3AED) • Precision Cyan (#00F5D4)
   Mobile 60FPS Fluid Animations • Zero Overflow • High-Conversion Ad Ready
   ========================================================================== */

:root {
  --bg-main: #06070B;
  --bg-surface: #0B0E17;
  --bg-card: rgba(13, 17, 28, 0.72);
  --bg-card-hover: rgba(18, 24, 40, 0.85);
  
  --primary: #6366F1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --ae-violet: #8B5CF6;
  --ae-purple: #7C3AED;
  --neon-cyan: #00F5D4;
  --accent-cyan: #38BDF8;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  position: relative;
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: #F1F5F9;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #06070B;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6366F1;
}

/* Three.js Background Canvas (Smooth, Vibrant & Centered on All Devices) */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* 3D Hero Perspective & Floating Tags */
.hero-3d-stage {
  perspective: 1000px;
}

.hero-3d-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-3d-tag {
  position: absolute;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(8, 12, 22, 0.88);
  border: 1px solid rgba(0, 245, 212, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #F8FAFC;
  box-shadow: 0 10px 25px -5px rgba(0, 245, 212, 0.25), 0 0 15px rgba(99, 102, 241, 0.2);
}

.hero-3d-tag.top-tag {
  top: 12px;
  left: 12px;
}

.hero-3d-tag.bot-tag {
  bottom: 12px;
  right: 12px;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25);
}

@keyframes floatDelay {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

.animate-float-delay {
  animation: floatDelay 4s ease-in-out infinite 1s;
}

/* Kinetic Audio Spectrum Equalizer */
.audio-equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.audio-bar {
  width: 2.5px;
  background: #00F5D4;
  border-radius: 1px;
  animation: soundBars 1.1s ease-in-out infinite alternate;
}
.audio-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.audio-bar:nth-child(2) { height: 14px; animation-delay: 0.35s; background: #6366F1; }
.audio-bar:nth-child(3) { height: 9px; animation-delay: 0.6s; }
.audio-bar:nth-child(4) { height: 16px; animation-delay: 0.2s; background: #8B5CF6; }
.audio-bar:nth-child(5) { height: 7px; animation-delay: 0.45s; }

@keyframes soundBars {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1.35); }
}

/* Hero Shimmer Gradient */
.hero-gradient-text {
  background: linear-gradient(135deg, #00F5D4 0%, #818CF8 50%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle Floating Animation */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: floatGentle 4s ease-in-out infinite;
}

/* MOBILE AD-FRIENDLY RESPONSIVENESS */
@media (max-width: 768px) {
  body {
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.22) 0%, #06070B 65%) !important;
  }

  .video-card video {
    max-height: 480px !important;
  }

  .pro-card {
    border-radius: 16px !important;
    padding: 1.25rem !important;
  }

  h1, h2 {
    word-break: break-word !important;
  }
}

/* Professional Studio Glass Cards */
.pro-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.pro-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 45px -12px rgba(99, 102, 241, 0.25), 0 0 25px -5px rgba(0, 245, 212, 0.15);
  transform: translateY(-4px);
}

/* Subtle Professional Grid */
.studio-grid {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Master Primary Button */
.btn-primary-action {
  background: linear-gradient(135deg, #6366F1 0%, #7C3AED 50%, #4F46E5 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary-action:hover {
  box-shadow: 0 16px 35px -5px rgba(99, 102, 241, 0.6), 0 0 25px rgba(0, 245, 212, 0.3);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* VIP Green Button */
.btn-vip-action {
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #00F5D4 100%);
  color: #000000;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-vip-action:hover {
  box-shadow: 0 16px 35px -5px rgba(16, 185, 129, 0.6), 0 0 25px rgba(0, 245, 212, 0.4);
  transform: translateY(-2px);
}

/* Pill Badges */
.badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

/* Video Showcase Cards */
.video-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #090C15;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.3);
}

.video-card video {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 540px;
  object-fit: cover;
  background-color: #030508;
  display: block;
}

/* Table styling */
.pro-table th {
  background: #090D18;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pro-table td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Plan Switcher Active Card */
.plan-selector-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.plan-selector-card.active {
  border-color: #00F5D4 !important;
  background: rgba(0, 245, 212, 0.08) !important;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.18) !important;
}

/* Modal Close Cross Button (Always Clickable) */
#close-modal-btn, #close-recovery-btn {
  cursor: pointer !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

#close-modal-btn svg, #close-modal-btn i,
#close-recovery-btn svg, #close-recovery-btn i {
  pointer-events: none !important;
}
