/* Concept 3 "Orbit Network" animation layer — home page only. Rest of the site is unchanged. */
body[data-page="home"] #bg { display: none; }

/* Dark hero with live module network */
.hero.section.hero-orbit { background: #0d0b2b !important; }
.hero-orbit { background: #0d0b2b; color: #E8EAF6; overflow: hidden; isolation: isolate; }
.hero-orbit::before, .hero-orbit::after, .hero-orbit .aurora, .hero-orbit .cursor-glow { display: none !important; }
.ho-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-orbit .hero-inner { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-orbit .hero-inner::before { content: ''; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 30% 50%, rgba(13,11,43,.85) 0 35%, transparent 70%); }

.hero-orbit h1 { color: #fff; }
.hero-orbit h1 .jde { color: #A79BF5; }
.hero-orbit .rotline { color: #fff; }
.hero-orbit .rot { color: #5CCBEB; }
.hero-orbit .hero-sub { color: #B8BCDB; }
.hero-orbit .badge { background: rgba(255,255,255,.06); border-color: rgba(167,155,245,.35); color: #E8EAF6; }
.hero-orbit .btn-ghost { background: transparent; color: #fff; border-color: rgba(167,155,245,.6); }
.hero-orbit .btn-ghost:hover { background: rgba(167,155,245,.18); border-color: #A79BF5; color: #fff; }
.hero-orbit .btn-primary { animation: ho-glow 2.6s infinite; }
@keyframes ho-glow { 0% { box-shadow: 0 0 0 0 rgba(0,164,212,.55), 0 12px 28px rgba(60,42,152,.34); } 70%, 100% { box-shadow: 0 0 0 14px rgba(0,164,212,0), 0 12px 28px rgba(60,42,152,.34); } }
.hero-orbit .assure li { color: #C9CCE8; }
.hero-orbit .assure li svg { color: #4ADE9B; }
.hero-orbit .hstats { background: rgba(20,18,63,.75); border-color: rgba(167,155,245,.22); box-shadow: none; backdrop-filter: blur(6px); }
.hero-orbit .hstat { border-color: rgba(167,155,245,.15); }
.hero-orbit .hstat-n { color: #fff; }
.hero-orbit .hstat-l { color: #A9AED3; }

/* Typing command line */
.ho-type { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #A79BF5; font-size: 14.5px; min-height: 22px; margin-bottom: 14px; }
.ho-type::after { content: '▍'; animation: ho-blink 1s steps(1) infinite; }
@keyframes ho-blink { 50% { opacity: 0; } }

/* Orbit of books around the logo */
.ho-orbit { container-type: inline-size; position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin: 0 auto; }
.ho-core { position: absolute; inset: 38%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 55%, rgba(255,255,255,.18) 56%, transparent 72%); box-shadow: 0 0 80px rgba(0,164,212,.6); animation: ho-pulse 3s ease-in-out infinite; }
.ho-core img { width: 44%; height: auto; }
@keyframes ho-pulse { 50% { box-shadow: 0 0 130px rgba(0,164,212,.9); } }
.ho-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(167,155,245,.3); animation: ho-spin var(--t) linear infinite; }
.ho-ring.r1 { inset: 22%; --t: 30s; }
.ho-ring.r2 { inset: 8%; --t: 48s; animation-direction: reverse; }
.ho-ring.r3 { inset: -3%; --t: 70s; }
.ho-ring a { position: absolute; left: 50%; top: 50%; width: var(--w); margin: calc(var(--w) * -.75) 0 0 calc(var(--w) * -.5); transform: rotate(var(--a)) translate(var(--rad)) rotate(calc(-1 * var(--a))); text-decoration: none; }
.ho-ring a .ocv { animation: ho-spin var(--t) linear infinite reverse; }
.ho-ring.r2 a .ocv { animation-direction: normal; }
.ho-ring a:hover .ocv { box-shadow: 0 0 40px rgba(92,203,235,.9); }
.ho-orbit:hover .ho-ring, .ho-orbit:hover .ocv { animation-play-state: paused; }
@keyframes ho-spin { to { transform: rotate(360deg); } }

/* Mini cover used in the orbit */
.ocv { position: relative; aspect-ratio: 2 / 3; border-radius: 2px 6px 6px 2px; overflow: hidden; color: #fff; padding: 9% 8% 8% 13%; display: flex; flex-direction: column; font-size: var(--f); background: linear-gradient(155deg, var(--c) 0%, #07061c 140%); box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 4px 0 0 rgba(0,0,0,.28); transition: box-shadow .3s; }
.ocv::after { content: ''; position: absolute; right: -30%; top: -18%; width: 80%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.ocv-s { font-size: .55em; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; opacity: .7; }
.ocv-m { margin-top: auto; font-size: .6em; letter-spacing: .1em; font-weight: 800; text-transform: uppercase; color: #7fdcf7; }
.ocv-t { font-family: var(--display); font-weight: 800; font-size: 1.05em; line-height: 1.12; margin: .3em 0 .4em; }
.ocv-b { align-self: flex-start; background: #fff; color: #0B0A2E; font-size: .55em; font-weight: 800; padding: .3em .5em; border-radius: 2px; }

/* Flip-over covers in the home "books" section */
#home-books .book.ho-flip { perspective: 1000px; }
.ho-flip-in { position: relative; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
#home-books .book.ho-flip:hover .ho-flip-in, #home-books .book.ho-flip:focus-visible .ho-flip-in { transform: rotateY(180deg); }
.ho-flip-in .cover { backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: none !important; }
.ho-back { position: absolute; inset: 0; transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 10px 3px 3px 10px; background: linear-gradient(160deg, #fff, #E9EDFA); border: 1px solid #E0E3F2; box-shadow: 0 22px 44px rgba(10,20,40,.2); padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; color: #0B0A2E; }
.ho-back small { color: #4F5675; font-weight: 700; font-size: 12px; }
.ho-back b { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.ho-back span.go { margin-top: auto; text-align: center; padding: 11px; border-radius: 8px; background: #0B0A2E; color: #fff; font-weight: 800; font-size: 14px; }

@media (max-width: 960px) {
  .hero-orbit .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-orbit .hero-side, .hero-orbit .ho-orbit { display: block; }
  .ho-orbit { max-width: 440px; margin-top: 24px; }
}
@media (max-width: 600px) { .ho-orbit { max-width: 340px; } }
@media (prefers-reduced-motion: reduce) {
  .ho-ring, .ho-ring a .ocv, .ho-core, .hero-orbit .btn-primary, .ho-type::after { animation: none !important; }
}
