/* =============================================
   MobCash Landing — style.css
   Brand: 1xBet MENA style • RTL Arabic
   ============================================= */

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

/* ─── CSS Variables (1xBet palette) ─── */
:root {
  /* Backgrounds */
  --bg-primary:       #1a1f2e;
  --bg-secondary:     #242938;
  --bg-tertiary:      #2d3347;
  --bg-header:        #1c2133;
  --bg-nav:           #111521;
  --bg-footer:        #151826;
  --bg-card:          #1e2435;
  --bg-card-hover:    #283048;

  /* Accent */
  --accent-primary:   #1e88e5;
  --accent-hover:     #1565c0;
  --accent-orange:    #f5a623;
  --accent-yellow:    #fce974;
  --accent-red:       #e53935;
  --accent-green:     #43a047;

  /* Text */
  --text-primary:     #ffffff;
  --text-secondary:   #b0b8c8;
  --text-muted:       #6b7590;
  --text-link:        #64b5f6;

  /* Borders */
  --border-primary:   #2e3549;
  --border-hover:     #3d4560;

  /* Gradients */
  --gradient-hero:    linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1565c0 100%);
  --gradient-promo:   linear-gradient(90deg, #e65100 0%, #f57c00 100%);
  --gradient-card:    linear-gradient(180deg, #242938 0%, #1a1f2e 100%);
  --gradient-green:   linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
  --gradient-cta:     linear-gradient(135deg, #43a047 0%, #66bb6a 100%);

  /* Typography */
  --font-xs:    11px;
  --font-sm:    12px;
  --font-base:  13px;
  --font-md:    14px;
  --font-lg:    16px;
  --font-xl:    18px;
  --font-2xl:   22px;
  --font-3xl:   28px;
  --font-hero:  36px;

  /* Spacing */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 20px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.3);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.4);
  --shadow-xl:  0 12px 48px rgba(0,0,0,0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', 'Noto Sans Arabic', 'Tahoma', 'Arial Unicode MS', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: var(--font-md);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* Numbers always LTR */
.number, .ltr-num {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

/* ─── Page Wrapper ─── */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--bg-header);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-primary);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-logo__text {
  font-size: var(--font-2xl);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.header-logo__text span {
  color: var(--accent-primary);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: var(--font-base);
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
}

.btn-download-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  font-size: var(--font-base);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(67,160,71,0.3);
}

.btn-download-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(67,160,71,0.5);
  text-decoration: none;
  color: #fff;
}

.btn-download-header svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* =============================================
   HERO SECTION — App Card (Google Play style)
   ============================================= */
.hero-section {
  padding: 40px 0;
  background: linear-gradient(180deg, var(--bg-header) 0%, var(--bg-primary) 100%);
}

.app-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.app-card__icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.app-card__icon img {
  width: 100%;
  height: auto;
}

.app-card__info {
  flex: 1;
  min-width: 0;
}

.app-card__title {
  font-size: var(--font-3xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.app-card__developer {
  font-size: var(--font-lg);
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.app-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.meta-item {
  text-align: center;
}

.meta-item__value {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.meta-item__value .star {
  color: var(--accent-orange);
  font-size: 14px;
}

.meta-item__label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.meta-divider {
  width: 1px;
  background: var(--border-primary);
  align-self: stretch;
}

.app-card__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-download-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gradient-cta);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 48px;
  font-size: var(--font-lg);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(67,160,71,0.35);
  min-width: 220px;
  position: relative;
  overflow: hidden;
}

.btn-download-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s;
}

.btn-download-main:hover::before {
  left: 100%;
}

.btn-download-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(67,160,71,0.55);
  text-decoration: none;
  color: #fff;
}

.btn-download-main:active {
  transform: translateY(-1px);
}

.btn-download-main svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ─── File Info (hash, version, size) ─── */
.file-info {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.file-info__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-sm);
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-primary);
}

.file-info__item strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.file-info__item code {
  font-family: 'Courier New', monospace;
  font-size: var(--font-xs);
  color: var(--text-link);
  direction: ltr;
  unicode-bidi: embed;
}

/* ─── Virus Check Badge ─── */
.virus-check {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(67,160,71,0.1);
  border: 1px solid rgba(67,160,71,0.3);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  color: var(--accent-green);
  font-size: var(--font-sm);
  font-weight: 600;
  transition: all 0.2s;
}

.virus-check:hover {
  background: rgba(67,160,71,0.15);
  border-color: var(--accent-green);
  text-decoration: none;
  color: var(--accent-green);
}

.virus-check__icon {
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

/* Hero mockup image */
.hero-mockup {
  flex-shrink: 0;
  max-width: 280px;
}

.hero-mockup img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: float 6s ease-in-out infinite;
}

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

