/* ============================================================
   HiTV — Shared Stylesheet
   Design system adapted from reference layout, recolored to
   the HiTV brand (pink → purple gradient from the app icon).
============================================================ */

:root {
  /* Brand colors extracted from the HiTV app icon */
  --primary:        #A83AF2;   /* violet-purple (icon lower half) */
  --primary-dark:   #9022DE;
  --primary-light:  #EBD6FF;
  --pink:           #FF4D8D;   /* hot pink (icon upper half) */
  --pink-dark:      #F03579;
  --pink-light:     #FFD6E7;
  --grad:           linear-gradient(135deg, #FF4D8D, #A83AF2);
  --grad-soft:      linear-gradient(135deg, rgba(255,77,141,.12), rgba(168,58,242,.12));

  /* Dark plum backgrounds (replaces navy) */
  --dark:           #1D0A33;
  --dark-mid:       #2B1449;
  --dark-light:     #3E2263;

  --white:          #FFFFFF;
  --off-white:      #FBF8FE;
  --muted:          #6B6480;
  --border:         #EAE3F2;
  --card-bg:        #FFFFFF;

  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      22px;
  --shadow-sm:      0 1px 3px rgba(29,10,51,.08), 0 1px 2px rgba(29,10,51,.05);
  --shadow:         0 4px 16px rgba(29,10,51,.10);
  --shadow-lg:      0 10px 40px rgba(29,10,51,.14);
  --shadow-xl:      0 20px 60px rgba(29,10,51,.18);
  --font:           'Plus Jakarta Sans', sans-serif;
  --transition:     0.25s ease;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; }

/* ============================================================
   UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 72px 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(168,58,242,.1);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(168,58,242,.35);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 28px rgba(168,58,242,.45);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(29,10,51,.25);
}
.btn-dark:hover {
  background: var(--dark-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(29,10,51,.35);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 18px; font-size: 0.85rem; min-height: 38px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER
============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(29,10,51,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: all var(--transition);
}
#header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
}
.logo-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
}
.logo-name span {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.75);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--white); background: rgba(255,77,141,.18); }
.header-cta { margin-left: 12px; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.hamburger:hover { background: rgba(255,255,255,.15); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark-mid);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 12px 20px 20px;
  gap: 4px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 10px 14px; }
.mobile-nav .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* ============================================================
   HERO (homepage)
============================================================ */
#hero {
  padding: 140px 0 100px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(168,58,242,.22) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,77,141,.14) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label { color: var(--pink); background: rgba(255,77,141,.12); }
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.03em;
}
.hero-title .highlight {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 14px;
  line-height: 1.7;
}
.hero-trust {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Downloader code chip in the hero */
.hero-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 100px;
  padding: 8px 18px 8px 10px;
  margin-bottom: 26px;
  transition: all var(--transition);
  cursor: pointer;
}
.hero-code-chip:hover { border-color: var(--pink); background: rgba(255,77,141,.1); }
.hero-code-chip img {
  width: 30px; height: 30px;
  border-radius: 7px;
  object-fit: cover;
}
.hero-code-chip .chip-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
.hero-code-chip .chip-code {
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .1em;
}
.hero-code-chip .chip-copy {
  font-size: 0.72rem;
  color: var(--pink);
  font-weight: 700;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.1);
  transition: all var(--transition);
}
.badge:hover { background: rgba(255,77,141,.15); border-color: var(--pink); color: var(--pink); }
.badge i { font-size: 0.72rem; color: var(--pink); }

/* Hero visual card */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.app-card-3d { position: relative; width: 320px; }
.app-card-main {
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.app-card-main img {
  width: 110px;
  height: 110px;
  border-radius: 22px;
  margin: 0 auto 20px;
  box-shadow: 0 12px 36px rgba(255,77,141,.4);
}
.app-card-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.02em;
}
.app-card-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  margin-top: 4px;
}
.app-card-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.2rem; font-weight: 800; color: var(--pink); }
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.floating-badge {
  position: absolute;
  background: var(--grad);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 100px;
  box-shadow: 0 6px 20px rgba(255,77,141,.4);
  animation: float 3s ease-in-out infinite;
}
.floating-badge-1 { top: -16px; right: -10px; }
.floating-badge-2 { bottom: 20px; left: -24px; animation-delay: 1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================================
   PAGE HERO (subpages)
============================================================ */
.page-hero {
  padding: 120px 0 64px;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(168,58,242,.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -140px; left: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,77,141,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  max-width: 800px;
}
.page-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 680px;
  line-height: 1.7;
}
.page-hero .label { color: var(--pink); background: rgba(255,77,141,.12); }

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  margin-bottom: 22px;
}
.breadcrumbs a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs .sep { color: rgba(255,255,255,.25); }
.breadcrumbs .current { color: var(--pink); }

