/* ==========================================================================
   PROJECT HORIZON — CINEMATIC MOTION GRAPHICS ADVERTISEMENT
   Style: Ultra-Premium Obsidian & Neon Cyber Hologram
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-deep: #02050e;
  --cyan: #00f2fe;
  --cyan-glow: #06b6d4;
  --blue-electric: #3b82f6;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background-color: var(--bg-deep);
  color: #ffffff;
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dynamic Ambient Glow & Cyber Grid */
.ambient-lighting {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0.95) 0%, #02050e 100%);
  pointer-events: none;
  z-index: 1;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    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);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   CINEMATIC FULLSCREEN ADVERTISEMENT CONTAINER
   ========================================================================== */
.ad-screen {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  max-width: 1920px;
  max-height: 1080px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.9);
}

/* Scenes Master Track */
.scenes-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 8%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92) perspective(1000px) rotateX(4deg);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
  pointer-events: none;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) perspective(1000px) rotateX(0deg);
  pointer-events: auto;
}

/* Lens Flare & Spotlights */
.glow-flare {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
  animation: flarePulse 4s ease-in-out infinite alternate;
}

.flare-cyan {
  background: var(--cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.flare-violet {
  background: var(--violet);
  bottom: 10%;
  right: 15%;
}

@keyframes flarePulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.25; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.45; }
}

/* ==========================================================================
   TYPOGRAPHY & KINETIC TEXT
   ========================================================================== */
.ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 8px 22px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
  animation: fadeInDown 0.6s ease forwards;
}

.ad-heading-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.gradient-shimmer {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 45%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
}

.ad-subheading {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 500;
  color: #cbd5e1;
  max-width: 900px;
  line-height: 1.4;
  margin-bottom: 35px;
}

/* ==========================================================================
   SCENE 1: 3D INFINITY HOOK
   ========================================================================== */
.infinity-logo-box {
  position: relative;
  width: 220px;
  height: 110px;
  margin-bottom: 25px;
}

.infinity-logo-box img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(0, 242, 254, 0.8));
  animation: floatInfinity 3s ease-in-out infinite;
}

@keyframes floatInfinity {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

.hook-highlight-pills {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hook-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hook-pill i {
  color: var(--cyan);
  font-size: 18px;
}

/* ==========================================================================
   SCENE 2: AI VOICE RECEPTIONIST (PULSING AUDIO RING)
   ========================================================================== */
.voice-visualizer-orb {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #00f2fe 0%, #0284c7 70%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.6);
  animation: orbPulse 1.8s infinite alternate;
}

.voice-visualizer-orb i {
  font-size: 48px;
  color: #ffffff;
}

.sound-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px solid rgba(0, 242, 254, 0.5);
  animation: ringExpand 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.sound-ring:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes orbPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 35px rgba(0, 242, 254, 0.4); }
  100% { transform: scale(1.08); box-shadow: 0 0 75px rgba(0, 242, 254, 0.9); }
}

@keyframes ringExpand {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.feature-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.feature-glass-card {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.feature-glass-card.highlight {
  border-color: var(--cyan);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.3);
}

.feature-glass-card .card-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 6px;
}

