html {
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prose {
  color: #374151;
  line-height: 1.75;
}

.prose p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.prose h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.section-bg {
  background-size: 200% 200%;
  animation: sectionGradient 18s ease infinite;
}

.section-bg-dots,
.section-bg-lines {
  position: relative;
  overflow: hidden;
}

.section-bg-dots > *,
.section-bg-lines > * {
  position: relative;
  z-index: 1;
}

.section-bg-sky {
  background-image: linear-gradient(120deg, #f0f9ff, #e0f2fe, #eef2ff);
}

.section-bg-mint {
  background-image: linear-gradient(120deg, #ecfdf5, #d1fae5, #e0f2fe);
}

.section-bg-sand {
  background-image: linear-gradient(120deg, #fff7ed, #ffedd5, #fef3c7);
}

.section-bg-slate {
  background-image: linear-gradient(120deg, #f8fafc, #e2e8f0, #f1f5f9);
}

.section-bg-sunset {
  background-image: linear-gradient(120deg, #fff1f2, #ffe4e6, #fef3c7);
}

.section-bg-dots {
  background-color: #eef2ff;
}

.section-bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(79, 70, 229, 0.25) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  animation: dotsDrift 32s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.section-bg-dots::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image: linear-gradient(120deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 40%, rgba(255, 255, 255, 0) 70%);
  animation: linesSweep 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.section-bg-lines {
  background-color: #f8fafc;
}

.section-bg-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    120deg,
    rgba(148, 163, 184, 0.2) 0px,
    rgba(148, 163, 184, 0.2) 1px,
    transparent 1px,
    transparent 18px
  );
  animation: linesDrift 26s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes sectionGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes dotsDrift {
  0% {
    background-position: 0 0;
  }
  50% {
    background-position: 40px 30px;
  }
  100% {
    background-position: 0 0;
  }
}

@keyframes linesSweep {
  0% {
    transform: translateX(-10%) translateY(0);
  }
  50% {
    transform: translateX(10%) translateY(-5%);
  }
  100% {
    transform: translateX(-10%) translateY(0);
  }
}

@keyframes linesDrift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 160px 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-bg {
    animation: none;
  }
  .section-bg-dots::before,
  .section-bg-dots::after,
  .section-bg-lines::before {
    animation: none;
  }
}
