/* ═══════════════════════════════════════════
   Design tokens — mirrored from AppColors
   ═══════════════════════════════════════════ */
:root {
  /* Primary purple — matches AppColors.primary #8827D7 */
  --primary: #8827D7;
  --primary-dark: #6B1FA8;          /* gradient end / hover */
  --primary-glow: rgba(136, 39, 215, 0.28);

  /* Ambient glow uses a lighter tint of the primary */
  --primary-ambient: rgba(136, 39, 215, 0.14);
  --primary-soft-bg: rgba(136, 39, 215, 0.10);
  --primary-tint-bg: rgba(136, 39, 215, 0.06);
  --primary-edge: rgba(136, 39, 215, 0.25);

  /* Backgrounds — matches AppColors.lightBackground #F4F1FA */
  --bg: #F4F1FA;
  --surface: #EFEAF6;              /* AppColors.lightSurfaceVariant */
  --surface-elevated: #FFFFFF;     /* AppColors.lightSurface */
  --border: rgba(24, 19, 28, 0.05);
  --border-strong: rgba(24, 19, 28, 0.08);
  --divider: #EDE8F0;              /* AppColors.lightDivider */

  /* Text — matches AppColors.light* */
  --title: #18131C;                /* AppColors.lightTitle */
  --subtitle: #6D6672;             /* AppColors.lightSubtitle */
  --icon: #5B5670;                 /* AppColors.lightIcon */

  /* Glass — tinted purple to match the theme */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur: 40px;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(24, 19, 28, 0.04);
  --shadow: 0 6px 24px rgba(24, 19, 28, 0.06);
  --shadow-lg: 0 16px 48px rgba(24, 19, 28, 0.10);
  --shadow-primary: 0 10px 24px rgba(136, 39, 215, 0.28);

  --nav-offset: 110px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* AppColors.darkBackground #0F0B12 — deep purple-black */
    --bg: #0F0B12;
    --surface: #211A26;              /* AppColors.darkSurfaceVariant */
    --surface-elevated: #17121B;     /* AppColors.darkSurface */
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.10);
    --divider: #2A222F;              /* AppColors.darkDivider */

    /* Text — matches AppColors.dark* */
    --title: #F7F2FA;                /* AppColors.darkTitle */
    --subtitle: #B8AFBD;             /* AppColors.darkIcon / darkSubtitle */
    --icon: #817786;                 /* AppColors.darkTertiary */

    /* Brighter purple for dark mode — AppColors.darkPrimary #9C4DE3 */
    --primary: #9C4DE3;
    --primary-dark: #7A33B8;
    --primary-glow: rgba(156, 77, 227, 0.35);
    --primary-ambient: rgba(156, 77, 227, 0.18);
    --primary-soft-bg: rgba(156, 77, 227, 0.14);
    --primary-tint-bg: rgba(156, 77, 227, 0.08);
    --primary-edge: rgba(156, 77, 227, 0.30);

    --glass-bg: rgba(33, 26, 38, 0.55);
    --glass-border: rgba(255, 255, 255, 0.10);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--title);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Purple ambient glow in the background */
body::before {
  content: '';
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
      circle,
      var(--primary-ambient),
      transparent 60%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   Navigation — Liquid Glass bar
   ═══════════════════════════════════════════ */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  pointer-events: none;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.logo img {
  width: 150px;
  height: auto;
  display: block;
}

footer .logo img {
  width: 250px;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .logo img {
    width: 125px;
    height: auto;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 9px 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--subtitle);
  border-radius: var(--radius-pill);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--title);
}

.nav-cta {
  padding: 11px 21px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
      180deg,
      var(--primary) 0%,
      var(--primary-dark) 100%
  );
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px var(--primary-glow);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav {
    padding: 9px 9px 9px 16px;
  }

  .nav-cta {
    padding: 10px 17px;
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */
header.hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--subtitle);
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--primary-soft-bg);
}

.hero-badge-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.hero-badge-heart {
  flex: none;
  display: block;
  width: 20px;
  height: 20px;
  fill: #8827D7;
  flex-shrink: 0;
  margin-inline: -4px;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.2px;
  color: var(--title);
  margin-bottom: 24px;
}

