/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: #0c0e14;
    color: #e8eaf0;
    overflow-x: hidden;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* ── Design Tokens ── */
:root {
    --accent:      #818cf8;
    --accent-dark: #6366f1;
    --bg:          #0c0e14;
    --surface:     #131720;
    --surface2:    #1a1f2e;
    --border:      rgba(255, 255, 255, 0.07);
    --text:        #e8eaf0;
    --muted:       #64748b;
    --radius:      10px;
    --radius-lg:   14px;
}

/* ── Navbar ── */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(12, 14, 20, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1160px; margin: 0 auto;
    display: flex; align-items: center;
    padding: 0 2rem; height: 60px; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1rem; }
.logo-icon svg { width: 26px; height: 26px; }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin-left: auto; }
.nav-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.btn-invite {
    display: flex; align-items: center; gap: 7px;
    background: var(--accent-dark);
    color: #fff; font-weight: 600; font-size: 0.85rem;
    padding: 0.5rem 1.2rem; border-radius: 7px;
    transition: background 0.15s, transform 0.15s;
}
.btn-invite:hover { background: var(--accent); transform: translateY(-1px); }

/* ── Subtle top gradient (no orbs) ── */
.hero-bg {
    position: fixed; top: 0; left: 0; right: 0; height: 500px;
    background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(99,102,241,0.12) 0%, transparent 100%);
    z-index: -1; pointer-events: none;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: space-between;
    gap: 3rem; padding: 7rem 3rem 4rem;
    max-width: 1160px; margin: 0 auto;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(129,140,248,0.1);
    border: 1px solid rgba(129,140,248,0.25);
    color: var(--accent); font-size: 0.8rem; font-weight: 500;
    padding: 0.35rem 0.9rem; border-radius: 6px; margin-bottom: 1.6rem;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800;
    line-height: 1.15; margin-bottom: 1.4rem; letter-spacing: -0.025em;
    color: #f0f2f8;
}
.hero-title .accent-word { color: var(--accent); }
.hero-desc {
    color: #8892a4; font-size: 1rem;
    margin-bottom: 2.2rem; line-height: 1.8;
}
.hero-desc strong { color: #c0c8d8; font-weight: 600; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dark); color: #fff;
    font-weight: 600; font-size: 0.95rem;
    padding: 0.75rem 1.8rem; border-radius: 8px;
    transition: background 0.15s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid var(--border);
    color: var(--muted); font-weight: 500; font-size: 0.95rem;
    padding: 0.75rem 1.8rem; border-radius: 8px;
    transition: border-color 0.15s, color 0.15s, transform 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.18); color: var(--text); transform: translateY(-2px); }

/* ── Hero Stats ── */
.hero-stats {
    display: flex; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius);
    width: fit-content; overflow: hidden;
}
.stat-item {
    padding: 0.85rem 1.4rem; text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 1.35rem; font-weight: 700; color: var(--text);
    line-height: 1; margin-bottom: 3px;
}
.stat-label { font-size: 0.72rem; color: var(--muted); }

