/* ==========================================================================
   XUBO — Next-Gen IPTV Media Player
   Bespoke Design: Dark Titanium, Cyber-OLED & Warm Amber Luminescence
   Fully Responsive & Mobile-Optimized (Zero Overflow)
   ========================================================================== */

:root {
  --bg-core: #040507;
  --bg-deep: #07090d;
  --bg-surface: #0b0e14;
  --bg-glass: rgba(14, 18, 26, 0.76);
  --bg-glass-hover: rgba(22, 28, 40, 0.88);
  --bg-card: #0f131c;

  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(245, 158, 11, 0.4);
  --border-subtle: #171c26;

  /* Brand Accent: Warm Amber & Golden Titanium */
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-light: #fef3c7;
  --amber-glow: rgba(245, 158, 11, 0.28);
  --amber-subtle: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.35);
  --amber-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 60%, #d97706 100%);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #546075;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container: 1180px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;

  color-scheme: dark;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-core);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background-color: var(--bg-core);
  background-image: 
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(245, 158, 11, 0.14) 0%, transparent 60%),
    radial-gradient(circle 500px at 85% 20%, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--amber-bright);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #fde68a;
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
}

/* ==========================================================================
   Floating Glass Navigation Header
   ========================================================================== */

.nav-wrapper {
  position: sticky;
  top: 16px;
  z-index: 100;
  padding: 0 16px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.floating-nav {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.nav-brand .pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--amber-bright);
  background: var(--amber-subtle);
  border: 1px solid var(--amber-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulseAnim 2s infinite ease-in-out;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}

.nav-menu a {
  color: var(--text-muted);
}

.nav-menu a:hover {
  color: var(--text-primary);
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  gap: 2px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.is-active {
  background: var(--amber);
  color: #040507;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
}

.btn-nav-cta {
  background: var(--amber-gradient);
  color: #040507 !important;
  font-weight: 750;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.5);
}

@media (max-width: 820px) {
  .nav-menu a.nav-opt {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-wrapper {
    top: 10px;
    padding: 0 8px;
  }
  .floating-nav {
    padding: 8px 12px;
  }
  .nav-brand {
    font-size: 18px;
    gap: 8px;
  }
  .nav-brand img {
    width: 28px;
    height: 28px;
  }
  .nav-brand .pulse-indicator {
    display: none; /* Hide badge on mobile header to prevent button collisions */
  }
  .nav-menu {
    gap: 8px;
  }
  .btn-nav-cta {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Hero Stage (Theatrical, Symmetrical & Cinematic)
   ========================================================================== */

.hero-stage {
  padding: 48px 0 32px;
  text-align: center;
  box-sizing: border-box;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-pill-badge span.tag-highlight {
  color: var(--amber-bright);
  font-weight: 700;
}

.hero-stage h1 {
  font-size: clamp(30px, 6.5vw, 84px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 auto 20px;
  max-width: 17ch;
  overflow-wrap: break-word;
}

.hero-stage h1 .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #fbbf24 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stage .hero-lead {
  font-size: clamp(15px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 64ch;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  width: 100%;
}

.btn-glow-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--amber-gradient);
  color: #040507;
  font-size: 17px;
  font-weight: 750;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 32px -4px var(--amber-glow);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-glow-primary:hover {
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -2px rgba(245, 158, 11, 0.45);
}

.btn-glass-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-glass-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Feature Ticker / Specs Pills */
.specs-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.specs-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.specs-ticker span::before {
  content: '✦';
  color: var(--amber);
  font-size: 10px;
}

@media (max-width: 640px) {
  .hero-stage {
    padding: 24px 0 20px;
  }
  .hero-pill-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 18px;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
  }
  .hero-stage h1 {
    font-size: clamp(26px, 8vw, 36px);
    margin-bottom: 14px;
  }
  .hero-stage .hero-lead {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 24px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .btn-glow-primary,
  .btn-glass-secondary {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    text-align: center;
  }
  .specs-ticker {
    font-size: 11px;
    gap: 8px 12px;
  }
}

/* ==========================================================================
   Cinematic OLED TV Frame & Dynamic Showcase
   ========================================================================== */

.showcase-stage {
  margin: 24px auto 0;
  max-width: 1080px;
  position: relative;
  box-sizing: border-box;
}

/* Ambient Backlight Glow */
.ambient-glow {
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  bottom: 15%;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.1) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transition: background 0.5s ease;
}

.oled-tv {
  position: relative;
  z-index: 1;
  background: #020305;
  border: 2px solid #221c13;
  border-radius: 18px;
  padding: clamp(6px, 1.3vw, 16px);
  box-shadow: 0 35px 100px -25px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(245, 158, 11, 0.1);
  box-sizing: border-box;
}

.tv-display {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
}

.tv-display img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease;
  transform: scale(0.99);
}

.tv-display img.is-visible {
  opacity: 1;
  transform: scale(1);
}

.tv-pedestal {
  width: 18%;
  height: 10px;
  margin: 0 auto;
  background: linear-gradient(180deg, #2b2214 0%, #0c0905 100%);
  border-radius: 0 0 10px 10px;
}

/* Dock Switcher */
.showcase-dock {
  margin-top: 24px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.dock-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.dock-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
}

.dock-btn.is-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.12) 100%);
  border-color: var(--amber);
  color: #ffffff;
  box-shadow: 0 0 20px var(--amber-glow);
}

.dock-btn .dock-icon {
  font-size: 16px;
}

.dock-info {
  margin-top: 16px;
  text-align: center;
  padding: 0 8px;
}

.dock-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.dock-info p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .oled-tv {
    border-radius: 12px;
    padding: 5px;
  }
  .tv-display {
    border-radius: 6px;
  }
  .showcase-dock {
    margin-top: 16px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  /* On mobile: scrollable smooth horizontal pill row */
  .dock-tabs {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 4px 4px 10px;
    scrollbar-width: none;
  }
  .dock-tabs::-webkit-scrollbar {
    display: none;
  }
  .dock-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
  }
  .dock-info h3 {
    font-size: 16px;
  }
  .dock-info p {
    font-size: 13px;
  }
}

