/* =========================================================
   LERO LOYALTY — Premium dark SaaS landing
   ========================================================= */

:root {
  /* Core palette */
  --bg: #0a0a0f;
  --bg-elev: #0f0f17;
  --bg-elev-2: #141421;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  /* Brand */
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --grad-primary-hover: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  --grad-text: linear-gradient(135deg, #a78bfa 0%, #c084fc 50%, #a78bfa 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 12px 40px rgba(139, 92, 246, 0.25);

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Space */
  --space-section: clamp(4rem, 8vw, 7rem);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn-sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.95rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 24px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 32px rgba(124, 58, 237, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-white {
  background: #ffffff;
  color: #0f0f17;
}
.btn-white:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

/* =========================================================
   HEADER
   ========================================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}
#header.scrolled {
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-mark { flex-shrink: 0; }
.logo-text-accent { color: var(--violet-400); }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9375rem;
}
.nav a {
  color: var(--text-muted);
  transition: color 0.2s;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  gap: 1rem;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-muted); font-weight: 500; padding: 0.5rem 0; }
.mobile-nav .btn { margin-top: 0.5rem; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 9rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
}
.glow-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, transparent 70%);
}
.glow-2 {
  width: 500px; height: 500px;
  top: 100px; right: -150px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.35) 0%, transparent 70%);
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 30%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-copy { max-width: 560px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
  font-weight: 800;
}
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-dim);
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.hero-meta-item svg { color: var(--emerald-500); }

/* HERO VISUAL — PHONE */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1c1c2a 0%, #0a0a0f 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.05),
    0 60px 100px -20px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(124, 58, 237, 0.15);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}
.phone-frame:hover { transform: rotate(-1deg) translateY(-6px); }

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a28 0%, #0a0a0f 100%);
  border-radius: 34px;
  padding: 2.75rem 1rem 1rem;
  position: relative;
  overflow: hidden;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
}
.status-icons { display: inline-flex; gap: 4px; align-items: center; }

.wallet-card {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 55%, #4c1d95 100%);
  border-radius: 18px;
  padding: 1rem;
  color: #fff;
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.wallet-card::before {
  content: "";
  position: absolute;
  top: -50%; right: -30%;
  width: 80%; height: 150%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.wallet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.wc-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-bottom: 2px;
}
.wc-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.wallet-card-stamps {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.625rem;
  margin-bottom: 0.75rem;
}
.stamps-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
.stamps-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}
.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.stamp.filled {
  background: rgba(255, 255, 255, 0.95);
  color: var(--violet-700);
  border: 0;
}
.stamp.reward {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: 0;
  font-size: 0.6rem;
}

.wallet-card-bottom {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.wc-mini-label {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 2px;
}
.wc-mini-val {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
}

.wallet-qr {
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem;
  display: flex;
  justify-content: center;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  width: 70px;
  height: 70px;
}
.qr-grid span {
  background: transparent;
}
.qr-grid span:nth-child(3n),
.qr-grid span:nth-child(5n),
.qr-grid span:nth-child(7n+1),
.qr-grid span:nth-child(11n) {
  background: #0a0a0f;
}

.wallet-hint {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Floating chips */
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  background: rgba(20, 20, 33, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}
.chip-1 {
  top: 15%;
  right: 2%;
  animation-delay: 0s;
}
.chip-2 {
  bottom: 18%;
  left: 0;
  animation-delay: -2s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =========================================================
   SOCIAL PROOF
   ========================================================= */
.social-proof {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sp-title {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.sp-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}
.sp-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.sp-logo:hover { opacity: 1; }
.sp-logo svg { color: var(--violet-400); flex-shrink: 0; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 4rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-400);
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 999px;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========================================================
   HOW IT WORKS (steps)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
}
.step:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}
.step-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--violet-400);
  margin-bottom: 1rem;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--violet-400);
  margin-bottom: 1.25rem;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}
.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.step-connector {
  align-self: center;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 50%, transparent);
  position: relative;
}
.step-connector::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--text-muted);
  border-top: 1px solid var(--text-muted);
  transform: translateY(-50%) rotate(45deg);
}

/* =========================================================
   FEATURES GRID
   ========================================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}
.feature:hover::before { opacity: 1; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: var(--violet-400);
  margin-bottom: 1rem;
}
.feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plan {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}
.plan:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.plan-featured {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.02) 100%);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: var(--shadow-glow);
}
.plan-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.5), 0 18px 50px rgba(139, 92, 246, 0.3);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.4);
}

.plan-head { margin-bottom: 1.25rem; }
.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.plan-desc {
  color: var(--text-dim);
  font-size: 0.875rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.plan-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.plan-currency {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}
.plan-period {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin-left: 2px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.plan-features .check {
  color: var(--emerald-400);
  font-weight: 700;
  flex-shrink: 0;
}

/* Order: button after price, features last — we placed button before features in HTML */
.plan .btn { margin-bottom: 0; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0;
  position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.quote-mark {
  color: rgba(139, 92, 246, 0.35);
  margin-bottom: 1rem;
}
.testimonial blockquote {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}
.author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}
.author-role {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  padding: 4rem 0 6rem;
}

.final-cta-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 7vw, 5rem) 2rem;
  background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 50%, #4c1d95 100%);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(124, 58, 237, 0.5);
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 150%; height: 400%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  filter: blur(40px);
}
.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 100%);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.footer-brand { max-width: 360px; }
.footer-tag {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.75rem;
  line-height: 1.5;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-base {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.powered span {
  color: var(--violet-400);
  font-weight: 600;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-copy { margin: 0 auto; }
  .badge { margin-left: auto; margin-right: auto; display: inline-flex; }
  .hero-ctas { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { min-height: 500px; }

  .steps {
    grid-template-columns: 1fr;
  }
  .step-connector { display: none; }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero { padding: 7rem 0 4rem; }
  .hero-title { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }

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

  .sp-logos { gap: 1.5rem 2rem; }
  .sp-logo { font-size: 0.9375rem; }

  .section-head { margin-bottom: 3rem; }

  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .phone-frame { width: 240px; height: 480px; }
  .hero-visual { min-height: 440px; }
  .chip-1, .chip-2 { font-size: 0.75rem; padding: 0.5rem 0.75rem; }
}
