/* ============================================================
   Aptoide TV — Shared Design System
   Color system extracted from the app icon (img/icon.webp)
   ============================================================ */

:root {
  --primary: #DF4C2E;
  --primary-dark: #C24227;
  --deep: #9D3A23;
  --accent: #FF6B45;
  --dark-bg: #241209;
  --dark-bg-mid: #331A0F;
  --white: #FFFFFF;
  --off-white: #FBF6F3;
  --muted: #6B5750;
  --muted-light: #A6928C;
  --border: #EEE0DA;
  --success: #22C55E;
  --info: #3B82F6;
  --text: #2A1810;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(36, 18, 9, 0.06);
  --shadow: 0 8px 24px rgba(36, 18, 9, 0.10);
  --shadow-lg: 0 20px 50px rgba(36, 18, 9, 0.18);
  --header-h: 76px;
  --wrap: 1180px;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
section { position: relative; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.section-light { background: var(--white); padding: 96px 0; }
.section-off { background: var(--off-white); padding: 96px 0; }
.section-dark {
  background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-mid) 100%);
  padding: 96px 0;
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #D9C4BB; }
.section-dark .section-label { color: var(--accent); }
.section-dark .section-label::before { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(223, 76, 46, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(223, 76, 46, 0.45); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.section-dark .btn-outline, .hero .btn-outline { border-color: rgba(255,255,255,0.25); color: var(--white); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 246, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
#header.scrolled { box-shadow: 0 4px 20px rgba(36, 18, 9, 0.08); background: rgba(251, 246, 243, 0.97); }
#header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 0;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px; background: var(--primary); border-radius: 2px;
}

.nav-dropdown { position: relative; }
.nav-dropdown > span { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 600; font-size: 0.95rem; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute; top: 100%; left: -20px; margin-top: 10px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}
.dropdown-menu a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 0.92rem; }
.dropdown-menu a:hover { background: var(--off-white); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.burger { display: none; width: 26px; height: 20px; position: relative; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: all 0.25s ease; }
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: var(--dark-bg);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 1.1rem; font-weight: 600; color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 60px) 0 120px;
  background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-mid) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(223,76,46,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,69,0.15); border: 1px solid rgba(255,107,69,0.35);
  color: var(--accent); font-weight: 700; font-size: 0.85rem;
  padding: 8px 18px; border-radius: 50px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.12rem; color: #D9C4BB; max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-bottom: 28px; font-size: 0.87rem; font-weight: 600; color: #B99E93; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: var(--accent); font-size: 0.8rem; }
.hero-webver { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; margin-bottom: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; color: #EEE0DA;
}
.badge i { color: var(--accent); }
.badge-code { background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.3); color: #86EFAC; }
button.badge-code { cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
button.badge-code:hover { background: rgba(34,197,94,0.22); border-color: rgba(34,197,94,0.55); transform: translateY(-1px); }
button.badge-code.copied { background: var(--success); border-color: var(--success); color: var(--white); }
button.badge-code.copied i { color: var(--white); }
button.badge-code .fa-copy { color: #86EFAC; opacity: 0.7; }
.badge-code img { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.btn:focus-visible, button.badge-code:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at 50% 45%, rgba(255,107,69,0.35) 0%, rgba(223,76,46,0.16) 40%, transparent 72%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero-visual img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,0.5));
  animation: hero-float 6s ease-in-out infinite;
  width: 100%;
  max-width: 680px;
  height: auto;
  display: block;
  margin: 0 auto;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
}
.hero-float-card {
  position: absolute;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  animation: float 4s ease-in-out infinite;
}
.hero-float-card.card1 { top: -8%; left: -8%; animation-delay: 0s; }
.hero-float-card.card2 { bottom: -6%; right: -6%; animation-delay: 1.5s; }
.hero-float-card i { color: var(--primary); font-size: 1.3rem; }
.hero-float-card small { display: block; color: var(--muted); font-weight: 500; font-size: 0.75rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.wave-divider svg { width: 100%; height: 80px; display: block; }

/* ---------- Overview ---------- */
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.device-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.device-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.device-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.device-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 12px; }
.device-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.device-card span { font-size: 0.8rem; color: var(--muted-light); }

.check-list li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.check-list i { color: var(--success); margin-top: 4px; }
.check-list strong { color: var(--text); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #FBD9CC; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem; margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.feature-card p { font-size: 0.92rem; }

/* ---------- Screenshot gallery ---------- */
.gallery { position: relative; }
.gallery-scroll {
  display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 20px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 auto; width: min(74%, 760px); scroll-snap-align: center;
  margin: 0;
}
.gallery-item img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.gallery-item figcaption {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 16px; font-weight: 700; font-size: 0.95rem; color: var(--text);
}
.gallery-item figcaption i { color: var(--primary); }

.gallery-arrow {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
  z-index: 3; width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--text); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  border: 1px solid var(--border); transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.gallery-arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-arrow:active { transform: translateY(-50%) scale(0.94); }
.gallery-arrow.prev { left: -6px; }
.gallery-arrow.next { right: -6px; }
.gallery-arrow[disabled] { opacity: 0; pointer-events: none; }

.gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.gallery-dots button {
  width: 9px; height: 9px; border-radius: 50%; background: var(--border);
  transition: background 0.2s ease, width 0.2s ease;
}
.gallery-dots button.active { background: var(--primary); width: 26px; border-radius: 5px; }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 26px; text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); background: rgba(255,107,69,0.1); }
.category-card i { font-size: 1.6rem; color: var(--accent); margin-bottom: 12px; }
.category-card h3 { font-size: 0.98rem; }

