/* ============================================
   CVTV IPTV — Neon Justice Design System
   #210B38 base | #BC47F5 primary | #F8B7FF accent
   ============================================ */

:root {
  --bg-dark: #210B38;
  --bg-card: rgba(33, 11, 56, 0.6);
  --neon-primary: #BC47F5;
  --neon-accent: #F8B7FF;
  --neon-cyan: #00F5FF;
  --neon-green: #39FF14;
  --text: #F0E6F6;
  --text-muted: #B8A4C4;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 8px;
  --glow: 0 0 20px rgba(188, 71, 245, 0.4);
  --glow-strong: 0 0 30px rgba(188, 71, 245, 0.6);
  --font: 'Inter', -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Floating triggers (escassez / prova social) ---- */
.floating-triggers {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 1rem;
  pointer-events: none;
}

.trigger-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  animation: floatBadge 6s ease-in-out infinite;
}

.trigger-badge strong {
  color: var(--neon-green);
}

.trigger-assinatura {
  animation-delay: 0s;
}

.trigger-oferta {
  animation-delay: 2s;
  color: var(--neon-accent);
}

.trigger-oferta strong {
  color: var(--neon-accent);
}

.trigger-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-primary);
  box-shadow: var(--glow);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-4px); opacity: 0.9; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@media (max-width: 768px) {
  .floating-triggers {
    flex-direction: column;
    top: 70px;
  }
}

/* ---- WhatsApp flutuante ---- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 10px;
  padding: 0.4rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem 0;
  background: rgba(33, 11, 56, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.5rem;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
  display: flex;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--bg-dark);
  box-shadow: var(--glow);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--neon-accent);
}

.btn-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.btn-menu::before,
.btn-menu::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.btn-menu::before { top: 12px; }
.btn-menu::after { bottom: 12px; }

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 5rem 1.5rem 1.5rem;
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.3s;
  }
  .nav.is-open { transform: translateX(0); }
  .btn-menu { display: block; }
}

/* ---- Glassmorphism utility ---- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-primary), #A035D4);
  color: #fff;
  box-shadow: 0 0 20px rgba(188, 71, 245, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(188, 71, 245, 0.5);
}

.btn-glow {
  box-shadow: 0 0 25px rgba(188, 71, 245, 0.45);
}

.btn-glow:hover {
  box-shadow: 0 0 35px rgba(188, 71, 245, 0.6);
}

.btn-secondary {
  background: var(--glass);
  color: var(--neon-accent);
  border: 1px solid rgba(248, 183, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(248, 183, 255, 0.1);
  border-color: var(--neon-accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(248, 183, 255, 0.2);
}

.btn-block {
  width: 100%;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 20%, rgba(188, 71, 245, 0.15), transparent 50%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(248, 183, 255, 0.08), transparent 40%),
              var(--bg-dark);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(33, 11, 56, 0.75) 0%,
    rgba(33, 11, 56, 0.85) 50%,
    var(--bg-dark) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 245, 255, 0.3);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--neon-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-cta .btn {
  margin-bottom: 0.5rem;
}

.hero-cta-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--neon-primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.5; top: 16px; }
}

/* ---- Sections ---- */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ---- Benefits ---- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.benefit-card {
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.benefit-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(188, 71, 245, 0.15);
  border-color: rgba(188, 71, 245, 0.3);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  color: var(--neon-primary);
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
}

.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--neon-accent);
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
}

/* ---- Catalog / Carousel ---- */
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.catalog-tag {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.carousel-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
  width: max-content;
  animation: carousel 40s linear infinite;
}

.carousel-inner {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
}

.poster {
  flex-shrink: 0;
  width: 140px;
  height: 200px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: posterShine 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.2s);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(33, 11, 56, 0.85) 100%);
  pointer-events: none;
}

.poster span { position: relative; z-index: 1; }

.poster-premier { background-image: url('../img/premier.jpg'); }
.poster-champions { background-image: url('../img/champions.png'); }
.poster-nba { background-image: url('../img/nba.jpg'); }
.poster-ufc { background-image: url('../img/ufc.webp'); }
.poster-f1 { background-image: url('../img/F1.jpg'); }
.poster-netflix { background-image: url('../img/netflix.jpg'); }
.poster-disney { background-image: url('../img/disney.webp'); }
.poster-hbo { background-image: url('../img/hbo.webp'); }
.poster-4k { background-image: url('../img/4k.webp'); }
.poster-espn { background-image: url('../img/espn.webp'); }
.poster-sportv { background-image: url('../img/sportv.jpg'); }
.poster-globo { background-image: url('../img/globo.webp'); }

.poster:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(188, 71, 245, 0.3);
  border-color: var(--neon-primary);
}

@keyframes carousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes posterShine {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 15px rgba(188, 71, 245, 0.2); }
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  padding: 2rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 35px rgba(188, 71, 245, 0.2);
  border-color: rgba(188, 71, 245, 0.25);
}

.price-featured {
  border-color: rgba(248, 183, 255, 0.35);
  box-shadow: 0 0 30px rgba(248, 183, 255, 0.15);
}

.price-featured:hover {
  box-shadow: 0 0 40px rgba(248, 183, 255, 0.25);
  border-color: var(--neon-accent);
}

.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent));
  color: var(--bg-dark);
}

.price-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--neon-accent);
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.price-devices {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
}

.price-value {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.price-value .currency {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.price-value .amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.price-value .period {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-save {
  font-size: 0.85rem;
  color: var(--neon-green);
  margin-bottom: 1rem;
}

.price-card .btn {
  width: 100%;
}

/* ---- Checkout modal (uma etapa) ---- */
.checkout-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.checkout-backdrop[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.checkout-backdrop[data-open="true"] .checkout-modal {
  transform: scale(1);
  opacity: 1;
}

.checkout-modal {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.checkout-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--glass);
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s;
}

.checkout-close::before {
  content: '×';
}

.checkout-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.checkout-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--neon-accent);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checkout-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checkout-label input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-label input:focus {
  outline: none;
  border-color: var(--neon-primary);
  box-shadow: 0 0 0 3px rgba(188, 71, 245, 0.2);
}

.checkout-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.checkout-summary strong {
  color: var(--neon-accent);
}

/* ---- Proof / Testimonial ---- */
.testimonial {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 2rem;
  border-left: 4px solid var(--neon-primary);
}

.testimonial p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.testimonial footer {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.guarantee {
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 2rem;
  text-align: center;
}

.guarantee-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.guarantee h3 {
  font-size: 1rem;
  color: var(--neon-green);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.guarantee p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.security-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.security-badge {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* ---- Speed test ---- */
.speedtest-box {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.speedtest-box .section-title {
  margin-bottom: 0.5rem;
}

.speedtest-box p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.speedtest-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.speedtest-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.speedtest-value small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.speedtest-verdict {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover {
  border-color: rgba(188, 71, 245, 0.3);
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--neon-primary);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-urgency {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-urgency strong {
  color: var(--neon-cyan);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--neon-accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}
