/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #060711;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(139,92,246,0.5);
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --blue: #3b82f6;
  --blue-light: #60a5fa;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Space Grotesk', 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Stars ────────────────────────────────────────────────── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--min-op, 0.1); transform: scale(1); }
  50% { opacity: var(--max-op, 0.8); transform: scale(1.2); }
}

/* ── Aurora ───────────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(124,58,237,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% -10%, rgba(59,130,246,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(124,58,237,0.08) 0%, transparent 60%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { opacity: 0.7; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.05) rotate(1deg); }
}

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,7,17,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-pfp {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,58,237,0.5);
}
.nav-name {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-support {
  color: #a78bfa !important;
  background: rgba(124,58,237,0.12);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(124,58,237,0.25);
  transition: background 0.2s, border-color 0.2s !important;
}
.nav-support:hover {
  background: rgba(124,58,237,0.22) !important;
  border-color: rgba(124,58,237,0.5) !important;
  color: #c4b5fd !important;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.hero-content { position: relative; max-width: 720px; }
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* PFP */
.pfp-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}
.hero-pfp {
  width: 130px; height: 130px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 4px rgba(124,58,237,0.4),
    0 0 40px rgba(124,58,237,0.4),
    0 0 80px rgba(59,130,246,0.2);
  animation: pfpFloat 6s ease-in-out infinite;
  transition: transform 0.3s;
}
.hero-pfp:hover { transform: scale(1.06); }
@keyframes pfpFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.pfp-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(59,130,246,0.5), transparent, rgba(124,58,237,0.5)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: ringRotate 6s linear infinite;
}
.pfp-ring-2 {
  inset: -22px;
  border-color: rgba(59,130,246,0.2);
  animation-direction: reverse;
  animation-duration: 10s;
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #c4b5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #a78bfa 100%);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 400;
}
.hero-sub strong { color: #c4b5fd; }

/* Buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple) 0%, #5b21b6 50%, var(--blue) 100%);
  color: white;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4), 0 0 0 1px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,0.6), 0 0 0 1px rgba(124,58,237,0.5);
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.btn-secondary:hover {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.1);
}

.hero-prefix {
  color: var(--text-dim);
  font-size: 0.9rem;
}
.hero-prefix code {
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 6px; height: 6px;
  background: var(--text-dim);
  border-radius: 50%;
  animation: scrollBounce 2s ease-in-out infinite;
  margin: 0 auto;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(10px); opacity: 0.9; }
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 24px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a78bfa;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}
.section-sub code {
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 6px;
  color: #a78bfa;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  animation: fadeUp 0.5s ease forwards;
}
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.15);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.2));
  border: 1px solid rgba(124,58,237,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #c4b5fd;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ── Commands ─────────────────────────────────────────────── */
.commands-section {
  background: linear-gradient(to bottom, transparent, rgba(124,58,237,0.04), transparent);
}
.cmd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.cmd-tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.cmd-tab:hover {
  border-color: rgba(124,58,237,0.4);
  color: var(--text);
}
.cmd-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.cmd-search-wrap {
  position: relative;
  margin-bottom: 36px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.cmd-search {
  width: 100%;
  max-width: 400px;
  padding: 12px 16px 12px 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cmd-search::placeholder { color: var(--text-dim); }
.cmd-search:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.cmd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: all 0.2s;
  cursor: default;
}
.cmd-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.12);
}
.cmd-card.hidden { display: none; }
.cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cmd-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Courier New', monospace;
  background: rgba(124,58,237,0.12);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(124,58,237,0.2);
}
.cmd-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}
.cmd-badge.ai    { background: rgba(139,92,246,0.2); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.cmd-badge.fun   { background: rgba(236,72,153,0.15); color: #f9a8d4; border: 1px solid rgba(236,72,153,0.25); }
.cmd-badge.games { background: rgba(59,130,246,0.15); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); }
.cmd-badge.eco   { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.25); }
.cmd-badge.lvl   { background: rgba(245,158,11,0.15); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.cmd-badge.music { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.cmd-badge.util  { background: rgba(107,114,128,0.2); color: #d1d5db; border: 1px solid rgba(107,114,128,0.3); }

.cmd-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  margin-bottom: 10px;
}
.cmd-alias {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.04);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { padding: 80px 24px; }
.cta-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-pfp {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(124,58,237,0.4);
  box-shadow: 0 0 30px rgba(124,58,237,0.3);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.cta-card h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.cta-card p {
  color: var(--text-muted);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-pfp {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: #a78bfa; }
.footer-copy {
  color: var(--text-dim);
  font-size: 0.875rem;
}
.footer-copy strong { color: #a78bfa; }

/* ── Chat Widget ──────────────────────────────────────────── */
#chatWidget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
#chatToggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(124,58,237,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
#chatToggle:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(124,58,237,0.65); }
#chatPanel {
  width: 340px;
  max-height: 480px;
  background: rgba(10, 11, 26, 0.97);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.15);
  backdrop-filter: blur(24px);
  animation: chatSlideIn 0.25s ease;
}
#chatPanel.open { display: flex; }
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#chatHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.1));
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
#chatPfp {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(124,58,237,0.5);
}
#chatHeaderInfo { display: flex; flex-direction: column; gap: 2px; }
#chatName { font-weight: 700; font-size: 0.95rem; color: var(--text); }
#chatStatus {
  font-size: 0.75rem;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 6px #4ade80;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
#chatMessages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.3) transparent;
}
#chatMessages::-webkit-scrollbar { width: 4px; }
#chatMessages::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 4px; }
.chat-msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(124,58,237,0.3);
}
.chat-bubble {
  max-width: 220px;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg.bot .chat-bubble {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 13px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
}
.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
#chatInputArea {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(124,58,237,0.15);
  background: rgba(0,0,0,0.2);
}
#chatInput {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  padding: 9px 13px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
#chatInput:focus { border-color: rgba(124,58,237,0.6); }
#chatInput::placeholder { color: rgba(255,255,255,0.3); }
#chatSend {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}
#chatSend:hover { opacity: 0.85; transform: scale(1.05); }
#chatSend:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
@media (max-width: 500px) {
  #chatWidget { bottom: 16px; right: 16px; }
  #chatPanel { width: calc(100vw - 32px); max-height: 420px; }
}

/* ── Hamburger button ─────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--surface-hover); border-color: rgba(124,58,237,0.4); }
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ──────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(6, 7, 17, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 12px 20px 20px;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.mobile-link:hover, .mobile-link:active { background: var(--surface-hover); color: var(--text); }
.mobile-premium { color: #fcd34d !important; }
.mobile-premium:hover { background: rgba(245,158,11,0.1) !important; }
.mobile-invite {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: white !important;
  font-weight: 700;
  text-align: center;
}
.mobile-invite:hover { opacity: 0.9; color: white !important; }
.mobile-support {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 600;
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  /* Nav — show hamburger, hide link bar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .nav-inner { padding: 0 4px; }
  .nav-logo { gap: 7px; }
  .nav-name { font-size: 1rem; }

  /* Hero */
  .hero { padding: 110px 16px 60px; }
  .hero-title { font-size: 2.4rem; letter-spacing: -0.01em; }
  .hero-sub { font-size: 0.95rem; }
  .hero-pfp { width: 100px; height: 100px; }
  .hero-prefix { font-size: 0.8rem; flex-wrap: wrap; justify-content: center; }
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn { justify-content: center; width: 100%; }

  /* Section */
  .section { padding: 60px 16px; }
  .section-title { font-size: 1.8rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Command tabs — scrollable row */
  .cmd-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    gap: 6px;
    scrollbar-width: none;
  }
  .cmd-tabs::-webkit-scrollbar { display: none; }
  .cmd-tab { white-space: nowrap; flex-shrink: 0; font-size: 0.8rem; padding: 7px 14px; }

  /* Command search */
  .cmd-search { max-width: 100%; }

  /* Command grid */
  .cmd-grid { grid-template-columns: 1fr; gap: 10px; }

  /* CTA */
  .cta-card { padding: 32px 20px; }
  .cta-card h2 { font-size: 1.5rem; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer-links { justify-content: center; flex-wrap: wrap; gap: 14px; }
  .footer-copy { font-size: 0.8rem; }
}
