/*
Theme Name: SkyExplorer Marketing
Theme URI: https://example.com/
Author: SkyExplorer
Author URI: https://example.com/
Description: A custom block theme for the SkyExplorer marketing website. Built with native WordPress blocks and editable patterns.
Version: 1.0.4
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: skyexplorer
*/

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.sky-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(18, 29, 43, 0.08);
  box-shadow: 0 12px 32px rgba(12, 29, 43, 0.06);
  backdrop-filter: blur(18px);
}

a {
  text-underline-offset: 0.18em;
}

.sky-section {
  position: relative;
  overflow: hidden;
}

.sky-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 211, 77, 0.24), transparent 30%),
    radial-gradient(circle at 88% 24%, rgba(35, 137, 255, 0.18), transparent 32%);
  opacity: 0.9;
}

.sky-section > * {
  position: relative;
  z-index: 1;
}

.sky-glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 29, 43, 0.12);
  box-shadow: 0 18px 60px rgba(15, 35, 54, 0.12);
  backdrop-filter: blur(18px);
}

.sky-dark-panel {
  background:
    linear-gradient(135deg, rgba(12, 29, 43, 0.96), rgba(15, 60, 82, 0.92)),
    #0c1d2b;
  color: #ffffff;
}

.sky-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sky-stat {
  border-left: 3px solid var(--wp--preset--color--sun);
  padding-left: var(--wp--preset--spacing--40);
}

.sky-floating-media {
  filter: drop-shadow(0 28px 48px rgba(11, 36, 54, 0.24));
}

.sky-scroll-drift,
.sky-scroll-rise,
.sky-phone-frame,
.sky-card-hover {
  will-change: transform, opacity;
}

.sky-card-hover {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sky-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(15, 35, 54, 0.16);
}

.sky-phone-frame {
  border: 10px solid #101923;
  box-shadow: 0 30px 70px rgba(12, 29, 43, 0.24);
}

.sky-faq details {
  border-bottom: 1px solid rgba(18, 29, 43, 0.12);
  padding: 1rem 0;
}

.sky-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.sky-faq summary::marker {
  color: var(--wp--preset--color--sky);
}

.sky-contact-link a {
  text-decoration: none;
}

@supports (animation-timeline: view()) {
  .sky-phone-frame,
  .sky-scroll-drift {
    animation: sky-drift linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 68%;
  }

  .sky-card-hover,
  .sky-scroll-rise {
    animation: sky-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 45%;
  }
}

#gameplay {
  overflow: clip;
  position: relative;
}

#gameplay > .wp-block-columns {
  position: relative;
}

#gameplay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(246, 250, 254, 0) 0%,
      rgba(246, 250, 254, var(--sky-gameplay-scrim-opacity, 0)) 48%,
      rgba(246, 250, 254, var(--sky-gameplay-scrim-opacity-end, 0)) 100%
    );
}

#gameplay .sky-phone-frame {
  position: relative;
  z-index: 5;
  transform-origin: center;
  transition: filter 180ms ease;
}

#gameplay .wp-block-column:last-child {
  position: relative;
  z-index: 4;
}

#gameplay.sky-motion-active .sky-phone-frame {
  animation: none;
  transform:
    translate3d(
      var(--sky-gameplay-image-x, 0),
      var(--sky-gameplay-image-y, 0),
      0
    )
    rotate(var(--sky-gameplay-image-rotate, 0deg))
    scale(var(--sky-gameplay-image-scale, 1));
}

#gameplay.sky-motion-active .wp-block-column:last-child {
  opacity: var(--sky-gameplay-copy-opacity, 1);
  transform: translate3d(0, var(--sky-gameplay-copy-y, 0), 0);
  transition: opacity 120ms linear, transform 120ms linear;
}

@supports (animation-timeline: view()) {
  #gameplay:not(.sky-motion-active) .sky-phone-frame {
    animation: sky-map-screen-reveal linear both;
    animation-timeline: view();
    animation-range: entry -5% cover 78%;
  }

  #gameplay:not(.sky-motion-active) .wp-block-column:last-child {
    animation: sky-map-copy-reveal linear both;
    animation-timeline: view();
    animation-range: entry 22% cover 72%;
  }
}

@keyframes sky-map-screen-reveal {
  0% {
    opacity: 1;
    transform: translateX(46vw) translateY(18px) rotate(-2deg) scale(1.14);
  }

  44% {
    opacity: 1;
    transform: translateX(18vw) translateY(4px) rotate(-0.8deg) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes sky-map-copy-reveal {
  0% {
    opacity: 0;
    transform: translateX(42px);
    filter: blur(2px);
  }

  42% {
    opacity: 0.28;
    transform: translateX(22px);
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes sky-drift {
  0% {
    opacity: 0.76;
    transform: translateY(34px) rotate(-1.5deg) scale(0.985);
  }

  55% {
    opacity: 1;
    transform: translateY(-8px) rotate(0.3deg) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes sky-rise {
  0% {
    opacity: 0.72;
    transform: translateY(28px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sky-scroll-drift,
  .sky-scroll-rise,
  .sky-phone-frame,
  .sky-card-hover,
  #gameplay .wp-block-column:last-child,
  #gameplay.sky-motion-active .sky-phone-frame {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

@media (max-width: 780px) {
  .sky-mobile-stack {
    flex-direction: column;
  }

  .sky-section {
    padding-top: var(--wp--preset--spacing--70) !important;
    padding-bottom: var(--wp--preset--spacing--70) !important;
  }

  @supports (animation-timeline: view()) {
    #gameplay:not(.sky-motion-active) .sky-phone-frame {
      animation: sky-map-screen-reveal-mobile linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 62%;
    }
  }
}

@keyframes sky-map-screen-reveal-mobile {
  0% {
    opacity: 1;
    transform: translateX(22vw) translateY(22px) rotate(-1.2deg) scale(1.06);
  }

  100% {
    opacity: 1;
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
}
