/* ═══ VARIABLES & RESET ═══ */
:root {
  --color-bg: #0a0a14;
  --color-card: #0f0f1e;
  --color-primary: #a855f7;
  --color-secondary: #ec4899;
  --color-accent: #06b6d4;
  --color-gradient: linear-gradient(135deg, #a855f7, #ec4899);
  --color-success: #10b981;
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;
  --color-border: #1e1e3a;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 28px rgba(168, 85, 247, 0.2);
  --transition: all 0.3s ease;
  --modal-bg: #1e2128;
  --modal-gradient: linear-gradient(90deg, #8b5cf6, #f97316);
  --header-h: 76px;
  --hero-offset: clamp(3rem, 5vw, 4.5rem);
  /* Industry-standard spacing (8px grid, centered container + side gutters) */
  --container-max: 1280px;
  --gutter-min: 1.5rem;
  --gutter: clamp(var(--gutter-min), 4vw + 0.25rem, 3rem);
  --section-space: clamp(4rem, 7vw, 6rem);
  --hero-pad-bottom: clamp(4rem, 8vw, 6rem);
  --block-space: clamp(1.5rem, 3vw, 2.5rem);
  --card-space: clamp(1.25rem, 2vw, 1.75rem);
  --stack-sm: 1rem;
  --stack-md: 1.5rem;
  --stack-lg: 2rem;
  --stack-xl: 3rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative;
}
body.modal-open { overflow: hidden; }
main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
/* Disable AOS transforms (prevents horizontal overflow) */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-secondary); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: var(--stack-md); }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: var(--stack-md);
  margin-top: 0;
}
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--stack-sm); }
p { margin-bottom: 1.25rem; color: var(--color-muted); }
p:last-child { margin-bottom: 0; }
ul, ol { margin-bottom: 1.25rem; padding-left: 1.5rem; color: var(--color-muted); }
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}
/* Never let layout utilities shrink the content column below container max */
.container.hero-grid,
.hero > .container,
.page-hero.container,
.page-hero > .container {
  max-width: var(--container-max);
}
.section {
  padding: var(--section-space) 0;
  width: 100%;
  max-width: 100%;
}
.section > .container > h2:first-child,
.section > .container > h2:first-of-type {
  margin-top: 0;
}
.section > .container > p:first-of-type {
  margin-bottom: var(--stack-lg);
}
.section-alt {
  background: var(--color-card);
  width: 100%;
  max-width: 100%;
  padding: var(--section-space) 0;
}
.section-alt > .container {
  padding-top: 0;
  padding-bottom: 0;
}
/* Inner pages: first block clears fixed header via rules below */
.text-gradient {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ STICKY HEADER ═══ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
  overflow-x: clip;
}
.site-header .container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-header.shrink { padding: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  min-height: var(--header-h);
  gap: var(--stack-md) 1.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding-block: 0;
}
@media (min-width: 1201px) {
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
  }
  .nav-desktop {
    justify-content: center;
    overflow: hidden;
  }
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text);
  font-size: 1rem;
}
.logo img {
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo:hover { color: var(--color-primary); }
.nav-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  flex: 1 1 auto;
  min-width: 0;
}
.nav-desktop a {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--color-primary); }
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: var(--color-gradient);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: #fff !important; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--stack-md);
  padding-block: var(--stack-md) var(--stack-lg);
  border-top: 1px solid var(--color-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--color-muted); font-weight: 500; }

