@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #020609;
  --panel: rgba(3, 13, 18, .88);
  --green: #8dff00;
  --green-soft: #b5ff62;
  --blue: #087cff;
  --cyan: #20d8ff;
  --text: #d5f5e2;
  --muted: #789b8b;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  overflow: hidden;
}
.universe {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px 18px 66px;
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 100, 190, .14), transparent 43%),
    radial-gradient(ellipse at 50% 100%, rgba(0, 70, 30, .12), transparent 50%),
    linear-gradient(145deg, #010407, #031017 58%, #010407);
}
#starfield { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; }
.nebula {
  position: absolute; z-index: -3; width: 48vw; height: 48vw;
  max-width: 650px; max-height: 650px; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
}
.nebula--blue { left: -20%; top: -10%; background: #006cff; opacity: .16; animation: nebula-drift 18s ease-in-out infinite alternate; }
.nebula--green { right: -20%; bottom: -22%; background: #61ff00; opacity: .09; animation: nebula-drift 22s ease-in-out infinite alternate-reverse; }
.web {
  position: absolute; z-index: -2; width: min(72vw, 760px); aspect-ratio: 1;
  border-radius: 50%; opacity: .13; pointer-events: none;
  background:
    repeating-conic-gradient(from 7deg, transparent 0deg 14deg, rgba(35, 190, 255, .7) 14.2deg 14.4deg, transparent 14.6deg 22.5deg),
    repeating-radial-gradient(circle, transparent 0 36px, rgba(35, 190, 255, .7) 37px, transparent 38px 73px);
  mask-image: radial-gradient(circle, #000 12%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 12%, transparent 72%);
}
.web--left { left: -34%; top: -35%; animation: web-rotate 100s linear infinite; }
.web--right { right: -34%; bottom: -43%; opacity: .09; animation: web-rotate 130s linear infinite reverse; }

.orbit-system {
  position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(1000px, 105vw); height: min(600px, 65vw);
  min-height: 330px; transform: translate(-50%, -53%);
  pointer-events: none; perspective: 900px;
}
.orbit-core {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #e9ffff; box-shadow: 0 0 18px 6px rgba(32,216,255,.55), 0 0 65px 22px rgba(0,124,255,.18);
}
.orbit {
  position: absolute; left: 50%; top: 50%; width: 78%; height: 38%;
  border: 1px solid rgba(32, 177, 255, .25); border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  box-shadow: 0 0 20px rgba(0, 120, 255, .04), inset 0 0 18px rgba(0, 120, 255, .03);
}
.orbit::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border-top: 1px solid rgba(141,255,0,.36); transform: rotate(14deg);
}
.orbit--one { width: 85%; height: 32%; transform: translate(-50%, -50%) rotate(19deg); animation: orbit-glow 7s ease-in-out infinite; }
.orbit--two { width: 72%; height: 56%; transform: translate(-50%, -50%) rotate(-38deg); }
.orbit--three { width: 93%; height: 25%; transform: translate(-50%, -50%) rotate(-9deg); border-color: rgba(141,255,0,.18); }
.orbit--four { width: 61%; height: 67%; transform: translate(-50%, -50%) rotate(56deg); border-color: rgba(32,216,255,.18); }
.planet { position: absolute; left: 50%; top: -4px; display: block; width: 7px; height: 7px; border-radius: 50%; }
.planet--green { background: var(--green); box-shadow: 0 0 14px var(--green), 0 0 25px var(--green); }
.planet--blue { left: 12%; top: auto; bottom: 5%; background: #56aaff; box-shadow: 0 0 13px var(--blue); }
.planet--cyan { left: 3%; top: 25%; width: 5px; height: 5px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.planet--lime { left: 82%; top: auto; bottom: 12%; width: 5px; height: 5px; background: #d5ff00; box-shadow: 0 0 12px #d5ff00; }

.main-content { position: relative; z-index: 2; width: min(820px, 100%); animation: enter .9s ease-out both; }
.terminal-window {
  overflow: hidden; border: 1px solid rgba(69, 255, 170, .36); border-radius: 14px;
  background: var(--panel); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(0, 124, 255, .09), 0 25px 90px rgba(0,0,0,.55), 0 0 45px rgba(0, 124, 255, .08);
}
.terminal-bar {
  height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-bottom: 1px solid rgba(69,255,170,.15); background: rgba(9, 28, 31, .8);
}
.terminal-lights { display: flex; gap: 6px; }
.terminal-lights i { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.terminal-lights i:nth-child(2) { background: #febc2e; }
.terminal-lights i:nth-child(3) { background: #28c840; }
.terminal-title { color: #7da995; font-size: 11px; }
.terminal-live { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #8aa99b; font-size: 9px; letter-spacing: .1em; }
.terminal-live b { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); animation: blink 1.6s infinite; }
.terminal-body { padding: clamp(18px, 4vw, 36px) clamp(18px, 5vw, 48px) 23px; }
.terminal-logo-wrap { display: flex; justify-content: center; align-items: center; min-height: 120px; margin-bottom: 20px; }
.ava-logo { display: block; width: min(570px, 100%); max-height: 230px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(0, 120, 255, .2)); animation: logo-breathe 5s ease-in-out infinite; }
.terminal-line { color: #9bc5ae; font-size: clamp(10px, 1.4vw, 12px); line-height: 1.9; white-space: normal; }
.terminal-line.muted { color: #c3f5dc; margin-bottom: 7px; }
.prompt { color: var(--cyan); }
.ok { color: var(--green); }
.ellipsis::after { content: ""; display: inline-block; width: 1.2em; animation: ellipsis 1.4s steps(4, end) infinite; }
.headline-block { text-align: center; margin: clamp(22px, 4vw, 34px) 0 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #9bc6b2; font-size: clamp(8px, 1.2vw, 10px); letter-spacing: .17em; }
.signal { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { margin: 15px 0 10px; font-size: clamp(2.15rem, 7vw, 5.2rem); font-weight: 800; line-height: 1; letter-spacing: -.07em; color: #effff5; text-shadow: 0 0 28px rgba(0,255,110,.13); }
h1 span:first-of-type { color: var(--green); text-shadow: 0 0 24px rgba(141,255,0,.2); }
.cursor { display: inline-block; margin-left: .13em; color: var(--green); font-size: .65em; vertical-align: .12em; animation: cursor-blink 1s steps(2, start) infinite; }
.tagline { min-height: 1.6em; margin: 0; color: #8db9a4; font-size: clamp(11px, 1.6vw, 14px); }
.tagline::after { content: ""; display: inline-block; height: 1em; border-right: 1px solid var(--green); margin-left: 3px; vertical-align: -2px; animation: cursor-blink .9s steps(2, start) infinite; }
.progress-heading { display: flex; justify-content: space-between; gap: 12px; color: #86aa98; font-size: 10px; letter-spacing: .1em; margin-bottom: 9px; }
#progress-label { color: var(--green); font-weight: 700; }
.progress-track { height: 5px; border-radius: 10px; background: rgba(150,255,190,.1); overflow: hidden; box-shadow: inset 0 0 6px rgba(0,0,0,.4); }
.progress-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--green)); box-shadow: 0 0 12px rgba(32,216,255,.6); transition: width .12s linear; }
.terminal-footer-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 17px; border-top: 1px solid rgba(69,255,170,.14); color: #8cb29d; font-size: clamp(8px, 1.2vw, 10px); letter-spacing: .14em; }
.terminal-footer-line b { color: var(--blue); padding: 0 5px; }
.tiny-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: 7px; box-shadow: 0 0 8px var(--green); }
.footer-code { color: #4f9dc5; }
.bottom-note { text-align: center; color: #718e83; font-size: 10px; letter-spacing: .08em; margin: 17px 0 0; }
.bracket { color: var(--green); }
footer { position: absolute; z-index: 2; bottom: 19px; left: 12px; right: 12px; text-align: center; color: #526c62; font-size: 9px; letter-spacing: .12em; }
.footer-dot { color: var(--green); padding: 0 7px; }

@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes cursor-blink { to { visibility: hidden; } }
@keyframes ellipsis { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%,100% { content: "..."; } }
@keyframes logo-breathe { 0%,100% { filter: drop-shadow(0 0 10px rgba(0,120,255,.13)); } 50% { filter: drop-shadow(0 0 21px rgba(0,120,255,.27)); } }
@keyframes nebula-drift { from { transform: translate(0,0) scale(.9); } to { transform: translate(6vw,-3vh) scale(1.12); } }
@keyframes web-rotate { to { rotate: 360deg; } }
@keyframes orbit-glow { 0%,100% { opacity: .72; } 50% { opacity: 1; } }

@media (max-width: 600px) {
  body { overflow: auto; }
  .universe { min-height: 100svh; padding: 24px 12px 70px; }
  .main-content { width: 100%; }
  .terminal-bar { height: 37px; padding: 0 11px; gap: 9px; }
  .terminal-title { font-size: 9px; }
  .terminal-live { font-size: 7px; letter-spacing: .05em; }
  .terminal-body { padding: 18px 15px 18px; }
  .terminal-logo-wrap { min-height: 85px; margin-bottom: 14px; }
  .ava-logo { max-height: 150px; width: 100%; }
  .terminal-line { font-size: 9px; }
  .headline-block { margin: 24px 0 22px; }
  .eyebrow { letter-spacing: .09em; }
  .terminal-footer-line { margin-top: 20px; padding-top: 14px; letter-spacing: .05em; }
  .footer-code { display: none; }
  .orbit-system { width: 130vw; height: 100vw; top: 42%; }
  .web { width: 100vw; }
  footer { font-size: 8px; letter-spacing: .06em; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
