/* ══════════════════════════════════════════════════
   ULTRA PREMIUM MOTION — CineRush 2.0
   ══════════════════════════════════════════════════ */

/* ── Aurora beams no hero ── */
.hero-aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.aurora-beam {
  position: absolute; border-radius: 50%; filter: blur(90px);
}
.aurora-beam-1 {
  width: 55vw; height: 55vw; top: -20%; left: -10%;
  background: radial-gradient(ellipse, rgba(168,85,247,.18) 0%, transparent 65%);
  animation: aurora-a 12s ease-in-out infinite;
}
.aurora-beam-2 {
  width: 45vw; height: 45vw; top: 10%; right: -10%;
  background: radial-gradient(ellipse, rgba(236,72,153,.14) 0%, transparent 65%);
  animation: aurora-b 15s ease-in-out infinite;
}
.aurora-beam-3 {
  width: 35vw; height: 35vw; bottom: -10%; left: 30%;
  background: radial-gradient(ellipse, rgba(99,102,241,.12) 0%, transparent 65%);
  animation: aurora-c 10s ease-in-out infinite;
}
@keyframes aurora-a {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(8vw,-6vh) scale(1.15); }
  70%     { transform: translate(-5vw,8vh) scale(.9); }
}
@keyframes aurora-b {
  0%,100% { transform: translate(0,0) scale(1); }
  35%     { transform: translate(-7vw,5vh) scale(1.1); }
  65%     { transform: translate(6vw,-8vh) scale(.85); }
}
@keyframes aurora-c {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-5vw,-4vh) scale(1.2); }
}

/* ── Hero animated grid background ── */
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(168,85,247,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  animation: grid-pulse 6s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%,100% { opacity: .5; }
  50%     { opacity: 1; }
}

/* ── Word switcher no título ── */
.word-cycle {
  display: inline-block;
  min-width: 240px;
  background: linear-gradient(135deg, #a855f7, #ec4899, #f97316);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: word-shimmer 3s linear infinite;
  transition: opacity .25s ease, transform .25s ease;
}
.word-cycle.out {
  opacity: 0; transform: translateY(-12px);
}
.word-cycle.in {
  opacity: 1; transform: translateY(0);
}
@keyframes word-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* spotlight removido */

/* ── Button shimmer beam ── */
.btn-primary { overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  animation: btn-beam 3.5s ease-in-out infinite;
}
@keyframes btn-beam {
  0%   { left: -120%; }
  40%,100% { left: 160%; }
}

/* ── Infinite marquee ── */
.marquee-section {
  padding: 32px 0; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.04);
  background: linear-gradient(to right,
    var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%);
  position: relative;
}
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 40px; font-size: 14px; font-weight: 600;
  color: var(--text3); white-space: nowrap;
  transition: color .2s;
}
.marquee-item:hover { color: var(--text2); }
.marquee-item .mi-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899); flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats glow numbers ── */
.stat-number {
  background: linear-gradient(135deg, #f4f4f5, #a855f7);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: stat-shimmer 4s linear infinite;
}
@keyframes stat-shimmer {
  0%,100% { background-position: 0% center; }
  50%     { background-position: 200% center; }
}

/* ── Feature card border glow ── */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color .4s ease, transform .35s ease, box-shadow .4s ease;
}
.feature-card:hover {
  border-color: rgba(168,85,247,.3);
  box-shadow: 0 0 0 1px rgba(168,85,247,.1), 0 30px 80px rgba(0,0,0,.5);
}

/* ── Pricing card: featured beam ── */
.p-card.featured .btn-plan {
  position: relative; overflow: hidden;
}
.p-card.featured .btn-plan::after {
  content: '';
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  animation: btn-beam 2.5s ease-in-out infinite;
}

/* ── Hero badge pulse ── */
.hero-badge {
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(168,85,247,.3); }
  50%     { box-shadow: 0 0 0 6px rgba(168,85,247,.0); }
}

