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

/* ── DARK THEME (default) ── */
:root, [data-theme="dark"] {
  --bg:         #06071a;
  --card:      rgba(14,17,45,0.92);
  --border:    rgba(255,255,255,0.07);
  --text:      #F0F2FF;
  --muted:     #7C87BE;
  --dim:       #3a4070;
  --stat-bg:   rgba(79,107,255,0.1);
  --stat-bd:   rgba(79,107,255,0.2);
  --stat-col:  #8fa4ff;
  --ps-bg:     linear-gradient(135deg,#1a1f4a,#222868);
  --ps-border: rgba(79,107,255,0.3);
  --tg-border: #3a4070;
  --tg-color:  #7C87BE;
  --shadow:    0 30px 80px rgba(0,0,0,0.7);
  --orb1:      #3a2fff55;
  --orb2:      #1a6fff44;
  --orb3:      #7a22ff33;
  --particle:  rgba(120,140,255,0.4);
  --toggle-bg: rgba(255,255,255,0.08);
  --toggle-bd: rgba(255,255,255,0.12);
  --toggle-shadow: 0 4px 16px rgba(0,0,0,0.5);
  --ring-mask: #06071a;
  --h1-grad:   linear-gradient(135deg,#fff 40%,#8fa4ff);
  --toast-bg:  rgba(20,25,60,0.95);
  --toast-bd:  rgba(79,107,255,0.4);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:         #eef0ff;
  --card:      rgba(255,255,255,0.88);
  --border:    rgba(79,107,255,0.15);
  --text:      #111430;
  --muted:     #5260a0;
  --dim:       #b0b8e0;
  --stat-bg:   rgba(79,107,255,0.08);
  --stat-bd:   rgba(79,107,255,0.2);
  --stat-col:  #4F6BFF;
  --ps-bg:     linear-gradient(135deg,#dde3ff,#e8e0ff);
  --ps-border: rgba(79,107,255,0.3);
  --tg-border: #c8cef0;
  --tg-color:  #5260a0;
  --shadow:    0 20px 60px rgba(79,107,255,0.12);
  --orb1:      rgba(120,140,255,0.25);
  --orb2:      rgba(79,107,255,0.18);
  --orb3:      rgba(140,100,255,0.15);
  --particle:  rgba(79,107,255,0.25);
  --toggle-bg: rgba(255,255,255,0.85);
  --toggle-bd: rgba(79,107,255,0.2);
  --toggle-shadow: 0 4px 16px rgba(79,107,255,0.15);
  --ring-mask: #eef0ff;
  --h1-grad:   linear-gradient(135deg,#1a2060 40%,#4F6BFF);
  --toast-bg:  rgba(240,242,255,0.97);
  --toast-bd:  rgba(79,107,255,0.3);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: 0.01ms !important; 
    transition-duration: 0.01ms !important; 
  }
}

html { 
  transition: background 0.4s ease; 
  scroll-behavior: smooth; 
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter','Segoe UI',sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  padding: 100px 0 60px;
}

/* ── Top Left Floating Control Container ── */
.top-left-controls {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control-btn {
  height: 48px;
  border-radius: 14px;
  background: var(--toggle-bg);
  border: 1px solid var(--toggle-bd);
  box-shadow: var(--toggle-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
  color: var(--text);
  white-space: nowrap;
}

.btn-square { width: 48px; }
.btn-pill { padding: 0 16px; gap: 8px; }

.control-btn:hover {
  transform: scale(1.06) translateY(1px);
  box-shadow: 0 6px 24px rgba(79,107,255,0.3);
  border-color: var(--stat-col);
}
.control-btn:active { transform: scale(0.95); }

.btn-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Sun / Moon Theme Icon Transitions */
.icon-sun, .icon-moon {
  position: absolute;
  width: 22px; height: 22px;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
[data-theme="dark"]  .icon-sun  { opacity: 1;  transform: rotate(0deg) scale(1); }
[data-theme="dark"]  .icon-moon { opacity: 0;  transform: rotate(-90deg) scale(0.5); }
[data-theme="light"] .icon-sun  { opacity: 0;  transform: rotate(90deg) scale(0.5); }
[data-theme="light"] .icon-moon { opacity: 1;  transform: rotate(0deg) scale(1); }

/* ── Background Canvas Orbs ── */
.bg-canvas { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px);
  animation: drift 18s ease-in-out infinite alternate;
  transition: background 0.5s ease;
}
.orb1 { width:55vw; height:55vw; background:radial-gradient(circle,var(--orb1),transparent 70%); top:-20%; left:-15%; animation-duration:20s; }
.orb2 { width:45vw; height:45vw; background:radial-gradient(circle,var(--orb2),transparent 70%); bottom:-15%; right:-10%; animation-duration:14s; animation-delay:-7s; }
.orb3 { width:30vw; height:30vw; background:radial-gradient(circle,var(--orb3),transparent 70%); top:50%; left:50%; animation-duration:10s; animation-delay:-3s; }

@keyframes drift { 
  from { transform: translate(0,0) scale(1); } 
  to { transform: translate(5%,8%) scale(1.1); } 
}

.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--particle);
  animation: floatup linear infinite;
}

@keyframes floatup {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ── Main Card Container ── */
.container {
  position: relative; z-index: 1;
  width: 90%; max-width: 420px;
  margin-top: 2vh;
  margin-bottom: 50px;
  animation: rise 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card {
  background: var(--card);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  padding: 48px 32px 36px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* ── Logo ── */
.logo-wrap { position: relative; width: 100px; height: 100px; margin: 0 auto 22px; }
.logo-ring {
  position: absolute; inset: -6px;
  border-radius: 30px;
  background: conic-gradient(from 0deg,#4F6BFF,#7A5CFF,#4F6BFF);
  animation: spin 4s linear infinite;
  opacity: 0.65;
}
.logo-ring::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 26px;
  background: var(--ring-mask);
  transition: background 0.4s ease;
}

@keyframes spin { to { transform: rotate(360deg); } }

.logo-inner {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-inner img {
  width: 68%; border-radius: 14px;
  animation: pulse-img 3s ease-in-out infinite;
}

@keyframes pulse-img { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

/* ── Text ── */
h1 {
  font-size: 28px; font-weight: 900; letter-spacing: -0.5px;
  background: var(--h1-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  animation: fade-in 0.6s 0.4s both;
  transition: background 0.4s ease;
}
.tagline {
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  margin-bottom: 32px;
  animation: fade-in 0.6s 0.55s both;
  transition: color 0.3s;
}

@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Stats ── */
.stats {
  display: flex; justify-content: center; gap: 10px;
  margin-bottom: 28px;
  animation: fade-in 0.6s 0.65s both;
}
.stat {
  background: var(--stat-bg); border: 1px solid var(--stat-bd);
  border-radius: 10px; padding: 6px 14px;
  font-size: 11.5px; color: var(--stat-col); font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

/* ── Buttons & Hover Actions ── */
.btn-group { display: flex; flex-direction: column; gap: 10px; animation: fade-in 0.6s 0.75s both; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 20px; border-radius: 16px;
  text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.1px;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.22s ease, background 0.2s ease,
              border-color 0.3s, color 0.3s;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--x,50%) var(--y,50%),rgba(255,255,255,0.18) 0%,transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.btn:active::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg,#4F6BFF,#7A5CFF);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79,107,255,0.35);
}
.btn-primary:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 14px 34px rgba(79,107,255,0.55); }
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-playstore {
  background: var(--ps-bg); color: var(--text);
  border: 1px solid var(--ps-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
.btn-playstore:hover { transform: translateY(-3px) scale(1.01); border-color: rgba(79,107,255,0.6); box-shadow: 0 12px 28px rgba(79,107,255,0.25); }

.btn-tg {
  background: transparent;
  border: 1.5px solid var(--tg-border);
  color: var(--tg-color);
}
.btn-tg:hover { border-color: #7A5CFF; color: var(--text); background: rgba(122,92,255,0.08); transform: translateY(-2px); }

.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── UI Section Dividers ── */
.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 4px 0; color: var(--dim);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  transition: color 0.3s;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--dim); opacity: 0.5; transition: background 0.3s; }

/* ── Footer Elements ── */
.footer {
  margin-top: 28px; font-size: 10.5px;
  color: var(--dim); letter-spacing: 2.5px; font-weight: 600;
  animation: fade-in 0.6s 0.9s both;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: color 0.3s;
}
.version-dot {
  width: 5px; height: 5px; background: #4F6BFF;
  border-radius: 50%; animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ── Pop Toast Alerts ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--toast-bg); border: 1px solid var(--toast-bd);
  color: var(--text); font-size: 13px; font-weight: 600;
  padding: 12px 22px; border-radius: 50px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s, color 0.3s;
  z-index: 999; white-space: nowrap; backdrop-filter: blur(12px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Download Progress Bar ── */
.progress-wrap { display: none; height: 3px; background: rgba(79,107,255,0.15); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress-wrap.active { display: block; }
.progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg,#4F6BFF,#7A5CFF); border-radius: 99px; animation: progress-anim 2.5s ease forwards; }

@keyframes progress-anim { 0% { width: 0%; } 60% { width: 75%; } 100% { width: 100%; } }

[data-theme="light"] .btn-playstore { color: #1a2060; }

/* ── App Preview Screenshot Section ── */
.screenshot-section {
  position: relative;
  z-index: 1;
  width: 95%;
  max-width: 900px;
  margin: 20px auto 40px;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.screenshot-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.screenshot-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.screenshot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px;
  flex: 1;
  min-width: 240px;
  max-width: 270px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s;
}
.screenshot-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--stat-col);
}
.img-container {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: rgba(0,0,0,0.2);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}
.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.screenshot-card:hover .img-container img {
  transform: scale(1.05);
}
.step-badge {
  display: inline-block;
  background: var(--stat-bg);
  border: 1px solid var(--stat-bd);
  color: var(--stat-col);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.step-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.step-subdesc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.scroll-hint {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}