/* ==============================================
   IPTVTESTE.COM.BR — Tema Roxo/Violeta
   ============================================== */
:root {
  --p: #7c3aed;
  --p2: #6d28d9;
  --p3: #8b5cf6;
  --p-lt: #ede9fe;
  --dk: #0f0a1e;
  --dk2: #1e1a2e;
  --sl: #4b5563;
  --mt: #9ca3af;
  --lt: #f9fafb;
  --bd: #e5e7eb;
  --wh: #fff;
  --font: 'Inter', sans-serif;
  --f2: 'Lexend', sans-serif;
  --max: 1100px;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--sl); line-height: 1.75; background: var(--wh); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--r); }

.c { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.sec { padding: 4.5rem 0; }
.sec-lt { padding: 4.5rem 0; background: var(--lt); }
.sec-dk { padding: 4.5rem 0; background: var(--dk); }

/* TIPOGRAFIA */
h1, h2, h3 { font-family: var(--f2); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: var(--dk); margin-bottom: .8rem; }
h2 em { color: var(--p); font-style: normal; }
h2.lt { color: #fff; }
h3 { font-size: 1.05rem; font-weight: 600; color: var(--dk); margin-bottom: .5rem; }
p { margin-bottom: 1rem; font-size: .96rem; }
.lead { font-size: 1.05rem; color: var(--sl); line-height: 1.85; }
.muted { color: var(--mt); font-size: .88rem; }

/* BOTÕES */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  padding: .75rem 1.5rem; border-radius: var(--r);
  border: none; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--p); color: #fff; }
.btn-primary:hover { background: var(--p2); transform: translateY(-1px); }
.btn-secondary { background: transparent; border: 1.5px solid var(--bd); color: var(--sl); }
.btn-secondary:hover { border-color: var(--p); color: var(--p); }
.btn-ghost-lt { background: transparent; border: 1.5px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.btn-ghost-lt:hover { border-color: #fff; color: #fff; }
.btn-lg { font-size: .95rem; padding: .85rem 1.8rem; }
.btn-xl { font-size: 1rem; padding: .95rem 2.2rem; border-radius: 14px; }

/* HEADER */
.hdr {
  position: sticky; top: 0; z-index: 9000;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd); transition: box-shadow .3s;
}
.hdr.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.hdr-row { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.logo { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; background: var(--p); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-family: var(--f2); font-size: .95rem; font-weight: 700; color: var(--dk); }
.logo-sub { display: block; font-size: .62rem; color: var(--mt); font-family: var(--font); font-weight: 400; }
.hdr-nav { display: flex; align-items: center; gap: .1rem; margin: 0 auto; }
.hdr-nav a { font-size: .82rem; font-weight: 500; color: var(--sl); padding: .4rem .75rem; border-radius: 8px; transition: all .2s; }
.hdr-nav a:hover { color: var(--p); background: var(--p-lt); }
.hdr-nav a.active { color: var(--p); font-weight: 600; }
.hdr-cta { flex-shrink: 0; }
.ham { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; margin-left: auto; }
.ham span { display: block; width: 21px; height: 2px; background: var(--dk); border-radius: 2px; transition: all .3s; }
.ham.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ham.open span:nth-child(2) { opacity: 0; }
.ham.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.hdr-nav.open {
  display: flex; flex-direction: column; align-items: flex-start;
  position: fixed; top: 66px; left: 0; right: 0; background: var(--wh);
  border-top: 1px solid var(--bd); padding: 1rem 1.5rem 2rem; z-index: 8999;
  box-shadow: 0 20px 40px rgba(0,0,0,.08);
}
.hdr-nav.open a { width: 100%; padding: .7rem 1rem; font-size: .92rem; }

/* HERO — HOMEPAGE */
.hero-home {
  background: var(--dk); padding: 5rem 0 0;
  position: relative; overflow: hidden;
}
.hero-home::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(124,58,237,.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-home-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; padding-bottom: 4rem; }
.hero-tag { display: inline-flex; align-items: center; gap: .4rem; background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: #c4b5fd; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: .35rem .85rem; border-radius: 50px; margin-bottom: 1.3rem; }
.hero-tag-dot { width: 6px; height: 6px; background: var(--p3); border-radius: 50%; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
.hero-home h1 { font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 1.2rem; letter-spacing: -.02em; }
.hero-home h1 em { color: var(--p3); font-style: normal; }
.hero-home .lead { color: rgba(255,255,255,.6); margin-bottom: 2rem; max-width: 500px; }
.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.hero-stats dt { font-family: var(--f2); font-size: 1.6rem; font-weight: 700; color: var(--p3); line-height: 1; }
.hero-stats dd { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .2rem; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img { border-radius: 16px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.hero-pill {
  position: absolute; display: flex; align-items: center; gap: .6rem;
  background: rgba(15,10,30,.85); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(8px); border-radius: 50px; padding: .5rem 1rem;
  font-size: .78rem; font-weight: 600; color: #fff; white-space: nowrap;
}
.hero-pill-1 { top: 1.2rem; left: 1.2rem; }
.hero-pill-2 { bottom: 1.2rem; right: 1.2rem; }
.hero-pill-ic { width: 28px; height: 28px; background: var(--p); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }

/* SEÇÃO — SOBRE / PROPOSTA */
.prop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.prop-body h2 { margin-bottom: 1.2rem; }
.prop-body p { font-size: .94rem; color: var(--sl); line-height: 1.85; margin-bottom: 1rem; }
.prop-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: .75rem; }
.prop-list li { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; color: var(--sl); }
.prop-list li::before { content: ''; width: 20px; height: 20px; background: var(--p-lt); border-radius: 50%; flex-shrink: 0; margin-top: .15rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237c3aed'%3E%3Cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.prop-img img { width: 100%; border-radius: 16px; }

/* APARELHOS */
.devices-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 2.5rem; }
.device { background: var(--wh); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; transition: all .25s; }
.device:hover { border-color: var(--p); box-shadow: 0 8px 24px rgba(124,58,237,.1); transform: translateY(-3px); }
.device img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.device-body { padding: 1rem 1.1rem; }
.device-body h3 { font-size: .9rem; margin-bottom: .3rem; }
.device-body p { font-size: .8rem; color: var(--mt); margin: 0; line-height: 1.6; }

/* DEPOIMENTOS */
.tests-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.test { background: var(--wh); border: 1px solid var(--bd); border-radius: var(--r); padding: 1.5rem; }
.test:hover { border-color: rgba(124,58,237,.2); }
.test-stars { color: #f59e0b; font-size: .85rem; margin-bottom: .7rem; letter-spacing: .05em; }
.test p { font-size: .88rem; color: var(--sl); font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.test-author { font-size: .82rem; font-weight: 600; color: var(--dk); }
.test-role { font-size: .76rem; color: var(--mt); }

/* HERO ARTIGO */
.hero-article { background: var(--dk); padding: 4rem 0 3.5rem; }
.hero-article-inner { max-width: 780px; }
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: rgba(255,255,255,.35); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,.35); }
.breadcrumb a:hover { color: var(--p3); }
.breadcrumb-sep { color: rgba(255,255,255,.2); }
.hero-article h1 { font-size: clamp(1.7rem,4vw,2.8rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1rem; }
.hero-article h1 em { color: var(--p3); font-style: normal; }
.hero-article .lead { color: rgba(255,255,255,.6); margin-bottom: 2rem; max-width: 650px; }
.article-meta { display: flex; gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.07); }
.article-meta span { font-size: .78rem; color: rgba(255,255,255,.3); }

/* CONTEÚDO ARTIGO */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: start; padding: 4rem 0; }
.article-content h2 { font-size: clamp(1.2rem,2.5vw,1.55rem); font-weight: 700; color: var(--dk); margin: 2.5rem 0 .9rem; padding-left: .9rem; border-left: 3px solid var(--p); }
.article-content h3 { font-size: 1.05rem; font-weight: 600; color: var(--dk); margin: 1.8rem 0 .7rem; }
.article-content p { font-size: .95rem; color: var(--sl); line-height: 1.85; margin-bottom: 1.1rem; }
.article-content ul { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.article-content li { font-size: .93rem; color: var(--sl); margin-bottom: .45rem; line-height: 1.75; }
.article-content strong { color: var(--dk); }
.article-content a { color: var(--p); text-decoration: underline; }
.article-img { border-radius: 14px; width: 100%; margin: 1.5rem 0; }
.callout { border-left: 3px solid var(--p); background: var(--p-lt); border-radius: 0 var(--r) var(--r) 0; padding: 1rem 1.3rem; margin: 1.5rem 0; }
.callout p { font-size: .88rem; color: #4c1d95; margin: 0; line-height: 1.7; }
.callout-tip { border-color: #10b981; background: #ecfdf5; }
.callout-tip p { color: #065f46; }
.callout-warn { border-color: #f59e0b; background: #fffbeb; }
.callout-warn p { color: #78350f; }

/* SIDEBAR */
.sidebar { position: sticky; top: 90px; }
.sidebar-box { background: var(--lt); border: 1px solid var(--bd); border-radius: var(--r); padding: 1.5rem; margin-bottom: 1.2rem; }
.sidebar-box h4 { font-family: var(--f2); font-size: .9rem; font-weight: 700; color: var(--dk); margin-bottom: 1rem; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: .4rem; }
.toc-list a { font-size: .83rem; color: var(--sl); transition: color .2s; }
.toc-list a:hover { color: var(--p); }
.sidebar-cta { background: var(--p); border-radius: var(--r); padding: 1.5rem; text-align: center; }
.sidebar-cta h4 { color: #fff; font-size: .95rem; margin-bottom: .5rem; }
.sidebar-cta p { color: rgba(255,255,255,.7); font-size: .82rem; margin-bottom: 1.2rem; }
.sidebar-cta .btn { background: #fff; color: var(--p); width: 100%; justify-content: center; font-size: .85rem; }
.sidebar-cta .btn:hover { background: var(--p-lt); }

/* FAQ */
.faq-wrap { max-width: 760px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--bd); }
.faq-item:first-child { border-top: 1px solid var(--bd); }
.faq-btn { width: 100%; text-align: left; background: none; border: none; font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--dk); padding: 1.1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-btn::after { content: '+'; font-size: 1.3rem; color: var(--p); flex-shrink: 0; transition: transform .25s; font-weight: 300; }
.faq-item.open .faq-btn::after { transform: rotate(45deg); }
.faq-ans { display: none; padding-bottom: 1rem; font-size: .88rem; color: var(--mt); line-height: 1.8; }
.faq-item.open .faq-ans { display: block; }

/* TABLE */
.art-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .85rem; }
.art-table th { background: var(--dk); color: #fff; font-family: var(--f2); font-size: .8rem; padding: .85rem 1rem; text-align: left; }
.art-table th:not(:first-child) { text-align: center; }
.art-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--bd); color: var(--sl); }
.art-table td:not(:first-child) { text-align: center; }
.art-table tr:last-child td { border: none; }
.art-table tr:hover td { background: var(--lt); }
.art-table .yes { color: #10b981; font-weight: 700; }
.art-table .no { color: #ef4444; }
.art-table .hl td { background: rgba(124,58,237,.04); }

/* INLINE CTA */
.inline-cta { background: var(--dk); border-radius: 16px; padding: 2rem; margin: 2.5rem 0; text-align: center; }
.inline-cta h3 { color: #fff; font-size: 1.1rem; margin-bottom: .5rem; }
.inline-cta p { color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: 1.2rem; }

/* CTA FINAL */
.cta-final { background: var(--p); border-radius: 20px; padding: 4rem 3rem; text-align: center; }
.cta-final h2 { color: #fff; margin-bottom: .8rem; }
.cta-final p { color: rgba(255,255,255,.75); margin-bottom: 2rem; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-final .btn { background: #fff; color: var(--p); font-size: 1rem; padding: .95rem 2rem; }
.cta-final .btn:hover { background: var(--p-lt); }
.cta-chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1.2rem; }
.cta-chip { background: rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: .75rem; padding: .25rem .7rem; border-radius: 50px; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card { background: var(--wh); border: 1px solid var(--bd); border-radius: var(--r); overflow: hidden; transition: all .25s; }
.blog-card:hover { border-color: var(--p); box-shadow: 0 8px 24px rgba(124,58,237,.1); transform: translateY(-3px); }
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 0; }
.blog-card-body { padding: 1.3rem; }
.blog-tag { display: inline-block; background: var(--p-lt); color: var(--p); font-size: .7rem; font-weight: 700; padding: .2rem .65rem; border-radius: 50px; margin-bottom: .65rem; }
.blog-card h3 { font-size: .92rem; font-weight: 600; color: var(--dk); margin-bottom: .5rem; line-height: 1.45; }
.blog-card h3 a:hover { color: var(--p); }
.blog-card p { font-size: .82rem; color: var(--mt); line-height: 1.6; margin: 0; }
.read-more { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--p); margin-top: .8rem; }

/* FOOTER */
.footer { background: var(--dk); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--f2); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.footer-col a { display: block; font-size: .84rem; color: rgba(255,255,255,.4); margin-bottom: .5rem; transition: color .2s; }
.footer-col a:hover { color: var(--p3); }
.footer-desc { font-size: .83rem; color: rgba(255,255,255,.3); line-height: 1.75; margin-top: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; font-size: .78rem; color: rgba(255,255,255,.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* FLOAT + MOBILE BAR */
.float-wa {
  position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 9999;
  display: flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff; font-weight: 600; font-size: .85rem;
  padding: .8rem 1.3rem; border-radius: 50px;
  box-shadow: 0 8px 28px rgba(37,211,102,.4); text-decoration: none; transition: all .2s;
}
.float-wa:hover { background: #1db954; transform: scale(1.03); }
.mob-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  padding: .65rem 1rem; background: rgba(15,10,30,.97); border-top: 1px solid rgba(255,255,255,.07);
}
.mob-bar a {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--p); color: #fff; font-weight: 600; font-size: .88rem;
  padding: .85rem; border-radius: 10px; text-decoration: none;
}

/* RESPONSIVE */
@media(max-width:1024px){
  .hero-home-inner { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .prop-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:900px){
  .hdr-nav, .hdr-cta { display: none; }
  .ham { display: flex; }
  .devices-grid { grid-template-columns: 1fr 1fr; }
  .tests-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:640px){
  .devices-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .cta-final { padding: 2.5rem 1.5rem; }
  .float-wa span { display: none; }
  .float-wa { border-radius: 50%; padding: .85rem; bottom: 5.5rem; }
  .mob-bar { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
