:root {
  --bg: #0a0a0f;
  --bg-subtle: #111118;
  --bg-card: #16161f;
  --fg: #e8e8ef;
  --fg-muted: #8888a0;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --teal: #00cec9;
  --teal-glow: rgba(0, 206, 201, 0.12);
  --coral: #fd79a8;
  --gold: #fdcb6e;
  --radius: 16px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- MESH BACKGROUND ---- */
.mesh-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(108, 92, 231, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 206, 201, 0.06), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(253, 121, 168, 0.04), transparent);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-light);
  letter-spacing: 0.03em;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 28px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lede {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ---- MESH VISUAL ---- */
.mesh-visual {
  position: relative;
  width: 100%;
  max-width: 700px;
  height: 300px;
  margin: 0 auto;
}

.mesh-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}

.mesh-node .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.mesh-node:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.mesh-node:nth-child(1) .icon { background: rgba(108, 92, 231, 0.2); }
.mesh-node:nth-child(2) { top: 5%; right: 10%; animation-delay: 1s; }
.mesh-node:nth-child(2) .icon { background: rgba(0, 206, 201, 0.2); }
.mesh-node:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 2s; }
.mesh-node:nth-child(3) .icon { background: rgba(253, 121, 168, 0.2); }
.mesh-node:nth-child(4) { bottom: 10%; right: 5%; animation-delay: 0.5s; }
.mesh-node:nth-child(4) .icon { background: rgba(253, 203, 110, 0.2); }
.mesh-node:nth-child(5) { top: 50%; left: 35%; animation-delay: 1.5s; }
.mesh-node:nth-child(5) .icon { background: rgba(108, 92, 231, 0.2); }

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

/* ---- HOW IT WORKS ---- */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 64px;
  max-width: 600px;
}

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

.step-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
}

.step-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: rgba(108, 92, 231, 0.12);
  line-height: 1;
  margin-bottom: 20px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- FEATURES ---- */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 44px 36px;
  background: var(--bg-subtle);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.08);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 24px;
}

.feature-card:nth-child(1) .feature-icon { background: var(--accent-glow); }
.feature-card:nth-child(2) .feature-icon { background: var(--teal-glow); }
.feature-card:nth-child(3) .feature-icon { background: rgba(253, 121, 168, 0.12); }
.feature-card:nth-child(4) .feature-icon { background: rgba(253, 203, 110, 0.12); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 120px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ---- FOOTER ---- */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--fg-muted);
  font-size: 14px;
}

footer a {
  color: var(--accent-light);
  text-decoration: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .mesh-visual { height: 400px; }
  .mesh-node:nth-child(1) { top: 0; left: 5%; }
  .mesh-node:nth-child(2) { top: 20%; right: 2%; }
  .mesh-node:nth-child(3) { top: 45%; left: 3%; }
  .mesh-node:nth-child(4) { top: 65%; right: 5%; }
  .mesh-node:nth-child(5) { top: 85%; left: 20%; }
  .hero { padding: 100px 20px 60px; }
}