/* ==========================================================================
   Zap IPTV Showcase — Master Stylesheet (zapiptv.net)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg-primary: #080b12;
  --bg-secondary: #0d1220;
  --bg-elevated: #111827;
  --bg-card: rgba(19, 25, 40, 0.62);
  --bg-card-hover: rgba(28, 36, 56, 0.85);
  --bg-input: #0b1018;

  --border-color: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 45, 117, 0.55);

  /* Brand */
  --accent-pink: #ff2d75;
  --accent-pink-soft: #ff659c;
  --accent-pink-hover: #ff4785;
  --accent-pink-glow: rgba(255, 45, 117, 0.35);
  --accent-blue: #38bdf8;
  --accent-purple: #818cf8;
  --accent-green: #34d399;
  --accent-red: #f87171;

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #9aa8bd;
  --text-dim: #6b7a90;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale */
  --fs-display: clamp(38px, 5.6vw, 66px);
  --fs-h2: clamp(28px, 3.6vw, 44px);
  --fs-h3: clamp(18px, 1.4vw, 20px);
  --fs-lead: clamp(16px, 1.5vw, 20px);
  --fs-body: 15px;

  /* Vertical rhythm */
  --section-pad: clamp(72px, 9vw, 120px);
  --container-max: 1200px;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 18px 45px -18px rgba(0, 0, 0, 0.9);

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the fixed header */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

::selection {
  background: var(--accent-pink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-pink-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--accent-pink);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.2;
}

.glow-orb-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, var(--accent-pink), transparent 70%);
}

.glow-orb-2 {
  width: 720px;
  height: 720px;
  bottom: 6%;
  left: -240px;
  background: radial-gradient(circle, #4338ca, var(--accent-blue) 40%, transparent 70%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 56px 56px;
  /* fade the grid out so it never competes with the content */
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 78%);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(8, 11, 18, 0.72);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.header.scrolled {
  background: rgba(8, 11, 18, 0.94);
  border-bottom-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile menu button — hidden on desktop */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: var(--transition-fast);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: var(--transition-fast);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border-color);
  background: rgba(8, 11, 18, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 12px 24px 22px;
  max-height: calc(100vh - 74px);
  overflow-y: auto;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: block;
  padding: 13px 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu a:hover { color: var(--text-main); }

.mobile-menu .mobile-cta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mobile-menu .mobile-cta .btn { width: 100%; }

/* --------------------------------------------------------------------------
   Buttons & inputs
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition-fast), background var(--transition-fast),
              box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink-soft) 0%, var(--accent-pink) 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-pink-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff7ba9 0%, var(--accent-pink-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 45, 117, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0); }

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; border-radius: 14px; }

.input-field {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field::placeholder { color: var(--text-dim); }

.input-field:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255, 45, 117, 0.18);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 150px 0 var(--section-pad);
  text-align: center;
  position: relative;
}

.badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.25);
  color: #ff8ab3;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
  animation: pulseGlow 3.4s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 45, 117, 0.16); }
  50%      { box-shadow: 0 0 26px rgba(255, 45, 117, 0.36); }
}

.hero h1 {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 auto 24px;
  /* wide enough to respect the manual <br> in the markup */
  max-width: 940px;
}

.hero h1 .gradient-text {
  background: linear-gradient(100deg, #ffffff 0%, #ffd7e5 34%, var(--accent-pink-soft) 62%, var(--accent-pink) 92%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-pink); /* fallback */
}

.hero-subtitle {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 auto 38px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 32px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13.5px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-item svg { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Hero TV mockup
   -------------------------------------------------------------------------- */
.tv-mockup-wrapper {
  margin-top: 66px;
  perspective: 1600px;
}

.tv-frame {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1b2130 0%, #0a0d14 100%);
  border-radius: 20px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 70px -20px rgba(255, 45, 117, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotateX(4deg);
  transform-origin: center bottom;
  transition: transform var(--transition-smooth);
}

.tv-frame:hover { transform: rotateX(0deg) translateY(-4px); }

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 78% 0%, #1a2338 0%, #0a0e17 62%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* subtle screen sheen */
.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.07) 0%, transparent 42%);
  pointer-events: none;
}

.tv-stand {
  width: 150px;
  height: 12px;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #232a3a, #11151f);
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.85);
}

.tv-stand::after {
  content: "";
  display: block;
  width: 260px;
  height: 6px;
  margin: 12px auto 0;
  border-radius: 100px;
  background: linear-gradient(180deg, #1c2231, #0d1119);
}

/* App UI inside the screen */
.screen-mockup-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 58px 240px 1fr;
  gap: 10px;
  padding: 12px;
  user-select: none;
}

.mockup-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-radius: 12px;
  background: rgba(11, 16, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-logo-mini {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-pink-soft), var(--accent-pink));
  box-shadow: 0 0 16px var(--accent-pink-glow);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.mockup-nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.mockup-nav-icon.active {
  background: rgba(255, 45, 117, 0.85);
  box-shadow: 0 0 14px rgba(255, 45, 117, 0.55);
}

.mockup-channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(11, 16, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.mockup-search-bar {
  height: 24px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 4px;
  flex-shrink: 0;
}

.mockup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  flex-shrink: 0;
}

.mockup-item.active {
  background: rgba(255, 45, 117, 0.14);
  border-color: rgba(255, 45, 117, 0.5);
  box-shadow: 0 0 18px rgba(255, 45, 117, 0.2);
}

.mockup-item-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(129, 140, 248, 0.55));
  flex-shrink: 0;
}