/* ============================================================
   ARTICLE / GUIDE CONTENT
============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.article-body { min-width: 0; }
.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark);
  margin: 44px 0 16px;
  line-height: 1.3;
  scroll-margin-top: 90px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 30px 0 12px;
  scroll-margin-top: 90px;
}
.article-body p {
  font-size: 0.98rem;
  color: #4A4460;
  line-height: 1.75;
  margin-bottom: 16px;
}
.article-body a { color: var(--primary); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body ul, .article-body ol {
  margin: 0 0 18px 22px;
  color: #4A4460;
  font-size: 0.98rem;
  line-height: 1.75;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--dark); }
.article-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 18px;
}

/* Numbered step blocks */
.guide-steps { margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.guide-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.guide-step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,77,141,.3);
}
.guide-step-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.guide-step-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.guide-step-desc a { color: var(--primary); font-weight: 600; }

/* Note / warning boxes */
.note-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}
.note-box i { margin-top: 3px; flex-shrink: 0; }
.note-box.info {
  background: rgba(168,58,242,.07);
  border: 1px solid rgba(168,58,242,.2);
  color: #4A4460;
}
.note-box.info i { color: var(--primary); }
.note-box.warn {
  background: rgba(255,170,50,.08);
  border: 1px solid rgba(255,170,50,.3);
  color: #5C4A2E;
}
.note-box.warn i { color: #E8930C; }
.note-box a { color: var(--primary); font-weight: 600; }

/* Code chip inside articles */
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  color: var(--white);
  border-radius: 100px;
  padding: 6px 16px;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 0.95rem;
}
.code-pill img { width: 20px; height: 20px; border-radius: 5px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
.article-body th {
  text-align: left;
  background: var(--off-white);
  color: var(--dark);
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
}
.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #4A4460;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.sidebar-card-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links a i { font-size: 0.7rem; color: var(--pink); }
.sidebar-cta {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-cta img { width: 56px; height: 56px; border-radius: 13px; margin: 0 auto 12px; }
.sidebar-cta-title { font-size: 1rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.sidebar-cta-sub { font-size: 0.8rem; color: rgba(255,255,255,.55); margin-bottom: 16px; }

/* Related guides grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all var(--transition);
  display: block;
}
.related-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.related-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(255,77,141,.25);
}
.related-card-icon i { font-size: 1rem; color: var(--white); }
.related-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.related-card-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }
.related-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

/* ============================================================
   OVERVIEW / DEVICES
============================================================ */
.bg-soft { background: var(--off-white); }
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.overview-devices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.device-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.device-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.device-card i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.device-card-name { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
.device-card-sub { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.overview-text .section-subtitle { max-width: 100%; }
.overview-points {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.overview-point { display: flex; align-items: flex-start; gap: 12px; }
.overview-point-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(168,58,242,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.overview-point-icon i { font-size: 0.85rem; color: var(--primary); }
.overview-point-text {
  font-size: 0.9rem;
  color: #4A4460;
  line-height: 1.55;
}
.overview-point-text strong { color: var(--dark); }
.overview-point-text a { color: var(--primary); font-weight: 600; }

/* ============================================================
   FEATURES GRID
============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(255,77,141,.25);
}
.feature-icon i { font-size: 1.1rem; color: var(--white); }
.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 7px;
}
.feature-desc { font-size: 0.835rem; color: var(--muted); line-height: 1.55; }
.feature-desc a { color: var(--primary); font-weight: 600; }

/* ============================================================
   SCREENSHOTS
============================================================ */
.dark-section { background: var(--dark); }
.dark-section .label { color: var(--pink); background: rgba(255,77,141,.1); }
.dark-section .section-title { color: var(--white); }
.dark-section .section-subtitle { color: rgba(255,255,255,.6); }
.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.screen-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
  transition: all var(--transition);
  background: var(--dark-mid);
}
.screen-card:hover { transform: translateY(-6px); border-color: rgba(255,77,141,.4); }
.screen-card img { width: 100%; height: auto; }
.screen-caption {
  padding: 14px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  text-align: center;
}

/* Drama categories */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}
.cat-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.cat-card:hover {
  background: rgba(255,77,141,.12);
  border-color: rgba(255,77,141,.35);
  transform: translateY(-4px);
}
.cat-card:hover .cat-icon { color: var(--pink); }
.cat-icon {
  font-size: 1.6rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.cat-name { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,.75); }

/* ============================================================
   DOWNLOAD CARDS
============================================================ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--transition);
}
.download-card:hover::before { opacity: 1; }
.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.download-card.featured {
  background: linear-gradient(145deg, var(--dark), var(--dark-mid));
  border-color: transparent;
}
.download-card.featured::before { opacity: 1; }
.download-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(255,77,141,.28);
}
.download-card-icon i { font-size: 1.3rem; color: var(--white); }
.download-card-icon.dark-icon { background: linear-gradient(135deg, var(--dark-light), var(--dark)); }
.downloader-img-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.download-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.download-card.featured .download-card-title { color: var(--white); }
.download-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 22px;
}
.download-card.featured .download-card-desc { color: rgba(255,255,255,.6); }
.download-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: -14px 0 18px;
}
.download-card.featured .download-card-meta { color: rgba(255,255,255,.4); }

/* ============================================================
   DOWNLOAD HUB — single card holding every download option
============================================================ */
.download-hub {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.download-hub-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 30px;
  background: linear-gradient(145deg, var(--dark), var(--dark-mid));
  position: relative;
}
.download-hub-head::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.download-hub-head img {
  width: 60px; height: 60px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(255,77,141,.4);
  flex-shrink: 0;
}
.download-hub-head-text h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 4px;
}
.download-hub-head-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}
.download-hub-head-badge {
  margin-left: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  background: rgba(255,77,141,.14);
  border: 1px solid rgba(255,77,141,.3);
  padding: 5px 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.download-hub-list { padding: 12px 14px; }
.download-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 16px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.download-row + .download-row { border-top: 1px solid var(--border); }
.download-row:hover { background: var(--off-white); }
.download-row-icon {
  width: 50px; height: 50px;
  border-radius: 13px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 14px rgba(255,77,141,.25);
}
.download-row-icon i { font-size: 1.25rem; color: var(--white); }
.download-row-icon.plain { background: linear-gradient(135deg, var(--dark-light), var(--dark)); }
.download-row-icon img { width: 50px; height: 50px; border-radius: 13px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.download-row-info { min-width: 0; flex: 1; }
.download-row-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.download-row-tag {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 100px;
}
.download-row-tag.rec { color: var(--primary-dark); background: rgba(168,58,242,.12); }
.download-row-tag.alt { color: var(--muted); background: var(--off-white); border: 1px solid var(--border); }
.download-row-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.download-row-desc strong { color: var(--dark); }
.download-row .btn { flex-shrink: 0; min-width: 168px; }
.download-hub-foot {
  padding: 18px 30px 24px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.download-hub-foot a { color: var(--primary); font-weight: 600; }

@media (max-width: 620px) {
  .download-hub-head { flex-wrap: wrap; gap: 14px; padding: 22px 20px; }
  .download-hub-head-badge { margin-left: 0; order: 3; width: 100%; justify-content: center; }
  .download-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }
  .download-row .btn { width: 100%; min-width: 0; }
  .download-row-info { width: 100%; }
  .download-hub-foot { padding: 18px 20px 22px; }
}

/* ============================================================
   DOWNLOADER CODE SECTION
============================================================ */
#downloader-code { background: var(--dark); position: relative; overflow: hidden; }
#downloader-code::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,58,242,.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#downloader-code .label { color: var(--pink); background: rgba(255,77,141,.1); }
#downloader-code .section-title { color: var(--white); }
#downloader-code .section-subtitle { color: rgba(255,255,255,.6); }
.downloader-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.code-display-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  backdrop-filter: blur(12px);
}
.code-display-card img {
  width: 64px; height: 64px;
  border-radius: 14px;
  margin: 0 auto 18px;
  object-fit: cover;
}
.code-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}
.code-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .08em;
  line-height: 1;
  margin-bottom: 18px;
  text-shadow: 0 0 40px rgba(255,77,141,.5);
}
.code-number span { color: var(--pink); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  transition: all var(--transition);
  margin-bottom: 24px;
}
.copy-btn:hover { background: rgba(255,77,141,.2); border-color: var(--pink); }
.copy-btn.copied { background: rgba(34,197,94,.15); border-color: #22C55E; color: #22C55E; }
.steps-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255,77,141,.3);
}
.step-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.step-desc { font-size: 0.83rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.step-desc a { color: var(--pink); font-weight: 600; }

/* ============================================================
   INSTALL TABS
============================================================ */
.install-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.install-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--off-white);
  color: var(--muted);
  border: 2px solid var(--border);
  transition: all var(--transition);
  min-height: 44px;
}
.install-tab.active, .install-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.install-panel { display: none; }
.install-panel.active { display: block; }
.install-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.install-step-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}
.install-step-num {
  position: absolute;
  top: -14px; left: 18px;
  width: 28px; height: 28px;
  background: var(--grad);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(255,77,141,.3);
}
.install-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  padding-top: 6px;
}
.install-step-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.install-panel-more {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--muted);
}
.install-panel-more a { color: var(--primary); font-weight: 700; }

