* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { background: #1c1826; color: #f0eaf8; font-family: "Space Grotesk", Inter, sans-serif; }

.cockpit { position: fixed; inset: 0; isolation: isolate; perspective: 1200px; }
.void-canvas { position: absolute; inset: -20%; z-index: -5; background: radial-gradient(circle at 18% 22%, rgba(192,126,255,.22), transparent 24%), radial-gradient(circle at 80% 18%, rgba(255,110,199,.16), transparent 26%), radial-gradient(circle at 56% 76%, rgba(168,255,4,.10), transparent 28%), conic-gradient(from 140deg, #1c1826, #2a1f3d, #1c1826, #2a1f3d, #1c1826); animation: voidDrift 46s linear infinite; }
.void-canvas:after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(240,234,248,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(240,234,248,.025) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(circle, black 32%, transparent 76%); }
.mesh { position: absolute; border-radius: 42% 58% 62% 38% / 45% 28% 72% 55%; filter: blur(6px); opacity: .34; mix-blend-mode: screen; z-index: -4; }
.mesh-a { width: 42vw; height: 36vw; left: 29vw; top: 14vh; background: rgba(192,126,255,.18); animation: blobFloat 18s ease-in-out infinite; }
.mesh-b { width: 28vw; height: 30vw; right: 4vw; bottom: 0; background: rgba(255,210,48,.10); animation: blobFloat 22s ease-in-out infinite reverse; }

.data-fragments { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.data-fragments span { position: absolute; left: var(--x); top: var(--y); font: 500 .68rem "IBM Plex Mono", monospace; letter-spacing: .16em; color: #8b7fa3; text-transform: uppercase; opacity: .22; animation: fragment 24s linear infinite; animation-delay: var(--d); }

.hud-lines, .orbit-field { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hud-lines { z-index: 3; }
.orbit-field { z-index: 2; }
.trace { fill: none; stroke: #ff6ec7; stroke-width: 1.2; stroke-dasharray: 8 13; opacity: .42; filter: drop-shadow(0 0 6px #ff6ec7); animation: dash 9s linear infinite; }
.delay-a { animation-delay: -2s; }
.delay-b { animation-delay: -4s; }
.delay-c { animation-delay: -6s; }
.node { fill: #ff6ec7; filter: drop-shadow(0 0 10px #ff6ec7); animation: pulse 2.6s ease-in-out infinite; }
.node.lime { fill: #a8ff04; filter: drop-shadow(0 0 10px #a8ff04); }
.node.gold { fill: #ffd230; filter: drop-shadow(0 0 10px #ffd230); }
.orbit { fill: none; stroke-width: 1; stroke-dasharray: 5 16; transform-origin: 820px 422px; }
.orbit-one { stroke: #a8ff04; opacity: .28; animation: spin 44s linear infinite; }
.orbit-two { stroke: #ff6ec7; opacity: .20; animation: spin 72s linear infinite reverse; }
.orbit-three { stroke: #c07eff; opacity: .16; animation: spin 104s linear infinite; }
.scanner { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #a8ff04, #ffd230, transparent); box-shadow: 0 0 22px #a8ff04; opacity: .65; z-index: 4; animation: scan 12s linear infinite; }

.blob { position: absolute; z-index: 10; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.1rem, 2.2vw, 2rem); background: linear-gradient(135deg, rgba(42,31,61,.82), rgba(42,31,61,.52)); border: 1px solid rgba(255,110,199,.36); box-shadow: 0 0 42px rgba(192,126,255,.16), inset 0 0 70px rgba(240,234,248,.035); backdrop-filter: blur(18px); transform: translate3d(var(--tx,0), var(--ty,0), 0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: opacity .55s ease, filter .55s ease, box-shadow .35s ease; }
.blob:before, .blob:after { content: ""; position: absolute; width: 32px; height: 32px; border: 1px solid #a8ff04; opacity: .58; }
.blob:before { left: -10px; top: -10px; border-right: 0; border-bottom: 0; }
.blob:after { right: -10px; bottom: -10px; border-left: 0; border-top: 0; }
.blob:hover { box-shadow: 0 0 70px rgba(192,126,255,.26), 0 0 44px rgba(255,110,199,.18), inset 0 0 80px rgba(240,234,248,.055); }
.primary { left: 6vw; top: 7vh; width: min(46vw, 680px); min-height: 38vh; border-radius: 42% 58% 72% 28% / 44% 57% 43% 56%; animation: breatheA 11s ease-in-out infinite; }
.signal { right: 6vw; bottom: 7vh; width: min(41vw, 590px); min-height: 40vh; border-radius: 31% 69% 61% 39% / 61% 32% 68% 39%; animation: breatheB 13s ease-in-out infinite; }
.matrix { left: 34vw; top: 39vh; width: min(33vw, 520px); min-height: 36vh; border-radius: 61% 39% 38% 62% / 43% 61% 39% 57%; animation: breatheC 12s ease-in-out infinite; }

.eyebrow { font: 500 .72rem "IBM Plex Mono", monospace; letter-spacing: .18em; text-transform: uppercase; color: #a8ff04; }
h1, h2 { font-family: "Cormorant Garamond", Cormorant, serif; color: #ff6ec7; text-shadow: 0 0 28px rgba(255,110,199,.48); letter-spacing: .04em; line-height: .92; }
h1 { font-size: clamp(3.4rem, 8vw, 7.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 600; }
.lead { max-width: 34rem; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 300; line-height: 1.65; color: #f0eaf8; }
.small { font-size: .95rem; line-height: 1.55; color: #8b7fa3; }
.command-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: auto; }
.command { font: 700 .72rem "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: #f0eaf8; background: rgba(28,24,38,.48); border: 1px solid rgba(192,126,255,.42); border-radius: 999px; padding: .7rem 1rem; cursor: pointer; transition: .25s ease; }
.command:hover, .command.active { color: #1c1826; background: #a8ff04; border-color: #a8ff04; box-shadow: 0 0 22px rgba(168,255,4,.45); }

.icon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.icon-grid article { min-height: 112px; display: grid; place-items: center; text-align: center; gap: .5rem; padding: 1rem; border: 1px solid rgba(255,110,199,.22); border-radius: 42% 58% 49% 51% / 55% 43% 57% 45%; background: rgba(255,110,199,.055); transition: .35s ease; }
.icon-grid article:hover { background: rgba(192,126,255,.12); transform: translateY(-5px); }
svg { overflow: visible; }
.icon-grid svg { width: 36px; height: 36px; color: #ffd230; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px #ffd230); }
.icon-grid span, .metrics span { font: 500 .75rem "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: #f0eaf8; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.metrics div { padding: 1rem; text-align: center; border-radius: 36% 64% 56% 44% / 58% 38% 62% 42%; border: 1px solid rgba(168,255,4,.23); background: rgba(168,255,4,.055); }
.metrics strong { display: block; font: 700 clamp(1.8rem, 3vw, 3rem) "IBM Plex Mono", monospace; color: #a8ff04; text-shadow: 0 0 18px rgba(168,255,4,.55); }

.status-stack { position: absolute; left: 1.1vw; top: 27vh; display: grid; gap: 4.5vh; z-index: 12; }
.status { width: 82px; height: 64px; display: grid; place-items: center; border-radius: 44% 56% 64% 36% / 42% 58% 40% 60%; background: rgba(42,31,61,.66); border: 1px solid rgba(168,255,4,.26); animation: breatheB 9s ease-in-out infinite; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #a8ff04; box-shadow: 0 0 12px #a8ff04; }
.status.gold i { background: #ffd230; box-shadow: 0 0 12px #ffd230; }
.status.violet i { background: #c07eff; box-shadow: 0 0 12px #c07eff; }
.status span { font: 500 .58rem "IBM Plex Mono", monospace; color: #8b7fa3; text-transform: uppercase; letter-spacing: .12em; }
.micro-panel { position: absolute; z-index: 8; font: 500 .65rem "IBM Plex Mono", monospace; letter-spacing: .14em; color: #8b7fa3; border: 1px solid rgba(139,127,163,.28); padding: .55rem .75rem; background: rgba(28,24,38,.54); }
.top-left { left: 3vw; top: 3vh; }
.bottom-right { right: 3vw; bottom: 3vh; }
.compliance-token { position: absolute; left: -200vw; top: -200vh; color: #1c1826; }
.reticle { position: fixed; left: 0; top: 0; width: 54px; height: 54px; margin: -27px 0 0 -27px; opacity: 0; z-index: 30; pointer-events: none; transition: opacity .2s ease; }
.reticle span { position: absolute; background: #a8ff04; box-shadow: 0 0 10px #a8ff04; }
.reticle span:first-child { left: 0; right: 0; top: 50%; height: 1px; }
.reticle span:last-child { top: 0; bottom: 0; left: 50%; width: 1px; }
.reticle.show { opacity: .72; }
/* palette anchor: #ff2d7b; System: Interaction: */

@keyframes voidDrift { to { transform: rotate(1turn) scale(1.08); } }
@keyframes blobFloat { 50% { transform: translate(5vw, -3vh) scale(1.12); border-radius: 58% 42% 38% 62% / 35% 61% 39% 65%; } }
@keyframes fragment { from { transform: translate(0,0); opacity: 0; } 15%, 85% { opacity: .24; } to { transform: translate(130px, -80px); opacity: 0; } }
@keyframes dash { to { stroke-dashoffset: -180; } }
@keyframes pulse { 50% { r: 8; opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { from { top: 4%; } to { top: 96%; } }
@keyframes breatheA { 50% { border-radius: 58% 42% 30% 70% / 55% 45% 62% 38%; } }
@keyframes breatheB { 50% { border-radius: 70% 30% 35% 65% / 38% 65% 35% 62%; } }
@keyframes breatheC { 50% { border-radius: 35% 65% 70% 30% / 65% 39% 61% 35%; } }

@media (max-width: 900px) {
  .primary { left: 7vw; top: 6vh; width: 86vw; min-height: 34vh; }
  .signal { left: 7vw; right: auto; bottom: 6vh; width: 86vw; min-height: 32vh; }
  .matrix { left: 18vw; top: 38vh; width: 72vw; min-height: 28vh; }
  .status-stack { display: none; }
  .icon-grid { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .icon-grid article { min-height: 86px; padding: .6rem; }
  .metrics { gap: .4rem; }
  h1 { font-size: clamp(3rem, 16vw, 5.2rem); }
  h2 { font-size: clamp(1.7rem, 8vw, 2.8rem); }
}

@media (max-width: 560px) {
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .matrix { display: none; }
  .lead, .small { font-size: .9rem; }
  .command { padding: .55rem .72rem; }
}
