/* Landing — motion and sections that sit on top of app.css */

.page-home {
  background: var(--paper);
}

.page-home .nav__cta {
  min-height: 44px;
  padding-left: 16px;
  font-size: 0.92rem;
}

.page-home .nav__cta .btn__icon {
  width: 32px;
  height: 32px;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.land-orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.land-orb--a {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  right: 6%;
  top: 18%;
  background: radial-gradient(circle, rgba(43, 111, 212, 0.45), rgba(43, 111, 212, 0) 68%);
}

.land-orb--b {
  width: 220px;
  height: 220px;
  left: 38%;
  bottom: 8%;
  background: radial-gradient(circle, rgba(197, 218, 247, 0.7), rgba(197, 218, 247, 0) 70%);
}

.land-typing {
  display: inline-flex;
  gap: 5px;
  padding: 4px 2px;
}

.land-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.land-steps {
  display: grid;
  gap: 18px;
  padding: 8px 8px 8px 0;
}

.land-steps article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
}

.land-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(26, 86, 181, 0.12);
  color: var(--lime);
  font-weight: 700;
}

.land-steps h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.land-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.tile--platform .tile__core {
  padding: clamp(18px, 2vw, 28px);
}

.land-campuses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.land-campus {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(1, 3, 60, 0.06);
}

.land-campus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scale(1.04);
}

.land-campus div {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 4px;
  padding: 48px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(1, 3, 60, 0.78));
  color: #f4f7fc;
}

.land-campus strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.land-campus span {
  color: rgba(244, 247, 252, 0.82);
  font-size: 0.86rem;
  line-height: 1.4;
}

.fact__visual .icon {
  width: 42px;
  height: 42px;
}

@media (prefers-reduced-motion: no-preference) {
  html.js body.page-home .hero__photo {
    animation:
      hero-photo 2.4s var(--ease-out) both,
      land-drift 26s ease-in-out 2.4s infinite alternate;
  }

  .land-orb--a {
    animation: land-orb 11s ease-in-out infinite;
  }

  .land-orb--b {
    animation: land-orb 8s ease-in-out -3s infinite;
  }

  .land-bubble {
    animation: rise 0.7s var(--ease-out) both;
  }

  .land-bubble:nth-child(2) { animation-delay: 0.18s; }
  .land-bubble:nth-child(3) { animation-delay: 0.42s; }
  .land-bubble:nth-child(4) { animation-delay: 0.62s; }

  .land-typing i {
    animation: typing 1.2s ease-in-out infinite;
  }

  .land-typing i:nth-child(2) { animation-delay: 0.15s; }
  .land-typing i:nth-child(3) { animation-delay: 0.3s; }

  .land-campus img {
    transition: transform 1.1s var(--ease-out);
  }

  .land-campus:hover img {
    transform: scale(1.1);
  }

  .page-home .fact {
    transition: transform 0.6s var(--ease-out);
  }

  .page-home .fact:hover {
    transform: translateY(-6px);
  }

  .page-home .platform-modules li {
    animation: rise 0.8s var(--ease-out) both;
    animation-delay: calc(var(--n, 0) * 0ms);
  }

  .page-home .platform-modules li:nth-child(1) { animation-delay: 0.05s; }
  .page-home .platform-modules li:nth-child(2) { animation-delay: 0.14s; }
  .page-home .platform-modules li:nth-child(3) { animation-delay: 0.23s; }
  .page-home .platform-modules li:nth-child(4) { animation-delay: 0.32s; }

  .page-home .btn--lime {
    position: relative;
    overflow: hidden;
  }

  .page-home .btn--lime::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 28%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    animation: land-sheen 4.8s ease-in-out infinite;
  }
}

@keyframes land-drift {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes land-orb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

@keyframes land-sheen {
  0%, 55% { left: -40%; }
  100% { left: 130%; }
}

@media (max-width: 1100px) {
  .land-campuses {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .tile--platform .tile__core {
    grid-template-columns: 1fr;
  }

  .land-steps {
    padding-top: 8px;
  }
}

@media (max-width: 720px) {
  .land-campuses {
    grid-template-columns: 1fr;
  }

  .land-campus {
    min-height: 220px;
  }

  .float-card--a,
  .float-card--b {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .land-orb,
  .land-bubble,
  .land-typing i,
  .page-home .btn--lime::after {
    animation: none;
  }
}