/* ═══ HERO GRADIENT ═══ */
.hero {
  padding: var(--hero-offset) 0 var(--hero-pad-bottom);
  background: radial-gradient(ellipse at 30% 20%, rgba(168, 85, 247, 0.25), transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(236, 72, 153, 0.15), transparent 45%),
              var(--color-bg);
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--color-bg));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  position: relative;
  overflow-x: clip;
  padding-bottom: var(--stack-xl);
}
.hero-grid > *,
.cards-grid > *,
.stats-row > *,
.footer-grid > *,
.related-card,
.screenshot-item,
.step-card {
  min-width: 0;
}
.cards-grid,
.stats-row,
.related-cards,
.screenshots-grid,
.steps-grid,
.pros-cons,
.footer-grid {
  max-width: 100%;
}
.hero-content {
  min-width: 0;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0;
}
.hero-content h1 {
  margin-bottom: var(--stack-lg);
  word-wrap: break-word;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  max-width: 36rem;
  margin-bottom: var(--stack-xl);
  line-height: 1.75;
  color: var(--color-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 0 0 var(--stack-xl);
}
.hero-cta .btn-primary {
  padding: 1rem 1.85rem;
  font-size: 1rem;
}
.hero-cta .btn-outline {
  padding: 1rem 1.5rem;
}
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: var(--stack-lg);
  padding: var(--stack-md) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-bar span {
  white-space: nowrap;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}
.hero-stars {
  color: #fbbf24;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.hero-img-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding: var(--stack-md);
  background: rgba(15, 15, 30, 0.55);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}
.hero-img-wrap img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  max-height: min(420px, 50vh);
  object-fit: contain;
  display: block;
  background: #1b1e2e;
}
.hero .stats-row {
  margin-top: 0;
  padding-top: var(--stack-xl);
  border-top: 1px solid var(--color-border);
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--color-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
  max-width: 100%;
}
.download-section .btn-primary {
  white-space: normal;
  text-wrap: balance;
}
.btn-primary:hover { transform: translateY(-3px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-outline:hover { background: rgba(168, 85, 247, 0.1); color: var(--color-primary); }
/* ═══ STATS ROW ═══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--card-space);
  margin-top: var(--stack-xl);
}
.stat-item {
  text-align: center;
  padding: var(--card-space);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--color-muted); }

/* ═══ APK INFO TABLE ═══ */
.info-table-wrap {
  overflow-x: auto;
  margin: var(--stack-lg) 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th,
.info-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.info-table th { color: var(--color-muted); font-weight: 500; width: 40%; }
.info-table td { color: var(--color-text); font-weight: 600; }
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ═══ PRICE TABLE ═══ */
.price-table .mod-col { color: var(--color-success); font-weight: 700; }

/* ═══ MOD FEATURE CARDS ═══ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--card-space);
  margin-top: var(--stack-lg);
  width: 100%;
}
.cards-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 992px) {
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-space);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.15);
  border-radius: 10px;
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: 0.5rem; color: var(--color-text); }
.feature-card p { margin: 0; font-size: 0.9rem; }

/* ═══ DOWNLOAD BOX ═══ */
.download-section {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin: var(--stack-xl) 0;
}
.download-section h2,
.download-section h3 {
  margin-bottom: var(--stack-md);
}
.download-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: var(--stack-md) 0 var(--stack-lg);
  font-size: 0.9rem;
  color: var(--color-muted);
}
.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: var(--stack-lg);
}
.download-badges span {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--card-space);
  margin-top: var(--stack-lg);
  width: 100%;
}
.section > .container > h3 {
  margin-top: var(--stack-xl);
  margin-bottom: var(--stack-md);
}
.related-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-space);
  text-align: center;
  transition: var(--transition);
  color: var(--color-text);
}
.related-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  color: var(--color-primary);
}
.related-card i { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; color: var(--color-primary); }

/* ═══ CONTENT PAGE MEDIA ═══ */
.content-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin: var(--stack-lg) 0;
  border: 1px solid var(--color-border);
}
.section .container > .download-section {
  margin-top: var(--stack-lg);
}
.download-note {
  margin-top: var(--stack-md);
  font-size: 0.9rem;
  color: var(--color-muted);
}
.step-card h3 {
  font-size: 1rem;
  margin: 0.5rem 0 0.35rem;
  color: var(--color-text);
}

/* ═══ INSTALL STEPS ═══ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--card-space);
  margin: var(--stack-lg) 0;
  width: 100%;
}
.step-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-space);
  text-align: center;
}
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gradient);
  border-radius: 50%;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
}
.tip-box, .note-box {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: var(--stack-lg) 0;
  font-size: 0.95rem;
}
.tip-box { background: rgba(6, 182, 212, 0.1); border-left: 4px solid var(--color-accent); color: var(--color-text); }
.note-box { background: rgba(251, 191, 36, 0.1); border-left: 4px solid #fbbf24; color: var(--color-text); }

/* ═══ MYANMAR SECTION ═══ */
.myanmar-section {
  background: linear-gradient(135deg, rgba(254, 202, 202, 0.06), rgba(168, 85, 247, 0.08));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-left: 4px solid #ef4444;
  margin-top: var(--stack-md);
}

