/* ═══════════════════════════════════════════════════
   L402 Mainnet — Landing Page
   Hero, How it works, Features, Tech, CTA
   ═══════════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────────── */
.hero {
  padding: 6rem 0 5rem; text-align: center; position: relative;
}
.hero__badge { margin-bottom: 1.5rem; }
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 50%, var(--btc-orange) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero__cta { display: inline-flex; }

/* Glow ring behind CTA */
.hero__glow {
  position: absolute; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--btc-orange-glow) 0%, transparent 70%);
  pointer-events: none; animation: glow 4s ease-in-out infinite;
  z-index: -1;
}

/* Protocol badge animation */
.hero__protocol {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 3rem; padding: 0.75rem 1.25rem;
  background: var(--code-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem; color: var(--text-muted);
}
.hero__protocol span { color: var(--btc-orange); }

/* ─── How It Works ───────────────────────────────── */
.how { padding: 5rem 0; }
.how__header { text-align: center; margin-bottom: 3rem; }
.how__title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.how__subtitle { color: var(--text-muted); font-size: 1.0625rem; }

.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 1024px) { .how__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .how__grid { grid-template-columns: 1fr; } }

.step-card { position: relative; padding: 2rem 1.5rem; text-align: center; }
.step-card__number {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, var(--btc-orange) 0%, var(--btc-orange-dark) 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(247,147,26,0.25);
}
.step-card__title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.step-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* Connector line between steps */
.step-card::after {
  content: ''; position: absolute; top: 2.75rem; right: -0.75rem;
  width: calc(1.5rem); height: 2px; background: var(--border);
}
.step-card:last-child::after { display: none; }
@media (max-width: 1024px) {
  .step-card:nth-child(2)::after { display: none; }
  .step-card::after { display: none; }
}

/* ─── Features ───────────────────────────────────── */
.features { padding: 5rem 0; }
.features__header { text-align: center; margin-bottom: 3rem; }
.features__title { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }

.feat-card { padding: 2rem; }
.feat-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.25rem;
  background: var(--btc-orange-bg); color: var(--btc-orange);
}
.feat-card__title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; }
.feat-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Tech Stack ─────────────────────────────────── */
.tech { padding: 4rem 0; }
.tech__header { text-align: center; margin-bottom: 2.5rem; }
.tech__title { font-size: clamp(1.5rem, 3vw, 2rem); }

.tech__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.tech-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); transition: border-color 0.2s;
}
.tech-card:hover { border-color: var(--btc-orange); }
.tech-card__icon { font-size: 1.5rem; flex-shrink: 0; }
.tech-card__name { font-weight: 600; font-size: 0.9375rem; }
.tech-card__desc { font-size: 0.75rem; color: var(--text-muted); }

/* ─── CTA Section ────────────────────────────────── */
.cta-section {
  padding: 5rem 0; text-align: center;
}
.cta-box {
  padding: 3.5rem 2rem; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--btc-orange-bg) 0%, transparent 50%), var(--bg-surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.cta-box__glow {
  position: absolute; top: -50%; right: -20%; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,147,26,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-box__title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; position: relative; }
.cta-box__subtitle { color: var(--text-muted); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }

/* ─── Footer ─────────────────────────────────────── */
.footer {
  padding: 2rem 0; text-align: center; border-top: 1px solid var(--border);
}
.footer__text { font-size: 0.8125rem; color: var(--text-muted); }
.footer__text a { color: var(--btc-orange); }
