/* ═══════════════════════════════════════════
   WelloPass — Design System & Styles
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────── */
:root {
  /* Background Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1729;
  --bg-tertiary: #141d33;
  --bg-card: rgba(20, 29, 51, 0.6);
  --bg-card-hover: rgba(26, 37, 65, 0.8);
  --bg-glass: rgba(15, 23, 41, 0.65);

  /* Brand Gradient — Purple ↔ Teal (matches logo) */
  --purple-light: #c9a0dc;
  --purple: #9b6fb0;
  --purple-deep: #6e4a8e;
  --teal-light: #7edcba;
  --teal: #3fb89c;
  --teal-deep: #2a8c74;
  --mint: #a8f0d8;

  /* Accent Gradient */
  --gradient-brand: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  --gradient-brand-45: linear-gradient(45deg, var(--purple-deep) 0%, var(--teal) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(155, 111, 176, 0.4) 0%, rgba(63, 184, 156, 0.4) 100%);
  --gradient-text: linear-gradient(135deg, var(--purple-light) 0%, var(--teal-light) 50%, var(--mint) 100%);

  /* Text */
  --text-primary: #f0f2f8;
  --text-secondary: #94a3c4;
  --text-muted: #5a6a8a;

  /* Borders */
  --border-subtle: rgba(148, 163, 196, 0.1);
  --border-active: rgba(155, 111, 176, 0.35);

  /* Spacing */
  --section-pad: clamp(4rem, 10vh, 8rem);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glow-sm: 0 0 20px rgba(155, 111, 176, 0.15), 0 0 40px rgba(63, 184, 156, 0.1);
  --shadow-glow-md: 0 0 40px rgba(155, 111, 176, 0.2), 0 0 80px rgba(63, 184, 156, 0.15);
  --shadow-glow-lg: 0 4px 60px rgba(155, 111, 176, 0.3), 0 0 120px rgba(63, 184, 156, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-subtle);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.3s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

::selection {
  background: rgba(155, 111, 176, 0.35);
  color: #fff;
}


/* ── Layout ────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ── Particles Canvas ──────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}


/* ── Section Header ────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(155, 111, 176, 0.1);
  border: 1px solid rgba(155, 111, 176, 0.2);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-header__desc {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}


/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 20px rgba(0,0,0,0.3);
  padding: 0.65rem 0;
}

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

.navbar__logo-img {
  height: 42px;
  width: auto;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-base);
}

.navbar__logo:hover .navbar__logo-img {
  transform: scale(1.05);
}

.navbar__cta {
  font-size: 0.85rem;
}


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  background: var(--gradient-brand);
}

.btn--sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--glow {
  box-shadow: var(--shadow-glow-sm);
}

.btn--glow:hover {
  box-shadow: var(--shadow-glow-md);
}


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: glow-drift 12s ease-in-out infinite alternate;
}

.hero__glow--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(155, 111, 176, 0.2) 0%, transparent 70%);
  top: -15%;
  left: -10%;
}

.hero__glow--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(63, 184, 156, 0.15) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: -6s;
}

@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.15); }
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(155, 111, 176, 0.08);
  border: 1px solid rgba(155, 111, 176, 0.25);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--teal); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--teal), 0 0 32px var(--teal); }
}

/* Title */
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__title--gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle */
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

/* CTA */
.hero__cta {
  margin-bottom: 3.5rem;
}

/* Stats */
.hero__stats {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero__stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float-scroll 2.5s ease-in-out infinite;
}

.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  opacity: 0.5;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--text-muted);
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes float-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}


/* ═══════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════ */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.step {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-sm);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.step__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.step__icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-glow);
  filter: blur(16px);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.step:hover .step__icon-bg { opacity: 1; }

.step__icon {
  position: relative;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand-45);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
  transition: transform var(--transition-base);
}

.step:hover .step__icon {
  transform: scale(1.08) rotate(-3deg);
}

.step__number {
  position: absolute;
  top: -4px;
  right: -4px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--purple-light);
  background: var(--bg-secondary);
  border: 1px solid rgba(155, 111, 176, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ── Category Pills ────────────────────── */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: rgba(155, 111, 176, 0.06);
  border: 1px solid rgba(155, 111, 176, 0.15);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: default;
}

.category-pill:hover {
  background: rgba(155, 111, 176, 0.12);
  border-color: rgba(155, 111, 176, 0.3);
  color: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(155, 111, 176, 0.12);
}

.category-pill svg {
  opacity: 0.6;
  transition: opacity var(--transition-base);
}

.category-pill:hover svg { opacity: 1; }


/* ═══════════════════════════════════════════
   WAITLIST
   ═══════════════════════════════════════════ */
.waitlist {
  position: relative;
  z-index: 1;
  padding: var(--section-pad) 0;
  background: var(--bg-secondary);
}

.waitlist__glow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(155, 111, 176, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.waitlist__card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.waitlist__card-inner {
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

/* Form */
.waitlist__form {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist__input-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.waitlist__input-wrap {
  flex: 1;
  position: relative;
}

.waitlist__input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-base);
}

.waitlist__input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: rgba(10, 14, 26, 0.6);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.waitlist__input::placeholder {
  color: var(--text-muted);
}

.waitlist__input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(155, 111, 176, 0.15);
  background: rgba(10, 14, 26, 0.8);
}

.waitlist__input:focus ~ .waitlist__input-icon,
.waitlist__input:focus + .waitlist__input-icon {
  color: var(--purple-light);
}

.waitlist__input.error {
  border-color: #e74c6f;
  box-shadow: 0 0 0 3px rgba(231, 76, 111, 0.15);
}

.waitlist__btn {
  white-space: nowrap;
  min-width: 170px;
}

.waitlist__btn-loader {
  display: none;
  animation: spin 1s linear infinite;
}

.waitlist__btn.loading .waitlist__btn-text { display: none; }
.waitlist__btn.loading .waitlist__btn-loader { display: inline-flex; }

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

.waitlist__error {
  color: #e74c6f;
  font-size: 0.8rem;
  min-height: 1.2rem;
  margin-bottom: 0.5rem;
  transition: opacity var(--transition-base);
}

.waitlist__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.waitlist__hint svg {
  opacity: 0.5;
}

/* Success State */
.waitlist__success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}

.waitlist__success.show {
  display: block;
  animation: fade-in-up 0.6s var(--ease-out-expo);
}

.waitlist__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow-md);
  animation: success-pop 0.5s var(--ease-spring);
}

@keyframes success-pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.waitlist__success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.waitlist__success-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  height: 36px;
  width: auto;
  border-radius: 6px;
  opacity: 0.8;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.footer__bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__dev {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__dev-link {
  color: var(--purple-light);
  font-weight: 600;
  transition: color var(--transition-base);
}

.footer__dev-link:hover {
  color: var(--teal-light);
}


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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step:nth-child(2) { transition-delay: 0.12s; }
.steps .step:nth-child(3) { transition-delay: 0.24s; }


/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3rem;
  }

  .hero__stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 2rem;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .step {
    padding: 2rem 1.25rem;
  }

  .waitlist__card-inner {
    padding: 2rem 1.5rem;
  }

  .waitlist__input-group {
    flex-direction: column;
  }

  .waitlist__btn {
    width: 100%;
    min-width: unset;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .footer__brand {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .steps {
    gap: 1.25rem;
  }

  .step {
    padding: 2rem 1.25rem;
  }
}
