/* ============================================================
   5GLive IPTV Subscription — Light Premium Theme
   File: assets/css/5Glive-iptv-subscription.css
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --accent: #f59e0b;
  --accent-dark: #d97706;

  --bg: #fafbfc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;

  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --text-muted: #94a3b8;

  --border: #e5e7eb;
  --border-2: #cbd5e1;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);

  --gutter: clamp(20px, 4vw, 40px);
  --maxw: 1200px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.sub-page { overflow-x: hidden; }

.sub-container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
.sub-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.sub-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.sub-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

/* ---------- Buttons ---------- */
.sub-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.sub-cta i { font-size: 16px; transition: transform 0.2s ease; }
.sub-cta:hover i { transform: translateX(3px); }

.sub-cta-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.sub-cta-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.sub-cta-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.sub-cta-ghost:hover {
  background: var(--surface);
  border-color: var(--brand);
  color: var(--brand);
}

/* ============================================================
   HERO — Clean Light
   ============================================================ */
.sub-hero {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 90px);
  overflow: hidden;
}

.sub-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.sub-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.sub-hero-glow { display: none; }

.sub-hero > .sub-container {
  position: relative;
  z-index: 1;
}

.sub-hero-top {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sub-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--shadow-sm);
}

.sub-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  animation: subPulse 2s ease-in-out infinite;
}

@keyframes subPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.sub-hero-title {
  font-size: clamp(34px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 auto 24px;
  max-width: 20ch;
  text-align: center;
}

.sub-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.sub-hero-lede {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 62ch;
  margin: 0 auto 36px;
  text-align: center;
}

.sub-hero-lede strong {
  color: var(--text);
  font-weight: 700;
}

.sub-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.sub-hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 900px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.sub-hero-meta li {
  padding: 22px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.sub-hero-meta li:last-child { border-right: none; }

.sub-meta-key {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.sub-meta-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* ============================================================
   BENTO
   ============================================================ */
.sub-bento {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--bg);
}

.sub-bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.sub-bento-card {
  grid-column: span 2;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sub-bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.sub-bento-wide { grid-column: span 4; }
.sub-bento-tall { grid-row: span 2; }

.sub-bento-index {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 20px;
  padding: 6px 12px;
  display: inline-block;
  background: var(--brand-light);
  border-radius: 6px;
}

.sub-bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.3;
}

.sub-bento-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

.sub-bento-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-alt);
  color: var(--text-2);
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ============================================================
   SPLIT
   ============================================================ */
.sub-split {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--surface);
}

.sub-split-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.sub-split-visual { position: relative; }

.sub-split-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.sub-split-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 16px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.sub-split-copy h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 20px;
}

.sub-split-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 16px;
}

.sub-split-copy strong { color: var(--text); font-weight: 700; }

.sub-split-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.sub-split-facts div { display: flex; flex-direction: column; gap: 4px; }

.sub-split-facts strong {
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
}

.sub-split-facts span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}

/* ============================================================
   STEPS
   ============================================================ */
.sub-steps-section {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--bg);
}

.sub-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  margin-inline: auto;
}

.sub-step-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.sub-step-item:last-child { border-bottom: 1px solid var(--border); }

.sub-step-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand);
  line-height: 1;
  padding-top: 4px;
}

.sub-step-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.3;
}

.sub-step-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

.sub-steps-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   SERVICES LIST
   ============================================================ */
.sub-services {
  padding: clamp(64px, 9vw, 110px) 0;
  background: var(--surface);
}

.sub-services-list { display: grid; gap: 0; }

.sub-service-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  align-items: start;
  transition: padding-left 0.25s ease, background 0.25s ease;
  border-radius: 8px;
}

.sub-service-row:last-child { border-bottom: 1px solid var(--border); }

.sub-service-row:hover {
  padding-left: 16px;
  background: var(--bg);
}

.sub-service-n {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  padding-top: 5px;
}

.sub-service-row h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}

.sub-service-row p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
  max-width: 68ch;
}

/* ============================================================
   FINAL CTA — Light Card
   ============================================================ */
.sub-final {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--bg);
}

.sub-final-inner {
  background: linear-gradient(135deg, var(--brand) 0%, #4f46e5 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
}

.sub-final-inner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sub-final-copy h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #ffffff;
}

.sub-final-copy p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 50ch;
}

.sub-final-action {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* White CTA button for dark CTA box */
.sub-final-action .sub-cta-primary {
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.sub-final-action .sub-cta-primary:hover {
  background: #f8fafc;
  color: var(--brand-dark);
  transform: translateY(-2px);
}

.sub-final-action .sub-cta-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}
.sub-final-action .sub-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ============================================================
   PRICING SPACING OVERRIDE
   ============================================================ */
#plans.pricing.section {
  padding: 70px 0 90px !important;
  background: var(--bg-alt) !important;
}
#plans .container.section-title {
  margin-bottom: 55px !important;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
  .sub-bento-grid { grid-template-columns: repeat(4, 1fr); }
  .sub-bento-wide { grid-column: span 4; }
  .sub-bento-card { grid-column: span 2; }
  .sub-bento-tall { grid-row: auto; }
  .sub-split-inner { grid-template-columns: 1fr; }
  .sub-split-facts { grid-template-columns: repeat(2, 1fr); }
  .sub-final-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sub-final-action { justify-content: center; }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 640px) {
  .sub-hero-meta { grid-template-columns: repeat(2, 1fr); }
  .sub-hero-meta li {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sub-hero-meta li:nth-child(2n) { border-right: none; }
  .sub-hero-meta li:nth-last-child(-n+2) { border-bottom: none; }
  .sub-hero-meta li:nth-child(odd) { border-right: 1px solid var(--border); }

  .sub-bento-grid { grid-template-columns: 1fr; }
  .sub-bento-wide,
  .sub-bento-card { grid-column: span 1; }

  .sub-step-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .sub-step-num { font-size: 26px; }

  .sub-service-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 24px 0;
  }
  .sub-service-row:hover { padding-left: 0; }

  .sub-hero-actions .sub-cta { width: 100%; justify-content: center; }
  .sub-final-action .sub-cta { width: 100%; justify-content: center; }

  .sub-bento-card { padding: 26px 22px; }
  .sub-bento-index { font-size: 13px; margin-bottom: 14px; }

  .sub-split-facts { gap: 16px; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   FIX: "View plans" button contrast on blue CTA
   ============================================================ */

.sub-final-action .sub-cta-ghost {
  background: #ffffff !important;
  color: #2563eb !important;
  border: 2px solid #ffffff !important;
  font-weight: 700 !important;
}

.sub-final-action .sub-cta-ghost:hover {
  background: #f1f5f9 !important;
  color: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}