/* ─── Base ───────────────────────────────────────────────────────── */
:root {
  --bg:       #0d0e10;
  --s1:       #13151a;
  --s2:       #1a1d24;
  --s3:       #21242d;
  --border:   #2c2f3a;
  --accent:   #5865f2;
  --accentlo: rgba(88,101,242,0.12);
  --accentbr: rgba(88,101,242,0.3);
  --pink:     #eb459e;
  --green:    #57f287;
  --yellow:   #fee75c;
  --red:      #ed4245;
  --text:     #e3e5e8;
  --sub:      #949ba4;
  --dim:      #5c6370;
  --rule:     #58a6ff;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─── Navbar ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,14,16,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 62px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 700; white-space: nowrap;
}
.nav-brand img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.nav-brand .ver {
  font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff; padding: 2px 8px; border-radius: 20px;
}
.nav-links {
  display: flex; gap: 3px;
  background: var(--s2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.nav-links a {
  font-size: 13px; font-weight: 600; color: var(--sub);
  padding: 7px 16px; border-radius: 8px;
  transition: background .2s, color .2s, box-shadow .2s;
  display: block; white-space: nowrap;
}
.nav-links a:hover { background: var(--s3); color: var(--text); }
.nav-links a.active {
  background: linear-gradient(135deg, var(--accent), #4752c4);
  color: #fff;
  box-shadow: 0 2px 10px rgba(88,101,242,.4);
}
.nav-cta {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), #4752c4);
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.nav-cta:hover { filter: brightness(1.15); transform: translateY(-1px); }
.nav-cta svg { flex-shrink: 0; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: transform .15s, filter .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), #4752c4);
  color: #fff; box-shadow: 0 4px 24px rgba(88,101,242,.35);
}
.btn-accent:hover { filter: brightness(1.1); }
.btn-ghost {
  background: var(--s2); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--s3); }
.btn-discord {
  background: #5865f2; color: #fff;
  box-shadow: 0 4px 20px rgba(88,101,242,.25);
}
.btn-discord:hover { filter: brightness(1.12); }
.btn-pink {
  background: linear-gradient(135deg, var(--pink), #a0369d);
  color: #fff; box-shadow: 0 4px 20px rgba(235,69,158,.25);
}
.btn-pink:hover { filter: brightness(1.12); }

/* ─── Inner page wrapper ─────────────────────────────────────────── */
.inner { width: 100%; max-width: 860px; margin: 0 auto; padding: 56px 24px 90px; flex: 1; }
.inner-header { margin-bottom: 40px; }
.inner-header h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.inner-header p { font-size: 14px; color: var(--sub); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ─── HOME ───────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 88px 24px 64px; gap: 24px;
  flex: 1;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accentlo); border: 1px solid var(--accentbr);
  color: #a5b4fc; font-size: 12.5px; font-weight: 500;
  padding: 5px 14px; border-radius: 20px;
}
.hero-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block;
  box-shadow: 0 0 6px var(--green);
}
.hero-logo {
  width: 90px; height: 90px; border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 40px rgba(88,101,242,0.3);
}
.hero h1 {
  font-size: clamp(34px,6vw,60px); font-weight: 800;
  line-height: 1.12; letter-spacing: -1px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #818cf8, var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 16px; color: var(--sub); max-width: 440px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* Stats bar */
.home-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--s1);
}
.stat {
  flex: 1; min-width: 130px;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 20px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-n { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.stat-l { font-size: 12px; color: var(--sub); margin-top: 4px; font-weight: 500; }

/* Uptime badge */
.uptime-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  background: rgba(87,242,135,.08); border: 1px solid rgba(87,242,135,.2);
  color: #86efac; padding: 3px 9px; border-radius: 20px; margin-top: 6px;
}
.uptime-tag .dot-g { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse-g 2s infinite; }
@keyframes pulse-g { 0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(87,242,135,.4); } 50%{ opacity:.8; box-shadow:0 0 0 4px rgba(87,242,135,0); } }

