/* Final visual layer: quieter typography, continuous light, and a minimal entry. */
@font-face { font-family: "Caerphilly"; src: url('./assets/fonts/caerphilly.otf') format('opentype'); font-style: normal; font-weight: 400; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF; }
[hidden] { display: none !important; }
:root { --display-font: var(--site-font); --display-weight: 500; --pink: #5b8dff; --violet: #647cff; --cyan: #69d8ff; --tech-blue: linear-gradient(115deg, #67d9ff 0%, #378dff 52%, #5264f5 100%); }
body::before { opacity: .12 !important; }
.brand { font-size: 15px; font-weight: 500; letter-spacing: .12em; gap: 8px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-logo { filter: invert(1); }
.hero { isolation: isolate; }
.hero-copy h1 { font-family: var(--display-font); font-weight: var(--display-weight); font-size: clamp(54px, 6.5vw, 96px); line-height: 1.2; letter-spacing: -.055em; margin-bottom: 36px; }
.hero-title-line { display: block; color: var(--ink); font: inherit; letter-spacing: inherit; white-space: nowrap; }
.hero-actions { margin-top: 0; }
.section .eyebrow, .section-count, .orbit-label { display: none; }
.section h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: .02em; font-weight: 400; margin-top: 0; }
.membership-plan { background: rgba(255,255,255,.025); border-radius: 12px; }
.membership-plan h3 { font-size: 21px; font-weight: 500; }
.membership-plan .plan-features { padding-bottom: 24px; }
.membership-plan .price-pending strong { font-size: 28px; letter-spacing: .02em; }
.purchase-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.course-grid-single { grid-template-columns: 1fr; }
.course-grid-single .product-card { min-height: 240px; }
.course-meta small { color: var(--muted); font-size: 11px; }
.faq-list a { overflow-wrap: anywhere; }
.membership-plan .group-label { font-size: 9px; opacity: .75; letter-spacing: .13em; }
.plan-standard, .plan-partner { box-shadow: none; border-color: var(--line-strong); }
.plan-badge { font: 10px var(--site-font); padding: 5px 9px; }
.signal-panel { background: transparent !important; }
.signal-panel::before { display: none; }
.signal-intro h2 { line-height: 1.45; }
.signal-intro h2 span { color: var(--ink); }
.footer-pill { box-shadow: none; }
.pill-tete { background: #151515; border-color: #383838; color: #fff; }
.pill-tete img { filter: invert(1); }
.entry-screen { position: fixed; inset: 0; z-index: 100; isolation: isolate; display: grid; place-items: center; background: #06080b; color: #f5f4f0; padding: 48px; overflow: auto; transition: opacity .38s ease, visibility .38s; }
.entry-screen::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 34%; background: url('./assets/home-background.webp') center 38% / cover no-repeat; mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.12) 7%, rgba(0,0,0,.62) 19%, #000 32%, #000 70%, rgba(0,0,0,.62) 85%, rgba(0,0,0,.12) 96%, transparent 100%); filter: saturate(.78) contrast(1.08); }
.entry-screen::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #06080b 3%, rgba(6,8,11,.97) 20%, rgba(6,10,18,.66) 48%, rgba(6,16,33,.16) 74%, rgba(6,8,11,.6)), linear-gradient(0deg, #06080b, transparent 32%, rgba(4,10,21,.15) 75%, #06080b); }
.entry-content { text-align: left; width: min(100%, 1184px); animation: entry-reveal 1s ease both; }
.entry-logo { filter: invert(1); object-fit: contain; margin-bottom: 18px; }
.entry-eyebrow { font: 10px var(--site-font); letter-spacing: .25em; color: #92969f; margin-bottom: 20px; }
.entry-content h1 { font-family: var(--site-font); font-size: clamp(38px, 5.3vw, 72px); max-width: 600px; line-height: 1.3; letter-spacing: 0; font-weight: 400; margin: 0 0 38px; text-shadow: 0 2px 32px #06080b; }
.entry-actions { display: flex; gap: 12px; justify-content: flex-start; }
.entry-actions a { min-width: 145px; min-height: 48px; padding: 0 22px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; font-size: 12px; border-radius: 4px; transition: background .2s, transform .2s; }
.entry-primary { position: relative; isolation: isolate; overflow: hidden; color: #031426; background: linear-gradient(115deg, #739fb5 0%, #568eaf 52%, #467da5 100%); border: 1px solid rgba(160,198,221,.48); box-shadow: 0 4px 30px rgba(72,127,166,.17), inset 0 1px rgba(220,237,247,.25); font-weight: 600; }
.entry-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 36px rgba(78,140,184,.28); transform: translateY(-2px); }
.entry-primary::after { content: ""; position: absolute; inset: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(222,239,250,.24), transparent); transform: translateX(-150%) skewX(-18deg); pointer-events: none; }
.entry-secondary { color: #e2e5ec; border: 1px solid #2c3038; }
.entry-secondary:hover { background: #141820; transform: translateY(-2px); }
.entry-note { font-size: 10px; color: #6e7581; margin: 24px 0 0; letter-spacing: .03em; }
@keyframes entry-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(260px circle at var(--pointer-x, 70%) var(--pointer-y, 50%), rgba(157,121,255,.14), transparent 85%); }
.hero.pointer-active::after { opacity: 1; }
.moon-dust { width: 100%; height: 100%; position: absolute; inset: 0; pointer-events: none; mask-image: radial-gradient(ellipse, #000 30%, transparent 72%); }
.moon-halo { position: absolute; width: 83%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(123,106,238,.5), rgba(168,163,239,.05), rgba(68,183,220,.42), transparent); filter: blur(16px); mask-image: radial-gradient(circle, transparent 48%, #000 59%, transparent 73%); }
.hero-visual .squad-core span { display: none; }
.hero-visual .squad-core::before, .hero-visual .squad-core::after { display: none; }
.hero-visual.moon-silver .squad-core { background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.8), transparent 47%), url('./assets/moon-surface.svg') center / cover, #d4d6dd; box-shadow: inset -25px -16px 40px rgba(49,52,76,.25), 0 20px 65px rgba(108,113,151,.14), 0 0 0 1px rgba(144,148,173,.16); }
.hero-visual .orbit { opacity: .44; }
.hero-visual.moon-eclipse .squad-core { background: radial-gradient(circle at 35% 25%, #f9fafb, #e8eaf2 67%, #dadde8); box-shadow: inset -10px -12px 30px rgba(74,79,121,.09), 0 0 0 1px rgba(120,121,160,.2), 0 0 38px rgba(145,133,211,.25); }
:root[data-theme="night"] .hero-visual.moon-eclipse .squad-core { background: radial-gradient(circle at 40% 30%, #11131c, #06080c 70%); box-shadow: 0 0 0 1px #626185, 0 0 32px rgba(137,112,218,.3); }
.hero-visual.moon-eclipse .orbit-a, .hero-visual.moon-eclipse .orbit-b { border-radius: 50%; width: 82%; height: auto; aspect-ratio: 1; box-shadow: none; }
.hero-visual.moon-eclipse .orbit-b { width: 94%; opacity: .17; }
.hero-visual.moon-eclipse .moon-halo { width: 96%; filter: blur(12px); opacity: .9; }
.hero-visual.moon-crescent .squad-core { background: linear-gradient(125deg, #fff 10%, #c0c6dc 80%); mask-image: radial-gradient(circle at 68% 32%, transparent 58%, #000 59%); box-shadow: inset 14px 4px 16px -8px #fff; transform: rotate(-15deg) !important; }
:root[data-theme="night"] .hero-visual.moon-crescent .squad-core { box-shadow: inset 25px 6px 9px -9px #e1e4f1, inset 35px 4px 19px -15px #fff, -8px 0 30px -12px rgba(124,127,186,.6); }
.hero-visual.moon-crescent .orbit-a { width: 84%; height: auto; aspect-ratio: 1; border-color: rgba(138,144,181,.3); box-shadow: none; }
.hero-visual.moon-crescent .orbit-b, .hero-visual.moon-crescent .star-b { display: none; }
.hero-visual.moon-crescent .moon-halo { opacity: .25; }
.moon-satellite { position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%; pointer-events: none; z-index: 3; }
.moon-satellite i { position: absolute; top: 50%; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px #bbc5ed, 0 0 18px 4px rgba(116,145,239,.6); }
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.gradient-button { isolation: isolate; overflow: hidden; border-color: rgba(92,158,255,.4); background: rgba(61,128,255,.09); box-shadow: 0 0 24px rgba(49,122,255,.13); }
.gradient-button::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--beam-angle), transparent 15%, #4e77ff 42%, #79c9ff 65%, #b7eeff 85%, transparent); mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0); }
.gradient-button::after { content: ""; position: absolute; inset: 0; pointer-events: none; width: 35%; background: linear-gradient(90deg, transparent, rgba(178,160,235,.18), transparent); transform: translateX(-150%) skewX(-18deg); }
.product-card::before, .membership-plan::before, .plan-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(280px circle at var(--shine-x,50%) var(--shine-y,50%), rgba(164,137,242,.2), transparent 75%); transition: opacity .3s; }
.membership-plan::after { content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(190px circle at var(--shine-x,50%) var(--shine-y,50%), #afa0eb, transparent); mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0); transition: opacity .3s; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-card, .membership-plan, .plan-card { transform: perspective(900px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)); transition: transform .2s ease-out, border-color .3s, box-shadow .3s; }
  .product-card.pointer-active, .membership-plan.pointer-active { transform: perspective(900px) translateY(-4px) rotateX(var(--tilt-y,0deg)) rotateY(var(--tilt-x,0deg)); }
  .pointer-active::before, .membership-plan.pointer-active::after { opacity: 1; }
  .product-card:hover .card-symbol { scale: 1.14; }
  .footer-pill:hover img { transform: rotate(-8deg) scale(1.12); }
}
.footer-pill img, .card-symbol { transition: transform .3s, scale .3s; }
@media (prefers-reduced-motion: no-preference) {
  .gradient-button::before { animation: beam-flow 4s linear infinite; }
  .gradient-button::after, .entry-primary::after { animation: button-glint 6s ease-in-out infinite; }
  .moon-halo { animation: halo-flow 22s linear infinite; }
  .moon-satellite { animation: halo-flow 18s linear infinite; }
  .orbit-a { animation: orbitDriftA 12s ease-in-out infinite; }
  .orbit-b { animation: orbitDriftB 15s ease-in-out infinite; }
}
@keyframes beam-flow { to { --beam-angle: 360deg; } }
@keyframes halo-flow { to { rotate: 360deg; } }
@keyframes button-glint { 0%, 65% { transform: translateX(-150%) skewX(-18deg); opacity: 0; } 72% { opacity: 1; } 95%, 100% { transform: translateX(400%) skewX(-18deg); opacity: 0; } }
@media (max-width: 850px) {
  .hero-copy h1 { font-size: clamp(46px, 10vw, 78px); }
  .hero-visual .core { width: 180px; height: 180px; }
  .hero-visual { width: min(100%, 480px); justify-self: center; }
  .hero-actions { flex-direction: row; align-items: center; max-width: none; }
  .moon-halo { width: 270px; }
  .moon-satellite { width: 250px; }
}
@media (max-width: 420px) { .entry-actions { gap: 10px; } .entry-actions a { min-width: 0; flex: 1; padding: 0 16px; gap: 16px; } .entry-content h1 { font-size: 36px; } }
@media (prefers-reduced-motion: reduce) { .entry-content { animation: none; } .hero::after { display: none; } }

/* The supplied blue moon, suspended above a quiet retro-future horizon. */
:root[data-theme="night"] { color-scheme: dark; }
:root[data-theme] .hero { background: transparent; }
.hero:has(.moon-minimal)::after { background: radial-gradient(300px circle at var(--pointer-x,70%) var(--pointer-y,50%), rgba(59,136,255,.1), transparent 85%); }
.hero { min-height: 580px; padding-top: 42px; padding-bottom: 34px; }
.moon-minimal { --lunar-edge: rgba(140,206,255,.6); --lunar-glow: rgba(55,139,255,.3); background: transparent; height: 500px; }
.lunar-mark { width: clamp(320px, 29vw, 400px); aspect-ratio: 1; position: relative; z-index: 2; margin-top: -42px; transform: translate3d(var(--core-x,0px), var(--core-y,0px), 0); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.lunar-mark > div { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.lunar-mark .lunar-aura { inset: -22%; background: radial-gradient(circle, transparent 39%, var(--lunar-glow) 51%, transparent 69%); filter: blur(20px); opacity: .55; }
.lunar-disc { overflow: hidden; isolation: isolate; background: transparent; filter: drop-shadow(0 0 16px rgba(74,160,255,.15)); }
.lunar-disc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url('./assets/blue-moon.webp') center / contain no-repeat; }
.lunar-disc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(130deg, transparent 38%, rgba(4,13,31,.12) 65%, rgba(4,10,21,.5)); }
.lunar-rim { background: conic-gradient(from 190deg, transparent 9%, var(--lunar-edge) 34%, rgba(211,242,255,.8) 48%, transparent 65%); mask-image: radial-gradient(closest-side, transparent calc(100% - 1px), #000 100%); }
.lunar-grid { position: absolute; left: -10%; right: -10%; top: calc(100% - 50px); height: 160px; background-image: linear-gradient(rgba(72,134,245,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(72,134,245,.3) 1px, transparent 1px); background-size: 48px 32px; transform: perspective(200px) rotateX(57deg); transform-origin: center top; mask-image: radial-gradient(ellipse at 50% 10%, #000, transparent 68%); background-position: var(--grid-x,0px) var(--grid-y,0px); transition: background-position .7s ease-out; opacity: .55; }
.lunar-horizon { position: absolute; left: -8%; right: -8%; bottom: 50px; height: 1px; background: linear-gradient(90deg, transparent, #4b78ff 25%, #c2e8ff 50%, #4b78ff 75%, transparent); box-shadow: 0 0 15px 1px rgba(69,144,255,.45); }
.lunar-horizon::before { content: ""; position: absolute; width: 90%; left: 5%; height: 70px; top: -35px; background: radial-gradient(ellipse, rgba(51,111,255,.4), transparent 67%); filter: blur(12px); }
.plan-badge:not(.plan-badge-dark) { background: linear-gradient(110deg, #227ecb, #4b64d9); }
.plan-features li::before { color: #78baff; }
.plan-partner, .plan-standard { border-color: rgba(106,157,246,.24); }
.product-card::before, .membership-plan::before, .plan-card::before { background: radial-gradient(280px circle at var(--shine-x,50%) var(--shine-y,50%), rgba(79,147,255,.16), transparent 75%); }
.membership-plan::after { background: radial-gradient(190px circle at var(--shine-x,50%) var(--shine-y,50%), #8bc9ff, transparent); }
.gradient-button:hover { box-shadow: 0 0 30px rgba(59,138,255,.3); }
@media (prefers-reduced-motion: no-preference) {
  .lunar-rim { animation: lunar-turn 36s linear infinite; }
  .lunar-aura { animation: lunar-breathe 8s ease-in-out infinite; }
  .lunar-mark { animation: lunar-float 10s ease-in-out infinite; }
  .lunar-horizon::before { animation: lunar-breathe 6s ease-in-out infinite; }
}
@keyframes lunar-turn { to { transform: rotate(360deg); } }
@keyframes lunar-breathe { 0%, 100% { opacity: .35; transform: scale(.98); } 50% { opacity: .7; transform: scale(1.025); } }
@keyframes lunar-float { 0%, 100% { translate: 0 5px; } 50% { translate: 0 -5px; } }
@media (max-width: 850px) {
  .hero { padding-top: 48px; }
  .moon-minimal { height: 410px; margin-top: 28px; width: min(100%, 520px); }
  .lunar-mark { width: min(78vw, 340px); margin-top: -20px; }
  .lunar-horizon { bottom: 35px; }
  .lunar-grid { top: calc(100% - 35px); }
  .entry-screen { padding: 32px; }
  .entry-screen::before { inset: 0; background-position: 70% center; background-size: cover; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 84%, transparent); }
  .entry-screen::after { background: linear-gradient(90deg, rgba(6,8,11,.88), rgba(6,8,11,.32)), linear-gradient(0deg, #06080b, transparent 65%); }
  .entry-content h1 { max-width: 480px; }
}
@media (max-width: 520px) {
  .entry-screen { padding: 28px; align-items: end; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
  .entry-screen::before { background-position: 50% top; background-size: auto 100%; mask-image: linear-gradient(90deg, rgba(0,0,0,.45), #000 13%, #000 87%, rgba(0,0,0,.45)); }
  .entry-screen::after { background: linear-gradient(0deg, #06080b 2%, rgba(6,10,18,.94) 23%, rgba(6,10,18,.28) 65%, rgba(6,10,18,.18)); }
  .entry-content { text-align: center; }
  .entry-content h1 { font-size: 40px; margin-bottom: 28px; }
  .entry-eyebrow { margin-bottom: 14px; }
  .entry-logo { margin-bottom: 10px; }
  .entry-actions { justify-content: center; }
  .entry-actions a { min-height: 50px; }
  .moon-minimal { height: 355px; }
  .lunar-horizon { bottom: 25px; }
  .lunar-grid { top: calc(100% - 25px); }
}

/* Shared fade for entry buttons, navigation and section links. */
.navigation-fade { position: fixed; inset: 0; z-index: 1000; background: #06080b; opacity: 0; pointer-events: auto; }
/* Same-origin policy pages use the same opacity-only transition. */
@view-transition { navigation: auto; }
::view-transition { background: #06080b; }
::view-transition-old(root) { animation: page-fade-out .24s ease-in-out both; mix-blend-mode: normal; }
::view-transition-new(root) { animation: page-fade-in .38s .24s ease-in-out both; mix-blend-mode: normal; }
@keyframes page-fade-out { to { opacity: 0; } }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
.purchase-note a, .footer-policy a { text-decoration: underline; text-underline-offset: 4px; }
.footer-policy { max-width: var(--content-max); margin: 16px auto 0; color: var(--muted); font-size: 12px; }
.footer-policy a:hover { color: var(--ink); }
.footer-policy.policy-links { display: flex; gap: 12px 20px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
