/* =============================================================
   LANDING — lower sections polish (overview → closing)
   ============================================================= */

/* Section ambient glows */
.landing-section__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(720px, 95vw);
  height: min(420px, 55vh);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  filter: blur(80px);
  transition: opacity 1.2s ease;
}

.landing-section.is-in .landing-section__glow,
.landing-section [data-landing-reveal].is-in ~ .landing-section__glow {
  opacity: 1;
}

.landing-section--overview.is-in .landing-section__glow--cyan,
.landing-section--overview .landing-section__glow--cyan {
  background: radial-gradient(circle, rgba(100, 210, 255, 0.14) 0%, transparent 68%);
  animation: landing-glow-breathe 8s ease-in-out infinite;
}

.landing-section--features.is-in .landing-section__glow--violet,
.landing-section--features .landing-section__glow--violet {
  background: radial-gradient(circle, rgba(191, 90, 242, 0.12) 0%, transparent 70%);
  animation: landing-glow-breathe 9s ease-in-out infinite 1s;
}

.landing-section--preview.is-in .landing-section__glow--blue,
.landing-section--preview .landing-section__glow--blue {
  background: radial-gradient(circle, rgba(80, 140, 255, 0.13) 0%, transparent 68%);
  animation: landing-glow-breathe 7s ease-in-out infinite 0.5s;
}

.landing-section--platforms-section.is-in .landing-section__glow--mint,
.landing-section--platforms-section .landing-section__glow--mint {
  background: radial-gradient(circle, rgba(52, 199, 140, 0.1) 0%, transparent 70%);
  animation: landing-glow-breathe 10s ease-in-out infinite 1.5s;
}

@keyframes landing-glow-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.55; }
  50% { transform: translate(-50%, -52%) scale(1.08); opacity: 0.85; }
}

/* Hairline dividers between sections */
.landing-section--overview,
.landing-section--features,
.landing-section--preview,
.landing-section--platforms-section {
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 20%,
    rgba(100, 210, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 80%,
    transparent 100%
  ) 1;
}

/* Overview stats */
.landing-overview__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
}

.landing-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 7.5rem;
  padding: 1rem 1.35rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition:
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 480ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms ease;
}

.landing-stat.is-in {
  animation: landing-stat-pop 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landing-stat-pop {
  0% { opacity: 0; transform: translateY(16px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .landing-stat:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(100, 210, 255, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(100, 210, 255, 0.12);
  }
}

.landing-stat__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}

.landing-stat__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Feature cards — index numbers + shine sweep */
.landing-feature {
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--feat-tilt-x, 0deg)) rotateY(var(--feat-tilt-y, 0deg));
  transition:
    transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 460ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms ease;
}