/* ─── COMMANDS ───────────────────────────────────────────────────── */
.cmd-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.cmd-tab {
  font-size: 13px; font-weight: 600;
  padding: 7px 16px; border-radius: 8px;
  background: var(--s2); color: var(--sub);
  border: 1px solid var(--border);
  transition: background .15s, color .15s, border-color .15s;
}
.cmd-tab:hover { color: var(--text); }
.cmd-tab.active { background: var(--accentlo); color: #a5b4fc; border-color: var(--accentbr); }
.cmd-section { display: none; }
.cmd-section.on { display: block; }
.cmd-group { margin-bottom: 32px; }
.cmd-group-title {
  font-size: 13px; font-weight: 700; color: var(--sub);
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.cmd-group-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cmd-grid { display: flex; flex-direction: column; gap: 6px; }
.cmd-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  transition: border-color .15s, background .15s;
}
.cmd-card:hover { background: var(--s2); border-color: #3d4252; }
.cmd-chip {
  min-width: 38px; height: 38px;
  background: var(--accentlo); border: 1px solid var(--accentbr);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.cmd-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13.5px; font-weight: 700; color: #a5b4fc;
  margin-bottom: 3px;
}
.cmd-desc { font-size: 13px; color: var(--sub); line-height: 1.5; }
.cmd-badge {
  background: var(--s3); padding: 1px 5px; border-radius: 4px;
  font-size: 12px; font-family: 'Courier New', monospace;
}
.info-box {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
  font-size: 13px; color: var(--sub); line-height: 1.6;
}
.info-box-gold {
  background: rgba(251,191,36,.05); border: 1px solid rgba(251,191,36,.2);
  border-radius: 10px; padding: 14px 16px;
  font-size: 13px; color: #fcd34d; line-height: 1.6;
}

/* ─── TOS ────────────────────────────────────────────────────────── */
.tos-notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--accentlo); border: 1px solid var(--accentbr);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 32px;
  font-size: 13.5px; color: #a5b4fc; line-height: 1.6;
}
.tos-notice .icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.rule-list { display: flex; flex-direction: column; gap: 2px; }
.rule-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; border-radius: 10px;
  transition: background .15s;
}
.rule-item:hover { background: var(--s1); }
.rule-num {
  min-width: 32px; height: 32px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: var(--sub); flex-shrink: 0; margin-top: 1px;
}
.rule-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.rule-text { font-size: 13.5px; color: var(--sub); line-height: 1.65; padding-left: 10px; border-left: 2px solid var(--border); }
.rule-text ul { padding-left: 14px; margin-top: 4px; }
.rule-text ul li { list-style: disc; margin-bottom: 3px; }
.rule-sep { height: 1px; background: var(--border); margin: 4px 16px; }
.verdict {
  margin-top: 24px;
  background: rgba(87,242,135,.05); border: 1px solid rgba(87,242,135,.2);
  border-radius: 10px; padding: 16px 18px;
  font-size: 13.5px; color: #9ef5be; line-height: 1.65;
}
.verdict strong { color: var(--green); }

/* ─── PRIVACY ────────────────────────────────────────────────────── */
.priv-block {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 26px; margin-bottom: 14px;
}
.priv-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.priv-block p, .priv-block li { font-size: 13.5px; color: var(--sub); line-height: 1.7; }
.priv-block ul { padding-left: 18px; margin-top: 8px; }
.priv-block li { margin-bottom: 4px; }
.priv-block a { color: var(--accent); }
.priv-block a:hover { text-decoration: underline; }

/* ─── Level badge ────────────────────────────────────────────────── */
.lvl-badge {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  background: rgba(251,191,36,.12); color: #fcd34d;
  border: 1px solid rgba(251,191,36,.25);
  padding: 1px 7px; border-radius: 20px;
  margin-left: 6px; vertical-align: middle;
}

/* ─── Custom icons ───────────────────────────────────────────────── */
.page-icon {
  width: 28px; height: 28px; object-fit: contain;
  vertical-align: middle; margin-right: 6px;
}
.nav-icon {
  width: 18px; height: 18px; object-fit: contain;
  vertical-align: middle;
}
.tos-icon {
  width: 22px; height: 22px; object-fit: contain;
  flex-shrink: 0; margin-top: 1px;
}

/* ─── CREDITS ────────────────────────────────────────────────────── */
.credits-hero {
  text-align: center; padding: 48px 24px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.credits-hero img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 6px 32px rgba(88,101,242,.3); }
.credits-hero h2 { font-size: 24px; font-weight: 800; }
.credits-hero p { font-size: 13.5px; color: var(--sub); max-width: 400px; line-height: 1.65; }
.version-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(88,101,242,.15), rgba(235,69,158,.1));
  border: 1px solid rgba(88,101,242,.3);
  color: #a5b4fc; font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 20px;
}
.credit-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.credit-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--s1); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color .15s, background .15s;
}
.credit-card:hover { background: var(--s2); border-color: #3d4252; }
.credit-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  border: 2px solid var(--border);
}
.credit-avatar.gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.credit-avatar.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.credit-avatar.purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.credit-avatar.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.credit-info { flex: 1; }
.credit-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.credit-role {
  display: inline-block; font-size: 11.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 20px; margin-bottom: 5px;
}
.role-founder { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.25); }
.role-dev { background: rgba(88,101,242,.12); color: #a5b4fc; border: 1px solid rgba(88,101,242,.25); }
.role-contributor { background: rgba(139,92,246,.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,.25); }
.role-tester { background: rgba(20,184,166,.12); color: #5eead4; border: 1px solid rgba(20,184,166,.25); }
.credit-id { font-size: 12px; color: var(--dim); font-family: 'Courier New', monospace; }
.testers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: var(--s1); border-top: 1px solid var(--border);
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer span { font-size: 12.5px; color: var(--dim); }
.foot-links { display: flex; gap: 18px; align-items: center; }
.foot-links a { font-size: 12.5px; color: var(--dim); transition: color .15s; }
.foot-links a:hover { color: var(--sub); }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .nav-links a { padding: 7px 10px; font-size: 12.5px; }
  .inner { padding: 36px 16px 70px; }
  .hero { padding: 60px 16px 48px; }
  .stat { min-width: 100px; padding: 20px 12px; }
  .cmd-tab { font-size: 12px; padding: 6px 12px; }
  footer { padding: 14px 16px; }
  .nav-cta span { display: none; }
  .testers-grid { grid-template-columns: 1fr; }
}
