/* =========================================================
   StreamPrime — Landing IPTV & UniTV
   Tema: Preto & Vermelho · Elegante · Sem neon
   ========================================================= */

:root {
  --bg:        #0a0a0a;
  --bg-soft:   #111111;
  --bg-card:   #151515;
  --bg-elev:   #1a1a1a;
  --line:      #232323;
  --line-2:    #2a2a2a;

  --text:      #f5f5f5;
  --text-2:    #c9c9c9;
  --text-3:    #8a8a8a;

  --red:       #e11d2e;
  --red-2:     #b81020;
  --red-soft:  #2a0c10;

  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,.35);
  --shadow:    0 12px 30px -10px rgba(0,0,0,.55);
  --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  --shadow-red:0 18px 40px -16px rgba(225,29,46,.45);

  --container: 1200px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-2); }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ========== Header ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  background: transparent;
  transition: background .35s var(--ease), padding .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10,10,10,.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: var(--shadow-red);
  color: #fff;
}
.logo-mark .icon { width: 18px; height: 18px; }
.logo-text { font-family: 'Sora', sans-serif; font-size: 1.15rem; }

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: .95rem; color: var(--text-2); font-weight: 500;
  transition: color .2s var(--ease);
  position: relative;
}
.nav a:hover { color: var(--text); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; padding: 8px; border-radius: 8px; color: var(--text); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px;
  font-weight: 600; font-size: .95rem;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: 18px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn.block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 45px -16px rgba(225,29,46,.55); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: #3a3a3a; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--red); color: #fff; background: rgba(225,29,46,.08); }

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(225,29,46,.18), transparent 60%),
    radial-gradient(50% 50% at 90% 30%, rgba(225,29,46,.12), transparent 60%),
    linear-gradient(180deg, #0a0a0a 0%, #0a0a0a 60%, #0d0d0d 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px; border-radius: 999px;
  background: var(--red-soft); color: #ff8a95;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid rgba(225,29,46,.25);
  margin-bottom: 18px;
}
.hero-sub { font-size: 1.1rem; max-width: 540px; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}
.stat-num {
  display: block; font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: #fff; letter-spacing: -.02em;
}
.stat-label { font-size: .85rem; color: var(--text-3); }

.hero-visual { position: relative; }
.hero-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.hero-image-wrap:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.hero-image-wrap img { width: 100%; height: auto; display: block; }
.hero-image-glow {
  position: absolute; inset: -20px; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(225,29,46,.35), transparent 70%);
  filter: blur(40px);
}

/* ========== Sections ========== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ========== Grids ========== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== Cards genéricos ========== */
.card, .diff-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.card:hover, .diff-card:hover {
  transform: translateY(-6px);
  border-color: #333;
  box-shadow: var(--shadow);
  background: var(--bg-elev);
}
.card h3, .diff-card h3 { margin: 16px 0 8px; }
.card p, .diff-card p { font-size: .95rem; }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--red-soft); color: #ff5d6d;
  display: grid; place-items: center;
  border: 1px solid rgba(225,29,46,.25);
}
.card-icon.lg { width: 60px; height: 60px; border-radius: 14px; }
.card-icon.lg .icon { width: 28px; height: 28px; }

/* ========== Testes ========== */
.tests-grid { gap: 28px; }
.test-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.test-card:hover { transform: translateY(-6px); border-color: #333; box-shadow: var(--shadow); }
.test-card.highlight {
  border-color: rgba(225,29,46,.4);
  background: linear-gradient(180deg, #181012, #131313);
  box-shadow: var(--shadow-red);
}
.test-card-head { display: flex; gap: 18px; align-items: center; }
.test-duration { font-size: 1rem; color: var(--text-2); }
.test-duration strong { color: #fff; }

.badge {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.badge-accent { background: var(--red-soft); color: #ff8a95; border-color: rgba(225,29,46,.3); }

.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.check-list li .icon { width: 18px; height: 18px; color: var(--red); margin-top: 2px; }

/* ========== Planos ========== */
.plans-block { margin-bottom: 24px; }
.plans-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.plans-header h3 { font-size: 1.4rem; }
.plans-sep { height: 1px; background: var(--line); margin: 56px 0; }

.plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.plan-card:hover { transform: translateY(-6px); border-color: #333; box-shadow: var(--shadow); }
.plan-card.featured {
  border-color: rgba(225,29,46,.5);
  background: linear-gradient(180deg, #1a1012, #131313);
  box-shadow: var(--shadow-red);
}
.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-red);
}
.plan-card h4 { font-size: 1.05rem; color: var(--text-2); font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .currency { font-size: .95rem; color: var(--text-3); }
.plan-price .value { font-family: 'Sora', sans-serif; font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.plan-price .period { font-size: .9rem; color: var(--text-3); margin-left: 4px; }

/* ========== Compatibility ========== */
.devices {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px;
}
.device {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  text-align: center;
}
.device span { font-size: .82rem; color: var(--text-2); font-weight: 500; }
.device-icon { color: var(--text-2); transition: color .3s var(--ease); }
.device-icon .icon { width: 32px; height: 32px; }
.device:hover { transform: translateY(-4px); border-color: var(--red); }
.device:hover .device-icon { color: var(--red); }

/* ========== Testimonials ========== */
.testimonials {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.testimonials-track {
  display: flex; gap: 20px; width: max-content;
  animation: marquee 50s linear infinite;
}
.testimonials:hover .testimonials-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testimonial {
  flex: 0 0 360px;
  display: flex; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.t-head strong { font-size: .95rem; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.stars .icon { width: 14px; height: 14px; fill: currentColor; }
.testimonial p { font-size: .9rem; color: var(--text-2); }

/* ========== FAQ ========== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.faq-item[open] { border-color: rgba(225,29,46,.4); background: var(--bg-elev); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; font-weight: 600; font-size: 1rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--red); color: #fff; border-color: var(--red); }
.faq-body { padding: 0 22px 22px; color: var(--text-2); font-size: .95rem; line-height: 1.7; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== CTA Final ========== */
.cta-final { padding: 80px 0; }
.cta-box {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 80px 32px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(225,29,46,.25), transparent 70%),
    linear-gradient(180deg, #1a0d10, #131313);
  border: 1px solid rgba(225,29,46,.25);
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { margin: 14px 0 16px; }
.cta-box p { max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ========== Footer ========== */
.site-footer {
  background: #070707;
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-about { margin-top: 14px; font-size: .9rem; max-width: 360px; }
.site-footer h4 { margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--text-2);
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--red); }
.footer-links .icon { width: 16px; height: 16px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--text-3); font-size: .85rem; }

/* ========== WhatsApp flutuante ========== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -10px rgba(37,211,102,.45);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float .icon { width: 28px; height: 28px; }

/* ========== Reveal animations ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ========== Responsivo ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .devices { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-wrap { transform: none; }
  .hero { padding: 130px 0 80px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(14px);
    padding: 24px; gap: 18px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open a { font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .devices { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .75rem; }
  .section { padding: 72px 0; }
  .cta-box { padding: 56px 22px; }
  .test-card, .plan-card { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonial { flex: 0 0 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .testimonials-track { animation: none; }
}
