/* ====== Base ====== */
:root{
  --bg0:#05060a;
  --bg1:#070a12;
  --panel: rgba(10, 14, 24, 0.72);
  --panel2: rgba(8, 10, 18, 0.75);

  --text:#e7e9ff;
  --muted:#aab0cf;

  --cyn:#00f5ff;
  --mag:#ff2bd6;
  --lime:#b6ff00;
  --vio:#8a2be2;

  --line: rgba(0,245,255,0.25);
  --line2: rgba(255,43,214,0.18);

  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 70% 10%, rgba(0,245,255,0.08), transparent 55%),
    radial-gradient(900px 500px at 20% 80%, rgba(255,43,214,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  letter-spacing: 0.2px;
  overflow-x:hidden;
}

/* ====== Overlays ====== */
.overlay{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:1;
}
.scanlines{
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.045),
    rgba(255,255,255,0.045) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity:0.18;
}
.noise{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity:0.07;
}
.vignette{
  background: radial-gradient(1200px 800px at 50% 35%, transparent 55%, rgba(0,0,0,0.55) 95%);
  opacity:0.9;
}

/* ====== Top bar ====== */
.topbar{
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background: rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(0,245,255,0.15);
  backdrop-filter: blur(10px);
}
.brand{ display:flex; align-items:center; gap:10px; }
.dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--cyn);
  box-shadow: 0 0 14px rgba(0,245,255,0.75);
}
.brand-text{
  font-weight:800;
  letter-spacing:1px;
}
.brand-sub{
  color:var(--muted);
  font-size:12px;
  opacity:0.85;
}

.nav{ display:flex; gap:14px; }
.nav a{
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{
  color:var(--text);
  border-color: rgba(0,245,255,0.25);
  box-shadow: 0 0 18px rgba(0,245,255,0.15);
}

/* ====== Layout ====== */
.wrap{
  position:relative;
  z-index:2;
  max-width: 1040px;
  margin: 24px auto 80px;
  padding: 0 18px;
}
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:16px;
}
@media (max-width: 860px){
  .grid{ grid-template-columns:1fr; }
  .nav{ display:none; }
}

/* ====== Panels ====== */
.panel{
  position:relative;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(0,245,255,0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
  overflow:hidden;
}
.panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, transparent, rgba(0,245,255,0.06), transparent),
    radial-gradient(600px 260px at 20% 10%, rgba(255,43,214,0.12), transparent 55%);
  opacity:0.7;
  pointer-events:none;
}
.hud-corners{
  position:absolute;
  inset:12px;
  border: 1px solid rgba(0,245,255,0.12);
  border-radius: 14px;
  pointer-events:none;
}
.hud-corners::before,
.hud-corners::after{
  content:"";
  position:absolute;
  width:16px;height:16px;
  border:2px solid rgba(255,43,214,0.35);
}
.hud-corners::before{
  left:-1px; top:-1px;
  border-right:none; border-bottom:none;
  border-top-left-radius: 10px;
}
.hud-corners::after{
  right:-1px; bottom:-1px;
  border-left:none; border-top:none;
  border-bottom-right-radius: 10px;
}

/* ====== Hero ====== */
.hero{ padding: 24px 18px 18px; }
.kicker{
  margin:0 0 10px;
  color:var(--muted);
  font-size:12px;
  letter-spacing: 2px;
  text-transform:uppercase;
}
.subtitle{
  margin: 10px 0 14px;
  color: var(--muted);
  max-width: 62ch;
  line-height:1.55;
}

