/* A luminous celestial scene, built with lightweight CSS and SVG. */
.hero, .page-intro { isolation: isolate; }
.page-intro { position: relative; overflow: hidden; }
.hero:after { z-index: 0; }
.hero-inner, .page-intro > .wrap { position: relative; z-index: 2; }
.motion-scene { position: absolute; inset: -18px; z-index: 1; overflow: hidden; pointer-events: none; transform: translate3d(var(--drift-x, 0px), var(--drift-y, 0px), 0); transition: transform 1s ease-out; }
.cosmic-wash { position: absolute; inset: 0; background: radial-gradient(ellipse at 49% 1%, #c6b9ff40, transparent 45%), radial-gradient(ellipse at 5% 85%, #b6d9ff50, transparent 36%), radial-gradient(ellipse at 82% 22%, #c2e1ff55, transparent 25%); animation: cosmic-breathe 16s ease-in-out infinite alternate; }
.celestial-system { position: absolute; width: 640px; height: 640px; right: max(-85px, calc((100vw - 1200px)/2 - 125px)); top: -170px; }
.celestial-halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #f9fcffda 0, #d8e9ff66 16%, #e3dbff45 30%, #dce5ff00 66%); animation: cosmic-breathe 12s ease-in-out infinite alternate; }
.orbital-plane { position: absolute; inset: 0; transform: rotate(-27deg) scaleY(.63); }
.plane-middle { inset: 74px; transform: rotate(36deg) scaleY(.66); }
.plane-inner { inset: 145px; transform: rotate(-14deg) scaleY(.78); }
.celestial-orbit { position: absolute; inset: 0; display: block; border-radius: 50%; border: 1px solid #618ee16b; box-shadow: 0 0 0 7px #e7eeff17; animation: orbit-turn 48s linear infinite; }
.celestial-orbit:before { content: ''; position: absolute; inset: 13px; border: 1px dashed #7ca4e044; border-radius: 50%; }
.celestial-orbit i { position: absolute; top: 50%; left: -17px; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: radial-gradient(circle at 28% 25%, #fff 0%, #dae9ff 24%, #93b6f0 65%, #456fae 100%); box-shadow: 0 0 22px #afceff80, inset -3px -3px 8px #426ca33d; }
.orbit-middle { border-color: #9b88d36b; animation-duration: 35s; animation-direction: reverse; }
.orbit-middle i { width: 26px; height: 26px; left: -13px; margin-top: -13px; background: radial-gradient(circle at 28% 25%, #fff, #ddcffb 30%, #9d86d4 80%); }
.orbit-inner { border-color: #a7b67b80; animation-duration: 23s; }
.orbit-inner i { width: 19px; height: 19px; left: -9px; margin-top: -9px; background: radial-gradient(circle at 25% 20%, #fff, #e8f3c7 40%, #a5bc6c); }
.celestial-core { position: absolute; width: 88px; height: 88px; left: calc(50% - 44px); top: calc(50% - 44px); border-radius: 50%; background: radial-gradient(circle at 30% 27%, #fff 0%, #e6f3ff 25%, #b5d3fa 54%, #7b9fdc 83%, #a3b9e4 100%); box-shadow: inset -8px -8px 18px #3e65922b, 0 0 0 12px #eaf3ff40, 0 0 65px #c4dafa; animation: planet-float 10s ease-in-out infinite alternate; }
.celestial-core:after { content: ''; position: absolute; width: 140px; height: 35px; left: -27px; top: 26px; border: 3px solid #a5bce3a3; border-top-color: #f0f6ffb3; border-radius: 50%; transform: rotate(-25deg); }
.celestial-moon { position: absolute; width: 9px; height: 9px; background: #e8c78a; border-radius: 50%; left: 69%; top: 33%; box-shadow: 0 0 14px #fff0c7; animation: planet-float 8s ease-in-out infinite alternate-reverse; }
.constellation { position: absolute; width: 780px; height: 488px; left: 17%; top: 20px; opacity: .44; animation: constellation-drift 22s ease-in-out infinite alternate; }
.constellation path { stroke: #7198d4; stroke-width: .8; stroke-dasharray: 3 7; }
.constellation circle { fill: #adc6e9; stroke: #fff; stroke-width: 1.4; }
.celestial-star { position: absolute; display: block; width: 17px; height: 17px; background: #7298d9; clip-path: polygon(50% 0, 60% 39%, 100% 50%, 60% 61%, 50% 100%, 40% 61%, 0 50%, 40% 39%); animation: starlight 6s ease-in-out infinite alternate; }
.star-1 { left: 5%; top: 14%; width: 22px; height: 22px; }
.star-2 { left: 39%; top: 10%; animation-delay: -2s; }
.star-3 { left: 47%; top: 62%; width: 26px; height: 26px; animation-delay: -4s; background: #9985c8; }
.star-4 { right: 5%; top: 27%; animation-delay: -1s; width: 24px; height: 24px; background: #eef5ff; }
.star-5 { left: 28%; bottom: 9%; animation-delay: -5s; }
.star-6 { right: 30%; top: 38%; animation-delay: -3s; background: #cfb17b; }
.star-7 { right: 17%; bottom: 15%; width: 12px; height: 12px; animation-delay: -2s; }
.star-8 { left: 13%; top: 51%; width: 10px; height: 10px; animation-delay: -4s; }
.celestial-trail { position: absolute; top: 18%; left: 47%; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, #88abdf90); transform: rotate(-25deg); animation: comet-pass 18s ease-in-out infinite; }
.page-intro .celestial-system { right: -100px; top: -195px; width: 570px; height: 570px; opacity: .78; }
.page-intro .constellation { left: 42%; top: -70px; opacity: .3; }
.page-intro .star-1, .page-intro .star-8 { display: none; }
.page-intro .star-5 { left: 56%; }
@keyframes cosmic-breathe { from { transform: scale(.96); opacity: .65; } to { transform: scale(1.08); opacity: 1; } }
@keyframes planet-float { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes constellation-drift { to { transform: translate3d(15px, -10px, 0); } }
@keyframes starlight { from { opacity: .22; transform: scale(.8) rotate(0); } to { opacity: .76; transform: scale(1.12) rotate(14deg); } }
@keyframes comet-pass { 0%, 60% { opacity: 0; transform: translate(0,0) rotate(-25deg); } 67% { opacity: .7; } 80%, 100% { opacity: 0; transform: translate(170px,-80px) rotate(-25deg); } }

.hero-preview { position: absolute; z-index: 3; right: max(32px, calc((100vw - 1200px)/2)); bottom: 45px; width: 342px; padding: 21px 21px 16px; background: #fffffffa; border: 1px solid #fff; border-radius: 20px; box-shadow: 0 16px 50px #18345e22; }
.preview-heading { display: flex; align-items: center; gap: 7px; min-height: 44px; color: #5a6c84; font-size: .69rem; font-weight:700; border-radius: 8px; }
.hero-preview > .preview-heading:after { content: none; }
.preview-heading::-webkit-details-marker { display: none; }
.preview-heading:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.preview-chevron { width: 28px; height: 28px; padding: 5px; flex-shrink: 0; border-radius: 50%; background: #edf4ff; color: var(--blue); transition: transform .2s ease; }
.hero-preview[open] .preview-chevron { transform: rotate(180deg); }
.hero-preview:not([open]) .preview-count { visibility: hidden; }
.hero-preview:not([open]) * { animation-play-state: paused; }
.preview-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--blue); }
.preview-count { margin-left: auto; color: #536b90; font-variant-numeric: tabular-nums; }
.lesson-panels { margin-top: 14px; min-height: 177px; }
.lesson-panel:not([hidden]) { animation: panel-enter .4s ease-out both; }
.hero-preview h2 { font-size: 1.05rem; letter-spacing: -.035em; line-height: 1.4; margin: 13px 0 5px; }
.lesson-panel p { font-size: .8rem; line-height: 1.65; color: #617087; margin-top: 0; }
.lesson-visual { position: relative; overflow: hidden; height: 79px; border-radius: 11px; display: flex; align-items: center; gap: 15px; padding: 12px 14px; background: #edf4ff; }
.mini-app { width: 44px; height: 44px; display: grid; place-items: center; background: white; border: 1px solid #d4e2fc; color: var(--blue); border-radius: 11px; flex-shrink: 0; box-shadow: 0 3px 8px #214a8910; }
.mini-app svg { width: 24px; height: 24px; }
.mini-document { width: 56px; height: 49px; padding: 11px 9px; display: grid; gap: 5px; background: #fff; border: 1px solid #d4e2fc; border-radius: 5px; transform: rotate(5deg); }
.mini-document i { background: #b6ccf5; height: 4px; border-radius: 2px; }
.mini-document i:last-child { width: 65%; }
.mini-cursor { position: absolute; font-size: 25px; font-family:'Plus Jakarta Sans',Arial,sans-serif; color: var(--blue); left: 108px; top: 31px; animation: cursor-nudge 4s ease-in-out infinite; }
.visual-tag { margin-left: auto; max-width: 111px; font-size: .67rem; line-height: 1.5; font-weight:400; color: #46628e; }
.visual-create { background: #f0f6e6; }
.visual-create .mini-app { color: #547822; border-color: #d9e8c1; }
.visual-create .visual-tag { color: #54693e; }
.mini-chart { display: flex; align-items: end; gap: 5px; height: 43px; width: 55px; padding-bottom: 2px; border-bottom: 1px solid #9ab474; }
.mini-chart i { display: block; width: 10px; height: 40%; background: #87ad48; border-radius: 3px 3px 0 0; transform-origin: bottom; animation: bar-breathe 4s ease-in-out infinite; }
.mini-chart i:nth-child(2) { height: 62%; animation-delay: -.4s; }
.mini-chart i:nth-child(3) { height: 48%; animation-delay: -.8s; }
.mini-chart i:nth-child(4) { height: 90%; animation-delay: -1.2s; }
.visual-grow { background: #fff3dc; }
.visual-grow .mini-app { color: #987026; border-color: #efdab5; }
.visual-grow .visual-tag { color: #7f6740; }
.mini-portfolio { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 52px; transform: rotate(-5deg); }
.mini-portfolio i { height: 18px; border: 1px solid #e3c384; border-radius: 4px; background: #fff; }
.mini-portfolio i:first-child { grid-column: span 2; height: 14px; background: #e8c479; }
.lesson-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 9px; background: #f0f4fa; }
.lesson-controls button { border: 0; min-height: 38px; padding: 7px 4px; border-radius: 6px; font-size: .7rem; line-height: 1.3; color: #5a6d87; background: transparent; font-weight:600; }
.lesson-controls button[aria-pressed='true'] { color: var(--blue); background: white; box-shadow: 0 2px 6px #29487812; }
.lesson-controls button:hover { color: var(--blue); background: #ffffffb0; }
.hero-preview .preview-tip { margin: 9px 0 11px; color: #687993; font-size: .65rem; line-height: 1.4; text-align: center; }
.lesson-progress { overflow: hidden; height: 3px; border-radius: 4px; background: #e9eff8; }
.lesson-progress span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card .icon { transition: transform .25s ease; }
.card:focus-within { border-color: #a5bfef; box-shadow: 0 12px 30px #12345a0c; }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-6px); border-color: #a5bfef; box-shadow: 0 16px 35px #12345a0c; }
  .card:hover .icon { transform: rotate(-6deg) scale(1.06); }
}
[data-reveal] { transition: opacity .55s ease, transform .55s ease, box-shadow .25s ease, border-color .25s ease; }
[data-reveal='pending'] { opacity: 0; transform: translateY(18px); }
[data-reveal='pending']:focus-within { opacity: 1; transform: none; }
[data-motion='paused'] .motion-scene, [data-motion='paused'] .card:hover, [data-motion='paused'] .card:hover .icon { transform: none; }
[data-motion='paused'] .motion-scene { transition: none; }
[data-motion='paused'] .motion-scene *, [data-motion='paused'] .hero-preview * { animation-play-state: paused; }
[data-scene-motion='paused'] .motion-scene *, [data-scene-motion='paused'] .hero-preview * { animation-play-state: paused; }
[data-motion='paused'] .lesson-panel:not([hidden]) { animation: none; }
[data-motion='paused'] [data-reveal] { opacity: 1; transform: none; transition: none; }
@keyframes ambient-float { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(24px, -24px, 0); } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes cursor-nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -6px); } }
@keyframes bar-breathe { 0%, 100% { transform: scaleY(.88); } 50% { transform: scaleY(1); } }
@keyframes panel-enter { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 781px) and (max-width: 1050px) {
  .hero { min-height: 0; display: block; padding-bottom: 40px; }
  .hero-inner { margin: 0 auto; padding: 75px 0 0; }
  .hero-preview { position: relative; right: auto; bottom: auto; margin: 30px 24px 0 auto; width: 322px; }
}
@media (max-width: 780px) {
  .hero { display: block; min-height: 0; padding-bottom: 40px; background: #f5f8ff; }
  .hero-inner { padding-top: 73px; }
  .hero-media { top: auto; bottom: 0; height: 520px; width: 100%; object-position: 65% center; }
  .hero:after { background: linear-gradient(180deg, #f5f8ff 0%, #f5f8ff 55%, #f5f8ff00 75%); }
  .hero-preview { position: relative; right: auto; bottom: auto; margin: 105px 24px 0 auto; width: min(342px, calc(100% - 48px)); }
  .page-intro { padding-top: 70px; }
}
@media (max-width: 420px) {
  .hero-preview { margin-right: 18px; width: calc(100% - 36px); margin-top: 100px; }
  .hero .pill { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-scene, .card:hover, .card:hover .icon, [data-reveal] { transform: none !important; opacity: 1 !important; }
}