/* ---------- Download cards ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.download-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.download-card.featured {
  background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-mid) 100%);
  color: var(--white); border: none; box-shadow: var(--shadow-lg);
}
.download-card.featured h3, .download-card.featured p { color: var(--white); }
.download-card.featured p { opacity: 0.75; }
.download-card i.dl-icon { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.download-card.featured i.dl-icon { color: var(--accent); }
.download-card h3 { margin-bottom: 8px; }
.download-card p { font-size: 0.9rem; margin-bottom: 20px; flex-grow: 1; }
.dl-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--muted-light); margin-bottom: 18px; }
.download-card.featured .dl-meta { color: #C9B3AB; }

/* ---------- Downloader code ---------- */
.code-panel { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.code-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 40px 32px; text-align: center;
}
.code-card img.app-logo { width: 64px; margin: 0 auto 16px; border-radius: 14px; }
.code-card .code-label { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 12px; letter-spacing: 0.04em; }
.code-display {
  font-size: 2.8rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--white); margin-bottom: 22px; font-variant-numeric: tabular-nums;
}
.code-display span { color: var(--accent); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); padding: 10px 22px; border-radius: 50px; font-weight: 600;
  transition: all 0.2s ease; margin-bottom: 18px;
}
.copy-btn:hover { background: rgba(255,255,255,0.16); }
.copy-btn.copied { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.4); color: #86EFAC; }
.code-shortcut { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 22px; }
.code-shortcut strong { color: var(--accent); }

.step-list { counter-reset: step; }
.step-item { display: flex; gap: 20px; margin-bottom: 26px; }
.step-num {
  counter-increment: step; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.step-num::before { content: counter(step); }
.step-body h4 { font-size: 1.02rem; margin-bottom: 4px; color: var(--text); }
.step-body p { font-size: 0.92rem; }
.section-dark .step-body h4 { color: var(--white); }

/* Timeline style steps (device guides) */
.timeline { position: relative; }
.timeline .step-item { position: relative; padding-left: 0; }
.timeline .step-item:not(:last-child)::after {
  content: ''; position: absolute; left: 20px; top: 42px; bottom: -26px;
  width: 2px; background: var(--border);
}
.section-dark .timeline .step-item:not(:last-child)::after { background: rgba(255,255,255,0.12); }

/* ---------- Tabs ---------- */
.tabs-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.tab-btn {
  padding: 12px 24px; border-radius: 50px; font-weight: 700; font-size: 0.92rem;
  background: var(--off-white); border: 1px solid var(--border); color: var(--muted);
  transition: all 0.2s ease;
}
.tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.section-dark .tab-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #D9C4BB; }
.section-dark .tab-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 26px 22px;
}
.why-card i { color: var(--accent); font-size: 1.4rem; margin-bottom: 14px; }
.why-card h3 { font-size: 1rem; margin-bottom: 6px; }
.why-card p { font-size: 0.88rem; }

/* ---------- FAQ accordion ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; background: var(--white); }
.accordion-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; font-weight: 700; font-size: 1rem;
}
.accordion-q i { color: var(--primary); transition: transform 0.3s ease; flex-shrink: 0; }
.accordion-item.open .accordion-q i { transform: rotate(180deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion-a-inner { padding: 0 26px 22px; font-size: 0.95rem; color: var(--muted); }
.faq-more { text-align: center; margin-top: 30px; }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(160deg, var(--dark-bg), var(--dark-bg-mid));
  border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; color: var(--white);
  max-width: 640px; margin: 0 auto;
}
.contact-card i.contact-icon {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,107,69,0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.5rem;
}
.contact-card p { color: #D9C4BB; margin-bottom: 26px; }
.contact-email { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 26px; display: inline-block; }

/* ---------- Footer ---------- */
#footer { background: var(--dark-bg); color: #C9B3AB; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .brand { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 0.9rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-code-box { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 18px; }
.footer-code-box .code-display { font-size: 1.6rem; margin-bottom: 8px; }
.footer-code-box p { font-size: 0.78rem; margin-bottom: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 0.8rem; color: var(--muted-light); max-width: 720px; margin-bottom: 20px; line-height: 1.7; }

/* ---------- Scroll to top ---------- */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
}
#scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted-light); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--primary); font-weight: 700; }