.feature-glass-card .card-txt {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   SCENE 3: SPEED TO LEAD (<60s)
   ========================================================================== */
.speed-hero-stat {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 110px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 30%, #00f2fe 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.6));
  margin-bottom: 12px;
}

.speed-pipeline-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.pipeline-step-node {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 16px 24px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
}

.pipeline-step-node i {
  color: var(--cyan);
  font-size: 20px;
}

.pipeline-arrow {
  color: var(--cyan);
  font-size: 20px;
  opacity: 0.6;
}

/* ==========================================================================
   SCENE 4: CRM AUTO-SYNC & INBOX ZERO
   ========================================================================== */
.crm-logos-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.crm-brand-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.crm-brand-pill.hubspot { border-color: #ff7a59; }
.crm-brand-pill.salesforce { border-color: #00a1e0; }
.crm-brand-pill.airtable { border-color: #f82b60; }
.crm-brand-pill.sheets { border-color: #0f9d58; }

/* ==========================================================================
   SCENE 5: AUTONOMOUS AI SWARM
   ========================================================================== */
.swarm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1100px;
  width: 100%;
}

.swarm-card {
  background: rgba(6, 12, 28, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.swarm-card.active-swarm {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

.swarm-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  color: var(--cyan);
  font-size: 22px;
}

.swarm-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.swarm-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ==========================================================================
   SCENE 6: £70,000+ ROI SAVINGS
   ========================================================================== */
.roi-mega-number {
  font-family: var(--font-display);
  font-size: clamp(60px, 9vw, 120px);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 20%, #38bdf8 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 45px rgba(16, 185, 129, 0.5));
  line-height: 1;
  margin-bottom: 14px;
}

.roi-sub-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.roi-sub-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 12px 28px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.roi-sub-pill i {
  color: #10b981;
}

/* ==========================================================================
   SCENE 7: CALL TO ACTION FINALE
   ========================================================================== */
.cta-mega-btn {
  background: linear-gradient(135deg, #00f2fe 0%, #06b6d4 50%, #8b5cf6 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  padding: 18px 48px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 45px rgba(0, 242, 254, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-mega-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 70px rgba(0, 242, 254, 0.9);
}

.cta-url-subtext {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--cyan);
  margin-top: 18px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   DISCRETE FLOATING BOTTOM PROGRESS BAR & MINIMAL PLAY OVERLAY
   ========================================================================== */
.ad-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 50;
}

.ad-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #38bdf8, #8b5cf6);
  box-shadow: 0 0 15px var(--cyan);
}

/* Minimalist Audio / Replay Overlay on hover */
.minimal-controls {
  position: fixed;
  bottom: 20px;
  right: 24px;
  display: flex;
  gap: 10px;
  z-index: 100;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.minimal-controls:hover {
  opacity: 1;
}

.mini-btn {
  background: rgba(6, 12, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.mini-btn:hover {
  background: var(--cyan);
  color: #02050e;
  border-color: var(--cyan);
}

/* ==========================================================================
   CLEAN & LUXURIOUS INTRO POSTER (PROJECT HORIZON CYBER AESTHETIC)
   ========================================================================== */
.click-to-play-overlay {
  position: fixed;
  inset: 0;
  background-color: #02050e;
  background-image: 
    radial-gradient(circle at 50% 38%, rgba(6, 182, 212, 0.28) 0%, rgba(139, 92, 246, 0.16) 35%, rgba(2, 5, 14, 0.98) 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1000;
  cursor: pointer;
  padding: 30px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
}

.click-to-play-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-clean-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  position: relative;
  z-index: 10;
  animation: introAppear 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes introAppear {
  0% { opacity: 0; transform: scale(0.94) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.intro-infinity-logo {
  width: 220px;
  height: 110px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 50px rgba(0, 242, 254, 0.9));
  animation: floatLogoPure 3.5s ease-in-out infinite alternate;
}

@keyframes floatLogoPure {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 40px rgba(0, 242, 254, 0.8)); }
  100% { transform: translateY(-8px) scale(1.04); filter: drop-shadow(0 0 70px rgba(0, 242, 254, 1)); }
}

.intro-brand-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.2vw, 80px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 15%, #a5f3fc 55%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.5));
}

.intro-brand-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 34px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* Master Watch Video Magnetic Button */
.watch-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border: 2px solid var(--cyan);
  padding: 16px 40px;
  border-radius: 100px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 
    0 10px 45px -10px rgba(0, 242, 254, 0.6),
    inset 0 0 25px rgba(0, 242, 254, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.watch-video-btn:hover {
  transform: scale(1.08);
  background: linear-gradient(135deg, #00f2fe 0%, #06b6d4 50%, #8b5cf6 100%);
  color: #02050e;
  box-shadow: 0 15px 70px rgba(0, 242, 254, 0.95);
  border-color: #ffffff;
}

.play-orb-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #02050e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.play-orb-icon i {
  margin-left: 3px;
}

.watch-video-btn:hover .play-orb-icon {
  background: #02050e;
  color: var(--cyan);
  transform: scale(1.15);
}

.intro-sound-hint {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #94a3b8;
  margin-top: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
