/* ═══════════════════════════════════════════════
   NEMESISBOT.XYZ - Global Stylesheet v2
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg:          #08080d;
  --surface:     #0e0e16;
  --surface2:    #13131e;
  --surface3:    #18182a;
  --border:      #1e1e32;
  --border2:     #2a2a48;
  --accent:      #7c5cfc;
  --accent-dim:  rgba(124,92,252,0.12);
  --accent-mid:  rgba(124,92,252,0.38);
  --accent-glow: rgba(124,92,252,0.22);
  --green:       #34d399;
  --green-dim:   rgba(52,211,153,0.12);
  --red:         #f87171;
  --amber:       #fbbf24;
  --text:        #e8e8f5;
  --text2:       #8080a0;
  --text3:       #3a3a56;
  --radius:      10px;
  --radius-sm:   6px;
  --nav-h:       64px;
  --max-w:       1120px;
  --font:        'Space Grotesk', sans-serif;
  --mono:        'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: var(--font); cursor: pointer; border: none; }
input, textarea, select { font-family: var(--font); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); background: rgba(8,8,13,0.85); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; color: var(--text); flex-shrink: 0; }
.nav__logo-icon { width: 30px; height: 30px; background: var(--accent-dim); border: 1px solid var(--accent-mid); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__links a { display: block; padding: 6px 14px; font-size: 14px; font-weight: 500; color: var(--text2); border-radius: var(--radius-sm); transition: color 0.15s, background 0.15s; }
.nav__links a:hover { color: var(--text); background: var(--surface2); }
.nav__links a.active { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: var(--font); font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: var(--radius-sm); cursor: pointer; transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s; white-space: nowrap; border: none; text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.9; box-shadow: 0 0 24px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn-discord { background: #5865F2; color: #fff; gap: 8px; }
.btn-discord:hover { background: #4752C4; }
.btn-sm { font-size: 13px; padding: 7px 16px; }
.btn-lg { font-size: 16px; padding: 13px 28px; }

/* ── Cards ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card2 { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); }

/* ── Badges / chips ── */
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-dim); border: 1px solid var(--accent-mid); color: var(--accent); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-dim); border-color: rgba(52,211,153,0.35); color: var(--green); }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); border-radius: 20px; padding: 5px 13px; font-size: 13px; font-weight: 500; }

/* ── Section headings ── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; color: var(--text); }
.section-sub { font-size: 16px; color: var(--text2); line-height: 1.65; max-width: 520px; margin-top: 12px; }
.divider { border: none; border-top: 1px solid var(--border); }

/* ── Toggle ── */
.toggle { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 11px; background: var(--surface3); border: 1px solid var(--border2); cursor: pointer; position: relative; transition: background 0.2s, border-color 0.2s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--text3); transition: left 0.2s, background 0.2s; }
.toggle:checked { background: var(--accent); border-color: var(--accent); }
.toggle:checked::after { left: 21px; background: #fff; }

/* ── Code ── */
code { font-family: var(--mono); background: var(--surface3); border: 1px solid var(--border2); padding: 2px 7px; border-radius: 4px; font-size: 0.875em; color: var(--accent); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 56px 0 36px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-top: 12px; max-width: 240px; }
.footer__col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: 14px; color: var(--text2); transition: color 0.15s; }
.footer__col ul a:hover { color: var(--text); }
.footer__bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text3); flex-wrap: wrap; gap: 12px; }
.footer__bottom a { color: var(--text3); transition: color 0.15s; }
.footer__bottom a:hover { color: var(--text2); }

/* ── Animations ── */
@keyframes float-glow { 0%,100%{opacity:.5;transform:scale(1)}50%{opacity:.8;transform:scale(1.08)} }
@keyframes fade-up { from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)} }
.fade-up { animation: fade-up 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

main { padding-top: var(--nav-h); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); padding: 28px; max-width: 440px; width: 100%; position: relative; transform: translateY(16px); transition: transform 0.2s; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.modal p { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 20px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text3); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 64px 0; }
}