/* ── Floating cards enhanced ── */
.float-1 { animation: float-a1 4s ease-in-out infinite !important; }
.float-2 { animation: float-a2 5s 1.5s ease-in-out infinite !important; }
@keyframes float-a1 {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float-a2 {
  0%,100% { transform: translateY(0) rotate(1deg); }
  50%     { transform: translateY(-18px) rotate(-1deg); }
}

/* ── Section reveal line ── */
.section-reveal-line {
  display: block; width: 60px; height: 2px; margin: 0 auto 24px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  border-radius: 2px;
  animation: line-expand .8s ease both;
  transform-origin: center;
}
@keyframes line-expand {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── Glowing section headers ── */
.section-header h2 {
  position: relative;
}

/* ── CTA section enhanced ── */
.cta-section {
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.12), transparent 65%);
  transform: translate(-50%,-50%);
  animation: cta-breathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-breathe {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .8; }
  50%     { transform: translate(-50%,-50%) scale(1.3); opacity: .4; }
}

/* ── How-it-works connector ── */
.how-connector {
  width: 2px; height: 40px; margin: 0 auto;
  background: linear-gradient(to bottom, rgba(168,85,247,.6), rgba(168,85,247,.0));
  border-radius: 2px;
}

/* ── Nav glassmorphism enhanced ── */
.navbar.scrolled {
  background: rgba(8,8,8,.75) !important;
  backdrop-filter: blur(32px) saturate(1.6) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.6) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.4);
}

/* ── Testimonials enhanced ── */
.testi-card::before {
  content: '"'; position: absolute; top: -10px; left: 20px;
  font-size: 80px; color: rgba(168,85,247,.12);
  font-family: Georgia, serif; line-height: 1; pointer-events: none;
}
.testi-card { position: relative; overflow: hidden; }

/* ══════════════════════════════════════════════════
   APP DEMO SECTION
   ══════════════════════════════════════════════════ */
.app-demo-section { padding: 100px 0; }

.demo-wrapper { max-width: 900px; margin: 0 auto; }

/* Browser chrome */
.demo-browser {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(168,85,247,.08),
              0 0 80px rgba(168,85,247,.06);
}
.demo-browser-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; gap: 12px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }
.demo-url-bar {
  flex: 1; max-width: 280px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px; padding: 4px 10px;
  font-size: 11px; color: rgba(255,255,255,.35);
  display: flex; align-items: center; gap: 6px; margin: 0 auto;
}

/* App screen */
.demo-screen {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.demo-panel-left {
  padding: 20px; border-right: 1px solid rgba(255,255,255,.05);
  display: flex; flex-direction: column; gap: 12px;
}
.demo-panel-right {
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
}
.demo-panel-label {
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.25); margin-bottom: 2px;
}
.demo-field { display: flex; flex-direction: column; gap: 5px; }
.demo-field-label { font-size: 11px; color: rgba(255,255,255,.4); }
.demo-input {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px; padding: 8px 10px; min-height: 34px;
  font-size: 12px; color: rgba(255,255,255,.75);
  display: flex; align-items: center; gap: 1px;
  transition: border-color .2s;
}
.demo-input.active { border-color: rgba(168,85,247,.5); }
.demo-cursor {
  color: #a855f7; font-weight: 300; font-size: 14px;
  animation: cursor-blink .8s ease-in-out infinite;
}
@keyframes cursor-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

.demo-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 9px; font-size: 12.5px; font-weight: 700;
  font-family: inherit; cursor: default;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff; border: none; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(168,85,247,.3);
}
.demo-btn.clicked { transform: scale(.96); box-shadow: 0 2px 8px rgba(168,85,247,.2); }
.demo-btn.disabled { opacity: .4; }

