:root {
    --bg-dark: #050505;
    --bg-card: rgba(24, 24, 27, 0.4);
    --primary-blue: #2563eb;
    --primary-blue-hover: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.25);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(5, 5, 5, 0.7);
    --badge-slash: #10b981;
    --badge-prefix: #f59e0b;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }


.background-effects { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.orb-1 { top: -10%; left: 20%; width: 500px; height: 500px; background: var(--primary-glow); }
.orb-2 { bottom: -20%; right: 10%; width: 600px; height: 600px; background: rgba(16, 185, 129, 0.1); }

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }


.navbar { position: fixed; top: 0; width: 100%; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); z-index: 100; transition: transform 0.3s ease; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; }
.logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-muted); font-weight: 500; transition: var(--transition); }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; gap: 1rem; align-items: center; }


button, .btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: var(--transition); border: none; font-size: 0.95rem;
}
.btn-primary {
    background: var(--primary-blue); color: #fff; position: relative;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary::after {
    content: ''; position: absolute; inset: -2px; border: 2px solid transparent;
    border-radius: 10px; transition: var(--transition); pointer-events: none;
}
.btn-primary:hover { background: var(--primary-blue-hover); transform: translateY(-1px); }
.btn-primary:hover::after { border-color: rgba(255, 255, 255, 0.8); inset: -4px; }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.btn-ghost { background: transparent; color: var(--text-muted); padding: 0.6rem 0.8rem; }
.btn-ghost:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.btn-large { padding: 0.8rem 1.5rem; font-size: 1.05rem; }


.hero { padding: 12rem 2rem 6rem; text-align: center; }
.badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(37, 99, 235, 0.1); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.2); border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 2rem; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.text-glow { color: transparent; background: linear-gradient(to right, #60a5fa, #3b82f6); -webkit-background-clip: text; background-clip: text; text-shadow: 0 0 40px rgba(59, 130, 246, 0.4); }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }


.features { padding: 5rem 0; position: relative; z-index: 1; }
.section-title { text-align: center; font-size: 2.5rem; font-weight: 700; margin-bottom: 4rem; letter-spacing: -0.02em; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.feature-card { padding: 2rem; transition: transform 0.3s ease, border-color 0.3s ease; display: flex; flex-direction: column; align-items: flex-start; }
.feature-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); }
.icon-wrapper { width: 48px; height: 48px;  background: transparent; border: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #60a5fa; margin-bottom: 1.5rem; }
.feature-card h4 { font-size: 1.25rem; margin-bottom: 0.75rem; font-weight: 600; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }


.commands-section { padding: 5rem 0; }
.commands-controls { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }
.search-wrapper { position: relative; width: 100%; max-width: 500px; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); }
#commandSearch { width: 100%; padding: 1rem 1rem 1rem 3rem; border-radius: 12px; border: 1px solid var(--border-color); background: rgba(0,0,0,0.5); color: var(--text-main); font-size: 1rem; outline: none; transition: var(--transition); backdrop-filter: blur(10px); }
#commandSearch:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; background: rgba(255,255,255,0.03); padding: 0.3rem; border-radius: 12px; border: 1px solid var(--border-color); }
.filter-btn { background: transparent; color: var(--text-muted); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 500; transition: var(--transition); }
.filter-btn:hover { color: var(--text-main); background: rgba(255,255,255,0.05); }
.filter-btn.active { background: var(--border-color); color: var(--text-main); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.commands-wrapper { position: relative; }
.commands-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; transition: height 0.5s ease; }
.command-card { background: var(--bg-card); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; display: flex; flex-direction: column; gap: 0.75rem; backdrop-filter: blur(10px); opacity: 1; transform: scale(1); transition: opacity 0.3s ease, transform 0.3s ease; }
.command-card.hidden { opacity: 0; transform: scale(0.95); position: absolute; pointer-events: none; visibility: hidden; }
.command-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cmd-name { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 1.05rem; font-weight: 700; color: #60a5fa; word-break: break-all; }
.cmd-args { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.8rem; color: var(--text-muted); display: block; margin-top: 0.2rem; }
.cmd-type { font-size: 0.75rem; padding: 0.25rem 0.6rem; border-radius: 6px; font-weight: 600; flex-shrink: 0; }
.type-slash { background: rgba(16, 185, 129, 0.1); color: var(--badge-slash); border: 1px solid rgba(16, 185, 129, 0.2); }
.type-prefix { background: rgba(245, 158, 11, 0.1); color: var(--badge-prefix); border: 1px solid rgba(245, 158, 11, 0.2); }
.cmd-desc { font-size: 0.9rem; color: #cbd5e1; }
.cmd-perm { font-size: 0.75rem; color: var(--text-muted); margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 0.4rem; }

.mobile-expand-overlay { display: none; }


.support-banner { margin: 6rem auto; max-width: 900px; text-align: center; overflow: hidden; position: relative; }
.support-content { padding: 4rem 2rem; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.support-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top, rgba(37,99,235,0.1) 0%, transparent 70%); z-index: 1; }
.support-icon { width: 64px; height: 64px; background: transparent; color: #60a5fa; border: none; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.support-banner h2 { font-size: 2rem; margin-bottom: 1rem; }
.support-banner p { color: var(--text-muted); margin-bottom: 2.5rem; max-width: 500px; }


.footer { background: rgba(5,5,5,0.8); border-top: 1px solid var(--border-color); padding: 4rem 0 2rem; margin-top: auto; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.2rem; }
.footer-brand img { height: 32px; width: 32px; border-radius: 50%; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid var(--border-color); padding-top: 2rem; color: var(--text-muted); font-size: 0.85rem; }


.legal-content { padding: 10rem 2rem 6rem; max-width: 800px; margin: 0 auto; min-height: 80vh; }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 3rem; color: #fff; }
.legal-content h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: #e2e8f0; }
.legal-content p { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.8; }
.legal-content ul { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--text-muted); }
.legal-content li { margin-bottom: 0.5rem; line-height: 1.6; }


.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; will-change: opacity, transform; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .footer-container { flex-direction: column; text-align: center; justify-content: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
    
    
    .commands-list.mobile-collapsed {
        max-height: 600px; overflow: hidden; position: relative;
    }
    .mobile-expand-overlay {
        display: flex; position: absolute; bottom: 0; left: 0; right: 0;
        height: 150px; background: linear-gradient(to bottom, transparent, var(--bg-dark));
        align-items: flex-end; justify-content: center; padding-bottom: 1rem; z-index: 10;
    }
    .commands-list.mobile-expanded { max-height: none; }
    .commands-list.mobile-expanded + .mobile-expand-overlay { display: none; }
}