/* MyLoyalHub — design tokens */
:root {
  --mlh-primary: #7c3aed;
  --mlh-primary-dark: #6d28d9;
  --mlh-secondary: #a78bfa;
  --mlh-bg: #f5f3ff;
  --mlh-accent: #f472b6;
  --mlh-white: #ffffff;
  --mlh-text: #1e1b4b;
  --mlh-muted: #64748b;
  --mlh-radius: 1rem;
  --mlh-radius-lg: 1.5rem;
  --mlh-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
  --mlh-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --mlh-font: "DM Sans", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--mlh-font);
  color: var(--mlh-text);
  background-color: var(--mlh-bg);
  -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
  background: rgba(245, 243, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
  box-shadow: var(--mlh-shadow-soft);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, var(--mlh-primary), var(--mlh-secondary));
  color: var(--mlh-white);
  font-size: 1rem;
}

.brand-mark-sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.85rem;
}

.navbar .nav-link {
  color: var(--mlh-text);
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.navbar .nav-link:hover {
  color: var(--mlh-primary);
  background: rgba(124, 58, 237, 0.06);
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: var(--mlh-primary);
  --bs-btn-border-color: var(--mlh-primary);
  --bs-btn-hover-bg: var(--mlh-primary-dark);
  --bs-btn-hover-border-color: var(--mlh-primary-dark);
  --bs-btn-active-bg: var(--mlh-primary-dark);
  --bs-btn-active-border-color: var(--mlh-primary-dark);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--mlh-primary);
  --bs-btn-border-color: rgba(124, 58, 237, 0.35);
  --bs-btn-hover-bg: rgba(124, 58, 237, 0.08);
  --bs-btn-hover-border-color: var(--mlh-primary);
  --bs-btn-hover-color: var(--mlh-primary-dark);
  font-weight: 600;
}

.btn-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-lift:active {
  transform: translateY(0);
}

/* Hero */
.py-lg-6 {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }
}

.hero-section {
  padding-bottom: 2rem;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.45;
  pointer-events: none;
}

.hero-blob-1 {
  width: 280px;
  height: 280px;
  background: var(--mlh-secondary);
  top: -80px;
  right: -60px;
}

.hero-blob-2 {
  width: 220px;
  height: 220px;
  background: var(--mlh-accent);
  bottom: 10%;
  left: -80px;
}

.badge-soft {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mlh-primary-dark);
  background: rgba(167, 139, 250, 0.25);
  border-radius: 999px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--mlh-primary-dark), var(--mlh-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shadow-soft {
  box-shadow: var(--mlh-shadow-soft) !important;
}

.shadow-strong {
  box-shadow: var(--mlh-shadow);
}

/* Phone mock */
.phone-mockup {
  max-width: 280px;
}

.phone-frame {
  background: linear-gradient(160deg, #faf5ff 0%, #ede9fe 100%);
  border-radius: 2rem;
  padding: 0.75rem;
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.phone-notch {
  width: 96px;
  height: 22px;
  background: #1e1b4b;
  border-radius: 0 0 1rem 1rem;
  margin: 0 auto 0.5rem;
  opacity: 0.9;
}

.phone-screen {
  background: var(--mlh-white);
  border-radius: 1.25rem;
  padding: 1.25rem;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stamp-row {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.stamp-row-lg {
  gap: 0.65rem;
}

.stamp-box {
  flex: 1;
  aspect-ratio: 1;
  max-height: 52px;
  border-radius: 0.65rem;
  background: #f1f5f9;
  border: 2px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #94a3b8;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.stamp-box.filled {
  background: linear-gradient(145deg, #ede9fe, #fae8ff);
  border: 2px solid var(--mlh-secondary);
  color: var(--mlh-primary);
}

.stamp-box.highlight {
  background: linear-gradient(145deg, #fdf2f8, #fce7f3);
  border: 2px solid var(--mlh-accent);
  color: #db2777;
  animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.35);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(244, 114, 182, 0);
  }
}

.phone-screen .progress-bar {
  background: linear-gradient(90deg, var(--mlh-primary), var(--mlh-secondary));
}

.tiny {
  font-size: 0.7rem;
}

/* Sections */
.section-tint {
  background: linear-gradient(180deg, rgba(237, 233, 254, 0.5) 0%, transparent 100%);
}

/* How it works */
.step-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mlh-shadow) !important;
}

.step-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--mlh-primary);
  background: rgba(124, 58, 237, 0.1);
}

.step-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mlh-secondary);
}

/* Features */
.feature-card {
  background: var(--mlh-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--mlh-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mlh-shadow);
  border-color: rgba(167, 139, 250, 0.45);
}

.feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--mlh-white);
  background: linear-gradient(135deg, var(--mlh-primary), var(--mlh-secondary));
}

/* Benefits */
.benefit-panel {
  background: var(--mlh-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--mlh-shadow-soft);
}

.benefit-panel-alt {
  background: linear-gradient(145deg, #faf5ff, #ffffff);
  border-color: rgba(167, 139, 250, 0.25);
}

.benefit-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mlh-primary-dark);
  background: rgba(124, 58, 237, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.benefit-tag-alt {
  color: #9d174d;
  background: rgba(244, 114, 182, 0.15);
}

.benefit-list {
  font-weight: 500;
}

.benefit-check {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  color: var(--mlh-primary);
}

.benefit-check-alt {
  background: rgba(244, 114, 182, 0.18);
  color: #be185d;
}

/* Demo */
.demo-panel {
  background: var(--mlh-white);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.demo-inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.reward-card {
  background: linear-gradient(160deg, #fdf4ff 0%, #ffffff 55%);
  border: 1px solid rgba(244, 114, 182, 0.35);
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reward-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mlh-accent), #fb7185);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.btn-accent {
  --bs-btn-bg: var(--mlh-accent);
  --bs-btn-border-color: var(--mlh-accent);
  --bs-btn-hover-bg: #ec4899;
  --bs-btn-hover-border-color: #ec4899;
  color: white;
  font-weight: 600;
}

/* Pricing CTA */
.section-cta {
  background: linear-gradient(135deg, var(--mlh-primary) 0%, #5b21b6 50%, #4c1d95 100%);
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(244, 114, 182, 0.35), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.4), transparent 40%);
  pointer-events: none;
}

/* Footer */
.footer {
  background: #faf5ff;
  border-top: 1px solid rgba(167, 139, 250, 0.2);
}

.footer-link {
  color: var(--mlh-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--mlh-primary);
}

/* Fade-in hero (no-JS fallback + enhancement) */
[data-aos] {
  pointer-events: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-lift:hover,
  .step-card:hover,
  .feature-card:hover {
    transform: none;
  }

  .stamp-box.highlight {
    animation: none;
  }
}
