html { scroll-behavior: smooth; }

::selection { background: rgba(245, 166, 35, 0.25); color: #1A1A1A; }

/* Rendering: defer paint for below-fold sections */
.about,
.the-process,
.how-it-works,
.our-benefits {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.hero-line {
  display: block;
  animation: heroReveal 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}
.hero-line:nth-child(1) { animation-delay: 0.3s; }

.hero-logo {
  animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.1s;
  will-change: transform, opacity;
}

.hero-fade {
  animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.9s;
  will-change: transform, opacity;
}

@keyframes heroReveal {
  from { transform: translateY(120%) rotateX(-15deg); opacity: 0; }
  to { transform: translateY(0) rotateX(0); opacity: 1; }
}

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

a, button { transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f5; }
::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

.nav-link.active {
  color: #F5A623 !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .hero-line, .hero-fade, .hero-logo { animation: none; opacity: 1; transform: none; }
}

.roadmap-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.roadmap-line.roadmap-line-revealed {
  transform: scaleY(1);
}

.roadmap-marker {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.roadmap-marker.roadmap-marker-active {
  transform: scale(1.15);
  box-shadow: 0 0 0 12px rgba(245, 166, 35, 0.1);
}

.icon-box {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .icon-box {
  transform: scale(1.1) rotate(-4deg);
  background: rgba(245, 166, 35, 0.2);
}

.icon-box svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.group:hover .icon-box svg {
  transform: scale(1.15);
}

.roadmap-marker svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.roadmap-marker-active svg {
  transform: scale(1.2);
}

/* Tasks scroll container */
.tasks-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.tasks-scroll-container::-webkit-scrollbar {
  display: none;
}
.task-card {
  scroll-snap-align: center;
  min-height: 280px;
}

/* Story detail page */
.task-detail-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.task-detail-body h2:first-child {
  margin-top: 0;
}
.task-detail-body p {
  color: #4b5563;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.task-detail-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.task-detail-body li {
  color: #4b5563;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
