/* OnStream APK landing page — mobile-first, premium dark theme */
:root {
  --bg: #0b0d12;
  --bg-2: #12151c;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #9aa3b5;
  --accent: #d4ff00;
  --accent-2: #00e5ff;
  --accent-ink: #0b0d12;
  --danger: #ff5c7a;
  --ok: #d4ff00;
  --grad: linear-gradient(135deg, #d4ff00 0%, #7dff6a 45%, #00e5ff 100%);
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 0.6em; }
p { margin: 0 0 0.85em; }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus { left: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 80; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.section { padding: 64px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 28px; }
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.lead { color: var(--muted); font-size: 1.02rem; }
.updated {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Accent underline used only on headings */
.h-underline {
  display: inline-block;
  background-image: var(--grad);
  background-repeat: no-repeat;
  background-size: 72px 3px;
  background-position: 0 100%;
  padding-bottom: 8px;
}

/* Buttons — gradient only on CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
  min-height: 48px;
}
.btn-primary {
  background: var(--grad);
  color: var(--accent-ink);
  box-shadow: 0 8px 28px rgba(212, 255, 0, 0.18);
}
.btn-primary:hover { filter: brightness(1.06); color: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.meta-badge {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--muted);
}
.meta-badge span {
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.03);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(11, 13, 18, 0.78);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
}
.logo img { width: 36px; height: 36px; }
.nav-desktop { display: none; gap: 18px; margin-left: 18px; }
.nav-desktop a { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav-desktop a:hover { color: var(--text); }
.header-cta { margin-left: auto; display: none; }
.menu-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 16px;
}
.nav-mobile.open { display: flex; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 72px;
  min-height: 92vh;
}
.blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: float 14s ease-in-out infinite;
}
.blob-a { background: #d4ff00; top: -80px; left: -60px; }
.blob-b { background: #00e5ff; right: -80px; top: 80px; animation-delay: -4s; opacity: 0.18; }
.blob-c { background: #7b5cff; bottom: -120px; left: 30%; animation-delay: -7s; opacity: 0.16; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 24px) scale(1.08); }
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}
.icon-frame {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  padding: 10px;
  background: rgba(11,13,18,0.6);
  border: 1px solid rgba(212,255,0,0.35);
  box-shadow: 0 0 0 6px rgba(212,255,0,0.08), 0 20px 50px rgba(212,255,0,0.18);
  animation: glow 3.2s ease-in-out infinite;
}
.icon-frame img { width: 100%; height: 100%; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(212,255,0,0.08), 0 20px 50px rgba(212,255,0,0.16); }
  50% { box-shadow: 0 0 0 10px rgba(0,229,255,0.1), 0 24px 60px rgba(0,229,255,0.2); }
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); margin-top: 16px; }
.hero .value { font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.stars { color: var(--accent); letter-spacing: 1px; }
.hero-visual {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  background: #000;
}
.hero-visual img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Ad slots */
.ad-slot {
  margin: 8px auto;
  width: min(var(--max), calc(100% - 32px));
  min-height: 90px;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  background: rgba(255,255,255,0.02);
}

/* Layout with TOC */
.page-grid { display: grid; gap: 28px; }
.toc {
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  padding: 16px;
}
.toc h2 { font-size: 0.95rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; color: var(--muted); }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }
.toc-toggle { display: flex; width: 100%; justify-content: space-between; }
.toc-body { display: none; }
.toc.open .toc-body,
.toc-body { display: none; }
.toc[open] .toc-body,
.toc.open .toc-body { display: block; }

/* Cards */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(212,255,0,0.04);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.info-item {
  padding: 14px;
  display: grid;
  gap: 4px;
}
.info-item .icon { font-size: 1.1rem; }
.info-item strong { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.info-item span { font-weight: 800; }

/* Carousel */
.carousel { position: relative; }
.track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 78%;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: #000;
}
.slide img { width: 100%; height: 420px; object-fit: cover; }
.carousel-nav { display: none; gap: 8px; margin-top: 12px; }
.carousel-nav button {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass); color: var(--text); cursor: pointer;
}

/* Reasons + features */
.reason-grid, .feature-grid, .cat-grid, .alt-grid, .proscons {
  display: grid;
  gap: 14px;
}
.reason, .feature, .cat, .alt, .pc-col {
  padding: 18px;
}
.reason h3, .feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.reason p, .feature p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.feat-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(212,255,0,0.1);
  margin-bottom: 10px;
}