/* Steps */
.demo-steps { display: flex; flex-direction: column; gap: 0; }
.demo-step {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 11px;
}
.demo-step:last-of-type { border-bottom: none; }
.demo-step-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.15); transition: background .3s;
}
.demo-step.running .demo-step-dot {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168,85,247,.8);
  animation: dot-pulse .8s ease-in-out infinite;
}
.demo-step.done .demo-step-dot {
  background: #22c55e;
  box-shadow: none; animation: none;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 4px rgba(168,85,247,.6); }
  50%      { box-shadow: 0 0 12px rgba(168,85,247,1); }
}
.demo-step-name { flex: 1; color: rgba(255,255,255,.5); }
.demo-step.running .demo-step-name { color: rgba(255,255,255,.85); font-weight: 600; }
.demo-step.done .demo-step-name { color: rgba(255,255,255,.5); }
.demo-step-status { font-size: 10px; color: rgba(255,255,255,.25); }
.demo-step.running .demo-step-status { color: #a855f7; }
.demo-step.done .demo-step-status { color: #22c55e; }

.demo-progress-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.demo-progress-bar {
  flex: 1; height: 3px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden;
}
.demo-progress-fill {
  height: 100%; width: 0%; border-radius: 2px;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  transition: width .4s ease;
}
.demo-progress-pct { font-size: 10px; color: rgba(255,255,255,.4); min-width: 28px; text-align: right; }

/* Preview states */
.demo-preview-idle {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; color: rgba(255,255,255,.25); font-size: 11px;
  background: rgba(0,0,0,.3); border-radius: 8px; border: 1px solid rgba(255,255,255,.05);
}
.demo-preview-live {
  flex: 1; position: relative; border-radius: 8px; overflow: hidden;
  background: #0a0a0a; border: 1px solid rgba(255,255,255,.05);
}
.demo-live-frame {
  width: 100%; height: 100%; min-height: 200px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
  animation: frame-shimmer 1.5s ease-in-out infinite;
}
@keyframes frame-shimmer {
  0%,100% { opacity: .6; }
  50%     { opacity: 1; }
}
.demo-processing-badge {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.75); border: 1px solid rgba(168,85,247,.3);
  border-radius: 20px; padding: 4px 12px;
  font-size: 10.5px; font-weight: 500; color: #c084fc;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.demo-spinner {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid rgba(168,85,247,.3); border-top-color: #a855f7;
  animation: spin .6s linear infinite;
}

/* Result */
.demo-preview-result { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.demo-video-card {
  flex: 1; position: relative; border-radius: 10px; overflow: hidden;
  min-height: 180px;
  background: linear-gradient(160deg, #1a0a2e, #0d0820, #1a0818);
}
.demo-video-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,
    rgba(168,85,247,.15) 0%, rgba(0,0,0,0) 40%,
    rgba(236,72,153,.1) 100%);
}
.demo-headline-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.9), transparent);
  font-size: 12px; font-weight: 800; color: #fff; line-height: 1.3;
  letter-spacing: -.01em;
}
.demo-video-label {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(34,197,94,.3);
  color: #4ade80; font-size: 9px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
}
.demo-result-actions { display: flex; gap: 6px; }
.demo-action-btn {
  flex: 1; padding: 7px 0; border-radius: 7px; font-size: 11px; font-weight: 600;
  font-family: inherit; cursor: default;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: #d4d4d8; display: flex; align-items: center; justify-content: center; gap: 5px;
}
.demo-action-btn.primary {
  background: linear-gradient(135deg, #a855f7, #ec4899); border: none; color: #fff;
}

/* Step indicators */
.demo-indicators {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-top: 32px;
}
.demo-ind {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: .3; transition: opacity .4s ease;
}
.demo-ind.active { opacity: 1; }
.demo-ind-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,.4);
  transition: all .4s ease;
}
.demo-ind.active .demo-ind-num {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-color: transparent; color: #fff;
  box-shadow: 0 0 16px rgba(168,85,247,.5);
}
.demo-ind span {
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,.4);
  white-space: nowrap; transition: color .4s;
}
.demo-ind.active span { color: rgba(255,255,255,.8); }
.demo-ind-line {
  flex: 1; height: 1px; max-width: 80px;
  background: linear-gradient(90deg, rgba(168,85,247,.3), rgba(168,85,247,.1));
  margin: 0 8px; margin-bottom: 22px;
}

@media (max-width: 640px) {
  .demo-screen { grid-template-columns: 1fr; }
  .demo-panel-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,.05); }
  .demo-indicators { gap: 0; }
  .demo-ind-line { max-width: 32px; }
  .demo-ind span { font-size: 9px; }
}
