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

:root {
  --purple: #A357D7;
  --blue: #4D4DFF;
  --green: #1AD3AF;
  --yellow: #FFC200;
  --pink: #FF3372;
  --bg: #06060f;
  --surface: rgba(255, 255, 255, 0.04);
  --text-secondary: #8a8aa0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Animated gradient orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.orb--purple {
  width: 600px;
  height: 600px;
  background: var(--purple);
  opacity: 0.12;
  top: -15%;
  left: -10%;
  animation: orb-drift 20s ease-in-out infinite alternate;
}

.orb--blue {
  width: 500px;
  height: 500px;
  background: var(--blue);
  opacity: 0.1;
  bottom: -10%;
  right: -10%;
  animation: orb-drift 25s ease-in-out infinite alternate-reverse;
}

.orb--green {
  width: 300px;
  height: 300px;
  background: var(--green);
  opacity: 0.06;
  top: 50%;
  left: 60%;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

@keyframes orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ── Floating letter tiles ── */
.floating-letters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-letters span {
  position: absolute;
  font-weight: 700;
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: letter-float linear infinite;
}

@keyframes letter-float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(20deg); opacity: 0; }
}

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Main layout ── */
main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1.5rem;
}

/* ── Hero section ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4rem 0 3rem;
  max-width: 520px;
  animation: fade-up 0.8s ease-out both;
}

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

.logo {
  width: 220px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 40px rgba(163, 87, 215, 0.3));
  animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { filter: drop-shadow(0 0 30px rgba(163, 87, 215, 0.25)); }
  to { filter: drop-shadow(0 0 50px rgba(77, 77, 255, 0.35)); }
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #c882ef 0%, #7b7bff 50%, #3eeacc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 2.5rem;
}

/* ── Store buttons ── */
.store-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 200px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

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

.store-btn--appstore {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  box-shadow: 0 4px 24px rgba(163, 87, 215, 0.25);
}

.store-btn--appstore::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.store-btn--appstore:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(163, 87, 215, 0.4);
}

.store-btn--appstore:hover::before {
  transform: translateX(100%);
}

.store-btn--playstore {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: default;
  font-size: 0.85rem;
  font-weight: 500;
}

.store-btn--playstore:hover {
  transform: none;
  box-shadow: none;
}

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 680px;
  width: 100%;
  padding: 2rem 0 3rem;
  animation: fade-up 0.8s ease-out 0.3s both;
}

.step {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
}

.step-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  font-weight: 700;
}

.step:nth-child(1) .step-icon {
  background: linear-gradient(135deg, rgba(163, 87, 215, 0.2), rgba(163, 87, 215, 0.05));
  color: var(--purple);
  border: 1px solid rgba(163, 87, 215, 0.15);
}

.step:nth-child(2) .step-icon {
  background: linear-gradient(135deg, rgba(255, 194, 0, 0.2), rgba(255, 194, 0, 0.05));
  color: var(--yellow);
  border: 1px solid rgba(255, 194, 0, 0.15);
}

.step:nth-child(3) .step-icon {
  background: linear-gradient(135deg, rgba(26, 211, 175, 0.2), rgba(26, 211, 175, 0.05));
  color: var(--green);
  border: 1px solid rgba(26, 211, 175, 0.15);
}

.step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  border: none;
  border-radius: 2px;
  margin: 1rem 0;
  opacity: 0.5;
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  color: #333;
  font-size: 0.75rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }
}