.landing-feature__index {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  transition: color 520ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-feature.is-in .landing-feature__index {
  animation: landing-index-fade 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landing-index-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-feature:hover {
  transform: perspective(900px) rotateX(var(--feat-tilt-x, 0deg)) rotateY(var(--feat-tilt-y, 0deg)) translateY(-4px);
}

.landing-feature:hover .landing-feature__index {
  color: rgba(100, 210, 255, 0.12);
  transform: translateY(-2px);
}

.landing-feature__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: transform 0s;
  pointer-events: none;
}

.landing-feature:hover .landing-feature__shine {
  transform: translateX(120%);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-feature__icon {
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 460ms ease;
}

.landing-feature.is-in .landing-feature__icon {
  animation: landing-icon-rise 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landing-icon-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.88); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.landing-feature:hover .landing-feature__icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 24px rgba(100, 210, 255, 0.2);
}

.landing-feature__icon--rose {
  background: linear-gradient(135deg, rgba(255, 90, 130, 0.22), rgba(191, 90, 242, 0.18));
}

.landing-feature__icon--mint {
  background: linear-gradient(135deg, rgba(52, 199, 140, 0.22), rgba(100, 210, 255, 0.16));
}

/* Preview bullets */
.landing-preview__bullets {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.landing-preview__bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-preview__bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #64d2ff, #bf5af2);
  box-shadow: 0 0 10px rgba(100, 210, 255, 0.45);
}

.landing-preview__bullets.is-in li,
.landing-preview__copy.is-in .landing-preview__bullets li {
  opacity: 1;
  transform: translateX(0);
}

.landing-preview__bullets.is-in li:nth-child(1),
.landing-preview__copy.is-in .landing-preview__bullets li:nth-child(1) { transition-delay: 80ms; }
.landing-preview__bullets.is-in li:nth-child(2),
.landing-preview__copy.is-in .landing-preview__bullets li:nth-child(2) { transition-delay: 160ms; }
.landing-preview__bullets.is-in li:nth-child(3),
.landing-preview__copy.is-in .landing-preview__bullets li:nth-child(3) { transition-delay: 240ms; }

/* Preview mock — live calendar pop */
.landing-preview__mock {
  transform: perspective(1200px) rotateY(-2deg) rotateX(2deg);
  transition:
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-preview__mock.is-in {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

@media (hover: hover) and (pointer: fine) {
  .landing-preview__mock.is-in:hover {
    transform: perspective(1200px) rotateY(2deg) rotateX(-1deg) translateY(-4px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      0 40px 100px rgba(0, 0, 0, 0.5),
      0 0 40px rgba(100, 210, 255, 0.08);
  }
}

.landing-preview__mock--live .landing-preview__day {
  animation: landing-day-pop 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes landing-day-pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.landing-preview__mock--live .landing-preview__day--today {
  animation: landing-day-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both, landing-today-pulse 2.4s ease-in-out 600ms infinite;
}

@keyframes landing-today-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(100, 210, 255, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(100, 210, 255, 0); }
}

/* Release strip under mock calendar */
.landing-preview__releases {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-preview__release {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0;
  transform: translateX(14px);
  transition:
    opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 500ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms ease;
}

.landing-preview__mock--live .landing-preview__release {
  opacity: 1;
  transform: translateX(0);
}

.landing-preview__mock--live .landing-preview__release:nth-child(1) { transition-delay: 400ms; }
.landing-preview__mock--live .landing-preview__release:nth-child(2) { transition-delay: 520ms; }
.landing-preview__mock--live .landing-preview__release:nth-child(3) { transition-delay: 640ms; }

.landing-preview__release:hover {
  background: rgba(255, 255, 255, 0.06);
}

.landing-preview__release-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #64d2ff, #5e8cff);
  box-shadow: 0 0 8px rgba(100, 210, 255, 0.5);
}

.landing-preview__release-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-preview__release-date {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

/* Platforms stage */
.landing-platforms__stage {
  width: 100%;
  padding: 1.5rem 0 0.5rem;
}

.landing-section__platforms {
  gap: 0.85rem;
}

.landing-section__platforms .landing__platform {
  opacity: 0;
  transform: translateY(18px) scale(0.88);
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 320ms ease;
}

.landing-platforms__stage.is-in .landing__platform,
.landing-section--platforms-section.is-in .landing__platform {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.landing-platforms__stage.is-in .landing__platform:nth-child(1),
.landing-section--platforms-section.is-in .landing__platform:nth-child(1) { transition-delay: 60ms; }
.landing-platforms__stage.is-in .landing__platform:nth-child(2),
.landing-section--platforms-section.is-in .landing__platform:nth-child(2) { transition-delay: 120ms; }
.landing-platforms__stage.is-in .landing__platform:nth-child(3),
.landing-section--platforms-section.is-in .landing__platform:nth-child(3) { transition-delay: 180ms; }
.landing-platforms__stage.is-in .landing__platform:nth-child(4),
.landing-section--platforms-section.is-in .landing__platform:nth-child(4) { transition-delay: 240ms; }
.landing-platforms__stage.is-in .landing__platform:nth-child(5),
.landing-section--platforms-section.is-in .landing__platform:nth-child(5) { transition-delay: 300ms; }
.landing-platforms__stage.is-in .landing__platform:nth-child(6),
.landing-section--platforms-section.is-in .landing__platform:nth-child(6) { transition-delay: 360ms; }

@media (hover: hover) and (pointer: fine) {
  .landing-section__platforms .landing__platform:hover {
    transform: translateY(-6px) scale(1.08);
  }
}

/* Closing section */
.landing-closing__glow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: min(600px, 90vw);
  height: min(320px, 40vh);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100, 210, 255, 0.16) 0%, transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  opacity: 0;
  animation: landing-closing-glow 6s ease-in-out infinite;
}

.landing-section--closing.is-in .landing-closing__glow {
  opacity: 1;
}

@keyframes landing-closing-glow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.12); opacity: 1; }
}

.landing-closing__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.landing-closing__cta-secondary {
  min-width: 10rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-closing__actions.is-in .landing-closing__cta {
  animation: landing-cta-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing-closing__actions.is-in .landing-closing__cta-secondary {
  animation: landing-cta-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) 100ms both;
}

@keyframes landing-cta-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Light theme */
html[data-theme="light"] .landing-stat {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 100%);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .landing-feature__index {
  color: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .landing-feature:hover .landing-feature__index {
  color: rgba(0, 122, 255, 0.1);
}

html[data-theme="light"] .landing-preview__release {
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .landing-preview__release-title {
  color: rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] .landing-section--overview,
html[data-theme="light"] .landing-section--features,
html[data-theme="light"] .landing-section--preview,
html[data-theme="light"] .landing-section--platforms-section {
  border-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 20%,
    rgba(0, 122, 255, 0.14) 50%,
    rgba(0, 0, 0, 0.06) 80%,
    transparent 100%
  ) 1;
}

@media (prefers-reduced-motion: reduce) {
  .landing-section__glow,
  .landing-closing__glow,
  .landing-feature__shine,
  .landing-preview__mock--live .landing-preview__day,
  .landing-preview__mock--live .landing-preview__day--today {
    animation: none !important;
  }

  .landing-stat.is-in,
  .landing-feature.is-in .landing-feature__icon,
  .landing-closing__actions.is-in .landing-closing__cta,
  .landing-closing__actions.is-in .landing-closing__cta-secondary {
    animation: none !important;
  }

  .landing-preview__mock {
    transform: none;
  }

  .landing-section__platforms .landing__platform {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   LANDING LOWER — final polish
   ============================================================ */

/* Better spacing between landing sections on mobile */
@media (max-width: 640px) {
  .landing-section {
    padding: clamp(3.5rem, 9vh, 6rem) 1.25rem !important;
  }

  .landing-section__title {
    font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
  }
}

/* Feature cards grid — better gap on desktop */
.landing-features__grid {
  gap: 1.25rem !important;
}

/* Each feature card — taller */
.landing-feature {
  min-height: 220px !important;
  gap: 0.85rem !important;
}

/* Overview stat section — bigger gap */
.landing-overview__stats {
  gap: 1rem !important;
  margin-top: 2rem !important;
}

/* Section glow intensity */
.landing-section__glow {
  opacity: 0.55 !important;
  filter: blur(80px) !important;
}

/* Platform icons row */
.landing__platforms-inner {
  gap: 0.65rem !important;
}

/* Closing section — more vertical padding */
.landing-section--closing {
  padding-top: clamp(6rem, 15vh, 10rem) !important;
  padding-bottom: calc(clamp(6rem, 15vh, 10rem) + env(safe-area-inset-bottom, 0px)) !important;
}
