:root {
  --bg: #02050d;
  --bg2: #050c1f;
  --blue: #2f8cff;
  --cyan: #19e3ff;
  --deep: #0b3dff;
  --text: #cfe3ff;
  --dim: #6d87b3;
  --line: rgba(47, 140, 255, .28);
  --glass: rgba(6, 16, 40, .55);
  --red: #ff4d6d;
  --green: #3dffb4;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Orbitron", var(--mono);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(1200px 700px at 50% -10%, #0a2a6b 0%, transparent 60%), var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--blue); color: #fff; }
a { color: var(--cyan); text-decoration: none; }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scanlines {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.75) 100%);
}
.wrap { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .08em; color: #fff; display: flex; align-items: center; gap: 10px; }
.logo .three { color: var(--cyan); text-shadow: 0 0 12px var(--cyan); }
.logo .tld { color: var(--dim); font-weight: 500; }
.logo svg { filter: drop-shadow(0 0 8px var(--blue)); }
.navlinks { display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn {
  --c: var(--blue);
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; font: 600 13px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(47,140,255,.08); border: 1px solid var(--c); cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .2s, box-shadow .2s, transform .1s;
}
.btn:hover { background: rgba(47,140,255,.25); box-shadow: 0 0 24px rgba(47,140,255,.55) inset; }
.btn:active { transform: translateY(1px); }
.btn.solid { background: linear-gradient(90deg, var(--deep), var(--blue) 60%, var(--cyan)); border-color: transparent; }
.btn.solid:hover { filter: brightness(1.15); }
.btn.ghost { border-color: var(--line); color: var(--dim); background: transparent; }
.btn.ghost:hover { color: #fff; border-color: var(--blue); }
.btn.danger { --c: var(--red); background: rgba(255,77,109,.06); }
.btn.danger:hover { background: rgba(255,77,109,.2); box-shadow: 0 0 20px rgba(255,77,109,.4) inset; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.small { padding: 6px 12px; font-size: 11px; }

/* glitch title */
.glitch {
  position: relative; display: inline-block; margin: 0;
  font-family: var(--display); font-weight: 900; letter-spacing: .04em; line-height: 1;
  color: #fff; text-shadow: 0 0 18px rgba(47,140,255,.9), 0 0 60px rgba(25,227,255,.35);
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
}
.glitch::before { color: var(--cyan); transform: translate(2px, 0); clip-path: inset(0 0 0 0); animation: g1 3.2s infinite steps(1); opacity: .8; }
.glitch::after { color: var(--deep); transform: translate(-2px, 0); animation: g2 2.7s infinite steps(1); opacity: .9; }
@keyframes g1 {
  0%, 86%, 100% { clip-path: inset(100% 0 0 0); }
  87% { clip-path: inset(10% 0 70% 0); transform: translate(-6px, -1px); }
  89% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 1px); }
  92% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 0); }
}
@keyframes g2 {
  0%, 80%, 100% { clip-path: inset(100% 0 0 0); }
  81% { clip-path: inset(70% 0 5% 0); transform: translate(6px, 2px); }
  84% { clip-path: inset(5% 0 80% 0); transform: translate(-5px, -1px); }
  86% { clip-path: inset(40% 0 40% 0); transform: translate(3px, 0); }
}

/* glass panels with corner brackets */
.panel {
  position: relative; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 20px 80px rgba(0, 40, 140, .35);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--cyan); pointer-events: none;
  filter: drop-shadow(0 0 6px var(--cyan));
}
.panel::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #1b2c52; }
.dots i:first-child { background: var(--blue); box-shadow: 0 0 8px var(--blue); }

/* forms */
label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input, textarea {
  width: 100%; padding: 12px 14px; font: 14px var(--mono); color: #fff;
  background: rgba(2, 8, 24, .75); border: 1px solid var(--line); outline: none; border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #3b5482; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,227,255,.12), 0 0 22px rgba(25,227,255,.18); }
textarea { resize: vertical; min-height: 130px; }
.prompt-in { position: relative; }
.prompt-in::before { content: ">"; position: absolute; left: 12px; top: 11px; color: var(--cyan); pointer-events: none; }
.prompt-in input { padding-left: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.msg { min-height: 22px; font-size: 13px; margin-top: 10px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); color: var(--dim); background: rgba(2,8,24,.6); }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.cursor { display: inline-block; width: .6em; height: 1.1em; background: var(--cyan); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; box-shadow: 0 0 10px var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }

.fade-up { opacity: 0; transform: translateY(14px); animation: up .8s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes up { to { opacity: 1; transform: none; } }

footer { position: relative; z-index: 2; border-top: 1px solid var(--line); margin-top: 80px; padding: 18px 0 26px; color: var(--dim); font-size: 12px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { padding: 0 16px; }
  .logo { font-size: 17px; }
}
