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

:root {
  --purple: #7B47F1;
  --purple-dark: #5B30CC;
  --purple-light: #EDE9FE;
  --purple-mid: #9B72F8;
  --text: #111827;
  --text-muted: #6B7280;
  --surface: #F9FAFB;
  --border: #E5E7EB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ──────────────── NAV ──────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, border-color .3s;
}
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border-bottom-color: transparent;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn-outline {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-primary {
  padding: 10px 20px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }

/* ──────────────── HERO ──────────────── */
.hero {
  background: linear-gradient(160deg, #faf8ff 0%, #f0ebff 40%, #e8f4ff 100%);
  padding: 96px 24px 80px;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,71,241,.12) 0%, transparent 70%);
  top: -200px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
  animation: orb-drift 8s ease-in-out infinite;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-badge svg { width: 14px; height: 14px; animation: pulse-dot 1.8s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 900px;
  margin: 0 auto 24px;
}
.hero h1 .highlight-line {
  display: block;
  padding-right: 20px;
}
.hero h1 .highlight {
  padding: 0 5px;
  margin: 0 -5px;
  background: linear-gradient(135deg, var(--purple) 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: white;
  transition: border-color .2s, box-shadow .2s;
}
.hero-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(123,71,241,.1); }
.hero-form .btn-primary { padding: 14px 28px; font-size: 15px; border-radius: 12px; white-space: nowrap; }
.hero-disclaimer { font-size: 13px; color: var(--text-muted); }
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.hero-avatars { display: flex; }
.hero-avatars img {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -10px;
  object-fit: cover;
}
.hero-avatars img:first-child { margin-left: 0; }
.hero-social-text { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.hero-social-text strong { color: var(--text); }
.hero-img {
  max-width: 720px;
  margin: 64px auto 0;
  position: relative;
}
.hero-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,.14), 0 8px 32px rgba(123,71,241,.12);
}
.hero-img-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at 50% 80%, rgba(123,71,241,.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ──────────────── LOGOS BAR ──────────────── */
.logos-bar {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.logos-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
}
.logos-bar p {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.logos-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}
.logos-track {
  display: flex;
  gap: 56px;
  animation: marquee 18s linear infinite;
  will-change: transform;
  padding-right: 56px;
}
.logo-item {
  font-size: 18px;
  font-weight: 800;
  color: #CBD5E1;
  letter-spacing: -0.5px;
}

/* ──────────────── STATS ──────────────── */
.stats {
  padding: 80px 24px;
  background: var(--white);
}
.stats-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  background: white;
  padding: 48px 40px;
  text-align: center;
}
.stat-item.counted .stat-number {
  animation: stat-pop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.stat-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--purple);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 16px; color: var(--text-muted); font-weight: 500; }

/* ──────────────── FEATURES ──────────────── */
.features { padding: 100px 24px; background: var(--white); }
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 620px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}
.features-inner { max-width: 1160px; margin: 0 auto; }
.features-header { margin-bottom: 64px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.feature-card:hover {
  box-shadow: 0 16px 48px rgba(123,71,241,.1);
  transform: translateY(-4px);
  border-color: rgba(123,71,241,.25);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  transition: transform .2s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-4deg);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.feature-icon.green { background: #D1FAE5; }
.feature-icon.purple { background: var(--purple-light); }
.feature-icon.blue { background: #DBEAFE; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.3px;
}
.feature-card p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ──────────────── HOW IT WORKS ──────────────── */
.how { padding: 100px 24px; background: var(--surface); }
.how-inner { max-width: 1160px; margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 64px; }
.how-header .section-title { max-width: 100%; margin: 0 auto 16px; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(16.66% + 24px); right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--purple-light), var(--purple), var(--purple-light));
}
.how-step { text-align: center; padding: 0 16px; }
.how-step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(123,71,241,.35);
}
.how-step-num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(123,71,241,.35);
  animation: ring-pulse 2.4s ease-out infinite;
}
.how-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.how-step p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* ──────────────── TESTIMONIALS ──────────────── */
.testimonials { padding: 100px 24px; background: white; }
.testimonials-inner { max-width: 1160px; margin: 0 auto; }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.stars { color: #F59E0B; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.author-name { font-size: 14px; font-weight: 700; }
.author-role { font-size: 13px; color: var(--text-muted); }

/* ──────────────── CTA SECTION ──────────────── */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--purple) 0%, #9b59f4 50%, #c084fc 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -200px; right: -100px;
  pointer-events: none;
  animation: orb-float 9s ease-in-out infinite;
}
.cta-section::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -150px; left: -80px;
  pointer-events: none;
  animation: orb-float 11s ease-in-out infinite reverse;
}
.cta-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-section h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-section p { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 40px; line-height: 1.6; }
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.cta-form input:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.btn-white {
  padding: 14px 28px;
  background: white;
  color: var(--purple);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.cta-disclaimer { font-size: 13px; color: rgba(255,255,255,.65); }

/* ──────────────── FOOTER ──────────────── */
footer {
  background: #0F0E17;
  color: rgba(255,255,255,.7);
  padding: 64px 24px 40px;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 32px;
}
.footer-brand .nav-logo { color: white; margin-bottom: 14px; display: inline-flex; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 240px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 900px) {
  .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}
@media (max-width: 600px) {
  .hero { padding: 72px 20px 60px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-item { padding: 36px 24px; }
}

/* ──────────────── ANIMATIONS ──────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .5; }
}
@keyframes orb-drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-20px); }
}
@keyframes img-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero-img img { animation: img-float 6s ease-in-out infinite; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes stat-pop {
  from { transform: scale(.8); opacity: .4; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes ring-pulse {
  0%   { transform: scale(1);    opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-12px, -16px) scale(1.05); }
  66%       { transform: translate(10px, 8px) scale(.97); }
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: currentColor;
  margin-left: 8px;
  vertical-align: middle;
  border-radius: 2px;
  animation: blink .8s step-end infinite;
}

/* ──────────────── CAROUSEL ──────────────── */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.14), 0 8px 32px rgba(123,71,241,.12);
  background: #0f0e17;
  touch-action: pan-y;
}
.carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: #eeeaf8;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  animation: none !important;
}
.hero-img > img { animation: img-float 6s ease-in-out infinite; }
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: background .2s, transform .2s, opacity .2s;
  z-index: 10;
  opacity: .8;
}
.carousel-btn:hover { background: white; opacity: 1; transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 100px;
  border: none;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 0;
  transition: background .3s, width .3s;
}
.carousel-dot.active {
  background: white;
  width: 24px;
}

/* ──────────────── UTILITIES ──────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
