/* ============================================================
   NyxoPlay — landing page
   Brand: NyxoPurple #7B2CFF · NyxoPink #FF2CA6
          NyxoBackground #0B0D14 · NyxoSurface #21222B
   ============================================================ */

:root {
  --purple: #7b2cff;
  --pink: #ff2ca6;
  --bg: #0b0d14;
  --bg-2: #0e1018;
  --surface: #21222b;
  --surface-2: #181a22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5fa;
  --muted: #a6a9b8;
  --muted-2: #777b8c;
  --radius: 18px;
  --radius-lg: 26px;
  --grad: linear-gradient(110deg, var(--purple), var(--pink));
  --maxw: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Offset anchor jumps so the sticky nav doesn't cover the target.
     For #top this clamps to scrollY 0, so it lands at the very top. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 34px -12px rgba(123, 44, 255, 0.8);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 44, 166, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(123, 44, 255, 0.14);
  color: #d9c7ff;
  border: 1px solid rgba(123, 44, 255, 0.32);
}
.pill--soft { background: rgba(255, 44, 166, 0.12); color: #ffc7e6; border-color: rgba(255, 44, 166, 0.3); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 40px);
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 13, 20, 0.92); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__logo { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-size: 19px; letter-spacing: -0.01em; }
.brand__accent { color: var(--pink); }

.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang__btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 7px 13px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang__btn.is-active { background: var(--grad); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 40px) clamp(40px, 6vw, 70px); }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero__glow--purple { width: 560px; height: 560px; background: var(--purple); top: -180px; left: -140px; }
.hero__glow--pink { width: 520px; height: 520px; background: var(--pink); top: -60px; right: -160px; opacity: 0.35; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__copy .pill { margin-bottom: 22px; }
.hero__title { font-size: clamp(36px, 6vw, 60px); font-weight: 900; }
.hero__title span { display: block; }
.hero__sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 540px; margin: 22px 0 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 26px; padding: 0; margin: 30px 0 0; }
.hero__badges li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255, 44, 166, 0.7); }

/* Hero art */
.hero__art { position: relative; min-height: 380px; }
.device { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; }
.device--tv {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  transform: rotate(-1deg);
}
.device--phone {
  position: absolute;
  width: 33%;
  max-width: 180px;
  bottom: -28px;
  right: -8px;
  border-radius: 26px;
  border-width: 4px;
  border-color: #2a2c38;
  transform: rotate(3deg);
}

