/* ==========================================================================
   HOSTIPTV.FUN — SISTEMA DE DESIGN & ESTILOS GLOBAIS
   Arquitetura: Design Tokens, Dark Mode Cloud Infrastructure, Glassmorphism & Alta Conversão
   ========================================================================== */

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

:root {
  /* Cores Base */
  --bg-deep: #070a12;
  --bg-surface: #0e1424;
  --bg-surface-elevated: #151f36;
  --bg-card: rgba(19, 27, 48, 0.72);
  --bg-card-hover: rgba(28, 40, 70, 0.9);

  /* Acentos de Marca Host IPTV */
  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.25);
  --accent-blue: #4facfe;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-green-bright: #38ef7d;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #6366f1 100%);
  --accent-gradient-btn: linear-gradient(135deg, #00f2fe 0%, #0099ff 100%);
  --wpp-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);

  /* Tipografia */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Texto e Contrastes */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #38bdf8;

  /* Bordas e Sombras */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 242, 254, 0.5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.22);
  --shadow-wpp: 0 0 25px rgba(16, 185, 129, 0.4);

  /* Espaçamento e Raios */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --container-max: 1200px;
}

/* Reset Universal & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #111a30 0%, #070a12 75%);
}

/* Tipografia Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 0.85rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: var(--text-highlight);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* Container de Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO STICKY
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 10, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  transition: background 0.3s ease;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 1.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   BOTÕES & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  min-height: 48px;
  min-width: 48px;
  line-height: 1.2;
}

.btn-primary {
  background: var(--wpp-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-wpp);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  color: #ffffff;
}

.btn-accent {
  background: var(--accent-gradient-btn);
  color: #070a12;
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
  color: #070a12;
}

.btn-header {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  background: var(--wpp-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-header:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-card {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--wpp-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-card:hover {
  color: #fff;
  transform: scale(1.02);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-server-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 2rem;
}

.hero-cta-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.stars {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.hero-media-wrap {
  position: relative;
}

.hero-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 242, 254, 0.25);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  background: var(--bg-surface);
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-img-frame:hover .hero-img {
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(14, 20, 36, 0.92);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 242, 254, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   SEÇÕES GERAIS DE CONTEÚDO
   ========================================================================== */
.content-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

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

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* Grid de Recursos / Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.card-title {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

/* Duas Colunas com Imagem & Texto */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.two-col-grid.reverse {
  direction: rtl;
}

.two-col-grid.reverse > * {
  direction: ltr;
}

.col-text h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.col-text ul, .col-text ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.col-text li {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.col-media {
  position: relative;
}

.col-media img {
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   TABELAS SEMÂNTICAS (AI OVERVIEWS & CORE WEB VITALS)
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.98rem;
}

.table-custom th, .table-custom td {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.table-custom th {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-heading);
}

.table-custom tr:last-child td {
  border-bottom: none;
}

.table-custom tr:hover td {
  background: rgba(0, 242, 254, 0.03);
}

.table-badge-ok {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ==========================================================================
   CARDS DE PLANOS & TESTE R$ 0,00
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(21, 31, 54, 0.95) 0%, rgba(14, 20, 36, 0.95) 100%);
  border: 2px solid var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.pricing-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient-btn);
  color: #070a12;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 0.35rem 1.25rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.pricing-name {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.pricing-value {
  font-size: 2.3rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  font-size: 0.98rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.check-icon {
  color: #38ef7d;
  font-weight: bold;
}

/* ==========================================================================
   MEGA FAQ ACCORDION (10-15 PERGUNTAS COM ARIA)
   ========================================================================== */
.faq-section {
  max-width: 900px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.35rem 1.6rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.faq-icon {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: #f43f5e;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
}

.faq-body {
  padding: 0 1.6rem 1.5rem;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   DEPOIMENTOS & PROVA SOCIAL
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-text {
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #070a12;
}

.author-info h4 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER INSTITUCIONAL E-E-A-T
   ========================================================================== */
.site-footer {
  background: #05070d;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-top: 1rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.wpp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wpp-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-wpp);
  transition: all 0.3s ease;
  animation: floatBounce 3s infinite ease-in-out;
}

.wpp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.7);
  color: #fff;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .badge-server-live {
    margin: 0 auto 1.5rem;
  }

  .hero-cta-btns {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .two-col-grid, .two-col-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 10, 18, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-floating-card {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