/* ====== Glitch title (CSS only) ====== */
.glitch{
  position:relative;
  font-size: 44px;
  line-height:1.05;
  margin: 6px 0 0;
  letter-spacing: 1px;
  text-transform:uppercase;
  text-shadow: 0 0 22px rgba(0,245,255,0.15);
}
.glitch::before,
.glitch::after{
  content: attr(data-text);
  position:absolute;
  left:0; top:0;
  width:100%;
  overflow:hidden;
  clip-path: inset(0 0 0 0);
  opacity:0.85;
}
.glitch::before{
  transform: translate(2px, 0);
  color: var(--cyn);
  animation: glitch1 2.8s infinite linear;
}
.glitch::after{
  transform: translate(-2px, 0);
  color: var(--mag);
  animation: glitch2 3.3s infinite linear;
}
@keyframes glitch1{
  0%{ clip-path: inset(0 0 98% 0); }
  10%{ clip-path: inset(10% 0 72% 0); }
  20%{ clip-path: inset(55% 0 30% 0); }
  30%{ clip-path: inset(80% 0 8% 0); }
  40%{ clip-path: inset(45% 0 40% 0); }
  50%{ clip-path: inset(0 0 98% 0); }
  60%{ clip-path: inset(65% 0 18% 0); }
  70%{ clip-path: inset(12% 0 70% 0); }
  80%{ clip-path: inset(78% 0 10% 0); }
  90%{ clip-path: inset(35% 0 55% 0); }
  100%{ clip-path: inset(0 0 98% 0); }
}
@keyframes glitch2{
  0%{ clip-path: inset(98% 0 0 0); }
  12%{ clip-path: inset(70% 0 8% 0); }
  24%{ clip-path: inset(30% 0 55% 0); }
  36%{ clip-path: inset(8% 0 80% 0); }
  48%{ clip-path: inset(45% 0 35% 0); }
  60%{ clip-path: inset(92% 0 0 0); }
  72%{ clip-path: inset(18% 0 65% 0); }
  84%{ clip-path: inset(55% 0 28% 0); }
  100%{ clip-path: inset(98% 0 0 0); }
}

/* ====== Tags ====== */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 10px 0 14px;
}
.chip{
  font-size:12px;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,245,255,0.22);
  background: rgba(0,245,255,0.06);
  box-shadow: 0 0 16px rgba(0,245,255,0.08);
}

/* ====== Stats ====== */
.stats{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:10px;
  margin-top: 10px;
}
@media (max-width: 860px){
  .stats{ grid-template-columns:1fr; }
}
.stat{
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 10px 12px;
}
.stat-label{
  font-size:11px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform:uppercase;
}
.stat-value{
  margin-top:6px;
  font-weight:700;
  font-size:13px;
}
.ok{
  color: var(--lime);
  text-shadow: 0 0 16px rgba(182,255,0,0.25);
}

/* ====== Text ====== */
h2{
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.4px;
}
p{ margin: 0 0 10px; line-height:1.6; color: var(--text); }
.faint{ color: var(--muted); opacity:0.85; }
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* ====== Lists ====== */
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}
.list li{ margin: 7px 0; }
.key{ color: var(--cyn); }

/* ====== Cards ====== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
}
.card{
  position:relative;
  text-decoration:none;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid rgba(0,245,255,0.16);
  background: rgba(0,0,0,0.25);
  padding: 12px 12px 10px;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(0,245,255,0.32);
  box-shadow: 0 0 28px rgba(0,245,255,0.12);
}
.card-top{
  display:flex;
  gap:8px;
  margin-bottom:10px;
}
.badge{
  font-size:11px;
  letter-spacing:1px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,43,214,0.26);
  background: rgba(255,43,214,0.08);
}
.badge.alt{
  border-color: rgba(0,245,255,0.24);
  background: rgba(0,245,255,0.06);
}
.card h3{
  margin: 0 0 6px;
  font-size: 14px;
}
.card p{
  margin: 0 0 8px;
  color: var(--muted);
}

/* ====== Fake music progress ====== */
.progress{
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,245,255,0.15);
  overflow:hidden;
  margin: 10px 0 10px;
}
.bar{
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,245,255,0.7), rgba(255,43,214,0.55));
  filter: saturate(1.2);
  animation: pulse 2.2s infinite ease-in-out;
}
@keyframes pulse{
  0%,100%{ opacity:0.65; }
  50%{ opacity:1; }
}

/* ====== Links + footer ====== */
.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top: 8px;
}
.links a{
  color: var(--text);
  text-decoration:none;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,245,255,0.18);
  background: rgba(0,245,255,0.05);
}
.links a:hover{
  border-color: rgba(255,43,214,0.35);
  box-shadow: 0 0 20px rgba(255,43,214,0.12);
}
.footer{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 12px;
}
