:root {
  --ink: #eaf4ef;
  --muted: #9aaba4;
  --paper: #07110f;
  --panel: #0d1a17;
  --line: rgba(221, 245, 233, .13);
  --acid: #b9f34a;
  --mint: #65e6bc;
  --warm: #f4efe2;
  --dark: #09100e;
  --radius: 28px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--acid); outline-offset: 4px; }
.section-shell { width: var(--shell); margin-inline: auto; }

html { overflow-x: clip; }
body { overflow-x: clip; }
.site-header { position: fixed; z-index: 20; top: 16px; left: 50%; transform: translateX(-50%); width: var(--shell); min-height: 62px; padding: 8px 10px 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7,17,15,.72); box-shadow: 0 14px 40px rgba(0,0,0,.25); backdrop-filter: blur(18px); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: block; width: 31px; height: 31px; border-radius: 10px; object-fit: cover; }
nav { display: flex; align-items: center; gap: 7px; min-width: 0; }
nav a { padding: 9px 13px; color: #bdcbc5; font-size: 13px; }
nav a:not(.nav-cta):hover { color: white; }
/* Same primary download treatment as the hero CTA (acid green, dark text). */
nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--acid);
  border-radius: 999px;
  background: var(--acid);
  color: var(--dark);
  font-weight: 700;
  white-space: nowrap;
  transition: transform .2s, filter .2s, background .2s;
}
nav .nav-cta:hover {
  color: var(--dark);
  transform: translateY(-1px);
  filter: brightness(1.06);
}
nav .nav-atv { padding-inline: 15px; border: 1px solid rgba(101,230,188,.45); border-radius: 999px; color: var(--mint); font-weight: 700; }
nav .nav-atv:hover { border-color: var(--mint); color: var(--mint); background: rgba(101,230,188,.08); }
.lang-toggle { display: flex; align-items: center; gap: 5px; margin-inline: 4px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); color: #bdcbc5; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lang-toggle:hover { background: rgba(255,255,255,.08); }
.lang-toggle .lang-sep { color: #56675f; }
.lang-toggle .lang-opt { opacity: .45; }
.lang-toggle .lang-opt.active { opacity: 1; color: var(--acid); }

.hero { min-height: 800px; padding: 170px 0 100px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 64px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--mint); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .eyebrow-dash { flex-shrink: 0; width: 25px; height: 1px; background: currentColor; }
.eyebrow .eyebrow-text { flex: 1; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(48px, 5.8vw, 76px); line-height: 1.03; letter-spacing: -.065em; }
h1 em { color: var(--acid); font-style: normal; }
.hero-lead { max-width: 650px; color: #a9bab3; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 35px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 750; transition: transform .2s, background .2s, filter .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--acid); color: var(--dark); border-color: var(--acid); }
.button.primary:hover { color: var(--dark); filter: brightness(1.06); }
.button.secondary { background: rgba(255,255,255,.035); }
.free-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 18px; padding: 2px 6px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .05em; line-height: 1; }
/* Free badge is always the inverse of the acid primary surface. */
.button.primary .free-badge { margin-inline: -8px; background: var(--dark); color: var(--acid); }
.platform-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; color: #72867e; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.platform-note i { width: 3px; height: 3px; border-radius: 50%; background: #53665e; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hero-tags span { padding: 5px 10px; border: 1px solid rgba(101,230,188,.24); border-radius: 999px; color: #9eb5ab; background: rgba(101,230,188,.045); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.hero-visual { position: relative; }
.visual-glow { position: absolute; inset: 10%; background: var(--mint); filter: blur(120px); opacity: .13; }
.phone-mock { position: relative; overflow: hidden; border-radius: 34px; border: 1px solid rgba(255,255,255,.12); background: #101e1a; box-shadow: 0 35px 80px rgba(0,0,0,.35); }
.phone-mock img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-shot { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; border-radius: 34px; border: 1px solid rgba(255,255,255,.12); background: #101e1a; box-shadow: 0 35px 80px rgba(0,0,0,.35); }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.signal-card { position: absolute; left: -24px; top: 28px; display: flex; align-items: center; gap: 12px; min-width: 220px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(14,27,23,.88); box-shadow: 0 20px 50px rgba(0,0,0,.4); backdrop-filter: blur(16px); }
.signal-card div { display: flex; flex: 1; flex-direction: column; line-height: 1.3; }
.signal-card small { color: #80938b; font-size: 10px; }
.signal-card strong { font-size: 13px; }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px var(--acid); }
.signal-bars { color: var(--mint); letter-spacing: 2px; }

.ticker { overflow: hidden; padding: 17px 0; border-block: 1px solid var(--line); background: var(--acid); color: var(--dark); }
.ticker div { width: max-content; min-width: 100%; display: flex; justify-content: space-around; gap: 35px; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.ticker b { font-size: 8px; }

.story { padding: 130px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.sticky-heading { position: sticky; top: 130px; align-self: start; }
h2 { font-size: clamp(38px, 5vw, 65px); line-height: 1.1; letter-spacing: -.055em; }
.story-content { display: grid; gap: 16px; }
.story-card { position: relative; min-height: 240px; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.022); }
.story-card.featured { background: var(--warm); color: #17201d; }
.story-card .step { display: block; margin-bottom: 50px; color: #667a71; font-family: ui-monospace, monospace; font-size: 12px; }
.story-card h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.03em; }
.story-card p { max-width: 600px; margin-bottom: 0; color: #8fa198; }
.story-card.featured p { color: #59655f; }

.feature-section { min-height: 660px; padding: 130px 0; }
.feature-section + .feature-section { border-top: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 90px; }
.feature-section--reverse .feature-copy { order: 2; }
.feature-section--reverse .feature-visual { order: 1; }
.feature-copy > p:not(.eyebrow) { max-width: 540px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.feature-copy > p.feature-note { max-width: 510px; margin-top: 16px; color: #74877f; font-size: 12px; line-height: 1.7; }
.feature-beta { margin-left: 2px; padding: 3px 7px; border: 1px solid rgba(185,243,74,.48); border-radius: 999px; color: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .06em; line-height: 1; }
.feature-visual { display: flex; justify-content: center; }
.feature-phone { width: 310px; max-width: 100%; aspect-ratio: 415 / 900; }
.feature-phone--iptv { width: 335px; }
.feature-demo-shot { overflow: hidden; width: 640px; max-width: 100%; aspect-ratio: 1672 / 941; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: #101e1a; box-shadow: 0 35px 80px rgba(0,0,0,.35); }
.feature-demo-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 480px; max-width: 100%; aspect-ratio: 4 / 3; border: 1px dashed rgba(101,230,188,.34); border-radius: var(--radius); background: linear-gradient(135deg, rgba(101,230,188,.09), rgba(255,255,255,.022)); color: #89a79c; text-align: center; }
.feature-placeholder span { color: var(--mint); font: 11px ui-monospace, monospace; letter-spacing: .08em; }
.feature-placeholder strong { color: var(--ink); font-size: 17px; font-weight: 700; }

/* Portrait screenshots get the visual weight of a device; wide demos use the page width. */
.feature-section--portrait { min-height: 900px; }
.feature-section--portrait .feature-inner { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 110px; }
.feature-section--portrait .feature-copy { max-width: 450px; }
.feature-section--portrait .feature-visual { justify-content: flex-end; }
.feature-section--portrait .feature-phone { width: 410px; }
.feature-section--portrait .feature-phone--iptv { width: 410px; }
.feature-section--content { min-height: 2200px; }
.feature-section--content .feature-inner { min-height: 1940px; grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); align-items: start; gap: 105px; }
.feature-section--content .feature-copy { position: sticky; top: 160px; max-width: 460px; }
.feature-section--content .feature-visual { position: sticky; top: 106px; justify-content: flex-end; }
.content-showcase { width: min(100%, 650px); overflow: hidden; }
.content-screen-tabs { display: grid; gap: 8px; width: min(100%, 238px); margin-top: 36px; }
.content-screen-tabs button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); color: #9eb5ab; font: 700 12px/1 inherit; text-align: left; cursor: pointer; transition: color .22s, border-color .22s, background .22s, transform .22s; }
.content-screen-tabs button span { color: #61766d; font: 10px ui-monospace, monospace; letter-spacing: .08em; }
.content-screen-tabs button b { font: inherit; }
.content-screen-tabs button:hover { color: var(--ink); border-color: rgba(101,230,188,.52); transform: translateX(3px); }
.content-screen-tabs button[aria-pressed="true"] { border-color: rgba(185,243,74,.7); background: rgba(185,243,74,.11); color: var(--acid); }
.content-screen-tabs button[aria-pressed="true"] span { color: var(--acid); }
.content-phone-fan { position: relative; height: 780px; isolation: isolate; }
.content-phone { position: absolute; top: 50%; left: 50%; width: 365px; aspect-ratio: 415 / 900; transform-origin: 50% 100%; transition: transform .52s cubic-bezier(.2,.8,.2,1), opacity .32s, filter .32s, box-shadow .32s; will-change: transform; }
.content-phone--library { z-index: 3; transform: translate(-50%, -50%); }
.content-phone--iptv { z-index: 2; transform: translate(calc(-50% + 190px), calc(-50% + 18px)) scale(.98); opacity: .82; filter: saturate(.84) brightness(.76); }
.content-phone--remote { z-index: 1; transform: translate(calc(-50% - 188px), calc(-50% + 32px)) scale(.96); opacity: .72; filter: saturate(.78) brightness(.62); }
.content-showcase[data-active-screen="iptv"] .content-phone--iptv { z-index: 3; transform: translate(-50%, -50%); opacity: 1; filter: none; }
.content-showcase[data-active-screen="iptv"] .content-phone--library { z-index: 2; transform: translate(calc(-50% - 188px), calc(-50% + 32px)) scale(.96); opacity: .72; filter: saturate(.78) brightness(.62); }
.content-showcase[data-active-screen="iptv"] .content-phone--remote { z-index: 1; transform: translate(calc(-50% + 190px), calc(-50% + 18px)) scale(.98); opacity: .82; filter: saturate(.84) brightness(.76); }
.content-showcase[data-active-screen="remote"] .content-phone--remote { z-index: 3; transform: translate(-50%, -50%); opacity: 1; filter: none; }
.content-showcase[data-active-screen="remote"] .content-phone--library { z-index: 2; transform: translate(calc(-50% + 190px), calc(-50% + 18px)) scale(.98); opacity: .82; filter: saturate(.84) brightness(.76); }
.content-showcase[data-active-screen="remote"] .content-phone--iptv { z-index: 1; transform: translate(calc(-50% - 188px), calc(-50% + 32px)) scale(.96); opacity: .72; filter: saturate(.78) brightness(.62); }
.feature-section--landscape { min-height: 0; padding-block: 145px; }
.feature-section--landscape .feature-inner { display: block; }
.feature-section--landscape .feature-copy { max-width: 660px; margin-bottom: 54px; }
.feature-section--landscape .feature-visual { justify-content: flex-start; }
.feature-section--landscape .feature-demo-shot { width: min(100%, 1080px); }

.flow { padding: 100px 0 130px; border-top: 1px solid var(--line); }
.flow h2 { max-width: 700px; }
.flow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; margin-top: 60px; }
.flow-grid article { min-height: 230px; padding: 29px; border: 1px solid var(--line); border-radius: 24px; }
.flow-grid b { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 48px; border-radius: 50%; background: var(--acid); color: var(--dark); font-size: 12px; }
.flow-grid h3 { margin-bottom: 5px; font-size: 23px; }
.flow-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.flow-arrow { padding: 20px; color: var(--acid); }

.comparison { padding: 130px 0; background: var(--warm); color: #16201c; }
.comparison .eyebrow { color: #427864; }
.comparison-intro { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 80px; }
.comparison-intro p:last-child { color: #65706b; }
.table-wrap { overflow-x: auto; margin-top: 65px; border: 1px solid rgba(20,40,32,.13); border-radius: 24px; background: #faf8f0; }
table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 19px 17px; border-bottom: 1px solid rgba(20,40,32,.09); text-align: left; vertical-align: top; }
thead th { color: #52615b; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
tbody th { width: 125px; color: #68756f; font-weight: 600; }
td { color: #5f6a65; }
td b { color: #17231e; }
.highlight { background: rgba(75,150,112,.075); }
thead .highlight { color: #1f684d; }
.verdicts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.verdicts article { padding: 25px; border: 1px solid rgba(20,40,32,.13); border-radius: 20px; }
.verdicts article.active { background: #14251f; color: white; }
.verdicts span { color: #4d806c; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.verdicts .active span { color: var(--acid); }
.verdicts h3 { margin: 25px 0 8px; font-size: 18px; }
.verdicts p { margin: 0; color: #6a756f; font-size: 12px; }
.verdicts .active p { color: #9dafaa; }
.guide-note { margin: 24px 4px 0; color: #7a837f; font-size: 11px; }

.download { margin-top: 110px; padding: 80px; display: flex; align-items: end; justify-content: space-between; gap: 50px; border-radius: 36px; background: var(--acid); color: var(--dark); }
.download h2 { margin: 0; }
.eyebrow.light { color: #396013; }
.download-actions { width: min(100%, 470px); text-align: left; }
.download-buttons { display: grid; gap: 10px; }
.download-buttons > .light-button { width: 100%; }
.download-secondary-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* Inverse download CTA for the acid-green download band / guide footer. */
.light-button { min-width: 0; border: 0; background: var(--dark); color: var(--ink); }
.light-button:hover { color: var(--ink); filter: brightness(1.12); }
.light-button .free-badge { margin-inline: -8px; background: var(--acid); color: var(--dark); }
.guide-button { min-width: 0; border-color: rgba(9,16,14,.42); color: var(--dark); }
.guide-button:hover { background: rgba(9,16,14,.08); }
.atv-button { min-width: 0; border-color: rgba(9,16,14,.42); background: rgba(9,16,14,.07); color: var(--dark); }
.atv-button:hover { background: rgba(9,16,14,.12); }
.download-actions > p { margin: 11px 5px 0; color: #3f5b1e; font-size: 11px; }

footer { width: var(--shell); margin: 110px auto 0; padding: 35px 0 50px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; border-top: 1px solid var(--line); color: #768a81; font-size: 12px; }
footer p { margin: 0; text-align: center; }
footer div { display: flex; justify-content: flex-end; gap: 20px; }
footer a:hover { color: white; }

@media (max-width: 900px) {
  nav a:not(.nav-cta):not(.nav-atv) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { max-width: 620px; }
  .story { grid-template-columns: 1fr; gap: 55px; }
  .sticky-heading { position: static; }
  .feature-section { min-height: 0; padding-block: 100px; }
  .feature-inner { grid-template-columns: 1fr; gap: 50px; }
  .feature-section--reverse .feature-copy, .feature-section--reverse .feature-visual { order: initial; }
  .feature-visual { justify-content: flex-start; min-width: 0; }
  .feature-section--portrait { min-height: 0; }
  .feature-section--portrait .feature-inner { grid-template-columns: 1fr; gap: 50px; }
  .feature-section--portrait .feature-visual { justify-content: flex-start; }
  .feature-section--content { min-height: 0; }
  .feature-section--content .feature-inner { min-height: 0; grid-template-columns: 1fr; gap: 50px; }
  .feature-section--content .feature-copy, .feature-section--content .feature-visual { position: static; }
  .feature-section--content .feature-visual { justify-content: flex-start; overflow: hidden; }
  .content-showcase { width: min(100%, 620px); }
  .content-phone-fan { height: 700px; }
  .content-phone { width: 330px; }
  .content-phone--iptv { transform: translate(calc(-50% + 145px), calc(-50% + 16px)) scale(.98); }
  .content-phone--remote { transform: translate(calc(-50% - 143px), calc(-50% + 28px)) scale(.96); }
  .content-showcase[data-active-screen="iptv"] .content-phone--library { transform: translate(calc(-50% - 143px), calc(-50% + 28px)) scale(.96); }
  .content-showcase[data-active-screen="iptv"] .content-phone--remote { transform: translate(calc(-50% + 145px), calc(-50% + 16px)) scale(.98); }
  .content-showcase[data-active-screen="remote"] .content-phone--library { transform: translate(calc(-50% + 145px), calc(-50% + 16px)) scale(.98); }
  .content-showcase[data-active-screen="remote"] .content-phone--iptv { transform: translate(calc(-50% - 143px), calc(-50% + 28px)) scale(.96); }
  .feature-section--landscape .feature-copy { margin-bottom: 38px; }
  .feature-demo-shot { width: 100%; }
  .comparison-intro { grid-template-columns: 1fr; gap: 10px; }
  .verdicts { grid-template-columns: repeat(2, 1fr); }
  .download { padding: 55px; align-items: start; flex-direction: column; }
  .download-actions { width: 100%; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .site-header {
    top: max(8px, env(safe-area-inset-top, 0px));
    min-height: 54px;
    padding: 6px 8px 6px 12px;
    gap: 6px;
  }
  .brand { gap: 8px; font-size: 16px; }
  .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
  nav { gap: 4px; }
  .lang-toggle { margin-inline: 0; padding: 6px 9px; font-size: 11px; }
  nav .nav-cta { min-height: 36px; padding: 0 12px; font-size: 12px; }
  nav .nav-cta .nav-platform { display: none; }
  nav .nav-atv { display: none; }
  .hero { min-height: auto; padding: 118px 0 64px; gap: 36px; }
  h1 { font-size: clamp(34px, 9.5vw, 40px); letter-spacing: -.055em; }
  .hero-lead { font-size: 16px; }
  .hero-actions { gap: 10px; margin-top: 28px; }
  .hero-actions .button { width: 100%; min-height: 50px; gap: 10px; }
  .button.primary .free-badge { margin-inline: 0; }
  .platform-note { gap: 8px; margin-top: 22px; font-size: 10px; }
  .hero-tags { gap: 6px; }
  .hero-tags span { padding: 5px 9px; font-size: 10px; }
  .signal-card {
    left: 8px;
    top: 12px;
    right: 8px;
    min-width: 0;
    max-width: none;
    width: auto;
    padding: 11px 13px;
  }
  .signal-card strong { font-size: 12px; }
  .ticker div { justify-content: flex-start; padding-inline: 20px; }
  .story, .flow, .comparison { padding-block: 72px; }
  h2 { font-size: clamp(30px, 8vw, 38px); }
  .story-card { min-height: 0; padding: 24px; }
  .story-card .step { margin-bottom: 28px; }
  .story-card h3 { font-size: 21px; }
  .feature-section { padding-block: 72px; }
  .feature-inner { gap: 28px; }
  .feature-copy > p:not(.eyebrow) { font-size: 16px; }
  .feature-phone { width: min(100%, 260px); }
  .feature-phone--iptv { width: min(100%, 280px); }
  .feature-section--portrait .feature-phone { width: min(100%, 320px); }
  .feature-section--portrait .feature-phone--iptv { width: min(100%, 320px); }
  .content-showcase { width: 100%; }
  .content-screen-tabs { display: flex; flex-wrap: wrap; width: 100%; margin-top: 24px; gap: 8px; }
  .content-screen-tabs button {
    flex: 1 1 calc(33.33% - 6px);
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding-inline: 8px;
    font-size: 11px;
  }
  .content-phone-fan { height: min(540px, 72vw * 2.05); }
  .content-phone { width: min(248px, 66vw); }
  .content-phone--iptv { transform: translate(calc(-50% + 58px), calc(-50% + 14px)) scale(.94); }
  .content-phone--remote { transform: translate(calc(-50% - 56px), calc(-50% + 22px)) scale(.92); }
  .content-showcase[data-active-screen="iptv"] .content-phone--library { transform: translate(calc(-50% - 56px), calc(-50% + 22px)) scale(.92); }
  .content-showcase[data-active-screen="iptv"] .content-phone--remote { transform: translate(calc(-50% + 58px), calc(-50% + 14px)) scale(.94); }
  .content-showcase[data-active-screen="remote"] .content-phone--library { transform: translate(calc(-50% + 58px), calc(-50% + 14px)) scale(.94); }
  .content-showcase[data-active-screen="remote"] .content-phone--iptv { transform: translate(calc(-50% - 56px), calc(-50% + 22px)) scale(.92); }
  .feature-placeholder { width: 100%; }
  .flow-grid { grid-template-columns: 1fr; gap: 12px; }
  .flow-grid article { min-height: 0; padding: 24px; }
  .flow-grid b { margin-bottom: 28px; }
  .flow-arrow { padding: 0; text-align: center; transform: rotate(90deg); }
  .verdicts { grid-template-columns: 1fr; }
  .download { margin-top: 56px; padding: 32px 22px; border-radius: 28px; gap: 28px; }
  .download h2 { font-size: clamp(28px, 8vw, 36px); }
  .download-secondary-actions { grid-template-columns: 1fr; }
  .download .button { width: 100%; min-width: 0; min-height: 50px; gap: 10px; }
  .light-button .free-badge { margin-inline: 0; }
  footer {
    margin-top: 72px;
    padding: 28px 0 max(40px, env(safe-area-inset-bottom, 0px));
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  footer p { text-align: center; }
  footer div { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
}

@media (max-width: 390px) {
  .brand span { display: none; }
  .content-phone-fan { height: 480px; }
  .content-phone { width: min(220px, 70vw); }
  .content-phone--iptv { transform: translate(calc(-50% + 42px), calc(-50% + 12px)) scale(.92); }
  .content-phone--remote { transform: translate(calc(-50% - 40px), calc(-50% + 18px)) scale(.9); }
  .content-showcase[data-active-screen="iptv"] .content-phone--library { transform: translate(calc(-50% - 40px), calc(-50% + 18px)) scale(.9); }
  .content-showcase[data-active-screen="iptv"] .content-phone--remote { transform: translate(calc(-50% + 42px), calc(-50% + 12px)) scale(.92); }
  .content-showcase[data-active-screen="remote"] .content-phone--library { transform: translate(calc(-50% + 42px), calc(-50% + 12px)) scale(.92); }
  .content-showcase[data-active-screen="remote"] .content-phone--iptv { transform: translate(calc(-50% - 40px), calc(-50% + 18px)) scale(.9); }
}

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

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: rgba(3,8,7,.72); backdrop-filter: blur(10px); animation: modal-fade-in .18s ease-out; }
.modal-open { overflow: hidden; }
.modal-backdrop.hidden { display: none; }
.modal-card { position: relative; width: min(460px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(180deg, #12241f 0%, var(--panel) 48%, #0b1613 100%); box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(185,243,74,.04) inset; text-align: left; animation: modal-rise .22s cubic-bezier(.2,.8,.2,1); }
.modal-card .button { width: 100%; }
.modal-x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: rgba(255,255,255,.04); color: #8fa198; font: 700 18px/1 inherit; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.modal-x::before { content: "×"; }
.modal-x:hover { border-color: var(--line); background: rgba(255,255,255,.08); color: var(--ink); }

.atv-modal { overflow: hidden; color: var(--ink); }
.atv-modal::before { content: ""; position: absolute; top: -80px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(101,230,188,.18), transparent 68%); pointer-events: none; }
.atv-modal-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 28px; }
.atv-modal-icon { display: block; flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.atv-modal-heading { min-width: 0; }
.atv-modal h3 { margin: 0 0 4px; color: var(--ink); font-size: 22px; letter-spacing: -.03em; line-height: 1.2; }
.atv-modal-subtitle { margin: 0; color: var(--mint); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.atv-modal-lead { margin: 0 0 20px; color: #a9bab3; font-size: 14px; line-height: 1.65; }

.atv-modal-steps { margin-bottom: 16px; padding: 16px 16px 14px; border: 1px solid rgba(101,230,188,.16); border-radius: 18px; background: rgba(255,255,255,.03); }
.atv-modal-steps-title { margin: 0 0 12px; color: var(--mint); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.atv-step-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.atv-step-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.atv-step-num { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border: 1px solid rgba(185,243,74,.42); border-radius: 50%; background: rgba(185,243,74,.14); color: var(--acid); font-size: 12px; font-weight: 850; }
.atv-step-list kbd { display: inline-block; margin-inline: 2px; padding: 2px 8px; border: 1px solid rgba(185,243,74,.35); border-radius: 6px; background: rgba(185,243,74,.1); color: var(--acid); font: 700 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }

.atv-modal-callout { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 14px 15px; border: 1px solid rgba(244,198,96,.28); border-radius: 16px; background: linear-gradient(135deg, rgba(244,198,96,.1), rgba(244,198,96,.03)); }
.atv-callout-icon { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(244,198,96,.22); color: #f4c660; font-size: 12px; font-weight: 900; }
.atv-modal-callout p { margin: 0; color: #e6d7ad; font-size: 13px; line-height: 1.55; }

.atv-modal-actions { display: grid; grid-template-columns: 1.25fr .9fr; gap: 10px; }
.atv-modal-actions .button { width: 100%; min-height: 48px; gap: 8px; }
.atv-modal-actions .button.secondary { color: var(--ink); border-color: rgba(234,244,239,.18); background: rgba(255,255,255,.06); }
.atv-modal-actions .button.secondary:hover { background: rgba(255,255,255,.1); }

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .atv-modal {
    width: min(460px, 100%);
    max-height: min(88dvh, 100%);
    padding: 24px 18px 18px;
    border-radius: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .atv-modal-hero { gap: 12px; padding-right: 24px; }
  .atv-modal-icon { width: 52px; height: 52px; border-radius: 14px; }
  .atv-modal h3 { font-size: 18px; }
  .atv-modal-lead { font-size: 13px; }
  .atv-modal-actions { grid-template-columns: 1fr; }
  .atv-modal-actions .button { min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { animation: none; }
}

/* ---- Guide page: restrained documentation layout ---- */
.guide-page .site-header { position: sticky; top: 0; left: 0; transform: none; width: 100%; min-height: 58px; padding: 8px 30px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(7,17,15,.94); box-shadow: none; }
.guide-page .site-header nav a:not(.nav-cta) { padding-inline: 10px; }
.guide-doc-header { max-width: 820px; padding: 100px 0 54px; }
.guide-doc-label { margin-bottom: 16px; color: var(--mint); font: 11px ui-monospace, monospace; letter-spacing: .1em; }
.guide-doc-header h1 { margin-bottom: 18px; font-size: clamp(42px, 5vw, 60px); }
.guide-doc-lead { max-width: 680px; margin: 0; color: #a9bab3; font-size: 18px; }
.guide-layout { display: grid; grid-template-columns: 190px minmax(0, 760px); justify-content: center; gap: 76px; padding-bottom: 72px; }
.guide-toc { position: sticky; top: 92px; align-self: start; padding-top: 7px; font-size: 13px; }
.guide-toc p { margin-bottom: 12px; color: #ddebe5; font-weight: 750; }
.guide-toc a { display: block; padding: 7px 0; color: #7f938a; }
.guide-toc a:hover { color: var(--mint); }
.guide-document { min-width: 0; }
.guide-doc-section { padding: 0 0 64px; margin-bottom: 62px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.guide-doc-section:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-section-number { display: block; margin-bottom: 15px; color: var(--mint); font: 11px ui-monospace, monospace; letter-spacing: .08em; }
.guide-doc-section h2 { max-width: 700px; margin-bottom: 20px; font-size: clamp(28px, 3.3vw, 40px); line-height: 1.2; letter-spacing: -.04em; }
.guide-doc-section > p { max-width: 700px; margin-bottom: 0; color: #a9bab3; font-size: 16px; }
.callout { display: flex; gap: 14px; margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--acid); background: rgba(185,243,74,.045); }
.callout .callout-mark { flex-shrink: 0; color: var(--acid); font-size: 13px; line-height: 1.6; }
.callout h4 { margin-bottom: 4px; font-size: 14px; }
.callout p { margin: 0; color: #a9bab3; font-size: 14px; }
.callout p b { color: var(--ink); }
.os-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.os-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.os-card > b { display: block; margin-bottom: 14px; color: var(--ink); font-size: 14px; }
.os-card .os-step { padding: 16px 0; border-top: 1px solid var(--line); }
.os-card .os-step:first-of-type { border-top: 0; }
.os-card .os-step h4 { margin-bottom: 5px; color: var(--mint); font-size: 13px; }
.os-card .os-step p { margin: 0; color: #8fa198; font-size: 13px; }
.reco-card { display: grid; grid-template-columns: 150px 1fr; gap: 26px; margin-top: 28px; padding: 20px 0; border-block: 1px solid var(--line); color: var(--ink); }
.reco-card .reco-badge { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; justify-content: center; }
.reco-card .reco-badge span { color: var(--mint); font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.reco-card .reco-badge strong { font-size: 20px; }
.reco-card p { margin: 0; color: #a9bab3; font-size: 14px; }
.guide-table-wrap { overflow-x: auto; margin-top: 30px; border: 1px solid var(--line); border-radius: 10px; }
.guide-table-wrap table { min-width: 820px; font-size: 13px; }
.guide-table-wrap th, .guide-table-wrap td { border-bottom-color: var(--line); }
.guide-table-wrap thead th { color: #a9bab3; }
.guide-table-wrap tbody th, .guide-table-wrap td { color: #a9bab3; }
.guide-device-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin-top: 26px; }
.guide-device-notes article { padding: 17px 0; border-bottom: 1px solid var(--line); }
.guide-device-notes span { color: var(--mint); font-size: 11px; font-weight: 750; letter-spacing: .05em; }
.guide-device-notes h3 { margin: 7px 0 5px; font-size: 16px; }
.guide-device-notes p { margin: 0; color: #8fa198; font-size: 13px; }
.guide-note { margin: 20px 0 0; color: #71847b; font-size: 11px; }
.guide-end { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin-bottom: 90px; padding: 38px 0; border-top: 1px solid var(--line); }
.guide-end h2 { margin-bottom: 5px; font-size: 26px; }
.guide-end p { margin: 0; color: var(--muted); font-size: 14px; }
.guide-end .light-button { min-width: 230px; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 36px; }
  .guide-toc { position: static; display: flex; flex-wrap: wrap; gap: 7px 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .guide-toc p { width: 100%; margin-bottom: 2px; }
  .guide-toc a { padding: 0; }
  .os-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .guide-page .site-header { padding-inline: 12px; }
  .guide-page .site-header .brand { font-size: 17px; }
  .guide-doc-header { padding: 72px 0 42px; }
  .guide-doc-header h1 { font-size: 40px; }
  .guide-doc-lead { font-size: 16px; }
  .guide-doc-section { padding-bottom: 48px; margin-bottom: 48px; }
  .guide-doc-section > p { font-size: 15px; }
  .callout { padding: 16px; }
  .reco-card { grid-template-columns: 1fr; gap: 12px; }
  .guide-device-notes { grid-template-columns: 1fr; }
  .guide-end { align-items: flex-start; flex-direction: column; margin-bottom: 60px; }
  .guide-end .button { width: 100%; }
}