/* ---------- Inner page hero (guides/legal) ---------- */
.page-hero {
  margin: calc(var(--header-h) + 40px) auto 0;
  max-width: var(--wrap);
  padding: 0 24px 60px;
}
.page-hero-card {
  background: linear-gradient(160deg, var(--dark-bg) 0%, var(--dark-bg-mid) 100%);
  border-radius: var(--radius-lg); padding: 56px 48px; color: var(--white); position: relative; overflow: hidden;
}
.page-hero-card::before {
  content: ''; position: absolute; top: -30%; right: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,69,0.28), transparent 70%);
}
.page-hero-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: rgba(255,107,69,0.15); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px;
  position: relative; z-index: 1;
}
.page-hero-card h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 14px; position: relative; z-index: 1; }
.page-hero-card p { color: #D9C4BB; max-width: 620px; position: relative; z-index: 1; }

.inner-content { max-width: var(--wrap); margin: 0 auto; padding: 70px 24px 100px; }
.inner-content.narrow { max-width: 860px; }

/* Legal template */
.legal-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 50px; box-shadow: var(--shadow-sm); }
.updated-pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--off-white);
  border: 1px solid var(--border); padding: 8px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 34px;
}
.legal-card h2 { font-size: 1.3rem; margin: 34px 0 14px; }
.legal-card h2:first-of-type { margin-top: 0; }
.legal-card p { margin-bottom: 16px; }
.legal-card ul { margin: 0 0 16px 0; }
.legal-card ul li { padding-left: 22px; position: relative; margin-bottom: 10px; color: var(--muted); }
.legal-card ul li::before { content: '\2022'; color: var(--primary); position: absolute; left: 4px; font-weight: 800; }
.legal-card a.inline-link { color: var(--primary); font-weight: 600; text-decoration: underline; }

.highlight-box {
  background: var(--off-white); border-left: 4px solid var(--primary); border-radius: 10px;
  padding: 20px 24px; margin: 20px 0; font-size: 0.94rem;
}
.highlight-box.info { border-left-color: var(--info); }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box strong { color: var(--text); }

/* Related guides box */
.related-guides { background: var(--off-white); border-radius: var(--radius-lg); padding: 40px; margin-top: 60px; }
.related-guides h3 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 14px; transition: all 0.2s ease;
}
.related-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-card i { font-size: 1.3rem; color: var(--primary); flex-shrink: 0; }
.related-card span { font-weight: 700; font-size: 0.92rem; }

/* Note boxes for guides */
.note-box { display: flex; gap: 16px; background: rgba(255,107,69,0.08); border: 1px solid rgba(223,76,46,0.2); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 34px; }
.note-box.info { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); }
.note-box i { color: var(--primary); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.note-box.info i { color: var(--info); }
.note-box p { margin: 0; font-size: 0.92rem; }

/* Simple content headings for guide pages */
.content-block h2 { font-size: 1.5rem; margin: 44px 0 16px; }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.content-block p { margin-bottom: 16px; }
.content-block ul, .content-block ol { margin: 0 0 20px 20px; }
.content-block ul li, .content-block ol li { margin-bottom: 10px; color: var(--muted); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 50px 46px; color: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  margin-top: 60px;
}
.cta-banner h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-banner .btn-light { flex-shrink: 0; }

/* ---------- Countdown modal ---------- */
.dl-modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 10, 5, 0.88);
  display: flex; align-items: center; justify-content: center; z-index: 3000;
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(6px);
}
.dl-modal-overlay.open { opacity: 1; visibility: visible; }
.dl-modal {
  background: var(--white); border-radius: var(--radius-lg); padding: 44px 40px;
  text-align: center; max-width: 380px; width: 90%; box-shadow: var(--shadow-lg);
}
.dl-modal img.app-logo { width: 60px; margin: 0 auto 16px; border-radius: 14px; }
.dl-modal h3 { font-size: 1.2rem; margin-bottom: 6px; }
.dl-modal p { font-size: 0.9rem; margin-bottom: 20px; }
.dl-ring { position: relative; width: 130px; height: 130px; margin: 0 auto 20px; }
.dl-ring svg { transform: rotate(-90deg); }
.dl-ring circle { fill: none; stroke-width: 6; }
.dl-ring .bg { stroke: var(--border); }
.dl-ring .fg { stroke: var(--primary); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.dl-ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--text); }
.dl-manual { display: block; font-size: 0.88rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.dl-cancel { font-size: 0.85rem; color: var(--muted-light); font-weight: 600; }
.dl-cancel:hover { color: #EF4444; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust, .hero-badges { justify-content: center; }
  .hero-visual { order: 2; width: 100%; max-width: 540px; margin: 0 auto; }
  .overview-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .code-panel { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .step-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-light, .section-off, .section-dark { padding: 64px 0; }
  h2 { font-size: 1.8rem; }
  .feature-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-banner { flex-direction: column; text-align: center; }
  .page-hero-card { padding: 40px 26px; }
  .legal-card { padding: 30px 22px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 380px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-badges { gap: 8px; }
  .badge { font-size: 0.75rem; padding: 6px 12px; }
  .gallery-item { width: 88%; }
  .gallery-arrow { display: none; }
  .code-display { font-size: 2.2rem; }
}