/* ============================================================
   STRIP
   ============================================================ */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.strip__item {
  background: linear-gradient(180deg, rgba(33, 34, 43, 0.6), rgba(24, 26, 34, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.strip__item strong {
  font-size: 34px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip__item span { color: var(--muted); font-size: 14px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 40px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head .pill { margin-bottom: 18px; }
.section__title { font-size: clamp(28px, 4vw, 34px); font-weight: 900; }
.section__lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); margin-top: 16px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(123, 44, 255, 0.4); box-shadow: 0 24px 50px -24px rgba(123, 44, 255, 0.5); }
.card--accent { border-color: rgba(255, 44, 166, 0.22); }
.card--accent:hover { border-color: rgba(255, 44, 166, 0.5); box-shadow: 0 24px 50px -24px rgba(255, 44, 166, 0.45); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: rgba(123, 44, 255, 0.14);
  border: 1px solid rgba(123, 44, 255, 0.28);
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: #d9c7ff; transition: color .2s; }
.card__more:hover { color: var(--pink); }
.section__cta { text-align: center; margin: 34px 0 0; }

/* ============================================================
   FEATURE BANNER
   ============================================================ */
.feature-banner {
  max-width: var(--maxw);
  margin: clamp(64px, 9vw, 110px) auto 0;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(123, 44, 255, 0.22), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(255, 44, 166, 0.18), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feature-banner__media { display: flex; justify-content: center; }
.device--phone-lg {
  position: static;
  width: 230px;
  max-width: 70%;
  border-width: 6px;
  border-color: #2a2c38;
  transform: rotate(-2deg);
}
.feature-banner__copy .pill { margin-bottom: 16px; }
.feature-banner__copy h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; margin-bottom: 14px; }
.feature-banner__copy p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 500; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
}

/* ============================================================
   DEVICES
   ============================================================ */
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.device-card {
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  transition: transform .25s ease, border-color .25s ease;
}
.device-card:hover { transform: translateY(-5px); }
.device-card--live:hover { border-color: rgba(123, 44, 255, 0.45); }
.device-card__icon { font-size: 34px; margin-bottom: 12px; height: 40px; }
.device-card h3 { font-size: 18px; margin-bottom: 8px; }
.device-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; min-height: 38px; }
.tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tag--live { background: rgba(76, 230, 160, 0.14); color: #6ff2bf; border: 1px solid rgba(76, 230, 160, 0.3); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  grid-column: span 2;
}
.gallery__item--wide { grid-column: span 4; aspect-ratio: 16 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
/* A phone capture is taller than the TV frame beside it: the row takes the TV
   frame's height and the phone shows its top part, instead of stretching the row
   and cropping the TV frame. */
.gallery__item:not(.gallery__item--wide) { position: relative; }
.gallery__item:not(.gallery__item--wide) img { position: absolute; inset: 0; }
.gallery__item:hover img { transform: scale(1.04); }
.shots-credit { color: var(--muted-2); font-size: 12.5px; line-height: 1.6; text-align: center; max-width: 760px; margin: 18px auto 0; }

/* ============================================================
   GET / CTA
   ============================================================ */
.get { position: relative; overflow: hidden; margin-top: clamp(64px, 9vw, 110px); padding: clamp(60px, 8vw, 100px) clamp(16px, 5vw, 40px); text-align: center; }
.get__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(123, 44, 255, 0.3), transparent 70%),
    radial-gradient(500px 260px at 50% 100%, rgba(255, 44, 166, 0.22), transparent 70%);
  pointer-events: none;
}
.get__inner { position: relative; max-width: 700px; margin: 0 auto; }
.get__logo { width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 22px; box-shadow: 0 0 40px rgba(255, 44, 166, 0.4); }
.get h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; margin-bottom: 16px; }
.get__sub, .get p { color: var(--muted); }
.get__inner > p { font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.get__buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.store-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 12px 26px; border-radius: 14px;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 34px -14px rgba(123, 44, 255, 0.8);
  transition: transform .2s ease;
}
.store-btn:hover { transform: translateY(-3px); }
.store-btn--alt { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); box-shadow: none; }
.store-btn__top { font-size: 11px; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.store-btn__main { font-size: 19px; font-weight: 800; line-height: 1.1; }
.get__note { margin-top: 22px; font-size: 14px; color: var(--muted-2); }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.privacy__item {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.privacy__item h3 { font-size: 18px; margin-bottom: 8px; }
.privacy__item p { color: var(--muted); font-size: 15px; margin: 0; }
.privacy__item p a { color: #d9c7ff; text-decoration: underline; }
.privacy__updated { text-align: center; color: var(--muted-2); font-size: 13.5px; margin: 6px 0 0; }
.privacy__more { text-align: center; margin: 26px 0 0; }

/* ============================================================
   LEGAL / LONG-FORM (privacy.html)
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 40px) 0;
}
.legal__head { margin-bottom: 14px; }
.legal__head .pill { margin-bottom: 18px; }
.legal__title { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.legal__lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); margin-top: 14px; }
.legal__updated { color: var(--muted-2); font-size: 13.5px; margin-top: 10px; }
.legal__intro { color: var(--text); font-size: 16px; margin: 24px 0 0; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin-bottom: 12px; }
.legal p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.legal a { color: #d9c7ff; text-decoration: underline; }
.legal__back { margin: 40px 0 0; }

/* ============================================================
   USER MANUAL (manual.html)
   ============================================================ */
[data-lang-only][hidden] { display: none !important; }

.manual-hero { position: relative; overflow: hidden; padding: clamp(44px, 7vw, 84px) clamp(16px, 5vw, 40px) clamp(28px, 4vw, 44px); }
.manual-hero__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.manual-hero .pill { margin-bottom: 18px; }
.manual-hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 900; max-width: 820px; }
.manual-hero__lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 700px; margin: 18px 0 0; }
.manual-hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
a.chip:hover { background: rgba(123, 44, 255, 0.16); border-color: rgba(123, 44, 255, 0.45); }

.manual {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* --- Table of contents --- */
.toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 4px 4px 24px 0; scrollbar-width: thin; }
.toc__title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 12px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc > nav > ol > li { counter-increment: toc; }
.toc a {
  display: block; padding: 7px 12px; border-radius: 10px;
  color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.35;
  border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s;
}
.toc > nav > ol > li > a::before { content: counter(toc, decimal-leading-zero) "  "; color: var(--muted-2); font-variant-numeric: tabular-nums; white-space: pre; }
.toc a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.toc a.is-active { color: #fff; background: rgba(123, 44, 255, 0.14); border-left-color: var(--pink); }
.toc ol ol { margin: 2px 0 6px 18px; }
.toc ol ol a { font-size: 13px; font-weight: 500; padding: 5px 12px; }
.toc__toggle { display: none; }

/* --- Doc body --- */
.doc { min-width: 0; padding-bottom: 20px; }
.doc > section { padding-top: 28px; margin-bottom: 30px; border-top: 1px solid var(--line); }
.doc > section:first-of-type { border-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; margin: 0 0 6px; display: flex; align-items: baseline; gap: 14px; }
.doc h2 .num { font-size: 15px; font-weight: 800; letter-spacing: .06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.doc .section-lead { color: var(--muted); font-size: 17px; margin: 6px 0 22px; }
.doc h3 { font-size: 21px; font-weight: 800; margin: 34px 0 10px; }
.doc h4 { font-size: 16px; font-weight: 800; margin: 22px 0 8px; color: var(--text); }
.doc p, .doc li { color: #c9cbd6; font-size: 15.5px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--pink); }
.doc strong { color: var(--text); }
.doc a:not(.btn):not(.chip) { color: #d9c7ff; text-decoration: underline; text-underline-offset: 2px; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }

/* UI label + path */
.ui { font-weight: 700; color: var(--text); white-space: nowrap; }
.path { display: inline; font-weight: 700; color: var(--text); }
.path span + span::before { content: " ▸ "; color: var(--pink); font-weight: 800; }
kbd {
  display: inline-block; min-width: 24px; text-align: center;
  font: 700 12.5px/1 "Inter", system-ui, sans-serif; color: var(--text);
  padding: 5px 8px; border-radius: 7px;
  background: linear-gradient(180deg, #2b2d39, #1c1e27);
  border: 1px solid rgba(255,255,255,.14); border-bottom-width: 3px;
  vertical-align: 1px; white-space: nowrap;
}

/* Callouts */
.callout { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 18px; border-radius: var(--radius); margin: 18px 0; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.callout__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(123,44,255,.16); border: 1px solid rgba(123,44,255,.3); }
.callout p { margin: 0; font-size: 15px; }
.callout p + p { margin-top: 8px; }
.callout strong:first-child { display: block; margin-bottom: 2px; }
.callout--tip { border-color: rgba(76, 230, 160, .28); background: rgba(76, 230, 160, .05); }
.callout--tip .callout__icon { background: rgba(76, 230, 160, .14); border-color: rgba(76, 230, 160, .3); }
.callout--warn { border-color: rgba(255, 44, 166, .3); background: rgba(255, 44, 166, .05); }
.callout--warn .callout__icon { background: rgba(255, 44, 166, .14); border-color: rgba(255, 44, 166, .32); }

/* Numbered steps */
.steps { list-style: none; padding: 0 !important; margin: 16px 0 20px; counter-reset: step; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; margin: 0; border-radius: 14px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); }
.steps > li::before { content: counter(step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--grad); }
.steps > li p { margin: 4px 0 0; }

/* Platform badges */
.plat { display: inline-flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.plat span { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); }
.plat .on { background: rgba(123,44,255,.16); border-color: rgba(123,44,255,.4); color: #e0d2ff; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.doc th, .doc td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); background: rgba(255,255,255,.03); font-weight: 800; }
.doc td { color: #c9cbd6; }
.doc tr:last-child td { border-bottom: 0; }
.doc td:first-child { color: var(--text); font-weight: 600; }

/* Figures */
.fig { margin: 22px 0 26px; }
.fig__frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.fig__frame img { width: 100%; }
.fig figcaption { color: var(--muted-2); font-size: 13.5px; margin-top: 10px; text-align: center; }
.fig--pair { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; align-items: center; }
.fig--pair figcaption { grid-column: 1 / -1; }
.fig--pair-even { grid-template-columns: 1fr 1fr; }
.fig--with-phone { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); }
.fig--with-phone .fig__frame:last-of-type { border-radius: 24px; border: 4px solid #2a2c38; }
.fig--phone .fig__frame { max-width: 270px; margin: 0 auto; border-radius: 28px; border: 4px solid #2a2c38; }
.fig--phone-row { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); justify-content: center; gap: 22px; }
.fig--phone-row .fig__frame { border-radius: 28px; border: 4px solid #2a2c38; }
.fig--phone-row figcaption { grid-column: 1 / -1; }

/* Diagram panel (schematic illustrations) */
.diagram {
  margin: 22px 0 26px; padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background:
    radial-gradient(500px 220px at 10% 0%, rgba(123,44,255,.16), transparent 60%),
    radial-gradient(420px 220px at 100% 100%, rgba(255,44,166,.12), transparent 60%),
    var(--surface-2);
}
.diagram figcaption { color: var(--muted-2); font-size: 13.5px; margin-top: 16px; text-align: center; }
.diagram svg { width: 100%; height: auto; display: block; }

/* Remote diagram layout */
.remote { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; }
.remote svg { max-width: 170px; margin: 0 auto; }
.remote__legend { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.remote__legend li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; margin: 0; font-size: 14.5px; }
.remote__legend b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; color: #fff; background: var(--grad); }

/* TV levels diagram */
.levels { display: grid; grid-template-columns: 0.8fr 0.9fr 1.6fr; gap: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #090b11; min-height: 230px; }
.levels__col { padding: 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.levels__col:last-child { border-right: 0; }
.levels__tag { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.levels__row { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 6px 9px; border-radius: 8px; letter-spacing: .02em; }
.levels__row.is-on { color: #fff; background: rgba(255,255,255,.07); box-shadow: inset 3px 0 0 var(--pink); }
.levels__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.levels__grid i { aspect-ratio: 2 / 3; border-radius: 7px; background: var(--surface-2) center / cover no-repeat; }
.levels__grid i:first-child { outline: 2px solid #fff; outline-offset: 2px; }
.levels__keys { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* Control strips (player, detail actions) */
.strip-demo { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px; border-radius: 16px; background: rgba(0,0,0,.45); border: 1px solid var(--line); }
.ctl { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 66px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.ctl i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 19px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.ctl.is-focus i { background: var(--grad); border-color: transparent; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.ctl.is-focus { color: #fff; }
.pillbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); position: relative; overflow: hidden; }
.pillbtn--primary { background: var(--grad); border-color: transparent; }
.pillbtn--primary::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 42%; background: rgba(255,255,255,.9); }
.pillbtn--icon { width: 42px; padding: 0; justify-content: center; font-size: 17px; }
.pillbtn--on { background: var(--pink); border-color: transparent; }
.strip-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 22px; margin: 16px 0 0; padding: 0; list-style: none; }
.strip-legend li { margin: 0; font-size: 14px; }

/* EPG grid diagram */
.epg { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #090b11; font-size: 12.5px; position: relative; }
.epg__head, .epg__row { display: grid; grid-template-columns: 110px 1fr; }
.epg__head { color: var(--muted-2); font-weight: 700; font-size: 11.5px; border-bottom: 1px solid var(--line); }
.epg__head > div:first-child, .epg__ch { padding: 10px 12px; border-right: 1px solid var(--line); }
.epg__times { display: grid; grid-template-columns: repeat(4, 1fr); }
.epg__times span { padding: 10px 8px; }
.epg__ch { color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.epg__ch em { font-style: normal; font-size: 10.5px; color: #6ff2bf; font-weight: 800; }
.epg__progs { display: flex; gap: 4px; padding: 5px; }
.epg__p { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.epg__p--past { opacity: .55; }
.epg__p--now { background: rgba(123,44,255,.28); color: #fff; }
.epg__p--sel { outline: 2px solid #fff; color: #fff; }
.epg__row + .epg__row { border-top: 1px solid var(--line); }
.epg__now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.epg__now::before { content: attr(data-label); position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: #fff; background: var(--pink); padding: 2px 6px; border-radius: 6px; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.flow__node { padding: 18px 12px; border-radius: 16px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); }
.flow__node--hub { border-color: rgba(123,44,255,.5); box-shadow: 0 0 40px -14px rgba(123,44,255,.8); }
.flow__node b { display: block; font-size: 26px; margin-bottom: 6px; }
.flow__node strong { display: block; font-size: 14.5px; }
.flow__node span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.flow__arrow { font-size: 22px; color: var(--pink); font-weight: 800; }

/* Feature grid in a section */
.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 22px; }
.mini-card { padding: 18px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); }
.mini-card h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 9px; }
.mini-card p { margin: 0; font-size: 14.5px; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); margin: 10px 0; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 14px; }

.back-top { display: inline-flex; margin-top: 10px; }

@media (max-width: 960px) {
  .manual { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; overflow: visible; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
  .toc__toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; background: transparent; border: 0; color: var(--text); font: 700 15px "Inter", sans-serif; padding: 15px 18px; cursor: pointer; }
  .toc__toggle::after { content: "▾"; color: var(--pink); transition: transform .2s; }
  .toc.is-open .toc__toggle::after { transform: rotate(180deg); }
  .toc__title { display: none; }
  .toc > nav { display: none; padding: 0 10px 14px; }
  .toc.is-open > nav { display: block; }
  .fig--pair { grid-template-columns: 1fr; }
  .fig--with-phone .fig__frame:last-of-type { max-width: 230px; margin: 0 auto; }
  .remote { grid-template-columns: 1fr; justify-items: center; }
  .remote__legend { justify-self: stretch; }
}
@media (max-width: 620px) {
  .mini-cards { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .levels__col:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); }
  .fig--phone-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .epg__head, .epg__row { grid-template-columns: 82px 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(36px, 5vw, 56px) clamp(16px, 5vw, 40px) 32px; }
.footer__top {
  max-width: var(--maxw); margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s; }
.footer__links a:hover { color: var(--text); }

.disclaimer {
  max-width: var(--maxw); margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.disclaimer strong:first-child {
  display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
  color: var(--pink); margin-bottom: 8px;
}
.disclaimer p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.disclaimer p strong { color: var(--text); }

.footer__bottom {
  max-width: var(--maxw); margin: 26px auto 0;
  color: var(--muted-2); font-size: 13.5px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.footer__sep { opacity: 0.5; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; margin-top: 14px; max-width: 520px; }
  .device--phone { width: 30%; bottom: -16px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-banner { grid-template-columns: 1fr; text-align: center; }
  .feature-banner__copy .ticks { text-align: left; max-width: 320px; margin: 0 auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item, .gallery__item--wide { grid-column: span 2; }
  .gallery__item:not(.gallery__item--wide) { aspect-ratio: 3 / 4; }
}

@media (max-width: 620px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--wide { grid-column: auto; }
  .gallery__item:not(.gallery__item--wide) { aspect-ratio: 3 / 4; }
  .hero__badges { gap: 12px 20px; }
  .device--phone-lg { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .device-card, .store-btn, .gallery__item img { transition: none; }
}