h1 .accent {
  background: linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 40px;
  padding: 0;
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 400;
  color: var(--subtitle);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(
      180deg,
      var(--primary) 0%,
      var(--primary-dark) 100%
  );
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--primary-glow);
}

.btn-secondary {
  color: var(--title);
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hero-note {
  font-size: 14px;
  color: var(--icon);
  margin-top: 8px;
}

@media (max-width: 720px) {
  header.hero {
    padding: 140px 20px 82px;
  }

  .hero-sub {
    padding: 0 16px;
    font-size: 17.5px;
    line-height: 1.62;
  }

  h1 {
    letter-spacing: -1.7px;
  }

  .hero-actions {
    padding: 0 8px;
  }
}

@media (max-width: 400px) {
  header.hero {
    padding: 128px 18px 72px;
  }
}

/* ═══════════════════════════════════════════
   Section header
   ═══════════════════════════════════════════ */
section {
  padding: 80px 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(29px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.1px;
  line-height: 1.15;
  color: var(--title);
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 60px;
}

.section-head p {
  font-size: 17.5px;
  color: var(--subtitle);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   Features grid
   ═══════════════════════════════════════════ */
.features {
  display: grid;
  grid-template-columns: repeat(
      auto-fit,
      minmax(260px, 1fr)
  );
  gap: 16px;
}

.feature {
  padding: 29px 25px;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(
      90deg,
      transparent,
      var(--primary-edge),
      transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(
      135deg,
      var(--primary-soft-bg),
      var(--primary-tint-bg)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  fill: var(--primary);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 9px;
  letter-spacing: -0.2px;
}

.feature p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--subtitle);
}

/* ═══════════════════════════════════════════
   Values / how it works
   ═══════════════════════════════════════════ */
.values {
  display: grid;
  grid-template-columns: repeat(
      auto-fit,
      minmax(280px, 1fr)
  );
  gap: 20px;
  margin-top: 40px;
}

.value {
  padding: 33px 29px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.value-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.value h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--title);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.value p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--subtitle);
}

/* ═══════════════════════════════════════════
   Download CTA
   ═══════════════════════════════════════════ */
.download-section {
  padding: 60px 0 100px;
}

.download-card {
  position: relative;
  padding: 64px 40px;
  border-radius: 28px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(
      135deg,
      var(--primary) 0%,
      var(--primary-dark) 100%
  );
  box-shadow: 0 24px 60px var(--primary-glow);
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(255, 255, 255, 0.18),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 100%,
      rgba(255, 255, 255, 0.10),
      transparent 50%
    );
  pointer-events: none;
}

.download-card > * {
  position: relative;
  z-index: 1;
}

.download-card h2 {
  color: #fff;
  margin-bottom: 14px;
}

.download-card p {
  font-size: 17.5px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.store-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 200px;
    min-height: 64px;
    box-sizing: border-box;
    padding: 12px 22px;
    border-radius: 14px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.20);
}

.store-btn svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    fill: #000;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.store-btn-text small {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.65;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn-text strong {
    font-size: 15px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand p {
  font-size: 15.5px;
  color: var(--subtitle);
  line-height: 1.62;
  margin-top: 14px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--title);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  font-size: 15.5px;
  color: var(--subtitle);
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--icon);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-soft-bg);
}

.social-btn svg {
  width: 25px;
  height: 25px;
  fill: var(--subtitle);
}

.social-btn:hover svg {
  fill: var(--primary);
}

@media (max-width: 720px) {
  .container {
    padding: 0 20px;
  }

  section {
    padding: 70px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .section-head p {
    font-size: 17px;
  }

  .feature {
    padding: 27px 23px;
  }

  .feature p,
  .value p {
    font-size: 16px;
  }

  .download-section {
    padding: 50px 0 80px;
  }

  .download-card {
    padding: 52px 24px;
    border-radius: 24px;
  }

  .download-card p {
    font-size: 17px;
  }

  .footer-brand p,
  .footer-col a {
    font-size: 15.5px;
  }
}