/* ==========================================================================
   PlayZ TV APK — Main Stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:          #070C16;
  --bg-alt:      #0A1120;
  --surface:     #101B2E;
  --surface-2:   #16233C;
  --surface-3:   #1C2C49;
  --border:      #1E3054;
  --border-soft: #17253E;

  /* Brand */
  --brand:       #3B82F6;
  --brand-light: #60A5FA;
  --brand-deep:  #1D4ED8;
  --brand-glow:  rgba(59, 130, 246, .35);
  --live:        #EF4444;
  --gold:        #FBBF24;
  --green:       #22C55E;

  /* Text */
  --text:        #E9EFFA;
  --text-2:      #B6C4DC;
  --muted:       #8497B5;

  /* Shape */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow:    0 18px 40px -18px rgba(0, 0, 0, .85);
  --shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .9);

  --wrap: 1160px;
  --nav-h: 72px;

  --ff-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --ff-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient brand light behind the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 460px at 12% -6%,  rgba(59, 130, 246, .20), transparent 62%),
    radial-gradient(680px 420px at 92% 4%,   rgba(29, 78, 216, .16),  transparent 60%),
    radial-gradient(900px 600px at 50% 108%, rgba(59, 130, 246, .10), transparent 65%);
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-light); text-decoration: none; transition: color .18s ease; }
a:hover { color: #93BEFF; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.015em;
  margin: 0 0 .55em;
  color: #FFF;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p  { margin: 0 0 1.1em; color: var(--text-2); }

:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section { padding: 74px 0; position: relative; z-index: 1; }
section.tight { padding: 52px 0; }

.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.03rem; margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: rgba(59, 130, 246, .11);
  border: 1px solid rgba(59, 130, 246, .28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.skip-nav {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand);
  color: #FFF;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  z-index: 999;
}
.skip-nav:focus { left: 16px; color: #FFF; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 45%, var(--brand-deep));
  color: #FFF;
  box-shadow: 0 12px 30px -10px var(--brand-glow);
}
.btn-primary:hover {
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -12px rgba(59, 130, 246, .6);
}

.btn-ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  color: #FFF;
  border-color: var(--brand);
  background: rgba(59, 130, 246, .1);
  transform: translateY(-2px);
}

