:root { color-scheme: dark; font-family: Manrope, ui-sans-serif, system-ui, sans-serif; background: #050710; color: #f4f5fb; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #050710; color: #f4f5fb; }
a { color: inherit; text-decoration: none; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; right: 0; height: 88px; display: flex; align-items: center; gap: 4vw; padding: 0 clamp(24px, 5vw, 80px); border-bottom: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, rgba(3,5,14,.65), transparent); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .18em; white-space: nowrap; }
.brand b { display: block; color: #8992aa; font-size: 8px; letter-spacing: .28em; margin-top: 3px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(183,165,255,.55); border-radius: 50%; transform: rotate(-20deg) scaleY(.45); }
.brand-mark i { width: 13px; height: 13px; border-radius: 50%; background: #c6baff; box-shadow: 0 0 20px #856dff; transform: scaleY(2.2); }
nav { display: flex; gap: clamp(20px, 3vw, 46px); margin-left: auto; }
nav a { color: #c0c5d4; font-size: 12px; transition: color .2s; }
nav a:hover { color: #fff; }
.online { display: flex; align-items: center; gap: 8px; color: #aeb5c7; font-size: 11px; white-space: nowrap; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: #6ee7ac; box-shadow: 0 0 12px rgba(110,231,172,.8); }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #080916 url('/static/galaxy-hero.png') center/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,5,14,.97) 0%, rgba(3,5,14,.8) 38%, rgba(3,5,14,.16) 72%), linear-gradient(0deg, rgba(5,7,16,.8), transparent 30%); }
.hero-content { position: relative; z-index: 2; width: min(760px, 90%); margin-left: clamp(24px, 9vw, 150px); padding: 140px 0 100px; }
.eyebrow, .section-label { margin: 0 0 25px; color: #a796f1; font-size: 10px; font-weight: 700; letter-spacing: .25em; }
h1 { margin: 0; font-size: clamp(52px, 7.2vw, 110px); font-weight: 500; line-height: .93; letter-spacing: -.055em; }
h1 em { color: #c8bdf7; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; }
.hero-copy { max-width: 590px; margin: 32px 0; color: #b2b7c8; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button { padding: 16px 22px; border: 1px solid rgba(255,255,255,.2); border-radius: 3px; font-size: 12px; font-weight: 600; transition: .25s; }
.button-primary { background: #9e8be7; border-color: #9e8be7; color: #080913; }
.button-primary span { margin-left: 25px; }
.button-primary:hover { background: #b5a6ef; transform: translateY(-2px); }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.object-note { position: absolute; z-index: 2; right: clamp(25px, 6vw, 90px); bottom: 75px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.4); }
.object-note span, .object-note small { display: block; color: #a5abbd; font-size: 8px; letter-spacing: .2em; }
.object-note strong { display: block; margin: 5px 0; font-size: 18px; letter-spacing: .08em; }
.object-note small { letter-spacing: .06em; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 28px; width: 24px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 20px; }
.scroll-cue span { position: absolute; width: 3px; height: 7px; left: 10px; top: 8px; border-radius: 2px; background: #fff; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

.section { padding: clamp(80px, 10vw, 150px) clamp(24px, 9vw, 150px); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; background: radial-gradient(circle at 15% 50%, rgba(91,71,172,.12), transparent 30%), #070914; }
h2 { margin: 0; font-size: clamp(38px, 4.5vw, 68px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.intro-copy > p, .section-heading > p, .sky-copy > p:last-child { margin: 0; color: #9ca3b7; line-height: 1.8; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 58px; padding-top: 30px; border-top: 1px solid #242837; }
.stats strong { display: block; color: #c4b7f3; font-size: clamp(24px, 2.5vw, 38px); font-weight: 500; }
.stats span { display: block; margin-top: 7px; color: #777f94; font-size: 10px; line-height: 1.5; }

.programs { background: #0a0c18; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 55px; }
.section-heading > p { max-width: 430px; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #242837; }
.program-grid article { position: relative; min-height: 410px; padding: 30px; overflow: hidden; border-right: 1px solid #242837; background: linear-gradient(150deg, rgba(255,255,255,.025), transparent); }
.program-grid article:last-child { border-right: 0; }
.program-grid article > span { color: #6f7589; font-size: 10px; }
.card-orbit { position: absolute; top: 55px; left: 50%; width: 170px; height: 170px; border: 1px solid rgba(167,150,241,.3); border-radius: 50%; transform: translateX(-50%) rotate(-20deg) scaleY(.45); }
.card-orbit::before { content: ''; position: absolute; inset: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #e4ddff, #7764c8 30%, #171426 68%); box-shadow: 0 0 60px rgba(126,101,222,.35); transform: scaleY(2.2); }
.orbit-b { transform: translateX(-50%) rotate(18deg) scaleY(.55); }
.orbit-b::before { background: radial-gradient(circle at 40% 30%, #ffe9c4, #b66c70 32%, #231522 70%); }
.orbit-c { border-style: dashed; transform: translateX(-50%) rotate(-42deg) scaleY(.38); }
.orbit-c::before { background: radial-gradient(circle at 40% 30%, #d6ecff, #567fc3 34%, #101625 70%); }
.program-grid h3 { margin: 220px 0 14px; font-size: 22px; font-weight: 500; }
.program-grid p { color: #8f96a9; font-size: 13px; line-height: 1.65; }
.program-grid small { position: absolute; bottom: 25px; color: #7669af; font-size: 8px; letter-spacing: .15em; }

.sky { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: center; background: radial-gradient(circle at 80% 50%, rgba(67,57,121,.18), transparent 35%), #060811; }
.sky-copy > p:last-child { max-width: 510px; margin-top: 28px; }
.telemetry { border-top: 1px solid #272a38; }
.telemetry > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 25px 0 20px; border-bottom: 1px solid #272a38; }
.telemetry span { color: #9ba1b4; font-size: 12px; }
.telemetry strong { font-size: 13px; font-weight: 600; }
.telemetry i { grid-column: 1 / -1; position: relative; height: 2px; background: #252939; }
.telemetry i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--level); background: #9c8add; box-shadow: 0 0 12px rgba(156,138,221,.5); }
.telemetry .green { color: #6ee7ac; }
.telemetry .green-bar::after { background: #53d699; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 36px clamp(24px, 5vw, 80px); border-top: 1px solid #222633; background: #04060d; color: #747b8e; font-size: 9px; letter-spacing: .08em; }
.constellation-gate { position: absolute; z-index: 4; right: clamp(52px, 12vw, 190px); bottom: 17%; width: clamp(160px, 17vw, 240px); aspect-ratio: 1; opacity: .76; transition: opacity .3s; }
.constellation-gate:hover { opacity: 1; }
.gate-star { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(221, 228, 255, .64); cursor: pointer; }
.gate-star span { display: block; font-size: 12px; filter: drop-shadow(0 0 5px rgba(184, 172, 255, .65)); animation: secret-twinkle 2.8s ease-in-out infinite; transition: color .2s, filter .2s, transform .2s; }
.gate-star:hover span, .gate-star.active span { color: #fff; filter: drop-shadow(0 0 11px #b5a5ff); transform: scale(1.4); }
.gate-star.active span { color: #c9bdff; }
.star-north { top: 0; left: calc(50% - 21px); }
.star-east { top: calc(50% - 21px); right: 0; }
.star-south { bottom: 0; left: calc(50% - 21px); }
.star-west { top: calc(50% - 21px); left: 0; }
.star-center { top: calc(50% - 21px); left: calc(50% - 21px); }
.star-east span { animation-delay: -.55s; }
.star-south span { animation-delay: -1.15s; }
.star-west span { animation-delay: -1.7s; }
.star-center span { animation-delay: -2.2s; font-size: 16px; }
.constellation-status { position: absolute; top: calc(100% + 10px); left: 50%; width: max-content; color: #b5a6ef; font-size: 8px; font-weight: 700; letter-spacing: .18em; opacity: 0; transform: translateX(-50%); transition: opacity .2s; }
.constellation-status.visible { opacity: 1; }
.constellation-gate.mistake { animation: constellation-mistake .45s ease; }
@keyframes secret-twinkle { 0%, 100% { opacity: .26; transform: scale(.78); } 45% { opacity: 1; transform: scale(1.22); } 65% { opacity: .58; transform: scale(.94); } }
@keyframes constellation-mistake { 25% { transform: translateX(-4px); opacity: .35; } 65% { transform: translateX(4px); } }

@media (max-width: 820px) {
  .site-header { height: 72px; } nav { display: none; } .online { margin-left: auto; font-size: 0; }
  .hero { min-height: 820px; background-position: 58% center; } .hero-shade { background: linear-gradient(90deg, rgba(3,5,14,.95), rgba(3,5,14,.45)), linear-gradient(0deg, rgba(5,7,16,.9), transparent 40%); }
  .hero-content { margin-left: 24px; padding-right: 24px; } .object-note { right: 24px; bottom: 58px; }
  .intro, .sky { grid-template-columns: 1fr; } .section-heading { display: block; } .section-heading > p { margin-top: 25px; }
  .program-grid { grid-template-columns: 1fr; } .program-grid article { border-right: 0; border-bottom: 1px solid #242837; } .program-grid article:last-child { border-bottom: 0; }
  footer { flex-direction: column; align-items: flex-start; }
  .constellation-gate { right: 28px; bottom: 70px; width: 175px; }
}
@media (max-width: 520px) {
  .site-header { padding: 0 18px; } .hero { min-height: 760px; } .hero-content { margin-left: 18px; width: calc(100% - 36px); } h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; text-align: center; } .object-note, .scroll-cue { display: none; }
  .constellation-gate { right: 18px; bottom: 28px; width: 145px; opacity: .88; }
  .gate-star { width: 36px; height: 36px; }
  .star-north, .star-south { left: calc(50% - 18px); }
  .star-east, .star-west, .star-center { top: calc(50% - 18px); }
  .star-center { left: calc(50% - 18px); }
  .section { padding: 75px 20px; } .stats { grid-template-columns: 1fr; } .stats div { display: flex; align-items: baseline; gap: 15px; }
  .program-grid article { min-height: 390px; padding: 24px; }
}
