:root {
  --void: #050308; --panel: rgba(13, 9, 20, .86); --panel-solid: #0d0914;
  --ink: #eeeaf6; --dim: #9b93ad; --faint: #5e566b;
  --spectra: #8b5cf6; --spectra-bright: #ae8cff; --ember: #ff2f6d; --green: #50ffb1;
  --line: rgba(238, 234, 246, .1); --line-strong: rgba(238, 234, 246, .18);
  --display: "Syne", system-ui, sans-serif; --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; overflow: hidden; background: var(--void); color: var(--ink); font-family: var(--body); }
body::before {
  position: fixed; inset: 0; z-index: -4; content: "";
  background: linear-gradient(rgba(238,234,246,.025) 1px,transparent 1px), linear-gradient(90deg,rgba(238,234,246,.025) 1px,transparent 1px);
  background-size: 54px 54px; mask-image: linear-gradient(to bottom,black,transparent 85%);
}
.grid-noise { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .16; background: radial-gradient(circle,rgba(238,234,246,.18) 0 1px,transparent 1.2px); background-size: 7px 7px; mask-image: radial-gradient(circle at 50% 45%,black,transparent 72%); }
.signal-glow { position: fixed; inset: 0; z-index: -3; pointer-events: none; background: radial-gradient(45% 55% at 24% 48%,rgba(139,92,246,.18),transparent 72%), radial-gradient(30% 42% at 83% 12%,rgba(255,47,109,.08),transparent 76%); }
::selection { background: var(--spectra); color: var(--void); }
a { color: inherit; text-decoration: none; } button { font: inherit; } h1,h2,h3,p { margin-top: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--spectra-bright); outline-offset: 3px; }

.app-shell { width: min(1440px,100%); min-height: 100svh; margin-inline: auto; padding-inline: clamp(24px,4vw,68px); display: grid; grid-template-rows: 68px minmax(0,1fr) 42px; }
.topbar,.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font: 500 9px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.topbar { border-bottom: 1px solid var(--line); } .footer { border-top: 1px solid var(--line); color: var(--faint); }
.wordmark { justify-self: start; font: 800 18px var(--display); letter-spacing: .04em; }
.wordmark span,.section-code { color: var(--spectra-bright); } .route { color: var(--faint); }
.grid-state { justify-self: end; color: var(--dim); }
.grid-state i,.status i { width: 6px; height: 6px; display: inline-block; margin-right: 7px; border-radius: 50%; }
.grid-state i,.status.live i { background: var(--green); box-shadow: 0 0 12px rgba(80,255,177,.75); }
.grid-state time { margin-left: 18px; color: var(--faint); }

.console { min-height: 0; display: grid; grid-template-columns: minmax(0,.92fr) minmax(520px,1.08fr); gap: clamp(46px,6vw,96px); align-items: center; padding-block: clamp(30px,5vh,58px); }
.identity { position: relative; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.eyebrow,.section-code,.capacity,.status,.server-type,.address>span,.identity-meta,.action { font: 600 8px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { margin-bottom: 22px; color: var(--ember); }
.eyebrow::before { width: 26px; height: 1px; display: inline-block; margin: 0 10px 3px 0; content: ""; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
h1 { margin-bottom: 24px; font: 800 clamp(50px,5.8vw,88px)/.88 var(--display); letter-spacing: -.065em; text-transform: uppercase; }
h1 span { color: transparent; -webkit-text-stroke: 1px rgba(238,234,246,.48); }
.lead { max-width: 470px; margin-bottom: 0; color: var(--dim); font-size: 15px; line-height: 1.6; }

.signal-visual { position: absolute; right: -3%; bottom: 10%; z-index: -1; width: min(26vw,330px); aspect-ratio: 1; opacity: .7; }
.signal-visual::before,.signal-visual::after,.orbit { position: absolute; inset: 50%; border: 1px solid rgba(174,140,255,.18); border-radius: 50%; content: ""; transform: translate(-50%,-50%); }
.signal-visual::before { width: 72%; height: 72%; } .signal-visual::after { width: 30%; height: 30%; border-color: rgba(255,47,109,.34); box-shadow: 0 0 50px rgba(139,92,246,.18); }
.orbit-one { width: 100%; height: 100%; border-style: dashed; animation: orbit 30s linear infinite; } .orbit-two { width: 52%; height: 52%; border-color: rgba(238,234,246,.1); }
.orbit-one::before { position: absolute; top: 12%; left: 13%; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 16px var(--ember); content: ""; }
.signal-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); color: rgba(238,234,246,.26); font: 700 44px var(--mono); }
.signal-readout { position: absolute; right: 0; bottom: 13%; display: flex; flex-direction: column; padding-left: 10px; border-left: 1px solid var(--ember); font: 600 7px var(--mono); letter-spacing: .16em; }
.signal-readout span { color: var(--faint); } .signal-readout strong { margin-top: 3px; color: var(--ember); }
.identity-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: clamp(36px,7vh,76px); color: var(--faint); }
.identity-meta span::before { margin-right: 7px; color: var(--spectra); content: "+"; }

