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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #ecfeff 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(99,102,241,.1), 0 2px 8px rgba(0,0,0,.06);
  --shadow-lg: 0 20px 60px rgba(99,102,241,.15), 0 8px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Typography ─── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }

/* ─── Layout ─── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.logo span { color: var(--primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 99px;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: var(--gradient-soft);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(99,102,241,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(139,92,246,.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 60% 30%, rgba(6,182,212,.08) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
  letter-spacing: .01em;
}

.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -.04em;
}

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

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

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(99,102,241,.35);
  transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99,102,241,.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

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

/* ─── Floating Cards ─── */
.hero-visual {
  position: relative;
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 8px;
}

.floating-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  min-width: 200px;
  animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) { animation-delay: .6s; }
.floating-card:nth-child(3) { animation-delay: 1.2s; }
.floating-card:nth-child(4) { animation-delay: 1.8s; }

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

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-info { flex: 1; min-width: 0; }

.card-title {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ─── Section ─── */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.65;
}

.section-header { margin-bottom: 56px; }

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(99,102,241,.2);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ─── Categories ─── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(99,102,241,.12);
  transform: translateY(-3px);
}

.category-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── How it works ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: .25;
}

.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
  position: relative;
  z-index: 1;
}

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

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

/* ─── CTA Banner ─── */
.cta-banner {
  padding: 96px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(255,255,255,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 90% 50%, rgba(0,0,0,.08) 0%, transparent 60%);
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 18px;
  opacity: .85;
  margin-bottom: 36px;
  line-height: 1.6;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}

/* ─── Partner ─── */
.partner-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.partner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.partner-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}

.partner-link:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.partner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* ─── Footer ─── */
.footer {
  padding: 60px 0 40px;
  background: var(--text);
  color: rgba(255,255,255,.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo span { color: #a5b4fc; }

.footer-desc {
  font-size: 14px;
  max-width: 280px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-link {
  font-size: 14px;
  transition: color .2s;
}

.footer-link:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  font-size: 13px;
}

.footer-bottom a {
  color: #a5b4fc;
  transition: opacity .2s;
}

.footer-bottom a:hover { opacity: .8; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero { padding: 72px 0 60px; }

  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .floating-card { min-width: 160px; padding: 12px 16px; }
  .card-icon { width: 34px; height: 34px; font-size: 16px; }
  .card-title { font-size: 13px; }

  .steps::before { display: none; }
  .steps { gap: 32px; }
  .step { padding: 0 16px; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-visual { gap: 10px; }
  .floating-card { flex: 1; min-width: 140px; }
}

/* ─── Utilities ─── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