/* ============================================================
   WHY / DARK GRID
============================================================ */
.why-section { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%); }
.why-section .section-title { color: var(--white); }
.why-section .section-subtitle { color: rgba(255,255,255,.6); }
.why-section .label { color: var(--pink); background: rgba(255,77,141,.1); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
}
.why-card:hover {
  background: rgba(255,77,141,.1);
  border-color: rgba(255,77,141,.3);
  transform: translateY(-4px);
}
.why-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,77,141,.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.why-icon i { font-size: 1rem; color: var(--pink); }
.why-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 7px; }
.why-desc { font-size: 0.83rem; color: rgba(255,255,255,.5); line-height: 1.55; }

/* ============================================================
   FAQ
============================================================ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow); }
.faq-question {
  width: 100%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  gap: 12px;
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-icon i { font-size: 0.7rem; color: var(--muted); transition: transform var(--transition); }
.faq-item.open .faq-icon { background: var(--primary); }
.faq-item.open .faq-icon i { color: var(--white); transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 22px 18px; }
.faq-answer p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.faq-answer a { color: var(--primary); font-weight: 600; }
.faq-section-label {
  max-width: 760px;
  margin: 34px auto 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ============================================================
   CONTACT
============================================================ */
.contact-card {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, var(--dark), var(--dark-mid));
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  box-shadow: var(--shadow-xl);
}
.contact-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(255,77,141,.35);
}
.contact-icon i { font-size: 1.5rem; color: var(--white); }
.contact-title { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.contact-sub { font-size: 0.9rem; color: rgba(255,255,255,.55); margin-bottom: 28px; }
.contact-email-display {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 24px;
  word-break: break-all;
}

/* ============================================================
   CTA BAND
============================================================ */
.cta-band {
  background: var(--grad);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 18px 50px rgba(168,58,242,.35);
}
.cta-band-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}
.cta-band-sub { font-size: 0.95rem; color: rgba(255,255,255,.85); max-width: 520px; }
.cta-band .btn {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cta-band .btn:hover { transform: translateY(-2px); }

/* ============================================================
   FOOTER
============================================================ */
#footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  max-width: 280px;
}
.footer-col-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--pink); }
.footer-code-highlight {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pink);
  letter-spacing: .08em;
}
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-bottom: 28px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  line-height: 1.6;
  max-width: 700px;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.footer-legal-links a { font-size: .75rem; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,.3); white-space: nowrap; }

/* ============================================================
   SCROLL TO TOP
============================================================ */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  background: var(--grad);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(255,77,141,.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,77,141,.5); }

/* ============================================================
   LEGAL PAGES
============================================================ */
.legal-body { max-width: 800px; }
.legal-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .article-sidebar { position: static; }
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .overview-grid { grid-template-columns: 1fr; gap: 48px; }
  .downloader-inner { grid-template-columns: 1fr; gap: 48px; }
  .downloader-inner .code-display-card { order: -1; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 64px 0; }
  .hero-inner { text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-code-chip { margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .footer-legal-links { justify-content: flex-start; }
  .app-card-3d { width: 280px; }
  .code-display-card { padding: 28px 20px; }
  .copy-btn { width: 100%; justify-content: center; }
  .code-display-card .btn { width: 100%; justify-content: center; }
  .cta-band { padding: 40px 28px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .code-number { font-size: 2.4rem; }
  .contact-card { padding: 36px 24px; }
  .code-display-card { padding: 24px 16px; }
  .guide-step { flex-direction: column; gap: 10px; }
}
