/* ============================================================
   IPTV MAX — styles.css
   Fonte: Bebas Neue (títulos) + Familjen Grotesk (corpo)
   ============================================================ */

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080c14;
  --bg2: #0d1220;
  --card: #111827;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #46ef8c;
  --accent2: #1ef591;
  --gold: #f59e0b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Familjen Grotesk', sans-serif;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ============ NOISE OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ============ GLOW ORBS ============ */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(124, 58, 237, 0.15);
  top: -200px;
  right: -100px;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 229, 255, 0.08);
  bottom: 20%;
  left: -150px;
}

/* ============ HEADER / NAV ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: opacity .2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 99;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all .3s;
  }

  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    display: flex;
  }

  .mobile-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
  }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px 40px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeUp .6s ease both;
}

.hero-badge::before {
  content: '●';
  font-size: 0.5rem;
  animation: pulse 1.5s infinite;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.02em;
  animation: fadeUp .7s .1s ease both;
}

h1 span {
  color: var(--accent);
}

.hero-sub {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
  animation: fadeUp .7s .2s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background .2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: fadeUp .7s .4s ease both;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.stat-img {
  width: 150px;      /* ajusta o tamanho */
  height: auto;
  display: block;
  margin: 0 auto;    /* centraliza */
}

/* Hero Visual / Imagem familia */
.hero-visual {
  position: relative;
  animation: fadeLeft .8s .2s ease both;
}

@media (max-width: 900px) {
  .hero-visual {
    display: none;
  }
}

.tv-mockup {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(70, 239, 140, 0.08);
}

.tv-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
}

.tv-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(70, 239, 140, 0.04) 0%, rgba(124, 58, 237, 0.12) 100%);
  pointer-events: none;
}

.tv-badge {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(70, 239, 140, 0.3);
  border-radius: 100px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.tv-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.tv-badge-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tv-badge-text span {
  color: var(--accent);
}

/* ============ SECTIONS GENERAL ============ */
section {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

/* ============ AD SLOTS ============ */
.ad-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.ad-inner {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color .2s;
}

.ad-inner:hover {
  border-color: rgba(0, 229, 255, 0.2);
}

.ad-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ad-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.ad-placeholder {
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-style: italic;
}

.ad-placeholder-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.1);
}

.ad-cta-mini {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(0, 229, 255, 0.4);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 6px 14px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s, border-color .2s;
}

.ad-cta-mini:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ RANKING ============ */
.ranking-section {
  padding: 80px 0;
}

.ranking-header {
  text-align: center;
  margin-bottom: 48px;
}

.ranking-header p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1rem;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: border-color .2s, transform .2s;
  cursor: pointer;
}

.rank-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(4px);
}

.rank-card.top1 {
  border-color: rgba(0, 229, 255, 0.4);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), var(--card));
}

.rank-num {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--muted);
  min-width: 36px;
}

.rank-card.top1 .rank-num {
  color: var(--accent);
}

.rank-card.top2 .rank-num {
  color: #94a3b8;
}

.rank-card.top3 .rank-num {
  color: var(--gold);
}

.rank-info {
  flex: 1;
}

.rank-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

.rank-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.rank-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.rank-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 229, 255, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 100px;
}

.rank-card.top1 .rank-label {
  background: var(--accent);
  color: #000;
}

.rank-score {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
}

.rank-card.top1 .rank-score {
  color: var(--accent);
}

/* ============ ABOUT ============ */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.about-stat-val {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
}

.about-stat-lbl {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.about-card h4 {
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============ DEVICES ============ */
.devices-section {
  padding: 80px 0;
}

.devices-header {
  text-align: center;
  margin-bottom: 48px;
}

.devices-category-label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}

.device-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color .2s, background .2s;
}

.device-link:hover {
  border-color: rgba(0, 229, 255, 0.3);
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent);
}

.device-icon {
  font-size: 1.2rem;
}

/* ============ FAQ ============ */
.faq-section {
  padding: 80px 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  gap: 16px;
  transition: color .2s;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform .3s;
  flex-shrink: 0;
  color: var(--muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ============ CTA SECTION ============ */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 20px;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h5 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  margin-right: 16px;
  transition: color .2s;
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}