.mockup-item.active .mockup-item-logo {
  background: linear-gradient(135deg, var(--accent-pink-soft), var(--accent-pink));
}

.mockup-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.mockup-line-1 {
  height: 7px;
  width: 72%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
}

.mockup-line-2 {
  height: 6px;
  width: 46%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}

.mockup-item.active .mockup-line-1 { background: rgba(255, 255, 255, 0.85); }

.mockup-player-area {
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.mockup-video-feed {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(80% 70% at 30% 22%, rgba(255, 45, 117, 0.28) 0%, transparent 62%),
    radial-gradient(70% 80% at 85% 85%, rgba(56, 189, 248, 0.26) 0%, transparent 60%),
    linear-gradient(140deg, #1a2137 0%, #0b0f19 100%);
  overflow: hidden;
}

/* scanline texture over the "video" */
.mockup-video-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.mockup-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 45, 117, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(255, 45, 117, 0.5);
}

.mockup-live-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

.mockup-osd-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 11, 0.88));
}

.mockup-osd-title {
  height: 10px;
  width: 40%;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 10px;
}

.mockup-osd-progress {
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.mockup-osd-progress::after {
  content: "";
  position: absolute;
  inset: 0 38% 0 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-pink-soft), var(--accent-pink));
  box-shadow: 0 0 10px var(--accent-pink-glow);
}

/* --------------------------------------------------------------------------
   Section headers & shared card surface
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  color: var(--accent-pink);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-desc {
  color: var(--text-muted);
  font-size: 16.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.feature-card,
.step-card,
.pricing-card,
.compat-card,
.faq-item,
.compare-table-wrap,
.sync-visual,
.quick-activate-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.install-section { padding: var(--section-pad) 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.step-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth),
              background var(--transition-smooth), box-shadow var(--transition-smooth);
}

/* top sheen line that lights up on hover */
.step-card::before,
.feature-card::before,
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.5;
  transition: opacity var(--transition-smooth);
}

.step-card:hover::before,
.feature-card:hover::before,
.pricing-card:hover::before { opacity: 1; }

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 45, 117, 0.35);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lift);
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-pink-soft), var(--accent-pink));
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 6px 18px var(--accent-pink-glow);
}

.step-card h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */
.compare-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, transparent, rgba(22, 28, 44, 0.42) 50%, transparent);
}

.compare-table-wrap {
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th {
  padding: 18px 22px;
  background: rgba(8, 11, 18, 0.85);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-color);
}

.compare-table th.highlight {
  color: var(--accent-pink);
  font-size: 14px;
  background: rgba(255, 45, 117, 0.07);
}

.compare-table td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14.5px;
  color: var(--text-muted);
  vertical-align: middle;
}

/* keep the winning column visually anchored down the whole table */
.compare-table td:nth-child(2) { background: rgba(255, 45, 117, 0.045); }

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.compare-table tbody tr:hover td:nth-child(2) { background: rgba(255, 45, 117, 0.08); }

.compare-table td.zap-val {
  color: var(--accent-green);
  font-weight: 700;
}

.compare-table td.other-val { color: var(--accent-red); }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth),
              background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(255, 45, 117, 0.1);
  border: 1px solid rgba(255, 45, 117, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-pink);
  margin-bottom: 22px;
  transition: transform var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper { transform: scale(1.06) rotate(-3deg); }

.feature-icon-wrapper.blue {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
  color: var(--accent-blue);
}

.feature-icon-wrapper.purple {
  background: rgba(129, 140, 248, 0.1);
  border-color: rgba(129, 140, 248, 0.22);
  color: var(--accent-purple);
}