.directory { min-width: 0; }
.directory-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-code { margin-bottom: 6px; } h2 { margin-bottom: 0; font: 800 clamp(25px,2.5vw,36px)/1 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.capacity { color: var(--faint); white-space: nowrap; }
.server-card { position: relative; display: grid; grid-template-columns: 58px 1fr; overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.server-card+.server-card { margin-top: 12px; }
.server-live::after { position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(transparent,var(--spectra),var(--ember),transparent); content: ""; }
.server-index { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); color: var(--faint); font: 500 9px var(--mono); writing-mode: vertical-rl; letter-spacing: .18em; }
.server-main { min-width: 0; padding: clamp(21px,3vh,30px); }
.server-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.status { display: inline-block; margin-bottom: 7px; } .status.live { color: var(--green); } .status.standby { color: var(--faint); } .status.standby i { background: var(--faint); }
.server-card h3 { margin-bottom: 0; font: 800 clamp(25px,2.8vw,38px)/1 var(--display); letter-spacing: -.04em; }
.server-type { color: var(--faint); }
.server-description { margin: 14px 0 16px; color: var(--dim); font-size: 13px; line-height: 1.5; }
.server-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.server-tags span { padding: 5px 8px; border: 1px solid var(--line); color: var(--dim); font: 500 7px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.connect-row { display: flex; align-items: stretch; margin-top: 18px; border: 1px solid var(--line-strong); background: rgba(5,3,8,.5); }
.address { min-width: 0; flex: 1; padding: 10px 14px; } .address>span { display: block; margin-bottom: 2px; color: var(--faint); } .address code { color: var(--ink); font: 700 16px var(--mono); }
.copy-button { min-width: 86px; border: 0; border-left: 1px solid var(--line-strong); background: rgba(139,92,246,.12); color: var(--ink); font: 600 8px var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background 160ms ease; }
.copy-button:hover { background: rgba(139,92,246,.24); } .copy-done { display: none; color: var(--green); } .copy-button.copied .copy-idle { display: none; } .copy-button.copied .copy-done { display: inline; }
.server-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.action { min-height: 39px; display: inline-flex; align-items: center; justify-content: space-between; padding: 10px 13px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; transition: transform 160ms ease,border-color 160ms ease,background 160ms ease; }
.action:hover { transform: translateY(-1px); border-color: rgba(238,234,246,.36); } .action.primary { border-color: var(--spectra); background: var(--spectra); box-shadow: 0 12px 30px rgba(139,92,246,.18); } .action.secondary { color: var(--dim); } .action span { color: var(--ember); font-size: 14px; }
.server-reserved { border-color: var(--line); background: rgba(10,7,18,.42); box-shadow: none; } .server-reserved .server-main { padding-block: 18px; } .server-reserved h3 { margin-top: 1px; color: var(--dim); font-size: 20px; } .server-reserved .server-description { margin: 8px 0 0; }
.reserved-layout { display: flex; align-items: center; justify-content: space-between; gap: 22px; } .reserved-mark { color: rgba(238,234,246,.07); font: 800 clamp(30px,4vw,54px) var(--mono); white-space: nowrap; }
.footer>:last-child { justify-self: end; } .footer-center { justify-self: center; }

.access-dialog { width: min(520px,calc(100% - 32px)); padding: 34px; border: 1px solid var(--line-strong); background: var(--panel-solid); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,.72),0 0 80px rgba(139,92,246,.12); }
.access-dialog::backdrop { background: rgba(3,2,5,.82); backdrop-filter: blur(8px); } .access-dialog h2 { margin: 12px 36px 16px 0; }
.access-dialog>p:not(.section-code) { color: var(--dim); font-size: 14px; line-height: 1.6; }
.access-dialog ol { margin: 24px 0; padding: 0; list-style: none; border-block: 1px solid var(--line); }
.access-dialog li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 13px; } .access-dialog li:last-child { border-bottom: 0; } .access-dialog li span { display: inline-block; width: 32px; color: var(--ember); font: 600 8px var(--mono); } .access-dialog code { color: var(--spectra-bright); font-family: var(--mono); }
.dialog-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--dim); font-size: 22px; cursor: pointer; } .dialog-action { width: 100%; }

@keyframes orbit { to { transform: translate(-50%,-50%) rotate(360deg); } }
@media (max-height:760px) and (min-width:901px) {
  .app-shell { grid-template-rows: 58px minmax(0,1fr) 36px; } .console { padding-block: 22px; } .identity-meta { margin-top: 30px; } .server-main { padding-block: 20px; } .server-description { margin-block: 10px 12px; } .connect-row { margin-top: 14px; } .server-reserved .server-main { padding-block: 13px; }
}
@media (max-width:900px) {
  body { overflow-y: auto; } .app-shell { min-height: 100svh; grid-template-rows: 64px auto 48px; } .console { grid-template-columns: 1fr; gap: 50px; padding-block: 52px; } .identity { min-height: 390px; } .signal-visual { right: 6%; bottom: 2%; width: min(48vw,310px); }
}
@media (max-width:620px) {
  .app-shell { padding-inline: 18px; } .topbar { grid-template-columns: 1fr auto; } .route,.grid-state time { display: none; } .console { padding-block: 38px; } .identity { min-height: 380px; } h1 { font-size: clamp(44px,14vw,66px); } .lead { max-width: 92%; } .signal-visual { right: -9%; opacity: .45; }
  .directory-head { align-items: start; flex-direction: column; gap: 9px; } .server-card { grid-template-columns: 38px 1fr; } .server-main { padding: 20px 17px; } .server-heading { align-items: start; flex-direction: column; gap: 8px; } .server-actions { grid-template-columns: 1fr; } .reserved-mark { display: none; }
  .footer { grid-template-columns: 1fr auto; } .footer-center { display: none; } .access-dialog { padding: 28px 22px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; } }