/* Comparison battle */
.vs {
  display: grid;
  gap: 0;
  overflow: hidden;
}
.vs-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  background: rgba(255,255,255,0.03);
  font-weight: 800;
  padding: 14px;
}
.vs-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 12px 14px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.92rem;
}
.mark-ok { color: var(--ok); font-weight: 800; }
.mark-no { color: var(--danger); font-weight: 800; }
.vs-us { color: var(--accent); }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.tab[aria-selected="true"] {
  background: var(--grad);
  color: var(--accent-ink);
  border-color: transparent;
}
.panel { display: none; }
.panel.active { display: block; }
.steps { display: grid; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 800;
}
.step img {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  max-width: 360px;
}

/* Categories */
.cat { text-align: center; }
.cat strong { display: block; margin-top: 4px; }

/* FAQ */
.faq-item { overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item .ans { display: none; padding: 0 16px 16px; color: var(--muted); }
.faq-item.open .ans { display: block; }

/* Pros cons */
.pc-col ul { margin: 0; padding-left: 0; list-style: none; }
.pc-col li { margin: 8px 0; }
.pros { border-color: rgba(212,255,0,0.2); }
.cons { border-color: rgba(255,92,122,0.25); }

/* CTA band */
.cta-band {
  text-align: center;
  padding: 56px 20px;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(212,255,0,0.16), transparent 60%),
    var(--glass);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 36px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-grid { display: grid; gap: 18px; }
.site-footer a { color: var(--muted); }
.disclaimer { font-size: 0.8rem; margin-top: 18px; }

/* Floating download */
.float-dl {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 35;
  display: none;
  box-shadow: var(--shadow);
}
.float-dl.show { display: inline-flex; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 16px;
}
.modal.open { display: grid; }
.modal-card {
  width: min(440px, 100%);
  padding: 22px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Breadcrumb */
.crumbs { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.legal, .article { max-width: 760px; }
.article-body h2 { margin-top: 1.4em; }
.related-list { display: grid; gap: 12px; }

/* Desktop */
@media (min-width: 768px) {
  .menu-btn { display: none; }
  .nav-desktop, .header-cta { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .info-grid { grid-template-columns: repeat(4, 1fr); }
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .alt-grid { grid-template-columns: repeat(3, 1fr); }
  .proscons { grid-template-columns: 1fr 1fr; }
  .slide { flex: 0 0 46%; }
  .carousel-nav { display: flex; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .page-grid { grid-template-columns: 240px 1fr; align-items: start; }
  .toc { position: sticky; top: 84px; }
  .toc-toggle { display: none; }
  .toc .toc-body { display: block !important; }
  .float-dl { top: 12px; bottom: auto; }
  .hero { min-height: auto; padding: 72px 0 80px; }
}
@media (min-width: 1440px) {
  :root { --max: 1240px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .reason-grid { grid-template-columns: repeat(4, 1fr); }
  .slide { flex: 0 0 32%; height: auto; }
  .hero h1 { font-size: 4.6rem; }
}

.flash { padding: 10px 12px; border-radius: 10px; background: rgba(0,229,255,0.12); }
.flash.error { background: rgba(255,92,122,0.15); color: #ffb3c0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.article label { display: grid; gap: 6px; margin: 12px 0; font-weight: 700; }
.article input, .article textarea { font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: #0b0d12; color: var(--text); }
