:root {
  --bg: #0b0d12;
  --bg-elev: #12151c;
  --border: #232734;
  --text: #f4f5f7;
  --text-dim: #9aa0ac;
  --accent: #6366f1;
  --accent-hover: #4f52d8;
  --radius: 12px;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: #3a3f4e; background: rgba(255,255,255,0.03); }

.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: auto;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a { color: var(--text-dim); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-stat { display: flex; flex-direction: column; }

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- Logos --- */
.logos {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  text-align: center;
}

.logos-label {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-weight: 600;
  opacity: 0.7;
}

/* --- Sections --- */
.section-head {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* --- How it works --- */
.how-it-works {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}

.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.step h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* --- CTA banner --- */
.cta-banner {
  max-width: var(--max-w);
  margin: 2rem auto 5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(99,102,241,0.03));
  border: 1px solid var(--border);
  border-radius: 20px;
}

.cta-banner h2 { margin: 0 0 0.6rem; font-size: 1.8rem; }
.cta-banner p { margin: 0 0 1.5rem; color: var(--text-dim); }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.9rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