/* =============================================
   SCREENSHOTS SECTION
   ============================================= */
.screenshots-section {
  padding: 48px 0 32px;
}

.section-title {
  font-size: var(--font-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title__icon {
  width: 28px;
  height: 28px;
  background: var(--accent-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.screenshots-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-tertiary) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.screenshot-item {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-primary);
  scroll-snap-align: start;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.screenshot-item:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   APP DETAILS TABLE (Google Play style)
   ============================================= */
.app-details-section {
  padding: 32px 0;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.detail-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-primary);
  transition: all 0.2s;
}

.detail-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.detail-card__label {
  font-size: var(--font-sm);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 6px;
}

.detail-card__value {
  font-size: var(--font-lg);
  color: var(--text-primary);
  font-weight: 700;
}

.detail-card__value.green {
  color: var(--accent-green);
}

/* =============================================
   SYSTEM REQUIREMENTS
   ============================================= */
.requirements-section {
  padding: 32px 0;
}

.requirements-table {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.requirements-table table {
  width: 100%;
  border-collapse: collapse;
}

.requirements-table th,
.requirements-table td {
  padding: 14px 20px;
  text-align: right;
  font-size: var(--font-md);
  border-bottom: 1px solid var(--border-primary);
}

.requirements-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: var(--font-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.requirements-table td {
  color: var(--text-primary);
}

.requirements-table tr:last-child td {
  border-bottom: none;
}

.requirements-table tr:hover td {
  background: rgba(30,136,229,0.05);
}

.req-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.req-icon .icon {
  color: var(--accent-green);
  font-size: 18px;
}

/* =============================================
   INSTALLATION GUIDE
   ============================================= */
.install-guide-section {
  padding: 32px 0;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.install-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.install-step__number {
  width: 48px;
  height: 48px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(30,136,229,0.3);
}

.install-step__line {
  position: absolute;
  right: 23px;
  top: 48px;
  width: 2px;
  height: calc(100% - 48px);
  background: var(--border-primary);
  z-index: 1;
}

.install-step:last-child .install-step__line {
  display: none;
}

.install-step__content {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border-primary);
  margin-bottom: 16px;
  transition: all 0.2s;
}

.install-step__content:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(30,136,229,0.1);
}

.install-step__title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.install-step__text {
  font-size: var(--font-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.install-step__text code {
  background: var(--bg-tertiary);
  color: var(--accent-yellow);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: var(--font-sm);
  direction: ltr;
  unicode-bidi: embed;
}

/* =============================================
   FEATURES / BENEFITS
   ============================================= */
.features-section {
  padding: 48px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--accent-primary);
  transition: height 0.3s;
  border-radius: 0 0 0 4px;
}

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

.feature-card:hover::before {
  height: 100%;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(30,136,229,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-card__text {
  font-size: var(--font-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   CTA SECTION — Earnings / Commission
   ============================================= */
.cta-section {
  padding: 48px 0;
}

.cta-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 40px;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 70%, rgba(30,136,229,0.2) 0%, transparent 50%);
  animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(5%, -5%); }
}

.cta-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--font-3xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-content p {
  font-size: var(--font-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.7;
}

.cta-mockup {
  flex-shrink: 0;
  max-width: 300px;
  position: relative;
  z-index: 1;
}

.cta-mockup img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

/* Earnings Stats */
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.earning-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.earning-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.earning-card__value {
  font-size: var(--font-3xl);
  font-weight: 900;
  color: var(--accent-yellow);
  margin-bottom: 4px;
}

.earning-card__label {
  font-size: var(--font-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-it-works-section {
  padding: 48px 0;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.how-step {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--border-primary);
  transition: all 0.3s;
  position: relative;
}

.how-step:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.how-step__number {
  width: 48px;
  height: 48px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-xl);
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
}

.how-step__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.how-step__title {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.how-step__text {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-section {
  padding: 48px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-primary);
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  border-color: var(--accent-primary);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: var(--font-lg);
  font-weight: 700;
  font-family: inherit;
  text-align: right;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg-tertiary);
}

.faq-question__icon {
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  font-size: 14px;
  color: var(--text-secondary);
}

.faq-item.active .faq-question__icon {
  background: var(--accent-primary);
  color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer__inner {
  padding: 0 24px 20px;
  font-size: var(--font-md);
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

/* =============================================
   COMMISSION TABLE
   ============================================= */
.commission-section {
  padding: 32px 0;
}

.commission-table {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.commission-table table {
  width: 100%;
  border-collapse: collapse;
}

.commission-table th {
  background: var(--bg-tertiary);
  padding: 14px 20px;
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.commission-table td {
  padding: 16px 20px;
  font-size: var(--font-md);
  border-bottom: 1px solid var(--border-primary);
  text-align: right;
}

.commission-table tr:last-child td {
  border-bottom: none;
}

.commission-table tr:hover td {
  background: rgba(30,136,229,0.05);
}

.commission-highlight {
  color: var(--accent-green);
  font-weight: 700;
  font-size: var(--font-lg);
}

/* =============================================
   PARTNER BADGE
   ============================================= */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(30,136,229,0.1);
  border: 1px solid rgba(30,136,229,0.3);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin-top: 16px;
}

.partner-badge__icon {
  font-size: 20px;
}

.partner-badge__text {
  font-size: var(--font-sm);
  color: var(--text-link);
  font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-primary);
  padding: 40px 0 20px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-primary);
}

.footer-col__title {
  font-size: var(--font-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: var(--font-sm);
  transition: color 0.15s;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom__text {
  font-size: var(--font-xs);
  color: var(--text-muted);
}

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

.footer-bottom__links a {
  color: var(--text-muted);
  font-size: var(--font-xs);
  text-decoration: none;
}

.footer-bottom__links a:hover {
  color: var(--text-secondary);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

/* =============================================
   STICKY MOBILE DOWNLOAD BAR
   ============================================= */
.sticky-download-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-header);
  border-top: 1px solid var(--border-primary);
  padding: 12px 16px;
  z-index: 998;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.3);
}

.sticky-download-bar .btn-download-main {
  width: 100%;
  padding: 14px;
  font-size: var(--font-lg);
}

/* =============================================
   ANIMATE ON SCROLL
   ============================================= */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.animate-on-scroll.visible .feature-card:nth-child(1),
.animate-on-scroll.visible .how-step:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll.visible .feature-card:nth-child(2),
.animate-on-scroll.visible .how-step:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll.visible .feature-card:nth-child(3),
.animate-on-scroll.visible .how-step:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll.visible .feature-card:nth-child(4),
.animate-on-scroll.visible .how-step:nth-child(4) { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet */
@media (max-width: 1024px) {
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .cta-mockup {
    max-width: 200px;
  }
  .hero-mockup {
    max-width: 200px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .header-inner {
    height: 56px;
  }

  .hero-section {
    padding: 24px 0;
  }

  .app-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-card__icon {
    width: 96px;
    height: 96px;
  }

  .app-card__title {
    font-size: var(--font-2xl);
  }

  .app-card__meta {
    justify-content: center;
  }

  .app-card__actions {
    justify-content: center;
  }

  .file-info {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-mockup {
    display: none;
  }

  .screenshots-scroll {
    gap: 8px;
  }

  .screenshot-item {
    width: 160px;
  }

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

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

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

  .cta-banner {
    padding: 28px 20px;
  }

  .cta-content h2 {
    font-size: var(--font-2xl);
  }

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

  .sticky-download-bar {
    display: block;
  }

  body {
    padding-bottom: 80px;
  }

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

  .install-step {
    gap: 12px;
  }

  .install-step__number {
    width: 40px;
    height: 40px;
    font-size: var(--font-lg);
  }

  .install-step__line {
    right: 19px;
    top: 40px;
    height: calc(100% - 40px);
  }

  .section-title {
    font-size: var(--font-xl);
  }

  .faq-question {
    padding: 14px 16px;
    font-size: var(--font-md);
  }

  .faq-answer__inner {
    padding: 0 16px 16px;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 0 12px;
  }

  .app-card__title {
    font-size: var(--font-xl);
  }

  .btn-download-main {
    padding: 12px 32px;
    font-size: var(--font-md);
    min-width: unset;
    width: 100%;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .detail-card {
    padding: 14px;
  }

  .earnings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .earning-card {
    padding: 16px;
  }

  .earning-card__value {
    font-size: var(--font-2xl);
  }

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

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-green { color: var(--accent-green); }
.text-blue { color: var(--accent-primary); }
.text-orange { color: var(--accent-orange); }
.text-muted { color: var(--text-muted); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* Pulse animation for download button */
@keyframes pulse-green {
  0% { box-shadow: 0 4px 20px rgba(67,160,71,0.35); }
  50% { box-shadow: 0 4px 30px rgba(67,160,71,0.6); }
  100% { box-shadow: 0 4px 20px rgba(67,160,71,0.35); }
}

.btn-download-main {
  animation: pulse-green 3s ease-in-out infinite;
}

.btn-download-main:hover {
  animation: none;
}

/* Content Rating Badge */
.content-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.content-rating__badge {
  background: var(--accent-green);
  color: #fff;
  font-size: var(--font-xs);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