/* ═══ SCREENSHOTS GRID ═══ */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--card-space);
  margin-top: var(--stack-lg);
  width: 100%;
}
.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.screenshot-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.screenshot-item img { width: 100%; }

/* ═══ COMPARISON TABLES ═══ */
.compare-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: var(--stack-lg) 0;
  font-size: 0.9rem;
  table-layout: fixed;
  word-wrap: break-word;
}
.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  text-align: center;
}
.compare-table th { background: var(--color-card); color: var(--color-text); }
.compare-table .mod-highlight { background: rgba(168, 85, 247, 0.12); color: var(--color-success); font-weight: 700; }
.compare-table td:first-child { text-align: left; font-weight: 600; color: var(--color-text); }

/* ═══ PROS CONS ═══ */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-space);
  margin-top: var(--stack-lg);
  width: 100%;
  overflow-x: clip;
}
.pros-box, .cons-box {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: var(--card-space);
  border: 1px solid var(--color-border);
}
.pros-box li, .cons-box li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}
.pros-box { border-top: 3px solid var(--color-success); }
.cons-box { border-top: 3px solid #f59e0b; }
.pros-box ul, .cons-box ul { list-style: none; padding: 0; }
.pros-box li::before { content: '✅ '; }
.cons-box li::before { content: '⚠ '; }

/* ═══ USER REVIEWS ═══ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--card-space);
  margin-top: var(--stack-lg);
  width: 100%;
}
.review-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--card-space);
}
.review-stars { color: #fbbf24; margin-bottom: 0.75rem; }
.review-author { font-weight: 700; color: var(--color-text); margin-top: 1rem; font-size: 0.9rem; }

/* ═══ FAQ ACCORDION ═══ */
.faq-list { margin-top: var(--stack-lg); }
.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question i { color: var(--color-primary); transition: transform 0.3s; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.faq-item.active .faq-answer { max-height: 500px; }

/* ═══ VERSION HISTORY ═══ */
.version-list { list-style: none; padding: 0; }
.version-list li {
  padding: 1.25rem 1.5rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.version-list strong { color: var(--color-primary); }

/* ═══ MAIN TOP SPACING (fixed header clearance) ═══ */
main > .hero:first-child,
main > section.hero:first-child,
main > .page-hero:first-child,
main > section.page-hero:first-child {
  padding-top: calc(var(--header-h) + var(--hero-offset));
}
/* Legal / content pages: first section is not a hero */
main > .section:first-child,
main > section.section:first-child {
  padding-top: calc(var(--header-h) + var(--stack-md));
}

/* ═══ PAGE HERO ═══ */
.page-hero {
  padding: var(--hero-offset) 0 var(--hero-pad-bottom);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(168, 85, 247, 0.15), transparent 55%), var(--color-bg);
  width: 100%;
}
.page-hero > .container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-hero.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-hero h1 {
  margin-bottom: var(--stack-lg);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-hero .hero-sub {
  margin-bottom: var(--stack-xl);
  max-width: 40rem;
}
.page-hero .hero-cta {
  margin-bottom: var(--stack-xl);
}
.page-hero .trust-bar {
  margin-bottom: 0;
}

/* ═══ DOWNLOAD MODAL (POPUP UI) ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  width: min(420px, 100%);
  background: var(--modal-bg);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: var(--transition);
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.modal-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin: 0 auto 1rem;
  object-fit: contain;
  background: #1b1e2e;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.modal-version {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}
.modal-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 0 1.25rem;
}
.modal-instruction {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 1.25rem;
}
.modal-download-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--modal-gradient);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 1rem;
}
.modal-download-btn:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.08); }
.modal-download-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.modal-verified {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--color-success);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.modal-feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.modal-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: #2a2f3a;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #d1d5db;
  font-weight: 500;
}
.modal-pill .pill-free { color: var(--color-success); }
.modal-pill .pill-malware { color: #60a5fa; }
.modal-pill .pill-fast { color: #f97316; }
.modal-terms {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}
.modal-terms a { color: #9ca3af; text-decoration: underline; }
.modal-terms a:hover { color: #fff; }
.modal-progress-state { display: none; }
.modal-progress-state.active { display: block; }
.modal-initial-state.hidden { display: none; }
.modal-progress-wrap { margin: 1rem 0 0.5rem; }
.modal-progress-bar {
  height: 8px;
  background: #2a2f3a;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.modal-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--modal-gradient);
  border-radius: 999px;
  transition: width 0.1s linear;
}
.modal-pct {
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 600;
}
.modal-progress-label {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-top: 0.75rem;
}

/* ═══ LEGAL PAGES ═══ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--stack-md) 0 var(--section-space);
}
.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: var(--color-text);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p,
.legal-content li { font-size: 0.95rem; line-height: 1.75; }
.legal-content ul { margin-bottom: 1.25rem; }
.legal-updated {
  display: inline-block;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}
.contact-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: var(--stack-xl) 0;
}
.contact-box .contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.75rem;
}
.contact-box .contact-email:hover { color: var(--color-secondary); }

/* ═══ FOOTER ═══ */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2rem);
  margin-top: var(--section-space);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}
.footer-grid > div > p {
  margin-top: var(--stack-md);
  line-height: 1.65;
}
.footer-grid h4 { color: var(--color-text); margin-bottom: var(--stack-md); font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--color-muted); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--stack-lg);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.disclaimer { font-size: 0.8rem; margin-top: var(--stack-md); line-height: 1.6; }

