:root {
  --bg: #f7f5f1;
  --paper: #ffffff;
  --ink: #2b2933;
  --muted: #6f6a78;
  --line: #ebe4da;
  --accent: #6f86e8;
  --accent-deep: #5166c4;
  --blush: #f4c3d0;
  --mint: #7fcdb0;
  --warn: #d39a2c;
  --warn-bg: #fff6e4;
  --ok-bg: #eefaf4;
  --shadow: 0 14px 40px rgba(72, 58, 90, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(244, 195, 208, 0.45), transparent 60%),
    radial-gradient(800px 380px at 100% 0%, rgba(111, 134, 232, 0.16), transparent 55%),
    var(--bg);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  line-height: 1.55;
}

a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(247, 245, 241, 0.86);
  border-bottom: 1px solid rgba(235, 228, 218, 0.9);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(81, 102, 196, 0.12);
  border: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover { color: var(--ink); }

.nav .login-link {
  color: var(--accent-deep);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4e7f8;
  box-shadow: 0 6px 16px rgba(81, 102, 196, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 54px 0 20px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pixel {
  width: 10px;
  height: 10px;
  background:
    linear-gradient(#7fcdb0, #7fcdb0) 0 0 / 4px 4px no-repeat,
    linear-gradient(#6f86e8, #6f86e8) 4px 0 / 4px 4px no-repeat,
    linear-gradient(#f4c3d0, #f4c3d0) 0 4px / 4px 4px no-repeat,
    linear-gradient(#2b2933, #2b2933) 4px 4px / 4px 4px no-repeat;
  image-rendering: pixelated;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0 0 22px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(111, 134, 232, 0.28);
}

.btn:hover { background: var(--accent-deep); }

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.mascot-card {
  position: relative;
  background: var(--paper);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 18px 18px 8px;
}

.mascot-card::before {
  content: "";
  position: absolute;
  inset: 12px auto auto 12px;
  width: 54px;
  height: 10px;
  background:
    radial-gradient(circle at 5px 5px, #f0b4c4 4px, transparent 4.5px),
    radial-gradient(circle at 22px 5px, #ecd07a 4px, transparent 4.5px),
    radial-gradient(circle at 39px 5px, #8fd8b8 4px, transparent 4.5px);
}

.section { padding: 18px 0 64px; }

.section h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.card h3 { margin: 12px 0 6px; font-size: 1.05rem; }

.card p { margin: 0; color: var(--muted); }

.icon {
  width: 48px;
  height: 48px;
}

.page {
  padding: 36px 0 72px;
}

.panel {
  background: var(--paper);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.panel.narrow { max-width: 460px; }

label {
  display: block;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

input, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e6e0d8;
  background: #fcfbf9;
  font: inherit;
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: 2px solid rgba(111, 134, 232, 0.35);
  border-color: #c9d2fb;
}

.hint { color: var(--muted); min-height: 1.4em; }

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
}

.servers { display: grid; gap: 12px; }

.server {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.6fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.server strong { display: block; }
.server span, .meta { color: var(--muted); font-size: 0.92rem; }

.host {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.meter b { display: block; font-size: 1.05rem; }

.badge {
  justify-self: end;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge.ok { background: var(--ok-bg); color: #2f8a62; }
.badge.warn { background: var(--warn-bg); color: #9a6a10; }

.alerts { margin-top: 22px; }

.alert {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed #eadfce;
  color: var(--muted);
}

.alert strong { color: var(--ink); }

.prose p { color: var(--muted); max-width: 62ch; }

.mail {
  display: inline-block;
  margin: 8px 0 18px;
  font-weight: 700;
  color: var(--accent-deep);
}

.note {
  margin-top: 12px;
  color: #2f8a62;
  font-weight: 700;
}

.site-footer {
  padding: 10px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

.retro-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #eadfce;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero, .cards { grid-template-columns: 1fr; }
  .server { grid-template-columns: 1fr 1fr; }
  .badge { justify-self: start; }
  .site-header .wrap { flex-wrap: wrap; padding: 8px 0; }
  .nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .site-header .wrap { min-height: 64px; }
  .panel { padding: 20px; }
  .dash-head { align-items: flex-start; flex-direction: column; }
}
