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

:root {
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --purple-dark: #5B21B6;
  --purple-glow: rgba(124, 58, 237, 0.3);
  --bg: #0A0A0B;
  --bg-card: #141416;
  --bg-card-hover: #1A1A1E;
  --border: #27272A;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: white;
}

.logo-text {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.nav-cta {
  padding: 10px 20px;
  background: var(--purple);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--purple-dark);
  transform: translateY(-1px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 0 20px var(--purple-glow);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--purple-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), #E879F9, var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

/* Phone Mockup */
.mockup-section {
  padding: 0 0 100px;
}

.mockup-wrapper {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  background: #1C1C1E;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid #333;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 60px var(--purple-glow);
}

.phone-screen {
  background: #000;
  border-radius: 26px;
  padding: 20px 16px;
  min-height: 360px;
}

.screen-header {
  text-align: center;
  margin-bottom: 24px;
}

.screen-time {
  font-size: 14px;
  font-weight: 600;
  color: #999;
  margin-bottom: 8px;
}

.screen-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.loyalty-card {
  background: linear-gradient(145deg, var(--purple), var(--purple-dark));
  border-radius: 16px;
  padding: 24px 20px;
  text-align: left;
}

.card-brand {
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin-bottom: 4px;
}

.card-program {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-visits {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.visit {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}

.visit.filled {
  background: white;
  border-color: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.card-reward {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Steps */
.steps {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all 0.3s;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
}

.step-icon {
  color: var(--purple-light);
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Features */
.features {
  padding: 60px 0 100px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

.feature-highlight {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
}

.feature-icon {
  color: var(--purple-light);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Social proof */
.social-proof {
  padding: 60px 0 100px;
}

.proof-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.proof-quote {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text);
  font-style: italic;
}

.proof-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.proof-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
}

.proof-name {
  font-weight: 600;
  font-size: 15px;
}

.proof-role {
  font-size: 13px;
  color: var(--text-dim);
}

/* CTA Section */
.cta-section {
  padding: 60px 0 120px;
}

.cta-card {
  text-align: center;
  padding: 72px 40px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.02));
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  position: relative;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto 16px;
  position: relative;
  flex-wrap: wrap;
}

.cta-input {
  flex: 1;
  min-width: 200px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.cta-input:focus {
  border-color: var(--purple);
}

.cta-input::placeholder {
  color: var(--text-dim);
}

.cta-note {
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* Animations */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-proof {
    gap: 24px;
  }

  .hero-stat-divider {
    display: none;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .proof-card {
    padding: 32px 24px;
  }

  .proof-quote {
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
