:root {
  --paper: #f7f4ee;
  --paper-strong: #fffdf9;
  --ink: #121419;
  --muted: #62656d;
  --line: #dedbd4;
  --gold: #ffb400;
  --gold-dark: #d99000;
  --red: #ef233c;
  --blue: #6873df;
  --blue-dark: #30386f;
  --cyan: #63c8d8;
  --radius: 8px;
  --max: 1240px;
  --shadow: 0 24px 70px rgba(18, 20, 25, 0.14);
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { overflow-wrap: break-word; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 74px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(18, 20, 25, 0.1);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 164px; height: 48px; object-fit: contain; object-position: left center; }
.brand span { font-weight: 900; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; color: #4f525a; font-size: 0.92rem; font-weight: 700; }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--gold); color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(18, 20, 25, 0.14); }
.button-primary { background: var(--gold); color: #18130a; }
.button-primary:hover { background: #ffc12b; }
.button-red { background: var(--red); color: #fff; }
.button-dark { background: var(--ink); color: #fff; }
.button-light { background: #fff; color: var(--ink); }
.button-secondary { border-color: #b9b6af; background: transparent; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 850; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link::after { content: "→"; text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 760px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.home-hero { display: flex; align-items: center; padding: 72px max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper-strong); }
.hero-copy-block { position: relative; z-index: 3; width: min(620px, 52%); }
.hero-logo { width: 250px; margin-bottom: 42px; }
.eyebrow { margin: 0 0 14px; color: var(--gold-dark); font-size: 0.76rem; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.hero h1, .page-hero h1, .audiobook-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 5.25rem;
  line-height: 0.96;
  letter-spacing: 0;
}
.lead { margin: 24px 0 0; max-width: 680px; color: var(--muted); font-size: 1.18rem; line-height: 1.65; }
.hero-actions, .product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-note { margin: 18px 0 0; color: #777a82; font-size: 0.84rem; }

.hero-products { position: absolute; z-index: 1; inset: 0; overflow: hidden; background: #16191f; }
.hero-products::after { content: ""; position: absolute; z-index: 4; inset: 0; background: linear-gradient(90deg, var(--paper-strong) 0%, var(--paper-strong) 43%, rgba(255,253,249,0.76) 50%, transparent 70%), linear-gradient(0deg, rgba(18,20,25,0.36), transparent 45%); pointer-events: none; }
.hero-phone { position: absolute; width: 300px; max-width: none; border-radius: 24px; box-shadow: var(--shadow); }
.hero-phone-main { z-index: 3; top: 70px; left: 56%; transform: rotate(3deg); }
.hero-iptv { position: absolute; z-index: 2; top: 108px; right: 4%; width: 300px; border-radius: 24px; opacity: 0.92; transform: rotate(-4deg); box-shadow: var(--shadow); }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 96px 0; }
.section-heading { max-width: 820px; margin-bottom: 42px; }
.section-heading.centered { margin-right: auto; margin-left: auto; text-align: center; }
.section h2, .brand-band h2, .feature-band h2, .audiobook-cta h2, .directory-row h2, .page-hero h2 {
  margin: 0;
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.product-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.product-card { display: grid; grid-template-rows: auto 1fr auto; min-height: 520px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.product-card.audiobook-card { background: #eef0ff; border-color: #cdd1ff; }
.product-card.iptv-card { background: #171a20; border-color: #292d36; color: #fff; }
.product-icon { width: 104px; height: 104px; margin-bottom: 58px; border-radius: 22px; object-fit: contain; }
.product-label { margin: 0 0 10px; color: var(--gold-dark); font-size: 0.76rem; font-weight: 900; text-transform: uppercase; }
.iptv-card .product-label { color: var(--cyan); }
.product-card h3 { margin: 0; max-width: 520px; font-size: 2.8rem; line-height: 1; }
.product-card p { max-width: 610px; color: var(--muted); line-height: 1.65; }
.iptv-card p { color: #bfc3cc; }
.product-actions { justify-content: space-between; }

.brand-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; padding: 96px max(24px, calc((100vw - var(--max)) / 2)); background: #15171b; color: #fff; }
.eyebrow-light { color: #ffd264; }
.principles { display: grid; border-top: 1px solid #3a3d45; }
.principles div { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 25px 0; border-bottom: 1px solid #3a3d45; }
.principles strong { color: #fff; }
.principles span { color: #b7bac2; line-height: 1.55; }

.download-hub { max-width: 980px; }
.download-list { display: grid; border-top: 1px solid var(--line); }
.download-item { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 20px; padding: 22px 4px; border-bottom: 1px solid var(--line); transition: padding 160ms ease, background 160ms ease; }
.download-item:hover { padding-right: 14px; padding-left: 14px; background: #fff; }
.download-item img { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; }
.download-item span { display: grid; gap: 5px; }
.download-item b { font-size: 1.08rem; }
.download-item small { color: var(--muted); }
.download-item > strong { color: var(--red); }

.legal-strip { display: flex; justify-content: space-between; gap: 28px; padding: 30px max(24px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); background: #eeebe5; color: var(--muted); }
.legal-strip p { margin: 0; }
.legal-strip nav, .footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.legal-strip a:hover, .footer a:hover { color: var(--ink); text-decoration: underline; }
.footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; padding: 36px max(24px, calc((100vw - var(--max)) / 2)); background: var(--paper-strong); color: var(--muted); }
.footer img { width: 150px; }

.page-hero { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.page-hero .lead { max-width: 620px; }
.products-hero { background: linear-gradient(110deg, #fff 0 64%, #fff0bf 64%); }
.product-directory { display: grid; gap: 18px; }
.directory-row { display: grid; grid-template-columns: 150px 1fr 240px; align-items: center; gap: 34px; padding: 36px; border-radius: var(--radius); }
.directory-row > img { width: 150px; height: 150px; border-radius: 30px; object-fit: contain; }
.directory-row h2 { font-size: 2.4rem; }
.directory-row p:not(.product-label) { color: var(--muted); line-height: 1.6; }
.audiobook-row { background: #eceeff; }
.iptv-row { background: #171a20; color: #fff; }
.iptv-row p:not(.product-label) { color: #c2c5cd; }
.iptv-row .button-secondary { border-color: #666c78; color: #fff; }
.iptv-row .button-secondary:hover { background: rgba(255,255,255,0.08); }
.directory-actions { display: grid; gap: 12px; }

.audiobook-hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; padding: 74px max(24px, calc((100vw - var(--max)) / 2)); background: #eef0ff; }
.audiobook-hero-copy { position: relative; z-index: 2; width: min(610px, 52%); }
.app-title { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; font-weight: 850; }
.app-title img { width: 46px; height: 46px; border-radius: 10px; }
.audiobook-hero h1 { font-size: 5rem; }
.audiobook-hero-media { position: absolute; inset: 0; overflow: hidden; background: var(--blue); }
.audiobook-hero-media::after { content: ""; position: absolute; z-index: 4; inset: 0; background: linear-gradient(90deg, #eef0ff 0%, #eef0ff 44%, rgba(238,240,255,0.76) 52%, transparent 70%); }
.audiobook-hero-media img { position: absolute; width: 310px; max-width: none; border-radius: 24px; box-shadow: var(--shadow); }
.audiobook-hero-media img:first-child { z-index: 2; top: 54px; left: 61%; transform: rotate(3deg); }
.audiobook-hero-media img:last-child { top: 112px; left: 82%; transform: rotate(-4deg); }

.feature-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; padding: 96px max(24px, calc((100vw - var(--max)) / 2)); background: #17191f; color: #fff; }
.feature-list { border-top: 1px solid #3b3f49; }
.feature-list article { display: grid; grid-template-columns: 42px 190px 1fr; gap: 20px; align-items: start; padding: 24px 0; border-bottom: 1px solid #3b3f49; }
.feature-list span { color: #ffd264; font-size: 0.82rem; font-weight: 900; }
.feature-list h3, .feature-list p { margin: 0; }
.feature-list p { color: #bfc2ca; line-height: 1.55; }

.screenshot-section { width: min(1440px, calc(100% - 48px)); }
.screenshot-rail { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 16px; overflow-x: auto; padding: 8px 0 20px; scrollbar-color: var(--blue) #ddd; }
.screenshot-rail figure { min-width: 0; margin: 0; }
.screenshot-rail img { width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; border-radius: var(--radius); box-shadow: 0 16px 42px rgba(18,20,25,0.16); }
.screenshot-rail figcaption { margin-top: 12px; color: var(--muted); font-size: 0.86rem; text-align: center; }

.audiobook-cta { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 34px; padding: 70px max(24px, calc((100vw - var(--max)) / 2)); background: var(--blue-dark); color: #fff; }
.audiobook-cta img { width: 130px; border-radius: 28px; }
.audiobook-cta h2 { font-size: 3rem; }
.audiobook-cta p:not(.eyebrow) { color: #d8daf0; line-height: 1.6; }

.legal { max-width: 980px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal h1 { margin: 0; font-size: 3.8rem; line-height: 1; }
.legal h2 { margin: 0 0 12px; font-size: 1.4rem; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal a { color: #3442a0; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { min-height: 700px; }
  .hero-copy-block, .audiobook-hero-copy { width: 62%; }
  .hero-phone { width: 260px; }
  .hero h1, .page-hero h1, .audiobook-hero h1 { font-size: 4rem; }
  .section h2, .brand-band h2, .feature-band h2 { font-size: 3rem; }
  .brand-band, .feature-band { grid-template-columns: 1fr; gap: 44px; }
  .directory-row { grid-template-columns: 120px 1fr; }
  .directory-row > img { width: 120px; height: 120px; }
  .directory-actions { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audiobook-cta { grid-template-columns: 100px 1fr; }
  .audiobook-cta img { width: 100px; }
  .audiobook-cta .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .topbar { min-height: 64px; padding: 9px 18px; }
  .brand img { width: 122px; height: 40px; }
  .topbar-cta { min-height: 42px; padding: 0 14px; font-size: 0.86rem; }
  .home-hero, .audiobook-hero { display: block; min-height: auto; padding: 48px 20px 0; }
  .hero-copy-block, .audiobook-hero-copy { width: 100%; }
  .hero-logo { width: 190px; margin-bottom: 30px; }
  .hero h1, .page-hero h1, .audiobook-hero h1 { font-size: 3rem; }
  .lead { font-size: 1.04rem; }
  .hero-actions .button { width: 100%; }
  .hero-products, .audiobook-hero-media { position: relative; inset: auto; height: 270px; margin: 28px -20px 0; }
  .hero-products::after, .audiobook-hero-media::after { background: linear-gradient(180deg, var(--paper-strong), transparent 34%); }
  .hero-phone, .audiobook-hero-media img { width: 150px; border-radius: 14px; }
  .hero-phone-main, .audiobook-hero-media img:first-child { top: 30px; left: 19%; }
  .audiobook-hero-media img:last-child { top: 50px; left: 54%; }
  .hero-iptv { top: 48px; right: 4%; width: 145px; border-radius: 14px; }
  .section { width: min(100% - 36px, var(--max)); padding: 70px 0; }
  .section h2, .brand-band h2, .feature-band h2, .audiobook-cta h2 { font-size: 2.45rem; }
  .product-showcase { grid-template-columns: 1fr; }
  .product-card { min-height: 440px; padding: 24px; }
  .product-card h3 { font-size: 2.2rem; }
  .product-icon { margin-bottom: 42px; }
  .brand-band, .feature-band { padding: 70px 20px; }
  .principles div { grid-template-columns: 1fr; gap: 8px; }
  .legal-strip, .footer { flex-direction: column; }
  .legal-strip { display: flex; }
  .footer { display: flex; align-items: flex-start; }
  .page-hero { padding: 72px 20px; }
  .products-hero { background: #fff; }
  .directory-row { grid-template-columns: 74px 1fr; gap: 18px; padding: 22px; }
  .directory-row > img { width: 74px; height: 74px; border-radius: 16px; }
  .directory-row h2 { font-size: 1.8rem; }
  .directory-actions { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .app-title { margin-bottom: 30px; }
  .audiobook-hero { background: #eef0ff; }
  .audiobook-hero-media::after { background: linear-gradient(180deg, #eef0ff, transparent 34%); }
  .feature-list article { grid-template-columns: 34px 1fr; }
  .feature-list article p { grid-column: 2; }
  .screenshot-rail { grid-template-columns: repeat(5, 210px); }
  .audiobook-cta { grid-template-columns: 74px 1fr; gap: 20px; padding: 54px 20px; }
  .audiobook-cta img { width: 74px; border-radius: 16px; }
  .audiobook-cta .button { grid-column: 1 / -1; width: 100%; }
  .legal h1 { font-size: 2.8rem; }
  .legal-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .download-item { transition: none; }
}
