/* ================================================================
   When2Overlap AI — Landing Page CSS v4
   Premium design: mesh hero, inverted stats, accent borders
   ================================================================ */

/* ── Reset & Base ── */
.w2o-landing {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #1f2328;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.w2o-landing *, .w2o-landing *::before, .w2o-landing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.w2o-landing h1, .w2o-landing h2, .w2o-landing h3 {
  line-height: 1.25;
  color: #1f2328;
}
.w2o-landing p { color: rgba(31,35,40,.72); }

/* ═══════════════════════════════════════
   1. HERO
   ═══════════════════════════════════════ */
.ld-hero {
  padding: 80px 24px 72px;
  text-align: center;
  background:
    radial-gradient(ellipse 800px 500px at 20% 30%, rgba(13,148,136,.08), transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(79,70,229,.06), transparent 65%),
    radial-gradient(ellipse 500px 300px at 50% 80%, rgba(234,179,8,.04), transparent 60%),
    #f6f8fa;
  position: relative;
  overflow: hidden;
}
.ld-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13,148,136,.04) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .6;
}
.ld-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ld-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #1f2328;
}
.ld-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #0D9488, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ld-hero__sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: rgba(31,35,40,.65);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 450;
}
.ld-hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ld-hero__note {
  font-size: 13px;
  color: rgba(31,35,40,.45);
  font-weight: 500;
}

/* ── Buttons ── */
.ld-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: none;
}
.ld-btn--primary {
  background: linear-gradient(135deg, #0D9488, #0f766e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,.25), 0 8px 24px rgba(13,148,136,.12);
}
.ld-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13,148,136,.35), 0 12px 32px rgba(13,148,136,.18);
}
.ld-btn--ghost {
  background: transparent;
  color: #424a53;
  border: 1px solid #d1d9e0;
}
.ld-btn--ghost:hover {
  background: rgba(13,148,136,.04);
  border-color: #0D9488;
  color: #0D9488;
}

/* ═══════════════════════════════════════
   2. STATS BAND (dark inverted)
   ═══════════════════════════════════════ */
.ld-stats {
  background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 100%);
  padding: 40px 24px;
}
.ld-stats__inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.ld-stats__num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.ld-stats__label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  font-weight: 500;
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   3. FEATURES
   ═══════════════════════════════════════ */
.ld-features {
  padding: 72px 24px;
  background: #fff;
}
.ld-features h2 {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}
.ld-features__grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ld-feature-card {
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #0D9488;
  background: #fff;
  transition: all .2s ease;
}
.ld-feature-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.ld-feature-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.ld-feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.ld-feature-card p {
  font-size: 14px;
  line-height: 1.7;
}
.ld-feature-card strong {
  color: #0D9488;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   4. USE CASES
   ═══════════════════════════════════════ */
.ld-usecases {
  padding: 72px 24px;
  background: #f6f8fa;
  border-radius: 24px;
  margin: 0 16px;
}
.ld-usecases h2 {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 48px;
}
.ld-usecases__grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.ld-usecase {
  background: #fff;
  padding: 24px 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.ld-usecase h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 12px 0 8px;
}
.ld-usecase p {
  font-size: 13px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   5. STEPS (How it works)
   ═══════════════════════════════════════ */
.ld-steps {
  padding: 72px 24px;
  background: #fff;
}
.ld-steps h2 {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 48px;
}
.ld-steps__grid {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.ld-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  position: relative;
}
.ld-step:not(:last-child) {
  border-bottom: 1px dashed #d1d9e0;
}
.ld-step__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #0D9488, #0f766e);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}
.ld-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.ld-step p {
  font-size: 14px;
}

/* ═══════════════════════════════════════
   6. FAQ
   ═══════════════════════════════════════ */
.ld-faq {
  padding: 72px 24px;
  background: #f6f8fa;
}
.ld-faq h2 {
  text-align: center;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 40px;
}
.ld-faq details {
  max-width: 720px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.ld-faq details[open] {
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.ld-faq summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #1f2328;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: #6e7681;
  transition: transform .2s;
}
.ld-faq details[open] summary::after {
  transform: rotate(45deg);
}
.ld-faq details p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   7. RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  .ld-hero { padding: 56px 20px 48px; }
  .ld-features, .ld-usecases, .ld-steps, .ld-faq { padding: 48px 20px; }
  .ld-usecases { margin: 0 8px; border-radius: 16px; }
  .ld-features__grid { grid-template-columns: 1fr; }
  .ld-usecases__grid { grid-template-columns: 1fr; }
  .ld-stats__inner { grid-template-columns: repeat(2, 1fr); }
  .ld-stats__num { font-size: 28px; }
  .ld-step { gap: 14px; }
  .ld-step__num { width: 34px; height: 34px; font-size: 14px; }
}

/* ── Sticky mobile CTA ── */
@media (max-width: 768px) {
  .ld-hero__cta .ld-btn--primary {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,.12), 0 4px 12px rgba(13,148,136,.25);
  }
}

/* ── Scroll fade-in ── */
@keyframes ldFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.ld-feature-card, .ld-usecase, .ld-step, .ld-faq details {
  animation: ldFadeUp .5s ease-out both;
}
.ld-feature-card:nth-child(1) { animation-delay: .05s; }
.ld-feature-card:nth-child(2) { animation-delay: .10s; }
.ld-feature-card:nth-child(3) { animation-delay: .15s; }
.ld-feature-card:nth-child(4) { animation-delay: .20s; }
.ld-feature-card:nth-child(5) { animation-delay: .25s; }
.ld-feature-card:nth-child(6) { animation-delay: .30s; }

@media (prefers-reduced-motion: reduce) {
  .ld-feature-card, .ld-usecase, .ld-step, .ld-faq details { animation: none; }
}

/* ═══════════════════════════════════════
   8. BOTTOM CTA
   ═══════════════════════════════════════ */
.ld-bottom-cta {
  padding: 64px 24px;
  text-align: center;
  background: linear-gradient(135deg, #f0fdfa 0%, #f5f3ff 100%);
  border-top: 1px solid #e5e7eb;
}
.ld-bottom-cta h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 12px;
  color: #1f2328;
}
.ld-bottom-cta p {
  font-size: 16px;
  color: rgba(31,35,40,.60);
  margin-bottom: 28px;
}

/* ═══════════════════════════════════════
   9. NEW BADGE
   ═══════════════════════════════════════ */
.ld-new {
  display: inline-block;
  background: linear-gradient(135deg, #0D9488, #0f766e);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: .5px;
  vertical-align: super;
  margin-left: 4px;
}
