/* ==============================================================================
   ALL VIDEO DOWNLOADER & PLAYER - MAIN STYLESHEET
   100% Custom Visuals, Pure CSS Mesh Gradients & Cyber Grid
   Enhanced with App's Primary Blue/Cyan Theme, Responsive Layout & Glassmorphism
   ============================================================================== */

:root {
  /* Default Primary Colors (Hydrated dynamically from APP_CONFIG in constants.js) */
  --color-primary: #5EA2FF;
  --color-primary-dark: #0066CC;
  --color-cyan: #22D3EE;
  --color-accent-purple: #818CF8;
  
  --grad-brand: linear-gradient(90deg, #5EA2FF 0%, #00D2FF 100%);
  --grad-heading: linear-gradient(90deg, #FFFFFF 0%, #93C5FD 100%);
  --grad-button: linear-gradient(135deg, #0066CC 0%, #5EA2FF 100%);
  
  --bg-main: #0A0D14;
  --bg-surface: #121620;
  --bg-card: #181D2A;
  --border-card: rgba(255, 255, 255, 0.08);
  
  --glow-primary: rgba(94, 162, 255, 0.35);
  --glow-cyan: rgba(34, 211, 238, 0.20);
  
  --text-main: #FFFFFF;
  --text-sub: #BAC4D1;
  --text-muted: #6B7280;
  
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-brand: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --container-max: 1240px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  background-color: var(--bg-main);
  font-family: var(--font-body);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

/* ==============================================================================
   PAGE WRAPPER & PURE CSS CYBER GRID MESH
   ============================================================================== */
.page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: var(--bg-main);
}

/* Ambient Radial Mesh & Vector Tech Grid (Zero Image Dependencies) */
.bg-grid-cyber {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 50% 8%, rgba(94, 162, 255, 0.20) 0%, transparent 55%),
    radial-gradient(circle at 85% 24%, rgba(34, 211, 238, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 48%, rgba(0, 102, 204, 0.16) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34, 211, 238, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 96%, rgba(94, 162, 255, 0.22) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==============================================================================
   GRADIENTS & TYPOGRAPHY
   ============================================================================== */
.grad-brand {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.grad-heading {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==============================================================================
   NAVIGATION BAR (Glassmorphism + Fixed/Sticky)
   ============================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  background: rgba(10, 13, 20, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  display: flex;
  align-items: center;
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(94, 162, 255, 0.35);
  object-fit: cover;
  transition: transform 0.25s ease;
}

.nav-brand:hover .nav-logo {
  transform: scale(1.05);
}

.nav-brand-text {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-sub);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta-btn {
  background: var(--grad-button);
  color: #FFFFFF;
  padding: 9px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-btn:hover {
  box-shadow: 0 6px 20px rgba(94, 162, 255, 0.55);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #FFFFFF;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero-section {
  padding-top: 150px;
  padding-bottom: 70px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: #FFFFFF;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 38px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 36px;
}

.google-play-badge-wrap {
  display: inline-block;
  width: 210px;
  height: 62px;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 8px 24px rgba(0, 102, 204, 0.4));
}

.google-play-badge-wrap:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 12px 28px rgba(94, 162, 255, 0.65));
}

.google-play-badge-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-release-badge {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  background: rgba(94, 162, 255, 0.08);
  border: 1px solid rgba(94, 162, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.hero-release-badge .hero-badge-version {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-cyan);
}

.hero-release-badge .hero-badge-tag {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-top: 2px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.highlight-pill svg {
  color: var(--color-primary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-composite-img {
  width: 100%;
  max-width: 580px;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(94, 162, 255, 0.35));
  transition: transform 0.4s ease;
  animation: floatMockup 5s ease-in-out infinite alternate;
}

.hero-dual-phones {
  max-width: 620px;
  filter: drop-shadow(0 25px 50px rgba(0, 102, 204, 0.5));
}

@keyframes floatMockup {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* ==============================================================================
   SECTION: DOWNLOAD ALL VIDEOS YOU SEE & PLATFORMS
   ============================================================================== */
.section-center {
  text-align: center;
  padding: 90px 0 60px;
  position: relative;
  z-index: 2;
}

.section-title-large {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto 48px;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--platform-color, var(--color-primary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 162, 255, 0.3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(94, 162, 255, 0.15);
}

.platform-card:hover::before {
  opacity: 1;
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--platform-color, #FFFFFF);
  transition: transform 0.25s ease;
}

.platform-card:hover .platform-icon {
  transform: scale(1.12);
}

.platform-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #FFFFFF;
}

/* ==============================================================================
   FEATURE SECTIONS (Alternating 2-column layout)
   ============================================================================== */
.feature-section {
  padding: 70px 0;
  position: relative;
  z-index: 2;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.feature-grid.reverse {
  direction: rtl;
}

.feature-grid.reverse > * {
  direction: ltr;
}

.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-composite-img {
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 28px;
  filter: drop-shadow(0 15px 35px rgba(0, 102, 204, 0.35));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.feature-composite-img:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 22px 45px rgba(94, 162, 255, 0.5));
}

.feature-content {
  max-width: 500px;
}

.feature-heading {
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.feature-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 28px;
}

.feat-checklist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feat-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feat-item-icon img {
  width: 20px;
  height: 20px;
}

.feat-item span {
  font-size: 1.05rem;
  color: #E2E8F0;
  font-weight: 500;
}

/* ==============================================================================
   ALL-IN-ONE PLAYER & AD BLOCKER CARDS SECTION
   ============================================================================== */
.extra-features-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 162, 255, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 25px rgba(94, 162, 255, 0.15);
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  background: rgba(94, 162, 255, 0.12);
  border: 1px solid rgba(94, 162, 255, 0.25);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ==============================================================================
   HOW TO DOWNLOAD (3 STEPS GUIDE WITH REAL APP ASSETS)
   ============================================================================== */
.guide-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.guide-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.guide-step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 162, 255, 0.35);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.guide-img-wrap {
  width: 100%;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  background: #0E1015;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.guide-step-card:hover .guide-img-wrap img {
  transform: scale(1.04);
}

.guide-step-badge {
  font-family: var(--font-brand);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-cyan);
  margin-bottom: 8px;
}

.guide-step-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.guide-step-desc {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ==============================================================================
   FAQ ACCORDION
   ============================================================================== */
.faq-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.faq-accordion {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: rgba(94, 162, 255, 0.35);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  text-align: left;
}

.faq-arrow {
  flex-shrink: 0;
  fill: var(--text-sub);
  transition: transform 0.3s ease, fill 0.3s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  fill: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

.faq-answer p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.footer {
  position: relative;
  z-index: 2;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px 40px 0 0;
  padding: 60px 0 36px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand-col {
  max-width: 380px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-brand-title {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.footer-badge-link {
  display: inline-block;
  width: 150px;
  transition: transform 0.25s ease;
}

.footer-badge-link:hover {
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--text-sub);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-contact-item {
  font-size: 0.92rem;
  color: var(--text-sub);
  margin-bottom: 8px;
  word-break: break-all;
}

.footer-contact-item a {
  color: var(--color-primary);
}

.footer-contact-item a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats-badge {
    border-left: none;
    border-top: 2px solid rgba(255, 255, 255, 0.12);
    padding-left: 0;
    padding-top: 12px;
  }
  
  .hero-highlights {
    justify-content: center;
  }

  .feature-grid, .feature-grid.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    direction: ltr;
  }

  .feature-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .feat-checklist {
    align-items: center;
  }

  .cards-grid, .guide-steps-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(10, 13, 20, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }

  .section-title-large, .feature-heading {
    font-size: 2rem;
  }
}