/* ── Chat Mockup ── */
.hero-visual { flex: 1; max-width: 460px; }
.chat-mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: float-card 8s ease-in-out infinite;
}
@keyframes float-card { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.chat-header {
    display: flex; align-items: center; gap: 6px;
    background: #0f1219; padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.chat-dot { width: 10px; height: 10px; border-radius: 50%; }
.chat-dot.red    { background: #ff5f57; }
.chat-dot.yellow { background: #febc2e; }
.chat-dot.green  { background: #28c840; }
.chat-channel {
    font-size: 0.78rem; color: var(--muted); margin-left: 8px;
    font-family: 'JetBrains Mono', monospace;
}
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-start; }
.msg-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.user-av { background: #4f46e5; color: #fff; }
.bot-av  { background: rgba(129,140,248,0.15); border: 1px solid rgba(129,140,248,0.3); }
.msg-name { font-size: 0.73rem; font-weight: 600; display: block; margin-bottom: 4px; color: #6b7280; }
.bot-name { color: var(--accent); }
.bot-tag {
    background: rgba(99,102,241,0.2); border: 1px solid rgba(99,102,241,0.4);
    color: #818cf8; font-size: 0.58rem; padding: 1px 5px; border-radius: 3px;
    font-weight: 700; margin-left: 4px; font-family: 'JetBrains Mono', monospace;
}
.msg-content p { font-size: 0.85rem; color: #d1d5db; }
.msg-code {
    background: #0c0e14; border: 1px solid var(--border);
    border-radius: 7px; padding: 10px 12px; margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
}
.msg-code pre { font-size: 0.76rem; line-height: 1.75; overflow-x: auto; }
.kw  { color: #c084fc; }
.fn  { color: #60a5fa; }
.val { color: #34d399; }
.typing-dots { display: flex; gap: 4px; padding: 4px 0; }
.typing-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: #374151;
    animation: typing-bounce 1.3s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce { 0%,100%{transform:translateY(0);opacity:0.35} 50%{transform:translateY(-4px);opacity:1} }

/* ── Shared layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 3rem; }
.section-badge {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
}
.section-header h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800;
    letter-spacing: -0.02em; margin-bottom: 0.65rem; color: var(--text);
}
.section-header p { color: var(--muted); font-size: 0.97rem; max-width: 520px; }
code.inline-code {
    background: rgba(129,140,248,0.12); color: var(--accent);
    padding: 1px 6px; border-radius: 4px;
    font-family: 'JetBrains Mono', monospace; font-size: 0.88em;
}

/* ── Features ── */
.features { padding: 6rem 2rem; border-top: 1px solid var(--border); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature-card {
    background: var(--surface);
    padding: 2rem 1.75rem;
    transition: background 0.2s;
}
.feature-card:hover { background: var(--surface2); }
.feature-icon {
    width: 40px; height: 40px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(129,140,248,0.1);
    margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 0.97rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; margin-bottom: 1rem; }
.feature-tag {
    font-size: 0.75rem; color: #4b5563; font-weight: 500;
}

/* ── Commands ── */
.commands { padding: 6rem 2rem; border-top: 1px solid var(--border); }
.cmd-table-wrapper {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.cmd-table { width: 100%; border-collapse: collapse; }
.cmd-table thead tr { background: var(--surface); }
.cmd-table th {
    padding: 0.85rem 1.4rem; text-align: left;
    font-size: 0.78rem; font-weight: 600; color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.cmd-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.cmd-table tbody tr:last-child { border-bottom: none; }
.cmd-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.cmd-table td { padding: 1rem 1.4rem; font-size: 0.9rem; vertical-align: middle; }
.cmd-table td code {
    background: rgba(129,140,248,0.1); color: var(--accent);
    padding: 2px 8px; border-radius: 5px; font-size: 0.84rem;
    font-family: 'JetBrains Mono', monospace;
}
.perm-all {
    background: rgba(52,211,153,0.08); color: #34d399;
    border: 1px solid rgba(52,211,153,0.2);
    padding: 2px 10px; border-radius: 5px; font-size: 0.78rem; font-weight: 600;
}
.perm-admin {
    background: rgba(129,140,248,0.08); color: var(--accent);
    border: 1px solid rgba(129,140,248,0.2);
    padding: 2px 10px; border-radius: 5px; font-size: 0.78rem; font-weight: 600;
}
.cmd-note {
    display: flex; align-items: center; gap: 9px;
    margin-top: 1.2rem; padding: 0.9rem 1.2rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 0.86rem; color: var(--muted);
}
.cmd-note code { color: var(--accent); font-family: 'JetBrains Mono', monospace; }

/* ── Setup Guide ── */
.setup-guide { padding: 6rem 2rem; border-top: 1px solid var(--border); }
.steps { display: flex; flex-direction: column; gap: 0; max-width: 640px; }
.step {
    display: flex; gap: 1.5rem; align-items: flex-start;
    position: relative; padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
.step-num {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    font-size: 0.82rem; font-weight: 700; color: var(--accent);
    margin-top: 2px;
}
.step-connector {
    position: absolute; left: 15px; top: 38px; bottom: 0;
    width: 1px; background: var(--border);
}
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.step-content p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }
.step-content p code { color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.step-content p strong { color: #34d399; }

/* ── Status ── */
.status-section { padding: 6rem 2rem; border-top: 1px solid var(--border); }
.status-cards {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.status-card {
    background: var(--surface);
    padding: 1.75rem 1.5rem;
    transition: background 0.2s;
}
.status-card:hover { background: var(--surface2); }
.status-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
}
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--muted);
}
.status-dot.online {
    background: #34d399;
    box-shadow: 0 0 6px rgba(52,211,153,0.5);
    animation: blink 2.5s ease-in-out infinite;
}
.status-dot.offline { background: #ef4444; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.status-card-icon {
    width: 34px; height: 34px; border-radius: 7px;
    background: rgba(129,140,248,0.1);
    display: flex; align-items: center; justify-content: center;
}
.status-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }
.status-value { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1; }

/* ── Footer ── */
#footer { border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center;
}
.footer-logo { display: flex; align-items: center; gap: 9px; font-size: 0.97rem; font-weight: 700; }
.footer-logo .logo-icon svg { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 0.84rem; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.78rem; color: #374151; }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--text); }

/* ── Animations for scroll ── */
.fade-up {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .status-cards  { grid-template-columns: repeat(2, 1fr); }
    .hero { flex-direction: column; padding: 6.5rem 2rem 4rem; }
    .hero-visual { max-width: 100%; width: 100%; }
    .hero-actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .status-cards  { grid-template-columns: 1fr 1fr; }
    .hero-title    { font-size: 1.9rem; }
    .hero { padding: 6rem 1.5rem 3rem; }
}
