/* Futuristic Cyberpunk & Apple / Vercel Dark Glass UX/UI Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --cyber-bg: #020617;
  --cyber-cyan: #06b6d4;
  --cyber-neon: #10b981;
  --cyber-purple: #a855f7;
  --cyber-blue: #3b82f6;
  --cyber-pink: #ec4899;
}

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

html, body {
  background-color: var(--cyber-bg);
  font-family: var(--font-sans);
  color: #f8fafc;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cyber-cyan), var(--cyber-purple));
  border-radius: 4px;
}

/* Animaciones de Desplazamiento Aleatorio para las Luces Neón */
@keyframes floatGlowCyan {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(120px, 80px) scale(1.15); }
  66% { transform: translate(-80px, 140px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes floatGlowPurple {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(-140px, -60px) scale(1.1); }
  66% { transform: translate(90px, 110px) scale(0.95); }
  100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes floatGlowEmerald {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(100px, -120px) scale(0.88); }
  66% { transform: translate(-110px, -40px) scale(1.2); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* Ambient Glow Spheres (Vercel / Apple Style) */
.glow-sphere-cyan {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  border-radius: 50%;
  animation: floatGlowCyan 20s ease-in-out infinite;
}

.glow-sphere-purple {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.24) 0%, rgba(168, 85, 247, 0) 70%);
  filter: blur(90px);
  pointer-events: none;
  border-radius: 50%;
  animation: floatGlowPurple 25s ease-in-out infinite;
}

.glow-sphere-emerald {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(85px);
  pointer-events: none;
  border-radius: 50%;
  animation: floatGlowEmerald 22s ease-in-out infinite;
}

/* Rejilla Holográfica Sutil */
.holographic-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
}

/* Glassmorphism & Cyber Glows */
.hud-glass {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6);
}

.hud-glass-glowing {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(3, 7, 18, 0.92) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(6, 182, 212, 0.38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(6, 182, 212, 0.2), inset 0 0 20px rgba(6, 182, 212, 0.08);
}

.hud-glass-card {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-glass-card:hover {
  border-color: rgba(6, 182, 212, 0.6);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.25), 0 0 20px rgba(6, 182, 212, 0.15);
}

/* Gradient Texts */
.text-gradient-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #e879f9 0%, #a855f7 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scrollytelling Pinned Methodology Section */
.scrolly-container {
  position: relative;
  width: 100%;
}

.scrolly-card-item {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  -webkit-font-smoothing: antialiased;
}

.scrolly-card-active {
  border-color: rgba(6, 182, 212, 0.8) !important;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.25), 0 0 30px rgba(6, 182, 212, 0.2) !important;
  transform: scale(1.02) translateY(-4px);
}

.neon-beam-line {
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 1) 50%, rgba(16, 185, 129, 1) 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.8);
}

/* Fullscreen AI Takeover Overlay Modal */
#ai-takeover-modal {
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  background: rgba(2, 4, 12, 0.96);
  z-index: 100;
}

/* Scanning line overlay */
@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(1000%); }
}

.scanline-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--cyber-cyan), var(--cyber-neon), transparent);
  animation: scanline 6s linear infinite;
  opacity: 0.7;
  pointer-events: none;
}
