*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a; --bg2: #111111; --bg3: #1a1a1a;
  --fg: #f0f0f0; --fg2: #aaaaaa; --fg3: #666666;
  --accent: #e8e8e8; --border: #2a2a2a; --border2: #333333;
  --grad-hero: linear-gradient(135deg, #f0f0f0 0%, #888888 100%);
  --glow: none; --card-bg: #111111; --card-border: #222222;
  --mono: 'JetBrains Mono', monospace; --sans: 'Syne', sans-serif;
}

[data-theme="neon"] {
  --bg: #080510; --bg2: #0d0a1a; --bg3: #130f25;
  --fg: #f0eaff; --fg2: #b8a8e8; --fg3: #7a6aaa;
  --accent: #b060ff; --border: #2a1a50; --border2: #3a2a70;
  --grad-hero: linear-gradient(135deg, #b060ff 0%, #00e5ff 100%);
  --glow: 0 0 60px hsl(270 100% 60% / 0.25), 0 0 120px hsl(270 100% 60% / 0.1);
  --card-bg: #0d0a1a; --card-border: #2a1a50;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); padding: 0 2rem; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, border-color 0.4s;
}
.nav-logo { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--fg); text-decoration: none; letter-spacing: -0.02em; }
[data-theme="neon"] .nav-logo { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.85rem; color: var(--fg2); text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 1.2rem; }

/* THEME PILL */
.theme-pill {
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 6px; overflow: hidden;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.theme-pill-btn {
  padding: 0.42rem 0.85rem; cursor: pointer; color: var(--fg3);
  border: none; background: transparent; font-family: inherit;
  font-size: inherit; font-weight: inherit; letter-spacing: inherit;
  text-transform: inherit; transition: color 0.25s, background 0.25s;
}
.theme-pill-btn:hover { color: var(--fg2); }
.theme-pill-btn.active-mono { background: #e8e8e8; color: #0a0a0a; border-radius: 4px; }
.theme-pill-btn.active-neon { background: linear-gradient(90deg, #b060ff, #00e5ff); color: #fff; border-radius: 4px; text-shadow: 0 0 8px rgba(176,96,255,0.7); }

/* BUTTONS */
.btn {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.55rem 1.2rem; border-radius: 4px;
  border: 1px solid var(--border2); background: var(--bg3);
  color: var(--fg); cursor: pointer; text-decoration: none;
  display: inline-block; transition: 0.2s;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: transparent; color: var(--fg); }
[data-theme="neon"] .btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 20px hsl(270 100% 60% / 0.4); }
[data-theme="neon"] .btn-primary:hover { background: transparent; color: var(--accent); }

/* HERO */
.hero {
  min-height: 90vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 6rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% 0%, hsl(0 0% 20% / 0.15), transparent); pointer-events: none; }
[data-theme="neon"] .hero::before { background: radial-gradient(ellipse 80% 50% at 50% 0%, hsl(270 100% 60% / 0.12), transparent), radial-gradient(ellipse 60% 40% at 80% 80%, hsl(190 100% 50% / 0.08), transparent); }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 0.9rem; border: 1px solid var(--border2); border-radius: 2px; color: var(--fg3); margin-bottom: 2.5rem; animation: fadeUp 0.6s ease both; }
.hero-badge span { color: var(--accent); }
.hero-h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 1.5rem; animation: fadeUp 0.6s 0.1s ease both; }
.grad-text { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--fg2); max-width: 520px; line-height: 1.6; margin-bottom: 2.5rem; animation: fadeUp 0.6s 0.2s ease both; font-weight: 400; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; animation: fadeUp 0.6s 0.3s ease both; }
.hero-cmd { margin-top: 4rem; font-family: var(--mono); font-size: 0.85rem; color: var(--fg3); animation: fadeUp 0.6s 0.4s ease both; }
.hero-cmd code { color: var(--accent); background: var(--bg3); padding: 0.2rem 0.6rem; border-radius: 3px; border: 1px solid var(--border); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* SECTIONS */
section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg3); margin-bottom: 0.8rem; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.section-sub { color: var(--fg2); font-size: 1rem; max-width: 480px; line-height: 1.6; margin-bottom: 3rem; font-weight: 400; }

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.feature-card { background: var(--card-bg); padding: 2rem; transition: background 0.2s; }
.feature-card:hover { background: var(--bg3); }
.feature-icon { font-size: 1.4rem; margin-bottom: 1rem; display: block; }
.feature-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.85rem; color: var(--fg2); line-height: 1.6; font-weight: 400; }
.inline-code { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); }
.feature-tag { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 2px; border: 1px solid var(--border2); color: var(--fg3); display: inline-block; margin-top: 0.8rem; }
[data-theme="neon"] .feature-tag { border-color: var(--accent); color: var(--accent); text-shadow: 0 0 8px var(--accent); }

