/* ============================================================
   5PAES IPTV — Global Stylesheet
   Design: Dark Tech / Cyber — Rajdhani + DM Sans
   ============================================================ */

:root {
  --cyan:       #00d4ff;
  --cyan-dark:  #00a8cc;
  --green:      #00ff88;
  --orange:     #ff6b00;
  --bg:         #080c14;
  --bg2:        #0d1421;
  --bg3:        #121a2b;
  --card:       #141e30;
  --border:     rgba(0,212,255,.15);
  --text:       #e2e8f0;
  --muted:      #8899aa;
  --white:      #ffffff;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 8px 40px rgba(0,212,255,.12);
  --font-head:  'Rajdhani', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --max-w:      1200px;
  --wa-green:   #25d366;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }
ul { list-style: none; }

/* SKIP LINK */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--cyan); color: var(--bg); padding: .5rem 1rem;
  border-radius: var(--radius); font-weight: 700; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* CONTAINER */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* ============================================================ TOPBAR */
.topbar {
  background: linear-gradient(90deg, var(--cyan-dark), #005f8a);
  color: var(--white); font-size: .82rem; font-weight: 600;
  padding: .5rem 1.25rem; display: flex; justify-content: center;
  align-items: center; gap: 1.5rem; flex-wrap: wrap; text-align: center;
}
.topbar-btn {
  background: var(--white); color: var(--cyan-dark);
  padding: .25rem .9rem; border-radius: 50px; font-weight: 700;
  font-size: .8rem; white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
}
.topbar-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0,0,0,.3); color: var(--cyan-dark); }

/* ============================================================ HEADER */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(8,12,20,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: .75rem; padding-bottom: .75rem;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 700;
  color: var(--white); letter-spacing: 1px;
}
.logo em { color: var(--cyan); font-style: normal; }
.logo-icon { font-size: 1.8rem; }

/* NAV */
.main-nav ul { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text); font-size: .88rem; font-weight: 500;
  padding: .45rem .75rem; border-radius: 8px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--cyan); background: rgba(0,212,255,.08); }
.main-nav .nav-cta {
  background: var(--wa-green); color: var(--white) !important;
  padding: .5rem 1rem; border-radius: 50px; font-weight: 700;
  transition: transform .2s, box-shadow .2s !important;
}
.main-nav .nav-cta:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(37,211,102,.4); background: var(--wa-green) !important; }

/* SUBMENU */
.has-sub { position: relative; }
.submenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); z-index: 100;
  flex-direction: column !important; padding: .5rem;
}
.submenu li { width: 100%; }
.submenu a { display: block; padding: .5rem .75rem !important; border-radius: 6px; }
/* submenu gerenciado por JS */

/* NAV TOGGLE (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ BREADCRUMB */
.breadcrumb-nav { background: var(--bg2); border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: .25rem; padding: .6rem 0; font-size: .82rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span[aria-hidden] { color: var(--muted); }

/* ============================================================ HERO */
.hero {
  position: relative; overflow: hidden;
  padding: 5rem 0 4rem;
  background: var(--bg2);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% -20%, rgba(0,212,255,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,212,255,.1); border: 1px solid var(--border);
  color: var(--cyan); font-size: .8rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: .4rem 1rem; border-radius: 50px;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--cyan); }
.hero-lead { font-size: 1.1rem; color: var(--text); margin-bottom: 2rem; max-width: 520px; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.trust-item strong { color: var(--white); }

/* HERO IMAGE */
.hero-img-wrap { position: relative; }
.hero-img-wrap img {
  border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,212,255,.2);
  border: 1px solid var(--border);
}
.hero-badge-float {
  position: absolute; bottom: -1rem; left: -1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .75rem 1.2rem;
  display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow);
}
.badge-icon { font-size: 1.8rem; }
.badge-text strong { display: block; color: var(--white); font-size: .9rem; }
.badge-text span { color: var(--muted); font-size: .75rem; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.75rem; border-radius: 50px; font-weight: 700;
  font-size: .95rem; transition: transform .2s, box-shadow .2s; cursor: pointer;
  border: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,212,255,.4); color: var(--bg); }
.btn-wa {
  background: var(--wa-green); color: var(--white);
}
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,.4); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-outline:hover { background: rgba(0,212,255,.1); color: var(--cyan); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }

/* ============================================================ SECTIONS */
section { padding: 4.5rem 0; }
.section-alt { background: var(--bg2); }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--white); margin-bottom: .75rem;
  line-height: 1.2;
}
.section-title span { color: var(--cyan); }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 600px; margin-bottom: 3rem; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ============================================================ CARDS */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--cyan); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.card h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .9rem; }

/* FEATURE LIST CARD */
.feature-card .check-list { margin-top: 1rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: .6rem;
  color: var(--text); font-size: .92rem; padding: .35rem 0;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border: none; }
.check-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ============================================================ STATS */
.stats-bar {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem;
  text-align: center; margin: 3rem 0;
}
.stat-num { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--cyan); }
.stat-label { color: var(--muted); font-size: .85rem; margin-top: .25rem; }