/* ═══ BACK TO TOP ═══ */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-4px); }

/* ═══ PRESET CARDS ═══ */
.preset-card img { border-radius: var(--radius) var(--radius) 0 0; }
.preset-card .feature-card { border-radius: 0 0 var(--radius) var(--radius); margin-top: -4px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 992px) {
  .hero {
    padding-top: var(--hero-offset);
    padding-bottom: var(--hero-pad-bottom);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--stack-xl);
    padding-bottom: var(--stack-lg);
  }
  .hero-content {
    padding-right: 0;
    text-align: center;
    align-items: center;
  }
  .hero-sub { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .trust-bar { justify-content: center; }
  .hero-stars { text-align: center; }
  .hero-img-wrap {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1200px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-desktop, .btn-header { display: none; }
  .menu-toggle { display: block; }
}
/* Layout containment — no horizontal overflow */
.site-header,
.site-footer,
.hero,
.section,
.section-alt {
  box-sizing: border-box;
}
/* Download / related blocks used as <section> without .container */
section.download-section {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--stack-xl) var(--gutter);
  border-radius: var(--radius);
}
section.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--card-space);
  max-width: var(--container-max);
  margin: 0 auto var(--section-space);
  padding: 0 var(--gutter) var(--section-space);
  width: 100%;
}
@media (max-width: 768px) {
  :root {
    --section-space: 3.5rem;
    --hero-offset: 2.5rem;
    --header-h: 72px;
  }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .download-section { padding: 2rem var(--gutter); margin: var(--stack-lg) 0; }
  main > .hero:first-child {
    padding-top: calc(var(--header-h) + var(--hero-offset));
  }
  .hero {
    padding-top: var(--hero-offset);
    padding-bottom: var(--hero-pad-bottom);
  }
  .page-hero {
    padding-bottom: var(--hero-pad-bottom);
  }
  .hero-content h1 { margin-bottom: var(--stack-md); }
  .hero-sub { margin-bottom: var(--stack-lg); }
  .hero-cta { margin-bottom: var(--stack-lg); }
  .hero-cta .btn { width: 100%; max-width: 360px; }
  .hero-img-wrap { padding: var(--stack-sm); }
  .trust-bar {
    gap: 0.5rem;
    justify-content: center;
  }
  .trust-bar span {
    font-size: 0.8rem;
  }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
