:root {
  --bg: #0e0f24;
  --bg-glow: #211f4d;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f4fa;
  --text-dim: #9a96be;
  --accent: #f5a93b;
  --accent-light: #ffd46b;
  --accent-dim: #c97f1e;
  --font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --bg: #f2f7ff;
  --bg-glow: #cee3f7;
  --card: rgba(0, 0, 0, 0.05);
  --line: rgba(0, 0, 0, 0.12);
  --text: #1c1430;
  --text-dim: #6c757d;
  --accent: #211f4d;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(55% 40% at 50% 0%, var(--bg-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 56px 24px 64px;
  margin: auto;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.6s ease forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.theme-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background: var(--line);
}

/* Logo */
.logo {
  margin-bottom: 24px;
}

.logo img {
  width: 200px;
  height: auto;
  max-width: 100%;
}

#appNameAccent {
  color: var(--accent);
}

.sub {
  font-size: 14px;
  color: var(--text-dim);
  min-height: 20px;
}

/* Download Android & ios image */

.badges {
  margin: 8px 0px 16px 0px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.badge-link {
  display: inline-flex;
  height: 56px;
  text-decoration: none;
}

.badge-link img {
  height: 100%;
  width: auto;
  max-width: 100%;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Phone Mockup */

.phone-mockup {
  margin: 8px auto 0px auto;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-start;
  max-width: 75%;
}

.phone-mockup a {
  flex: 1;
  min-width: 0;
}

.phone-mockup a img{
  width: 100%;
  height: auto;
  display: block;
}


.badge-link:hover img {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* Campaign image */
.campaign {
  margin: 16px auto;
  padding-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.campaign a {
  flex: 1;
  min-width: 0;
}

.campaign a img{
  width: 100%;
  height: auto;
  display: block;
}

/* Referral Badge */
.referral-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  margin: 8px 0 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.referral-badge strong {
  color: var(--accent);
  margin-left: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--accent);
  color: #000;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  box-shadow: 0 4px 12px rgba(245, 169, 59, 0.3);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Mobile Adjustments */
@media (max-width: 380px) {
  .badge-link {
    height: 48px;
  }
}

