:root {
  --bg: #050814;
  --bg2: #0a1228;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --pink: #fb7185;
  --violet: #818cf8;
  --text: #e8eef8;
  --muted: #94a3b8;
  --glass: rgba(12, 20, 40, 0.62);
  --line: rgba(34, 211, 238, 0.28);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "Noto Sans SC", system-ui, sans-serif;
  --display: "Orbitron", "Noto Sans SC", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}
body.booting { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

#space, .aurora, .noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#space { z-index: 0; }
.aurora {
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(34, 211, 238, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 20%, rgba(251, 191, 36, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 100%, rgba(129, 140, 248, 0.16), transparent 60%);
  animation: auroraShift 14s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.noise {
  z-index: 2;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
@keyframes auroraShift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.05); }
}

.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(34, 211, 238, 0.85);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width .15s, height .15s, background .15s;
  display: none;
}
.cursor.on { display: block; }
.cursor.hot {
  width: 42px;
  height: 42px;
  background: rgba(34, 211, 238, 0.12);
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-content: center;
  gap: 14px;
  background: radial-gradient(circle at 50% 40%, #0b1630, #050814 70%);
  transition: opacity .6s ease, visibility .6s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  letter-spacing: 0.28em;
  text-align: center;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2.2s linear infinite;
}
@keyframes shine { to { background-position: 200% 0; } }
.boot-ring {
  width: 86px; height: 86px; margin: 0 auto;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  border-right-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.boot-bar {
  width: min(280px, 70vw);
  height: 4px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.boot-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  transition: width .2s ease;
}
.boot p { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }

.top, main, footer { position: relative; z-index: 3; }
.top {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(5, 8, 20, 0.55);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 50;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo strong {
  display: block;
  font-family: var(--display);
  letter-spacing: .18em;
  font-size: .95rem;
}
.logo small { color: var(--muted); font-size: .68rem; }
.logo-mark { flex-shrink: 0; animation: floaty 4s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.nav { display: flex; gap: 16px; font-size: .82rem; font-weight: 700; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--cyan); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.chip {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: .75rem;
}
.chip-go {
  background: linear-gradient(135deg, rgba(34,211,238,.25), rgba(251,191,36,.2));
  color: #ecfeff;
}

.hero {
  min-height: calc(100dvh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 18px 64px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(251,191,36,.35);
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.1;
}
.hero .line { display: block; }
.hero .glitch {
  font-size: clamp(3rem, 14vw, 7rem);
  letter-spacing: .22em;
  position: relative;
  color: #fff;
  text-shadow: 0 0 40px rgba(34,211,238,.35);
}
.hero .glitch::before,
.hero .glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: .7;
}
.hero .glitch::before { color: var(--cyan); transform: translate(2px, -1px); mix-blend-mode: screen; animation: glitch 2.5s infinite linear alternate-reverse; }
.hero .glitch::after { color: var(--pink); transform: translate(-2px, 1px); mix-blend-mode: screen; animation: glitch 3s infinite linear alternate-reverse; }
@keyframes glitch {
  0% { clip-path: inset(0 0 85% 0); }
  20% { clip-path: inset(20% 0 40% 0); }
  40% { clip-path: inset(60% 0 10% 0); }
  60% { clip-path: inset(10% 0 70% 0); }
  80% { clip-path: inset(40% 0 30% 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.hero .accent {
  margin-top: 8px;
  font-size: clamp(1.35rem, 4.5vw, 2.4rem);
  background: linear-gradient(90deg, #67e8f9, #fde68a 45%, #fda4af);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: linear-gradient(135deg, #22d3ee, #6366f1 55%, #fbbf24);
  color: #041018;
  box-shadow: 0 12px 36px rgba(34,211,238,.28);
}
.btn.ghost {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 42px auto 0;
  max-width: 820px;
}
.hero-stats > div {
  padding: 16px 10px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.hero-stats b {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--cyan);
}
.hero-stats span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.scroll-hint {
  width: 22px; height: 36px; margin: 36px auto 0;
  border: 2px solid rgba(255,255,255,.25); border-radius: 999px; position: relative;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 999px; background: var(--cyan);
  animation: drip 1.4s ease-in-out infinite;
}
@keyframes drip {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(14px); }
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 18px;
}
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: .08em;
}
.section-head p { color: var(--muted); margin: 10px 0 0; }

.filters {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px;
}
.filters button {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: .78rem;
}
.filters button.on {
  color: #041018;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border-color: transparent;
}

.galaxy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  perspective: 1200px;
}
.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15, 24, 48, .92), rgba(7, 11, 22, .94));
  border: 1px solid rgba(34, 211, 238, .18);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .3s;
  will-change: transform;
}
.site-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent, rgba(34,211,238,.7), transparent 35%, rgba(251,191,36,.55), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spinAngle 4s linear infinite;
  opacity: .55;
  pointer-events: none;
}
@keyframes spinAngle { to { --angle: 360deg; } }
.site-card:hover {
  border-color: rgba(34,211,238,.55);
  box-shadow: 0 0 40px rgba(34,211,238,.18), var(--shadow);
}
.site-card.is-hide { display: none; }
.site-card-glow {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.22), transparent 70%);
  top: -40px; right: -30px; pointer-events: none;
}
.site-card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.site-ico {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.45rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
}
.site-tag {
  font-size: .65rem; font-weight: 900; letter-spacing: .08em;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14); color: #cbd5e1;
}
.site-tag.core { color: #fde68a; border-color: rgba(251,191,36,.4); }
.site-tag.game { color: #86efac; border-color: rgba(134,239,172,.35); }
.site-tag.tool { color: #7dd3fc; border-color: rgba(125,211,252,.35); }
.site-title {
  margin: 0; position: relative; z-index: 1;
  font-size: 1.15rem; font-weight: 900;
}
.site-desc {
  margin: 0; position: relative; z-index: 1;
  color: var(--muted); font-size: .82rem; line-height: 1.6; flex: 1;
}
.site-meta {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: .68rem; color: #64748b;
  position: relative; z-index: 1;
}
.site-key {
  color: var(--cyan); opacity: .8;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 22px;
}
.marquee-track {
  display: flex; gap: 28px; width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--display);
  font-size: .85rem;
  letter-spacing: .12em;
  color: rgba(148,163,184,.85);
}
.marquee-track span {
  padding: 10px 0;
  white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.glass {
  padding: 22px;
  border-radius: 20px;
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.glass h3 { margin: 0 0 10px; font-size: 1.05rem; }
.glass p { margin: 0; color: var(--muted); line-height: 1.7; font-size: .88rem; }

.pulse-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.pulse-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
}
.pulse-row .led {
  width: 10px; height: 10px; border-radius: 50%;
  background: #64748b; box-shadow: 0 0 0 0 rgba(34,211,238,.4);
}
.pulse-row.ok .led { background: #34d399; box-shadow: 0 0 12px rgba(52,211,153,.7); }
.pulse-row.bad .led { background: #fb7185; box-shadow: 0 0 12px rgba(251,113,133,.6); }
.pulse-row .ms { font-family: var(--mono); color: var(--muted); font-size: .72rem; }

.foot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px calc(40px + var(--safe-bottom));
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.foot strong { font-family: var(--display); letter-spacing: .1em; }
.foot p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 800; font-size: .82rem; }
.foot-links a:hover { color: var(--cyan); }
.copy { font-size: .72rem !important; color: #64748b !important; }

.preview {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(420px, calc(100vw - 28px));
}
.preview::backdrop {
  background: rgba(2, 6, 18, .72);
  backdrop-filter: blur(8px);
}
.preview-card {
  position: relative;
  margin: 0;
  padding: 28px 22px 22px;
  border-radius: 22px;
  background: linear-gradient(160deg, #101a33, #070b16);
  border: 1px solid rgba(34,211,238,.28);
  box-shadow: var(--shadow);
  text-align: center;
}
.preview-x {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: transparent; color: #94a3b8;
  font-size: 1.4rem; cursor: pointer;
}
.preview-ico {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 18px; display: grid; place-items: center;
  font-size: 2rem; background: rgba(255,255,255,.06);
}
.preview-url {
  font-family: var(--mono); font-size: .72rem; color: var(--cyan); word-break: break-all;
}
.preview-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(.98);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .nav { display: none; }
  .stack-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .hero { padding-top: 28px; }
}
@media (hover: none) {
  .cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
