:root {
  --ink: #0a0a0a;
  --paper: #fff7fb;
  --magenta: #ff2bd6;
  --magenta-deep: #d100a8;
  --cyan: #2ef0ff;
  --cyan-deep: #00c2d8;
  --orange: #ff7a18;
  --orange-hot: #ff4d00;
  --lavender: #b48cff;
  --line: #0a0a0a;
  --muted: #3a3340;
  --warn: #ff4d00;
  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Trebuchet MS", sans-serif;
  --shadow: 5px 5px 0 #0a0a0a;
  --shadow-sm: 3px 3px 0 #0a0a0a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: #1a0830;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,43,214,.55), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(46,240,255,.5), transparent 36%),
    radial-gradient(circle at 70% 78%, rgba(255,122,24,.42), transparent 40%),
    radial-gradient(circle at 20% 85%, rgba(180,140,255,.35), transparent 32%),
    repeating-linear-gradient(
      -18deg,
      rgba(255,255,255,.04) 0 10px,
      rgba(0,0,0,.05) 10px 20px
    ),
    linear-gradient(155deg, #2a0a4a 0%, #12061f 48%, #061828 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .18;
  background-image: radial-gradient(#ff2bd6 1.1px, transparent 1.2px);
  background-size: 14px 14px;
  mix-blend-mode: screen;
}

.top, main, footer { position: relative; z-index: 1; }
.top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 22px 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .01em;
  text-decoration: none;
  color: #0a0a0a;
  background: var(--cyan);
  border: 4px solid #0a0a0a;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: var(--shadow-sm);
  text-shadow: none;
  filter: none;
}
.brand:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0a0a0a;
}
.top nav { display: flex; gap: 12px; align-items: center; }
.top nav a, .linkish {
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 800;
  background: #fff;
  border: 3px solid #0a0a0a;
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}
.top nav a:hover, .linkish:hover {
  background: var(--magenta);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0a0a0a;
}

.logo-badge {
  width: clamp(120px, 22vw, 168px);
  height: auto;
  margin: 0 0 18px;
  border: 5px solid #0a0a0a;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #12061f;
  animation: rise .7s ease both;
}
.hero {
  max-width: 1080px; margin: 0 auto;
  padding: clamp(40px, 10vh, 100px) 22px 64px;
  min-height: 78vh;
  display: flex; flex-direction: column; justify-content: center;
}
.brand-hero {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 12vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .88;
  color: #fff;
  text-shadow: 4px 4px 0 #0a0a0a;
  animation: rise .7s ease both;
}
.hero h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.8vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: #fff;
  text-shadow: 3px 3px 0 #0a0a0a;
  animation: rise .7s .08s ease both;
}
.lead, .sub, .hint {
  color: #f4eff8;
  max-width: 36rem;
  line-height: 1.5;
  font-size: 1.08rem;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(0,0,0,.45);
}
.fine { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px) rotate(-1deg); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  border-radius: 18px;
  font-weight: 800;
  text-decoration: none;
  border: 4px solid #0a0a0a;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #0a0a0a; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #0a0a0a; }
.btn.primary {
  background: linear-gradient(180deg, #ffb347, var(--orange-hot));
  color: #0a0a0a;
}
.btn.primary:hover { background: linear-gradient(180deg, #ffc56d, var(--orange)); }
.btn.ghost {
  background: var(--cyan);
  color: #0a0a0a;
}
button.btn { font: inherit; }
button.btn:disabled { opacity: .55; cursor: wait; }

.cta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px;
  animation: rise .7s .16s ease both;
}
.cta.dual form { display: inline; margin: 0; }
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.server-grid, .app-grid {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.server-grid li, .app-grid li {
  padding: 16px;
  background: rgba(255,247,251,.92);
  border: 4px solid #0a0a0a;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid; gap: 8px;
}
.server-grid em, .app-grid span { color: var(--muted); font-style: normal; font-size: .95rem; font-weight: 700; }
.server-grid strong, .app-grid strong { font-family: var(--font-display); font-size: 1.15rem; }
.srv-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ping { font-variant-numeric: tabular-nums; font-weight: 800; font-size: .95rem; }
.ping.wait { color: #777; }
.ping.ok { color: #008f6b; }
.ping.bad { color: var(--warn); }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.app-links a {
  color: #0a0a0a;
  background: var(--magenta);
  border: 3px solid #0a0a0a;
  border-radius: 999px;
  padding: 4px 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  box-shadow: 2px 2px 0 #0a0a0a;
}
.app-links a:hover { background: var(--cyan); }

.strip, .features, .close, .cabinet { max-width: 1080px; margin: 0 auto; padding: 48px 22px; }
.strip h2, .features h2, .close h2, .cabinet h1, .cabinet h2 {
  font-family: var(--font-display);
  letter-spacing: -.03em;
  margin: 0 0 8px;
  color: #fff;
  text-shadow: 3px 3px 0 #0a0a0a;
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
}
.feat-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.feat-list li {
  display: grid; gap: 6px;
  padding: 16px;
  background: rgba(255,247,251,.92);
  border: 4px solid #0a0a0a;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.feat-list strong { font-family: var(--font-display); font-size: 1.15rem; }
.feat-list span { color: var(--muted); max-width: 40rem; font-weight: 700; }

.close { padding-bottom: 80px; }
footer {
  max-width: 1080px; margin: 0 auto; padding: 18px 22px 36px;
  display: flex; justify-content: space-between; gap: 12px;
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  border-top: 4px solid #0a0a0a;
  background: rgba(0,0,0,.25);
}
footer a { color: var(--cyan); }

.cabinet { padding-top: 36px; padding-bottom: 80px; }
.gate { max-width: 28rem; padding: 40px 0; color: #fff; }
.gate h1, .cabinet h1 { color: #fff; text-shadow: 3px 3px 0 #0a0a0a; font-family: var(--font-display); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  color: var(--cyan);
  margin: 0 0 6px;
  font-weight: 800;
}
.status-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 3px solid #0a0a0a;
  font-size: .9rem;
  font-weight: 800;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.pill.ok { background: var(--cyan); }
.pill.off { background: var(--orange); }
.banner {
  padding: 12px 14px;
  border-radius: 16px;
  border: 4px solid #0a0a0a;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}
.banner.warn { color: #7a2200; background: #ffe1c8; }

.sub-block { margin: 10px 0 36px; }
.sub-block h2, .sub-block .hint { color: #fff; }
.sub-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 18px; }
.sub-row input {
  flex: 1 1 240px; min-width: 0;
  background: #fff;
  color: var(--ink);
  border: 4px solid #0a0a0a;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.qr-wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.qr-wrap img {
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  border: 4px solid #0a0a0a;
  box-shadow: var(--shadow);
}
.app-actions { display: grid; gap: 10px; }

.split { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.split h2 { color: #fff; }
.plain { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.plain li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border: 4px solid #0a0a0a;
  border-radius: 16px;
  background: rgba(255,247,251,.92);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 700;
}
.plain code { color: var(--muted); font-size: .85rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .top nav a:first-child { display: none; }
  .brand-hero { font-size: clamp(3.1rem, 18vw, 4.6rem); }
}
