/* FlexIPTV — Design System */
:root {
  --bg: #0a0e1a;
  --surface: #131826;
  --surface-2: #1c2237;
  --border: #2a3147;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #fbbf24;
  --accent-hover: #f59e0b;
  --success: #22c55e;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1200px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--accent);
  color: #1a1a1a !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}
.nav-cta:hover { background: var(--accent-hover); color: #1a1a1a !important; }
.menu-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  padding: 80px 24px 64px;
  background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: #fff;
}
h1 .accent { color: var(--accent); }
.hero p.subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
}
.btn-primary:hover { background: var(--accent-hover); color: #1a1a1a; }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); color: var(--text); }
.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1fb855; color: #fff; }
.trust-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}
.trust-row span { display: flex; align-items: center; gap: 6px; }

/* ===== Sections ===== */
section {
  padding: 64px 24px;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
}
h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}
h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 10px;
  line-height: 1.3;
}
h4 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 8px;
}
.section-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
  font-size: 17px;
}
.center { text-align: center; }
.center .section-intro { margin-left: auto; margin-right: auto; }

/* ===== TL;DR Box ===== */
.tldr {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 24px 0 40px;
}
.tldr strong { color: var(--accent); display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.tldr p { color: var(--text); margin: 0; }

/* ===== Cards Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { margin-top: 0; font-size: 19px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ===== Content Article ===== */
article {
  max-width: 820px;
  margin: 0 auto;
}
article p { margin: 14px 0; color: var(--text); }
article ul, article ol {
  padding-left: 24px;
  margin: 14px 0;
  color: var(--text);
}
article li { margin: 6px 0; }
article strong { color: #fff; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding: 8px 20px;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
article th, article td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
article th { background: var(--surface-2); color: #fff; font-weight: 700; }
article td { color: var(--text-muted); }
article tr:last-child td { border-bottom: none; }

/* ===== Plans ===== */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06), var(--surface));
}
.plan-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { margin-top: 0; }
.plan-price {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin: 12px 0 4px;
}
.plan-price small { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.plan-period { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.plan ul {
  list-style: none;
  text-align: left;
  margin: 20px 0;
  padding: 0;
}
.plan ul li {
  padding: 8px 0;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.plan ul li:last-child { border-bottom: none; }
.plan ul li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--accent);
  transition: transform .2s ease;
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 24px 20px;
  color: var(--text-muted);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  margin: 40px 0;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 32px 0;
  counter-reset: steps;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  counter-increment: steps;
}
.step::before {
  content: counter(steps);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.step h3 { margin-top: 8px; font-size: 18px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ===== Footer ===== */
.footer {
  background: #060912;
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: 64px;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer h4 { font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: var(--text-muted); font-size: 15px; }
.footer ul li a:hover { color: var(--accent); }
.footer p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Floating WhatsApp ===== */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform .2s ease;
}
.float-wa:hover { transform: scale(1.08); }
.float-wa svg { width: 32px; height: 32px; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--text-dim); }

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.review-stars { color: var(--accent); margin-bottom: 12px; font-size: 16px; }
.review p { color: var(--text); font-style: italic; margin-bottom: 12px; }
.review-author { color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 20px 48px; }
  section { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .cta-row .btn { flex: 1 1 100%; }
}