/* DEMO */
.demo-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem 5rem; }
.demo-section { background: var(--bg2); border-radius: 12px; padding: 3rem; }
.discord-window { background: #1e1f22; border-radius: 8px; overflow: hidden; border: 1px solid #2a2b30; max-width: 720px; margin: 2rem auto 0; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.discord-titlebar { background: #1e1f22; padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid #111213; }
.discord-dot { width: 10px; height: 10px; border-radius: 50%; }
.d-red { background: #ff5f57; } .d-yellow { background: #ffbd2e; } .d-green { background: #28c840; }
.discord-channel { font-family: var(--mono); font-size: 0.75rem; color: #72767d; margin-left: 0.5rem; }
.discord-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.discord-msg { display: flex; gap: 1rem; align-items: flex-start; }
.discord-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; font-family: var(--mono); }
.discord-avatar.user { background: #4a5568; color: #e2e8f0; }
.discord-avatar.bot { background: #5865f2; color: white; }
.discord-content { flex: 1; }
.discord-username { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.user-name { color: #c9d1d9; } .bot-name { color: #5865f2; }
.bot-tag { font-size: 0.6rem; background: #5865f2; color: white; padding: 0.1rem 0.35rem; border-radius: 2px; font-family: var(--mono); }
.discord-text { font-family: var(--mono); font-size: 0.82rem; color: #dcddde; line-height: 1.6; }
.discord-response { background: #2b2d31; border-left: 3px solid #5865f2; border-radius: 0 4px 4px 0; padding: 0.6rem 0.8rem; margin-top: 0.3rem; }
[data-theme="neon"] .discord-response { border-left-color: var(--accent); }
.discord-field { font-size: 0.75rem; margin-bottom: 0.2rem; color: #b9bbbe; }
.discord-field strong { color: #dcddde; }

/* BUY */
.buy-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 3rem; display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; position: relative; overflow: hidden; }
[data-theme="neon"] .buy-card { box-shadow: var(--glow); border-color: var(--border2); }
.buy-card::before { content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px; background: radial-gradient(circle, hsl(0 0% 30% / 0.05), transparent 70%); pointer-events: none; }
[data-theme="neon"] .buy-card::before { background: radial-gradient(circle, hsl(270 100% 60% / 0.08), transparent 70%); }
.buy-pfp { width: 100px; height: 100px; border-radius: 16px; background: linear-gradient(135deg, #3a3a4a, #2a2a3a); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
[data-theme="neon"] .buy-pfp { border-color: var(--accent); box-shadow: 0 0 20px hsl(270 100% 60% / 0.3); }
.buy-pfp img { width: 100%; height: 100%; object-fit: cover; }
.buy-info { flex: 1; min-width: 200px; }
.buy-username { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.3rem; }
[data-theme="neon"] .buy-username { color: var(--accent); text-shadow: 0 0 20px hsl(270 100% 60% / 0.5); }
.buy-platform { font-family: var(--mono); font-size: 0.72rem; color: var(--fg3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.buy-desc { color: var(--fg2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; max-width: 420px; font-weight: 400; }
.buy-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.copy-btn { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 4px; border: 1px solid var(--border2); background: transparent; color: var(--fg2); cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 0.4rem; }
.copy-btn:hover { background: var(--bg3); color: var(--fg); }
.copy-btn.copied { color: #4ade80; border-color: #4ade80; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; max-width: 1100px; margin: 0 auto; }
.footer-brand { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: var(--fg2); text-decoration: none; }
[data-theme="neon"] .footer-brand { background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.8rem; color: var(--fg3); text-decoration: none; font-family: var(--mono); letter-spacing: 0.05em; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-copy { font-family: var(--mono); font-size: 0.72rem; color: var(--fg3); }

/* DIVIDER */
.divider { height: 1px; background: var(--border); max-width: 1100px; margin: 0 auto; transition: background 0.4s; }

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

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .buy-card { padding: 2rem; gap: 2rem; }
  .demo-section { padding: 2rem 1rem; }
  footer { flex-direction: column; align-items: flex-start; }
}
