/* ============================================
   YACINE TV BLACK — Design System
   Premium Dark Theme · RTL · Mobile First
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Reset & Variables ---------- */
:root {
  --clr-bg: #050507;
  --clr-surface: #0b0b0f;
  --clr-surface-2: #111117;
  --clr-surface-3: #1a1a22;
  --clr-border: rgba(255, 255, 255, 0.07);
  --clr-border-hover: rgba(255, 255, 255, 0.14);
  --clr-text: #f5f5f7;
  --clr-text-muted: rgba(255, 255, 255, 0.50);
  --clr-text-secondary: rgba(255, 255, 255, 0.72);
  --clr-accent: #a78bfa;
  --clr-accent-glow: rgba(167, 139, 250, 0.10);
  --clr-glow: rgba(255, 255, 255, 0.04);
  --clr-glow-strong: rgba(255, 255, 255, 0.07);
  --clr-red: #ef4444;
  --clr-red-glow: rgba(239, 68, 68, 0.12);
  --clr-green: #22c55e;
  --font-primary: 'Noto Sans Arabic', sans-serif;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 50px rgba(255, 255, 255, 0.03);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font-primary);
  background: var(--clr-bg);
  color: var(--clr-text);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
  touch-action: manipulation;
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  touch-action: manipulation;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  z-index: 1001;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--clr-text);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--clr-bg);
  font-weight: 900;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 0;
  object-fit: contain;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  position: relative;
  padding: 4px 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.nav-desktop a:hover {
  color: var(--clr-text);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--clr-text);
  color: var(--clr-bg);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.nav-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 1001;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  position: relative;
}

.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(3) { transform: translateY(6px); }

.hamburger.active span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-2px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text-muted);
  padding: 16px 0;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-menu.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active a:nth-child(7) { transition-delay: 0.4s; }

.mobile-menu a:hover {
  color: var(--clr-text);
}

.mobile-menu .nav-cta {
  margin-top: 24px;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-normal);
}

.mobile-menu.active .nav-cta {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.35s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.4) 0%, transparent 40%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
}

.hero-content {
  flex: 1;
  text-align: right;
  position: relative;
  z-index: 2;
  max-width: 650px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-secondary);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  color: #fff;
  animation: fadeInUp 0.8s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--clr-red);
  position: relative;
  background: linear-gradient(90deg, #fff, var(--clr-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--clr-text-secondary);
  margin-bottom: 40px;
  animation: fadeInUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
}

.hero-img-main {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
}



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

/* Response for Hero Image on Mobile */
@media (max-width: 992px) {
  .hero {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: auto;
    text-align: center;
  }
  
  .hero-inner {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-img-wrapper {
    max-width: 550px;
  }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--clr-text);
  color: var(--clr-bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border-hover);
}

.btn-secondary:hover {
  background: var(--clr-surface-2);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

svg.btn-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--clr-text-muted);
  font-size: 0.75rem;
  animation: fadeInUp 0.8s 0.5s ease both;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.intro-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--clr-text-secondary);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.feature-card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr-text);
}

.feature-icon svg {
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--clr-text-muted);
}

/* ============================================
   VERSIONS SECTION
   ============================================ */
.versions {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.versions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.version-card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.version-card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
}

.version-card.black-version {
  border-color: rgba(255, 255, 255, 0.1);
}

.version-card.red-version {
  border-color: rgba(239, 68, 68, 0.15);
}

.version-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.version-card.black-version .version-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-text);
}

.version-card.red-version .version-badge {
  background: var(--clr-red-glow);
  color: var(--clr-red);
}

.version-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.version-card p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.version-card .btn {
  width: 100%;
}

/* ============================================
   PLAYER SECTION
   ============================================ */
.player-section {
  text-align: center;
}

.player-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.player-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.player-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.player-card p {
  color: var(--clr-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ============================================
   HOW TO USE SECTION
   ============================================ */
.steps {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* Step connector line */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 56px;
  left: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(to left, var(--clr-border), transparent);
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding: 100px 0;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.final-cta p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .hero-actions {
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--clr-border);
  text-align: center;
}

.footer p {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
}

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

/* ============================================
   DOWNLOAD PAGE
   ============================================ */
.download-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.download-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.download-hero p {
  color: var(--clr-text-muted);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.download-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.download-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text);
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.download-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.download-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.download-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.download-card .btn {
  width: 100%;
}

.download-notes {
  max-width: 600px;
  margin: 0 auto;
  padding: 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.download-notes h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-notes ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.download-notes li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--clr-text-muted);
  font-size: 0.95rem;
}

.download-notes li::before {
  content: '•';
  color: var(--clr-text-muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 36px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  /* Versions */
  .versions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .step-card::after {
    display: none !important;
  }

  .step-card {
    padding: 24px 16px;
  }

  /* Download Page */
  .download-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .download-card {
    padding: 32px 24px;
  }

  .download-hero {
    padding: 120px 0 40px;
  }

  /* Player */
  .player-card {
    padding: 36px 24px;
  }

  /* Hero */
  .hero-desc {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .scroll-indicator {
    bottom: 24px;
  }

  /* Final CTA */
  .final-cta {
    padding: 60px 0;
  }
}

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

  .hero h1 {
    font-size: 1.7rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

/* ============================================
   TV PAGE
   ============================================ */
.tv-code-card {
  max-width: 600px;
  margin: 0 auto 48px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tv-code-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.tv-code-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--clr-text-muted);
}

.tv-code-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
}

.tv-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.tv-code-digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 68px;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border-hover);
  border-radius: var(--radius-md);
  font-size: 2rem;
  font-weight: 900;
  color: var(--clr-text);
  letter-spacing: 0;
  transition: var(--transition-normal);
}