/* ==========================================================================
   Bento Grid Features Architecture
   ========================================================================== */

section {
  padding: 80px 0 0;
  box-sizing: border-box;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 8px;
}

.section-eyebrow {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

h2.section-heading {
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 auto 16px;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* The Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1040px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 70%);
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 30px -10px var(--amber-glow);
}

.bento-card.col-span-2 {
  grid-column: 1 / -1;
}

@media (min-width: 1040px) {
  .bento-card.col-span-2 {
    grid-column: span 2;
  }
}

.bento-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-subtle);
  border: 1px solid var(--amber-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.bento-card h3 {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.bento-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 640px) {
  section {
    padding: 60px 0 0;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .bento-card {
    padding: 20px 18px;
    border-radius: 16px;
  }
  .bento-card h3 {
    font-size: 17px;
  }
  .bento-card p {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Platform Ecosystem Matrix (8 Cards)
   ========================================================================== */

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.eco-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.eco-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.eco-card.eco-active {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--bg-surface) 100%);
}

.eco-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.eco-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.eco-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.eco-card:hover .eco-icon {
  transform: scale(1.08);
  color: #ffffff;
}

.eco-card.eco-active .eco-icon {
  color: var(--amber-bright);
}

.eco-pill {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.eco-pill.pill-live {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-bright);
  border: 1px solid var(--amber-border);
}

.eco-pill.pill-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--border-subtle);
}

.eco-card h3 {
  font-size: 18px;
  font-weight: 750;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.eco-card .eco-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.eco-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  font-weight: 600;
}

.eco-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-bright);
}

.eco-footer span.soon-label {
  color: var(--text-dim);
  font-size: 12px;
}

@media (max-width: 640px) {
  .eco-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   Monolith Download Hub (Zero Horizontal Blowout on Mobile)
   ========================================================================== */

.download-hub {
  background: linear-gradient(180deg, #13100a 0%, #07090d 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--amber-glow);
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.download-hub::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hub-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .hub-layout {
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
  }
}

.hub-hero {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hub-hero h3, .hub-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 850;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.hub-hero p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--amber-gradient);
  color: #040507;
  font-size: 17px;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px var(--amber-glow);
  transition: all 0.25s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.btn-download-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.5);
  color: #000000;
}

.apk-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Installation Guide Timeline */
.timeline-guide {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.timeline-guide > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 20px 40px;
  box-sizing: border-box;
}

.timeline-guide > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--amber-subtle);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-guide > li::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-guide > li:last-child::after {
  display: none;
}

.timeline-guide h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-guide p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.fast-url {
  display: inline-block;
  background: #020305;
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  margin-top: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
  box-sizing: border-box;
}

/* Security Hash Box */
.security-card {
  margin-top: 28px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.security-card .hash-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

@media (min-width: 600px) {
  .security-card .hash-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.security-card code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  word-break: break-all;
  line-height: 1.4;
  display: block;
}

/* Legal Disclaimer Box */
.legal-box {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

.legal-box strong {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .download-hub {
    padding: 24px 16px;
    border-radius: 18px;
  }
  .btn-download-hero {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
  }
  .apk-specs {
    font-size: 11px;
    gap: 6px 10px;
  }
  .timeline-guide > li {
    padding: 0 0 18px 34px;
  }
  .fast-url {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.global-footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--text-dim);
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-primary);
}