.feature-icon-wrapper.green {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.22);
  color: var(--accent-green);
}

.feature-card h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   QR sync
   -------------------------------------------------------------------------- */
.sync-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 28, 44, 0.35) 50%, transparent 100%);
}

.sync-container {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.sync-container .section-tag,
.sync-container .section-title,
.sync-container .section-desc { text-align: left; }

.sync-container .section-title { margin-bottom: 14px; }

.sync-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 34px;
}

.sync-step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink-soft), var(--accent-pink));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--accent-pink-glow);
}

.step-text h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.step-text p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.sync-visual {
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: relative;
}

.qr-demo-card {
  max-width: 320px;
  margin: 0 auto;
  background: rgba(11, 16, 26, 0.9);
  border-radius: 16px;
  padding: 24px;
  border: 2px dashed rgba(255, 45, 117, 0.4);
}

.qr-demo-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.qr-demo-url {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  word-break: break-all;
}

.qr-demo-url a {
  color: var(--accent-pink);
  font-weight: 600;
  text-decoration: none;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 34px rgba(255, 45, 117, 0.22);
}

.qr-code-img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 38px 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}

.pricing-card.featured {
  border: 1px solid rgba(255, 45, 117, 0.55);
  background: linear-gradient(180deg, rgba(255, 45, 117, 0.08), rgba(19, 25, 40, 0.85));
  box-shadow: 0 0 0 1px rgba(255, 45, 117, 0.18), 0 24px 60px -22px rgba(255, 45, 117, 0.5);
  padding-top: 48px;
}

.pricing-card.featured:hover {
  border-color: rgba(255, 45, 117, 0.8);
  box-shadow: 0 0 0 1px rgba(255, 45, 117, 0.3), 0 30px 70px -22px rgba(255, 45, 117, 0.6);
}

.pricing-featured-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-pink-soft), var(--accent-pink));
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  box-shadow: 0 4px 14px rgba(255, 45, 117, 0.45);
  white-space: nowrap;
}

.price-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #fff;
}

.price-desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 22px;
  min-height: 44px;
}

.price-val {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  line-height: 1;
}

.price-val span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0;
}

.price-val.accent { color: var(--accent-pink); }

.price-features {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.price-features li svg {
  flex-shrink: 0;
  color: var(--accent-green);
  margin-top: 2px;
}

.price-cta-btn {
  width: 100%;
  padding: 14px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

/* Device lookup widget */
.quick-activate-box {
  max-width: 680px;
  margin: 56px auto 0;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  text-align: center;
}

.quick-activate-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quick-activate-box p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.quick-activate-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.quick-activate-form .input-field { text-transform: uppercase; }
.quick-activate-form .btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Compatibility
   -------------------------------------------------------------------------- */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.compat-card {
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.compat-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-4px);
}

.compat-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.compat-sub {
  font-size: 13px;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-section { padding: var(--section-pad) 0; }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open { border-color: rgba(255, 45, 117, 0.4); }

.faq-question {
  width: 100%;
  padding: 19px 22px;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: 15.5px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  user-select: none;
}

.faq-question svg {
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform var(--transition-smooth), color var(--transition-smooth);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--accent-pink);
}

/* animate open/close on a JS-measured height instead of display:none */
.faq-answer-wrap {
  height: 0;
  overflow: hidden;
  transition: height var(--transition-smooth);
}

.faq-answer {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.faq-answer > p { padding: 0 22px 20px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 56px 0 36px;
  background: #05070c;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}

.footer-brand img { height: 36px; width: auto; }

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: var(--text-main); }

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sync-container { grid-template-columns: 1fr; gap: 44px; }
  .screen-mockup-content { grid-template-columns: 52px 200px 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero { padding-top: 128px; }
  .tv-mockup-wrapper { margin-top: 48px; }
  .tv-frame,
  .tv-frame:hover { transform: none; }
  .screen-mockup-content { grid-template-columns: 46px 1fr; padding: 10px; gap: 8px; }
  .mockup-player-area { display: none; }
  .footer-content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { flex-direction: column; gap: 10px; }
  .feature-card, .step-card { padding: 26px 22px; }
  .pricing-card { padding: 32px 22px 26px; }
  .pricing-card.featured { padding-top: 44px; }
  .sync-visual { padding: 24px 18px; }
  .quick-activate-form { flex-direction: column; }
  .quick-activate-form .btn { width: 100%; }
  .footer-links { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.qr-demo-btn { width: 100%; }