.tv-code-digit:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.tv-copy-btn {
  margin-bottom: 20px;
}

.tv-code-note {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
}

.tv-code-inline {
  display: inline-block;
  padding: 2px 10px;
  background: var(--clr-surface-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 0.05em;
}

/* TV Steps */
.tv-steps-section {
  margin-bottom: 48px;
}

.tv-steps-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tv-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--clr-border);
}

.tv-step:first-child {
  border-top: 1px solid var(--clr-border);
}

.tv-step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 50%;
  color: var(--clr-text);
}

.tv-step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tv-step-content p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* TV Notes */
.tv-notes {
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 32px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
}

.tv-notes h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.tv-notes ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tv-notes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--clr-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.tv-notes li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--clr-text-muted);
}

/* TV Alternative */
.tv-alt {
  max-width: 700px;
  margin: 0 auto;
  padding: 36px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.tv-alt h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tv-alt p {
  color: var(--clr-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Version card icon images */
.version-icon-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin: 0 auto 16px;
}

/* Player card icon image */
.player-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ============================================
   RESPONSIVE — TV Page Mobile
   ============================================ */
@media (max-width: 768px) {
  .tv-code-card {
    padding: 36px 20px;
  }

  .tv-code-digit {
    width: 42px;
    height: 54px;
    font-size: 1.5rem;
  }

  .tv-code-display {
    gap: 6px;
  }

  .tv-step {
    gap: 16px;
    padding: 20px 0;
  }

  .tv-notes,
  .tv-alt {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .tv-code-digit {
    width: 36px;
    height: 48px;
    font-size: 1.3rem;
  }

  .tv-code-display {
    gap: 4px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-right {
  animation: fadeInRight 0.8s ease both;
}

/* ============================================
   DOWNLOADER BADGE (IMAGE STYLE)
   ============================================ */
.downloader-badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto 40px;
}

.downloader-badge {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 5px solid #FF7200;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 25px;
  direction: ltr;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  max-width: 550px;
  width: 100%;
}

.db-left {
  background: #FF7200;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.db-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
}

.db-d {
  color: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 1;
}

.db-right {
  flex: 1;
  padding: 15px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end; /* Align to the right since the icon is now on the right */
  background: #fff;
  text-align: right;
}


.db-title {
  color: #888;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: sans-serif;
  margin-bottom: 2px;
}

.db-code {
  color: #FF7200;
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 0.9;
  font-family: "Inter", sans-serif;
}

@media (max-width: 600px) {
  .downloader-badge {
    border-width: 2.5px;
    border-radius: 10px;
    max-width: 220px; /* Reduced size for mobile */
    margin: 0 auto 20px;
  }
  .db-left { 
    padding: 8px 12px; 
    min-width: 50px;
  }
  .db-logo svg { display: none; }
  .db-d { font-size: 30px; }
  .db-right { 
    padding: 8px 12px; 
    align-items: flex-end;
    text-align: right;
  }
  .db-title { font-size: 0.75rem; }
  .db-code { font-size: 1.8rem; letter-spacing: -1px; }
}


/* ============================================
   GUIDE PAGES STYLES
   ============================================ */
.guide-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 20px;
}

.guide-content p {
  font-size: 1.1rem;
  color: var(--clr-text-secondary);
  line-height: 1.8;
}

.styled-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.styled-list li {
  position: relative;
  padding-right: 28px;
  color: var(--clr-text-secondary);
  font-size: 1.05rem;
}

.styled-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--clr-red);
  font-weight: bold;
}

.steps-guide {
  margin-top: 30px;
}

.step-item {
  background: var(--clr-surface-2);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  transition: var(--transition-normal);
}

.step-item:hover {
  border-color: var(--clr-border-hover);
  transform: translateY(-2px);
}

.step-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--clr-red);
}

.quick-download-notice {
  background: rgba(239, 68, 68, 0.08);
  border: 1px dashed rgba(239, 68, 68, 0.25);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}

.quick-download-notice svg {
  color: var(--clr-red);
  flex-shrink: 0;
}

.quick-link-bottom {
  color: var(--clr-red);
  text-decoration: underline;
  font-weight: 700;
  margin-right: 5px;
}


