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

/* ===== Light Theme (Default) ===== */
:root {
  --bg-deep: #e8eaf2;
  --bg-surface: rgba(0, 0, 0, 0.03);
  --bg-glass: #ffffff;
  --bg-glass-hover: #f8f9ff;
  --border-glass: rgba(0, 0, 0, 0.13);
  --text-primary: #0a0a1a;
  --text-secondary: rgba(10, 10, 26, 0.62);
  --text-tertiary: rgba(10, 10, 26, 0.4);
  --nav-bg: rgba(232, 234, 242, 0.9);
  --accent-gold: #0071e3;
  --accent-gold-light: #5ac8fa;
  --accent-purple: #7c3aed;
  --accent-purple-light: #a78bfa;
  --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #0071e3 55%, #5ac8fa 100%);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius-card: 24px;
  --radius-btn: 16px;
  --blur: 20px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode: no backdrop-filter on cards (blurs nothing useful on light bg) */
:root .glass-card,
:root .btn-store,
:root .trust-badge,
:root .qr-placeholder {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --bg-deep: #0a0a0f;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-glass-hover: rgba(255, 255, 255, 0.1);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.65);
  --text-tertiary: rgba(240, 240, 245, 0.4);
  --nav-bg: rgba(10, 10, 15, 0.75);
  --accent-gold: #f7931a;
  --accent-gold-light: #fbb03b;
  --hero-gradient: linear-gradient(135deg, #f0f0f5 0%, #fbb03b 50%, #f7931a 100%);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-gold-light);
}

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

/* ===== Particle Canvas ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.0) 60%);
  border-radius: inherit;
  pointer-events: none;
}

.nav-cta:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .nav-cta {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
}

[data-theme="dark"] .nav-cta:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

/* Sun icon: shown in dark mode */
.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(247, 147, 26, 0.2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.btn-store:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn-store svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-store .store-text {
  text-align: left;
  line-height: 1.2;
}

.btn-store .store-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.btn-store .store-text span {
  font-size: 1rem;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* ===== Features ===== */
.features {
  position: relative;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Trust / Social Proof ===== */
.trust {
  text-align: center;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

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

.stat-number {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-badge {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== Download Section ===== */
.download {
  text-align: center;
}

.download-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  margin: 40px auto;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-card);
}

.qr-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--text-primary);
  opacity: 0.7;
}

.qr-placeholder span {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border-glass);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.footer-info {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.8;
}

.footer-info a {
  color: var(--text-tertiary);
}

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

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 1;
}

/* ===== Floating Animation ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* ===== Legal Pages ===== */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-page p,
.legal-page ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page ul {
  padding-left: 24px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--accent-gold);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 72px;
  }

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

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 28px 24px;
  }

  .nav-cta {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}


/* Footer theme toggle */
.footer-theme {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.footer-theme .theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border, rgba(0,0,0,0.12));
  border-radius: 20px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  color: var(--text-secondary, #666);
  font-size: 0.85rem;
}
.footer-theme .theme-toggle:hover {
  border-color: var(--accent, #f7931a);
  color: var(--accent, #f7931a);
}
.footer-theme .theme-toggle svg {
  width: 16px;
  height: 16px;
}
