/* Progressive enhancement: the complete page remains usable without motion. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
.header { transition: box-shadow .3s, background .3s; }
.header.scrolled { box-shadow: 0 8px 30px #1739690b; background: #fffffff5; }
.reading-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, #1465e8, #52bdec 70%, #ff9b45); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.hero::before { content: ''; position: absolute; width: min(650px, 95vw); height: 650px; right: -80px; top: -80px; background: radial-gradient(ellipse, #b9d7ff45, #dfefff20 50%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-visual .orbit-one { background: radial-gradient(circle at 30% 25%, #f2f8ff 0%, #d8eaff 70%, #cddfff); box-shadow: 0 0 0 38px #eef4fe66, inset 0 0 60px #ffffff88; }
.orbit-two::before, .orbit-two::after { content: ''; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #659aef; top: 15%; left: 14%; box-shadow: 0 0 0 6px #72aaff14, 0 0 18px #71a0e740; }
.orbit-two::after { top: auto; left: auto; right: 14%; bottom: 15%; width: 6px; height: 6px; background: #f6b26b; box-shadow: 0 0 0 5px #ffb57012; }
.floating-card { backdrop-filter: blur(12px); box-shadow: 0 15px 40px #27416b16, inset 0 1px 0 #fff; }
.button, .play-button, .plan-button { position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--motion-ease), box-shadow .3s, background .3s; }
.button::after, .play-button::after, .plan-button::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, #ffffff06 35%, #ffffff45 49%, #ffffff08 62%, transparent 78%); transform: translateX(-140%) skewX(-12deg); pointer-events: none; }
.feature-card { position: relative; isolation: isolate; }
.feature-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(350px circle at var(--pointer-x, 50%) var(--pointer-y, 30%), #86b8ff1a, transparent 75%); opacity: 0; transition: opacity .35s; pointer-events: none; z-index: -1; }
.feature-card, .price-card, .preview-art { transition: translate .4s var(--motion-ease), box-shadow .4s, border-color .4s; }
.feature-icon { transition: transform .4s var(--motion-ease), box-shadow .4s; }
.feature-label>span, .text-link>span:last-child, .custom-plan a>span { display: inline-block; transition: transform .3s var(--motion-ease); }
.nav-wrap nav>a:not(.button) { position: relative; }
.nav-wrap nav>a:not(.button)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--motion-ease); }
.faq-list summary>span { transition: transform .3s var(--motion-ease); }
.final-cta { background: radial-gradient(ellipse at 85% 90%, #164b91, transparent 60%), linear-gradient(120deg, #071c40, #0d3267); box-shadow: 0 18px 55px #123d7814, inset 0 1px 0 #ffffff26; }
.final-cta::before { background: radial-gradient(circle, #428cff0b, transparent 65%); border-color: #82b9ff18; }
.motion-toggle { position: fixed; left: 18px; bottom: 20px; z-index: 19; display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid #dce5ef; border-radius: 30px; color: #526781; background: #ffffffef; backdrop-filter: blur(10px); box-shadow: 0 3px 14px #09255709; font-size: 11px; line-height: 1.4; }
.motion-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.motion-toggle:hover { border-color: #82afe9; color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .hero.in-view .phone { animation: phone-float 7s ease-in-out infinite; }
  .motion-enabled .hero.in-view .collection-card { animation: card-float 6s ease-in-out infinite; }
  .motion-enabled .hero.in-view .attendance-float { animation: card-float 7s ease-in-out -3s infinite; }
  .motion-enabled .hero.in-view .orbit-two { animation: orbit-turn 65s linear infinite; }
  .motion-enabled .hero.in-view::before { animation: ambient-drift 13s ease-in-out infinite alternate; }
  .motion-enabled .hero.in-view .spark { animation: sparkle-breathe 4s ease-in-out infinite; }
  .motion-enabled .hero.in-view .spark-two { animation-delay: -2s; }
  .motion-enabled .hero.in-view .accent-word { background: linear-gradient(105deg, #1465e8 20%, #579cf5 40%, #186ae7 55%, #1054bf 80%); background-size: 230% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: headline-light 8s ease-in-out infinite; }
  .motion-enabled .hero.in-view .accent-word svg path { stroke-dasharray: 680; animation: underline-draw 1.5s var(--motion-ease) both; }
  .motion-enabled .hero.in-view .play-button::after { animation: button-shine 8s ease-in-out 1.3s infinite; }
  .motion-enabled .final-cta.in-view .orange-button::after { animation: button-shine 8s ease-in-out 1s infinite; }
  .motion-enabled .final-cta.in-view .cta-decoration { animation: card-float 7s ease-in-out infinite; }
  .motion-enabled .final-cta.in-view::before { animation: halo-breathe 9s ease-in-out infinite; }
  .motion-enabled .price-card.featured { box-shadow: 0 10px 38px #2569dc12, 0 0 0 4px #1465e805; }
  .motion-enabled .faq-list details[open] p { animation: detail-enter .35s var(--motion-ease); }
  .motion-enabled .plan-price { animation: price-enter .4s var(--motion-ease); }
  .page-sleeping *, .page-sleeping *::before, .page-sleeping *::after { animation-play-state: paused !important; }
}
@media (hover: hover) and (pointer: fine) {
  .motion-enabled .feature-card:hover, .motion-enabled .price-card:hover { translate: 0 -6px; border-color: #b7cff1; box-shadow: 0 18px 40px #143c7010; }
  .motion-enabled .price-card.featured:hover { border-color: var(--blue); box-shadow: 0 20px 45px #1465e822, 0 0 0 4px #1465e808; }
  .motion-enabled .feature-card:hover::before { opacity: 1; }
  .motion-enabled .feature-card:hover .feature-icon { transform: translateY(-3px) rotate(-6deg); box-shadow: 0 7px 16px #12375a0a; }
  .motion-enabled .button:hover, .motion-enabled .play-button:hover, .motion-enabled .plan-button:hover { box-shadow: 0 10px 25px #17498120; }
  .motion-enabled .button:hover::after, .motion-enabled .plan-button:hover::after { animation: hover-shine .8s ease; }
  .motion-enabled .preview-art:hover { translate: 0 -4px; box-shadow: 0 22px 40px #1749810e; }
  .motion-enabled .text-link:hover>span:last-child, .motion-enabled .custom-plan a:hover>span { transform: translateX(3px); }
  .nav-wrap nav>a:not(.button):hover::after { transform: scaleX(1); }
}
@keyframes phone-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@keyframes card-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes orbit-turn { from { transform: rotate(-20deg); } to { transform: rotate(340deg); } }
@keyframes ambient-drift { from { transform: translate(-15px, 0) scale(.95); opacity: .6; } to { transform: translate(20px, 35px) scale(1.08); opacity: 1; } }
@keyframes sparkle-breathe { 0%,100% { opacity: .5; scale: .88; } 50% { opacity: 1; scale: 1.08; } }
@keyframes headline-light { 0%,100% { background-position: 100% 50%; } 50% { background-position: 0 50%; } }
@keyframes underline-draw { from { stroke-dashoffset: 680; } to { stroke-dashoffset: 0; } }
@keyframes button-shine { 0%,65% { transform: translateX(-140%) skewX(-12deg); } 83%,100% { transform: translateX(140%) skewX(-12deg); } }
@keyframes hover-shine { from { transform: translateX(-140%) skewX(-12deg); } to { transform: translateX(140%) skewX(-12deg); } }
@keyframes halo-breathe { 0%,100% { scale: .97; opacity: .5; } 50% { scale: 1.05; opacity: 1; } }
@keyframes detail-enter { from { opacity: .3; translate: 0 -5px; } to { opacity: 1; translate: 0 0; } }
@keyframes price-enter { from { opacity: .4; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 600px) {
  .motion-toggle { bottom: 21px; left: 12px; padding: 7px 9px; font-size: 10px; }
  .hero::before { right: -100px; top: 360px; }
  .nav-wrap nav>a:not(.button)::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .motion-toggle { display: none; }
}
body:not(.motion-enabled) *, body:not(.motion-enabled) *::before, body:not(.motion-enabled) *::after { animation: none !important; transition: none !important; }
body:not(.motion-enabled) .button:hover, body:not(.motion-enabled) .play-button:hover { transform: none; }
