:root {
  --bg: #0d0a14;
  --bg-elevated: #15101f;
  --border: #261d35;
  --text: #ece6f5;
  --text-dim: #9388a8;
  --text-faint: #5c5270;

  --orchid: #c861f2;
  --orchid-dim: rgba(200, 97, 242, 0.12);
  --orchid-glow: rgba(200, 97, 242, 0.4);
  --rose: #ff6ec7;

  --warn: #ffb454;
  --danger: #ff6b6b;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

html[data-theme="light"] {
  --bg: #faf7fc;
  --bg-elevated: #ffffff;
  --border: #e6dcef;
  --text: #241c33;
  --text-dim: #5c5270;
  --text-faint: #9388a8;

  --orchid: #a93fe0;
  --orchid-dim: rgba(169, 63, 224, 0.1);
  --orchid-glow: rgba(169, 63, 224, 0.35);
}

html[data-theme="light"] .bg-glow {
  background:
    radial-gradient(circle at 15% -10%, rgba(169,63,224,0.08), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255,110,199,0.06), transparent 35%);
}

html[data-theme="light"] .btn-download,
html[data-theme="light"] .btn-discord {
  color: #fff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  min-height: 100%;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% -10%, rgba(200,97,242,0.14), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(255,110,199,0.08), transparent 35%);
}

.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-emoji { font-size: 30px; }

.tagline {
  margin: 14px auto 0;
  max-width: 480px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
}

.top-toggles {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.lang-toggle, .icon-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.icon-toggle { padding: 7px 11px; font-size: 14px; line-height: 1; }
.lang-toggle:hover, .icon-toggle:hover { border-color: var(--orchid-glow); color: var(--orchid); }

.announcement-embed {
  max-width: 560px;
  margin: 0 auto 28px;
  display: flex;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px -14px rgba(0,0,0,0.5);
}
.announcement-embed.hidden { display: none; }

.announcement-embed-bar {
  width: 4px;
  flex-shrink: 0;
  background: var(--orchid);
}

.announcement-embed-body { padding: 14px 18px; }
.announcement-embed-title { font-weight: 700; font-size: 14.5px; color: var(--text); margin-bottom: 4px; }
.announcement-embed-desc { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

.downloads-row {
  margin: 30px auto 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dl-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(200,97,242,0.05), 0 12px 40px -18px rgba(200,97,242,0.35);
}
.dl-disabled { opacity: 0.55; }

.dl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(116, 192, 252);
}
.dl-platform { font-size: 13px; font-weight: 600; }
.dl-count { font-size: 10.5px; color: var(--text-faint); font-family: var(--font-mono); }

.btn-download { background: var(--orchid); color: #1c0526; width: 100%; justify-content: center; padding: 9px 10px; font-size: 12.5px; white-space: nowrap; gap: 6px; }
.btn-download .dl-ext { opacity: 0.65; font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
.btn-download .dl-ext::before { content: "·"; margin-right: 6px; }
.btn-soon .dl-ext { display: none; }
.btn-download:hover { filter: brightness(1.08); }

.btn-soon {
  width: 100%;
  text-align: center;
  padding: 9px 10px;
  font-size: 11.5px;
  white-space: nowrap;
  justify-content: center;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: 999px;
}

@media (max-width: 560px) {
  .downloads-row { grid-template-columns: 1fr; max-width: 260px; }
}

.hero-links {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-faint);
}
.link-inline { color: var(--text-dim); text-decoration: none; }
.link-inline:hover { color: var(--orchid); }
.link-sep { margin: 0 8px; }

.hero-buttons { margin-top: 26px; display: flex; justify-content: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-discord { background: var(--orchid); color: #1c0526; }
.btn-discord:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--orchid-glow); color: var(--orchid); }
.btn-small { padding: 8px 14px; font-size: 12.5px; flex-shrink: 0; }

.grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.card-wide { grid-column: span 3; }

.card h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.stat-pair { display: flex; gap: 36px; }
.stat-block { flex: 1; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  color: var(--orchid);
  line-height: 1;
}
.stat-label { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); }

.gauge-value {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 10px;
}

.bar {
  height: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orchid), var(--rose));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.sub-label { margin-top: 8px; font-size: 11.5px; color: var(--text-faint); font-family: var(--font-mono); }

.discord-card .discord-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.discord-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  object-fit: cover;
}
.discord-info { flex: 1; }
.discord-name { font-weight: 600; font-size: 15px; }
.discord-counts { margin-top: 4px; display: flex; gap: 16px; font-size: 12.5px; color: var(--text-dim); }
.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-faint);
  margin-right: 6px;
}
.dot.online { background: var(--orchid); box-shadow: 0 0 6px var(--orchid-glow); }

.site-footer {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-meta {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 12.5px;
}
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--orchid); }
.footer-links span { color: var(--text-faint); }

.footer-brand {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .stat-pair { gap: 20px; }
}
