/* EZIPTV's website: dark, like the app, with its purple, and screenshots on show.
   No inline styles anywhere (the CSP allows none); site.js adds the motion. */

:root {
  --bg: #0b0b12;
  --bg-2: #11111b;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eeecf7;
  --muted: #a3a0b8;
  --accent: #a47cf3;
  --accent-2: #ff6b9d;
  --accent-3: #ffa94d;
  /* The EZIPTV mark's gradient, lightened to read as text on the dark. */
  --grad: linear-gradient(100deg, #b48cff 0%, #e46fd4 55%, #ffb37a 100%);
  --radius: 18px;
  --wrap: 1200px;
  --shadow-glow: 0 40px 120px -30px rgba(140, 90, 255, 0.55), 0 18px 50px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body.mk {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mk img { max-width: 100%; height: auto; display: block; }
.mk a { color: inherit; }
.mk h1, .mk h2, .mk h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; }
.mk p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow-wrap { width: min(820px, 100% - 40px); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; font-weight: 600;
}
.skip:focus { top: 12px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede { color: var(--muted); font-size: 1.15rem; max-width: 42rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:focus-visible, .mk a:focus-visible, .tour-radio:focus-visible + * { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, #b18cff, #8a5cf0);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(150, 100, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(150, 100, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.92rem; }

/* ── Nav ── */
.mk-nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.mk-nav.scrolled, .no-js .mk-nav {
  background: rgba(11, 11, 18, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.mk-nav-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.mk-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mk-brand img.mark { height: 40px; width: auto; }
/* EZIPTV: "EZ" white, "IPTV" in the mark's gradient, heavy italic. */
.wordmark {
  font: italic 900 1.5rem/1 "Segoe UI Black", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.02em; color: #fff; padding-right: 0.08em;
}
.wordmark span {
  background: linear-gradient(100deg, #9b5cff, #d64fd0 55%, #ff8f7a);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.1em;
}
.mk-links { display: flex; gap: 6px; margin-left: auto; }
.mk-links a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 550;
  transition: color 0.2s, background 0.2s;
}
.mk-links a:hover { color: var(--text); background: var(--surface); }
.mk-nav-end { display: flex; align-items: center; gap: 14px; }
.mk-signin { text-decoration: none; color: var(--muted); font-weight: 600; }
.mk-signin:hover { color: var(--text); }

@media (max-width: 860px) {
  .mk-links { display: none; }
  .mk-nav-end { margin-left: auto; }
}

/* ── Hero ── */
.hero { position: relative; padding: 72px 0 110px; isolation: isolate; }
.hero-glow {
  position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 30%, rgba(140, 90, 255, 0.38), transparent 70%),
    radial-gradient(520px 380px at 12% 10%, rgba(255, 107, 157, 0.18), transparent 70%),
    radial-gradient(500px 360px at 60% 95%, rgba(255, 169, 77, 0.14), transparent 70%);
}
.hero::after {
  /* A faint grid that fades out at the edges. */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.2rem); font-weight: 800; margin: 18px 0 22px; }
@media (min-width: 961px) { .hero h1 .grad { white-space: nowrap; } }
.hero .lede { font-size: 1.18rem; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted); font-weight: 550;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 30px 0 0; color: var(--muted); font-size: 0.95rem; }
.hero-facts li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* The hero's screens: a TV with two screens floating in front of it. */
.hero-visual { position: relative; perspective: 1600px; padding: 30px 0 60px; }
.hero-visual > .tv { transform: rotateY(-9deg) rotateX(3deg); transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.hero-visual.tilting > .tv { transition: transform 0.12s linear; }
.float {
  position: absolute; margin: 0; width: 44%;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4);
  animation: bob 7s ease-in-out infinite;
}
.float-a { right: -4%; top: -2%; animation-delay: -2s; }
.float-b { left: -8%; bottom: 4%; width: 40%; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ── Device frames ── */
.tv {
  position: relative; margin: 0;
  padding: 10px; border-radius: 20px;
  background: linear-gradient(160deg, #2a2a35, #0d0d12 60%);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.tv img { border-radius: 11px; }
.tv::after {
  /* The stand. */
  content: ""; position: absolute; left: 50%; bottom: -26px; width: 26%; height: 16px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#22222c, #121218);
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.9);
}
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-glow);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.shot:hover { transform: translateY(-6px) scale(1.01); }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual > .tv { transform: none; }
  .float { width: 42%; }
  .float-b { left: -2%; }
  .float-a { right: -2%; }
}

/* ── Strip ── */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 28px 22px; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.strip-grid > div:first-child { border-left: 0; }
.strip-grid strong { font-size: 1.05rem; }
.strip-grid span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid > div:nth-child(3) { border-left: 0; }
  .strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── Sections ── */
.section { padding: 120px 0; position: relative; }
.section-tint { background: radial-gradient(900px 500px at 50% 0%, rgba(140, 90, 255, 0.10), transparent 70%), var(--bg-2); }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
.section-head .lede { margin: 18px auto 0; }

/* ── Feature rows ── */
.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 140px; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.feature-copy > p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; transform: translateY(3px);
  background: radial-gradient(circle at 50% 50%, #fff 0 2.5px, transparent 3px), linear-gradient(135deg, #b18cff, #ff86b4);
}
.feature-shots { position: relative; }
.feature-shots.stack { padding-bottom: 18%; }
.feature-shots.stack .shot-over { position: absolute; width: 62%; right: -5%; bottom: 0; }
.feature.flip .feature-shots.stack .shot-over { right: auto; left: -5%; }

@media (max-width: 960px) {
  .section { padding: 84px 0; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature + .feature { margin-top: 96px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-shots.stack .shot-over { right: 0; }
  .feature.flip .feature-shots.stack .shot-over { left: 0; }
}

/* ── Tour ── */
.tour { position: relative; }
.tour-radio { position: absolute; opacity: 0; pointer-events: none; }
.tour-tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  width: fit-content; max-width: 100%; margin: 0 auto 44px; padding: 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.tour-tab {
  padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted);
  transition: background 0.25s, color 0.25s;
  user-select: none;
}
.tour-tab:hover { color: var(--text); }
.tour-stage { display: grid; max-width: 1040px; margin: 0 auto; }
.tour-slide {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(16px) scale(0.985); visibility: hidden;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.2,.7,.2,1), visibility 0s linear 0.45s;
}
#tour-home:checked ~ .tour-stage .slide-home,
#tour-movies:checked ~ .tour-stage .slide-movies,
#tour-series:checked ~ .tour-stage .slide-series,
#tour-details:checked ~ .tour-stage .slide-details,
#tour-guide:checked ~ .tour-stage .slide-guide,
#tour-live:checked ~ .tour-stage .slide-live,
#tour-search:checked ~ .tour-stage .slide-search {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.2,.7,.2,1), visibility 0s;
}
#tour-home:checked ~ .tour-tabs .tab-home,
#tour-movies:checked ~ .tour-tabs .tab-movies,
#tour-series:checked ~ .tour-tabs .tab-series,
#tour-details:checked ~ .tour-tabs .tab-details,
#tour-guide:checked ~ .tour-tabs .tab-guide,
#tour-live:checked ~ .tour-tabs .tab-live,
#tour-search:checked ~ .tour-tabs .tab-search {
  background: #fff; color: #111;
}
#tour-home:focus-visible ~ .tour-tabs .tab-home,
#tour-movies:focus-visible ~ .tour-tabs .tab-movies,
#tour-series:focus-visible ~ .tour-tabs .tab-series,
#tour-details:focus-visible ~ .tour-tabs .tab-details,
#tour-guide:focus-visible ~ .tour-tabs .tab-guide,
#tour-live:focus-visible ~ .tour-tabs .tab-live,
#tour-search:focus-visible ~ .tour-tabs .tab-search {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(164, 124, 243, 0.45); }
.card h3 { font-size: 1.1rem; margin: 14px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(177, 140, 255, 0.28), rgba(255, 134, 180, 0.18));
  border: 1px solid rgba(177, 140, 255, 0.35);
  font-size: 1.2rem; color: #e6dcff;
}
@media (max-width: 1060px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ── Platforms ── */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.platform {
  position: relative; overflow: hidden;
  padding: 34px 26px 30px; border-radius: var(--radius); text-align: center;
  background: var(--surface); border: 1px solid var(--line);
}
.platform::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 140px;
  background: radial-gradient(closest-side, rgba(164, 124, 243, 0.35), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.platform:hover::before { opacity: 1; }
.platform-glyph { position: relative; display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 16px; color: #e6dcff; }
.platform h3 { position: relative; font-size: 1.25rem; margin-bottom: 8px; }
.platform p { position: relative; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 960px) { .platforms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .platforms { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: background 0.25s, border-color 0.25s;
}
.faq details[open] { background: var(--surface-2); border-color: rgba(164, 124, 243, 0.35); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 1.08rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2);
  font-size: 1.2rem; transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: 16px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }
.faq details a { color: #cbb6ff; }

/* ── Final call ── */
.final { padding-top: 40px; }
.final-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 90px 32px; border-radius: 32px;
  background: linear-gradient(160deg, #1c1630, #120f1d 60%);
  border: 1px solid rgba(164, 124, 243, 0.3);
}
.final-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 260px at 50% 0%, rgba(164, 124, 243, 0.45), transparent 70%),
    radial-gradient(400px 220px at 85% 100%, rgba(255, 107, 157, 0.22), transparent 70%);
}
.final-card > :not(.final-glow) { position: relative; }
.final-card h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
.final-card .lede { margin: 18px auto 34px; }

/* ── Footer ── */
.mk-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 60px; }
.mk-footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 30px; }
.mk-footer-grid > div { max-width: 460px; }
.mk-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: flex-start; }
.mk-footer nav a { color: var(--muted); text-decoration: none; }
.mk-footer nav a:hover { color: var(--text); }
.fine { color: #7d7a91; font-size: 0.85rem; margin-top: 16px !important; }

/* ── Reveal on scroll (only once site.js is running, so nothing is ever hidden without it) ── */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; } }

/* Phones: the nav keeps to one line (Get started also signs in). */
.btn, .mk-signin { white-space: nowrap; }
@media (max-width: 520px) {
  .mk-signin { display: none; }
  .mk-nav-row { gap: 12px; }
}