/* ============================================================ TESTIMONIALS */
.testi-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.testi-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: .75rem; }
.testi-text { color: var(--text); font-size: .92rem; font-style: italic; margin-bottom: 1rem; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--bg); font-size: .9rem; flex-shrink: 0;
}
.testi-name { font-weight: 700; color: var(--white); font-size: .88rem; }
.testi-city { color: var(--muted); font-size: .78rem; }

/* ============================================================ FAQ */
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; color: var(--white);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  text-align: left; padding: 1.25rem 1.5rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; transition: color .2s;
}
.faq-q:hover { color: var(--cyan); }
.faq-q .faq-arrow { font-size: .75rem; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 1.5rem 1.25rem;
  color: var(--muted); font-size: .92rem; line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ============================================================ CTA SECTION */
.cta-section {
  text-align: center; padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(0,212,255,.05) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-section h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: var(--muted); margin-bottom: 2.5rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================ CONTENT */
.content-wrap { max-width: 860px; margin: 0 auto; }
.content-wrap h2 { font-family: var(--font-head); font-size: 1.8rem; color: var(--white); margin: 2.5rem 0 1rem; }
.content-wrap h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--cyan); margin: 1.75rem 0 .75rem; }
.content-wrap p { color: var(--text); margin-bottom: 1.25rem; line-height: 1.8; }
.content-wrap ul li { padding: .3rem 0; color: var(--text); padding-left: 1.25rem; position: relative; }
.content-wrap ul li::before { content: '▸'; color: var(--cyan); position: absolute; left: 0; }
.content-wrap a { color: var(--cyan); }
.content-wrap a:hover { text-decoration: underline; }

/* ARTICLE HERO */
.page-hero {
  padding: 3.5rem 0 2rem; background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: .75rem; }
.page-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 700px; }

/* INTERNAL LINKS BOX */
.links-box {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--cyan);
  border-radius: var(--radius); padding: 1.5rem; margin: 2.5rem 0;
}
.links-box h4 { color: var(--white); font-weight: 700; margin-bottom: .75rem; font-size: .95rem; }
.links-box ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.links-box a {
  background: rgba(0,212,255,.1); border: 1px solid var(--border);
  color: var(--cyan); font-size: .82rem; font-weight: 600;
  padding: .35rem .8rem; border-radius: 50px;
  transition: background .2s;
}
.links-box a:hover { background: rgba(0,212,255,.2); text-decoration: none; }

/* TABLE */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--bg3); color: var(--cyan); font-family: var(--font-head); font-size: 1rem; padding: .9rem 1.1rem; text-align: left; border-bottom: 2px solid var(--border); }
td { padding: .8rem 1.1rem; color: var(--text); border-bottom: 1px solid var(--border); }
tr:hover td { background: rgba(0,212,255,.04); }

/* ============================================================ FLOAT WA */
.float-wa {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--wa-green); color: var(--white);
  width: auto; height: auto; border-radius: 50px;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 6px 25px rgba(37,211,102,.5);
  font-weight: 700; font-size: .88rem;
  transition: transform .3s, box-shadow .3s;
  animation: pulse-wa 2.5s infinite;
}
.float-wa svg { width: 22px; height: 22px; }
.float-wa:hover { transform: scale(1.08); box-shadow: 0 10px 35px rgba(37,211,102,.6); color: var(--white); }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 6px 25px rgba(37,211,102,.5); }
  50% { box-shadow: 0 6px 35px rgba(37,211,102,.8); }
}

/* ============================================================ FOOTER */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); display: inline-block; margin-bottom: 1rem; }
.footer-col p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-col h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin-bottom: .75rem; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: .8rem; }
.footer-disc { font-size: .75rem !important; margin-top: .4rem; }

/* ============================================================ DEVICES SECTION */
.devices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.device-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  transition: border-color .3s, transform .3s;
}
.device-card:hover { border-color: var(--cyan); transform: translateY(-4px); }
.device-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.device-card h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: .4rem; font-family: var(--font-head); }
.device-card p { color: var(--muted); font-size: .82rem; }

/* ============================================================ IMAGE BLOCKS */
.img-section {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); position: relative;
}
.img-section img { width: 100%; object-fit: cover; display: block; }
.img-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8,12,20,.9), transparent);
  padding: 1.5rem; color: var(--white); font-size: .85rem;
}

/* SPLIT LAYOUT */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse .split-img { order: -1; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--border); }
  .main-nav a { display: block; padding: .75rem 1rem; }
  .submenu { position: static; box-shadow: none; background: var(--bg3); display: none; }
  .has-sub.open .submenu { display: flex; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { flex-direction: column; gap: 1.5rem; }
  .float-wa span { display: none; }
  .float-wa { border-radius: 50%; width: 56px; height: 56px; padding: 0; justify-content: center; }
}
@media (max-width: 480px) {
  .devices-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .cta-btns { flex-direction: column; align-items: center; }
}