.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(7, 12, 22, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.top-bar.scrolled {
  background: rgba(7, 12, 22, .93);
  border-bottom-color: var(--border-soft);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo { display: flex; align-items: center; gap: 11px; }
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
  flex: none;
  overflow: hidden;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-title {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.brand-title span { color: var(--brand-light); }
.brand-sub {
  display: block;
  font-family: var(--ff-body);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.menu-list a {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .18s ease, background .18s ease;
}
.menu-list a:hover,
.menu-list a.active { color: #FFF; background: rgba(255, 255, 255, .06); }

.nav-action { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle span + span { margin-top: 4px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero-sec { padding: 62px 0 70px; }
.hero-layout {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.pill.live { color: #FCA5A5; border-color: rgba(239, 68, 68, .38); background: rgba(239, 68, 68, .1); }
.pill.live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .65);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.pill.free { color: #86EFAC; border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .09); }

.hero-sec h1 { margin-bottom: .35em; }
.hero-sec h1 .grad {
  background: linear-gradient(120deg, var(--brand-light), #A5C8FF 55%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text { font-size: 1.08rem; max-width: 56ch; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 13px; margin: 26px 0 22px; }

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.hero-info div { min-width: 88px; }
.hero-info dt {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.hero-info dd {
  margin: 0;
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: #FFF;
}

/* Hero app panel */
.app-panel {
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.app-panel::after {
  content: "";
  position: absolute;
  top: -55%;
  left: -20%;
  width: 140%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 72%);
  pointer-events: none;
}
.app-panel > * { position: relative; z-index: 1; }

.panel-icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 18px;
  border-radius: 28px;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, .1), 0 22px 44px -16px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.panel-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Portrait app screenshot inside the hero panel */
.panel-shot {
  width: 168px;
  margin: 0 auto 18px;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, .1), 0 22px 44px -16px rgba(0, 0, 0, .9);
}
.panel-shot img { width: 100%; height: auto; display: block; }

.app-panel h2 { font-size: 1.5rem; margin-bottom: 4px; }
.app-panel .panel-dev { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }

.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  color: var(--text-2);
  margin-bottom: 20px;
}
.stars .icons { color: var(--gold); letter-spacing: 1px; }

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-stats div { background: rgba(7, 12, 22, .55); padding: 14px 8px; }
.panel-stats b {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  color: #FFF;
}
.panel-stats span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-panel .btn { width: 100%; }
.panel-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Marquee strip ---------- */
.tag-strip {
  border-block: 1px solid var(--border-soft);
  background: rgba(16, 27, 46, .55);
  padding: 16px 0;
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 46px;
  white-space: nowrap;
  animation: slide 34s linear infinite;
  width: max-content;
}
.tag-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
}
.tag-strip span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .pill.live .dot { animation: none; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: linear-gradient(170deg, var(--surface), rgba(16, 27, 46, .55));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.feature-card h3 { font-size: 1.13rem; margin-bottom: .45em; }
.feature-card p { font-size: .94rem; margin-bottom: 0; }

.feat-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(59, 130, 246, .13);
  border: 1px solid rgba(59, 130, 246, .26);
  color: var(--brand-light);
  margin-bottom: 16px;
}
.feat-icon svg { width: 23px; height: 23px; }

/* ---------- Spec table ---------- */
.spec-table {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(16, 27, 46, .5);
}
.spec-table table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  padding: 15px 22px;
  text-align: left;
  font-size: .95rem;
  border-bottom: 1px solid var(--border-soft);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th {
  width: 42%;
  font-family: var(--ff-head);
  font-weight: 600;
  color: var(--text-2);
  background: rgba(7, 12, 22, .35);
}
.spec-table td { color: #FFF; font-weight: 500; }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(59, 130, 246, .06); }

/* ---------- Screenshots ---------- */
.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: var(--surface); border-radius: 99px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.shots::-webkit-scrollbar-thumb:hover { background: var(--brand-deep); }

.shot-item {
  flex: 0 0 auto;
  width: 232px;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: zoom-in;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.shot-item:hover {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: 0 24px 46px -20px var(--brand-glow);
}
.shot-item img { width: 100%; }

/* Image viewer */
.img-viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(4, 8, 15, .93);
  backdrop-filter: blur(8px);
}
.img-viewer.open { display: grid; }
.img-viewer img {
  max-height: 88vh;
  width: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.viewer-close, .viewer-nav {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background .18s ease, border-color .18s ease;
}
.viewer-close:hover, .viewer-nav:hover { background: var(--brand); border-color: var(--brand); color: #FFF; }
.viewer-close { top: 24px; right: 24px; }
.viewer-nav.prev { left: 22px; top: 50%; transform: translateY(-50%); }
.viewer-nav.next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 16px; counter-reset: step; }
.step-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: start;
  background: linear-gradient(170deg, var(--surface), rgba(16, 27, 46, .5));
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.step-item:hover { border-color: var(--border); transform: translateX(4px); }
.step-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-light);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .28);
  border-radius: 13px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
}
.step-item h3 { font-size: 1.08rem; margin-bottom: .3em; }
.step-item p { font-size: .94rem; margin-bottom: 0; }

/* ---------- Pros / cons ---------- */
.pc-list { list-style: none; display: grid; gap: 12px; }
.pc-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .95rem;
  color: var(--text-2);
}
.pc-list li::before {
  font-size: .95rem;
  line-height: 1.7;
  font-weight: 700;
}
.pros li::before { content: "✓"; color: var(--green); }
.cons li::before { content: "✕"; color: #F87171; }
.feature-card.pros-card { border-color: rgba(34, 197, 94, .22); }
.feature-card.cons-card { border-color: rgba(248, 113, 113, .2); }

/* ---------- FAQ ---------- */
.faq-block { display: grid; gap: 12px; }
.faq-block details {
  background: linear-gradient(170deg, var(--surface), rgba(16, 27, 46, .5));
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-block details[open] { border-color: rgba(59, 130, 246, .4); }
.faq-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  cursor: pointer;
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: #FFF;
  list-style: none;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: "+";
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, .13);
  border: 1px solid rgba(59, 130, 246, .3);
  color: var(--brand-light);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform .22s ease;
}
.faq-block details[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq-block .faq-answer { padding: 0 24px 20px; }
.faq-block .faq-answer p:last-child { margin-bottom: 0; }
.faq-block .faq-answer p { font-size: .95rem; }

/* ---------- Alert / callout ---------- */
.alert-box {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  background: rgba(59, 130, 246, .07);
  border: 1px solid rgba(59, 130, 246, .24);
  border-radius: var(--r-lg);
  padding: 24px 26px;
}
.alert-box.warn {
  background: rgba(251, 191, 36, .06);
  border-color: rgba(251, 191, 36, .26);
}
.alert-box .alert-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(59, 130, 246, .14);
  color: var(--brand-light);
}
.alert-box.warn .alert-icon { background: rgba(251, 191, 36, .13); color: var(--gold); }
.alert-box h3 { font-size: 1.05rem; margin-bottom: .35em; }
.alert-box p { font-size: .93rem; margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(29, 78, 216, .3), rgba(59, 130, 246, .14) 55%, rgba(16, 27, 46, .6));
  border: 1px solid rgba(59, 130, 246, .3);
  border-radius: var(--r-xl);
  padding: 52px 46px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -50% -10% auto;
  height: 150%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .2), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner p { max-width: 62ch; margin-inline: auto; }
.cta-banner .btn { margin-top: 12px; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 78ch; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.prose h3 { margin-top: 1.5em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.prose li { color: var(--text-2); margin-bottom: .5em; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }

.page-head {
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 42px;
}
.page-head h1 { margin-bottom: .3em; }
.page-head p { margin-bottom: 0; }
.crumbs {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a { color: var(--text-2); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Download page ---------- */
.dl-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(165deg, var(--surface-2), var(--surface) 62%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 46px 38px;
  box-shadow: var(--shadow-lg);
}
.dl-ring {
  --pct: 0;
  width: 132px;
  height: 132px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(var(--brand) calc(var(--pct) * 1%), rgba(59, 130, 246, .13) 0);
  position: relative;
}
.dl-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.dl-count {
  position: relative;
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1;
}
.dl-ready { display: none; }
.dl-panel.ready .dl-waiting { display: none; }
.dl-panel.ready .dl-ready { display: block; }
.dl-file {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: rgba(7, 12, 22, .5);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  padding: 15px 18px;
  margin: 24px 0;
}
.dl-file .fi {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--border);
  overflow: hidden;
  flex: none;
}
.dl-file b { display: block; font-family: var(--ff-head); color: #FFF; font-size: .98rem; }
.dl-file span { font-size: .82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.page-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  padding: 58px 0 26px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border-soft);
}
.footer-info p { font-size: .91rem; margin: 16px 0 0; max-width: 40ch; }
.footer-block h4 {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-block ul { list-style: none; display: grid; gap: 9px; }
.footer-block a { font-size: .93rem; color: var(--text-2); }
.footer-block a:hover { color: var(--brand-light); }

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  font-size: .86rem;
  color: var(--muted);
}
.footer-copy p { margin: 0; font-size: .86rem; }

.footer-disclaimer {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 26px 0 0;
  padding: 18px 20px;
  background: rgba(16, 27, 46, .5);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
}

/* Back to top */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #FFF;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  box-shadow: 0 14px 30px -10px var(--brand-glow);
  z-index: 70;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-layout { grid-template-columns: 1fr; gap: 44px; }
  .app-panel { max-width: 430px; margin-inline: auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .menu-list {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 22px;
    background: rgba(7, 12, 22, .98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  .menu-list.open { display: flex; }
  .menu-list a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav-action .btn { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section { padding: 56px 0; }
  .container { width: min(100% - 32px, var(--wrap)); }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-banner { padding: 38px 24px; }
  .hero-btns .btn { width: 100%; }
  .spec-table th, .spec-table td { padding: 13px 16px; font-size: .9rem; }
  .spec-table th { width: 46%; }
  .step-item { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .step-item::before { width: 44px; height: 44px; font-size: 1rem; }
  .shot-item { width: 190px; }
  .dl-panel { padding: 34px 22px; }
  .viewer-nav { display: none; }
  .alert-box { grid-template-columns: 1fr; gap: 12px; }
}

/* ==========================================================================
   Download Page — Redesigned card
   ========================================================================== */

.dl-page {
  padding: 68px 0 74px;
  position: relative;
  z-index: 1;
}

/* ---------- Download card ---------- */
.download-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 44px 34px 34px;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(28, 44, 73, .95), rgba(16, 27, 46, .92) 62%),
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, .18), transparent 70%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
  isolation: isolate;
}

/* Ambient glow behind the card */
.download-card::before {
  content: "";
  position: absolute;
  inset: -60% -30% auto;
  height: 200%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .22), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.download-card > * { position: relative; z-index: 1; }

/* Decorative top line */
.download-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-light), transparent);
  opacity: .8;
}

/* ---------- Badge ---------- */
.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #86EFAC;
  background: rgba(34, 197, 94, .09);
  border: 1px solid rgba(34, 197, 94, .32);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.download-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .65);
  animation: badgePulse 1.9s infinite;
}
@keyframes badgePulse {
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- App icon ---------- */
.download-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 22px;
  border-radius: 26px;
  background: #000;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 6px rgba(59, 130, 246, .1),
    0 24px 48px -18px rgba(0, 0, 0, .9);
  overflow: hidden;
}
.download-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Title & subtitle ---------- */
.download-title {
  font-size: clamp(1.4rem, 3.4vw, 1.75rem);
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.download-sub {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 26px;
}

/* ---------- File meta grid ---------- */
.file-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r);
  overflow: hidden;
  margin: 0 0 24px;
}
.meta-item {
  background: rgba(7, 12, 22, .55);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meta-label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta-value {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 600;
  color: #FFF;
}

/* ---------- Download button ---------- */
.download-btn {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

/* ---------- Hint text ---------- */
.download-hint {
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Downloader Code — Compact Box
   ========================================================================== */

.code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 16px 16px 22px;
  background:
    linear-gradient(165deg, rgba(28, 44, 73, .85), rgba(16, 27, 46, .82) 62%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}

.code-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.code-label {
  font-family: var(--ff-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.code-value {
  font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .02em;
  color: #FFF;
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}

.code-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 11px 20px;
  font-family: var(--ff-head);
  font-size: .9rem;
  font-weight: 600;
  color: #FFF;
  background: linear-gradient(135deg, var(--brand-light), var(--brand) 45%, var(--brand-deep));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px var(--brand-glow);
  transition: transform .18s ease, box-shadow .18s ease, background .25s ease;
  white-space: nowrap;
}
.code-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(59, 130, 246, .6);
}
.code-copy:active { transform: translateY(0); }

.code-copy svg { width: 16px; height: 16px; flex: none; }
.code-copy .icon-check { display: none; }
.code-copy.copied .icon-copy { display: none; }
.code-copy.copied .icon-check { display: block; }
.code-copy.copied {
  background: linear-gradient(135deg, #4ADE80, #22C55E 55%, #15803D);
  box-shadow: 0 8px 20px -8px rgba(34, 197, 94, .5);
}

.code-hint {
  max-width: 560px;
  margin: 12px auto 0;
  text-align: center;
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .code-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    text-align: center;
  }
  .code-left { text-align: center; }
  .code-copy { justify-content: center; }
}
