*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg2: #0f0f1a;
    --surface: #13131f;
    --surface2: #1a1a2e;
    --border: rgba(255,255,255,0.07);
    --text: #e2e8f0;
    --muted: #64748b;
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #0ea5e9;
    --gradient: linear-gradient(135deg, #7c3aed, #0ea5e9);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 4rem;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: .5rem; }
.logo-icon { font-size: 1.6rem; color: var(--primary-light); }
.logo-text { font-size: 1.2rem; font-weight: 700; letter-spacing: -.5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }

/* ── BUTTONS ── */
.btn-primary {
    background: var(--gradient);
    color: #fff; border: none; border-radius: 10px;
    padding: .6rem 1.4rem; font-size: .9rem; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: opacity .2s, transform .15s;
    display: inline-block;
}
.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-primary.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 12px; }

.btn-ghost {
    color: var(--muted); text-decoration: none; font-size: .9rem;
    padding: .6rem 1rem; border-radius: 10px; transition: color .2s, background .2s;
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }

.btn-outline {
    color: var(--text); text-decoration: none; font-size: 1rem; font-weight: 600;
    padding: .85rem 2rem; border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
    display: inline-block;
}
.btn-outline:hover { border-color: var(--primary-light); background: rgba(124,58,237,.08); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8rem 4rem 4rem;
    position: relative; overflow: hidden; gap: 3rem;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: .35;
}
.orb-1 { width: 500px; height: 500px; background: #7c3aed; top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: #0ea5e9; bottom: -50px; right: 10%; }
.orb-3 { width: 300px; height: 300px; background: #10b981; top: 40%; left: 40%; opacity: .2; }
.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content { position: relative; z-index: 1; max-width: 560px; }
.badge {
    display: inline-block; background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.4); color: var(--primary-light);
    padding: .35rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-content h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1.25rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--muted); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.4rem; font-weight: 700; }
.stat-label { font-size: .75rem; color: var(--muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ── APP MOCKUP ── */
.hero-visual { position: relative; z-index: 1; flex-shrink: 0; }
.app-mockup {
    display: flex; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
    background: var(--surface);
    width: 520px; height: 360px;
}
.mockup-sidebar {
    width: 60px; background: #0d0d18;
    display: flex; flex-direction: column; align-items: center;
    padding: .75rem 0; gap: .5rem;
}
.server-icon {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--surface2); display: flex; align-items: center; justify-content: center;
    font-size: 1rem; cursor: pointer; transition: border-radius .2s, background .2s;
}
.server-icon.active { background: var(--primary); border-radius: 16px; }
.server-icon.add { background: rgba(16,185,129,.15); color: #10b981; font-size: 1.2rem; }
.server-icon:hover:not(.active) { border-radius: 16px; background: var(--primary); }

.mockup-channels {
    width: 160px; background: #111120; padding: .75rem 0;
    border-right: 1px solid var(--border);
}
.channel-header { font-size: .75rem; font-weight: 700; padding: .5rem 1rem; color: var(--text); }
.channel-item {
    padding: .4rem 1rem; font-size: .8rem; color: var(--muted);
    cursor: pointer; border-radius: 6px; margin: 0 .5rem;
    transition: background .15s, color .15s;
}
.channel-item.active { background: rgba(124,58,237,.2); color: var(--text); }
.channel-item:hover:not(.active) { background: var(--surface2); color: var(--text); }
.channel-item.voice { color: #10b981; }

.mockup-chat {
    flex: 1; display: flex; flex-direction: column; padding: .75rem;
    gap: .6rem; overflow: hidden;
}
.chat-msg { display: flex; align-items: flex-start; gap: .6rem; }
.msg-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.msg-body { display: flex; flex-direction: column; gap: .15rem; }
.msg-name { font-size: .7rem; font-weight: 600; color: var(--primary-light); }
.msg-text { font-size: .8rem; color: var(--text); }
.chat-input-mock {
    margin-top: auto; background: var(--surface2); border-radius: 8px;
    padding: .6rem 1rem; font-size: .8rem; color: var(--muted);
    border: 1px solid var(--border);
}

/* ── FEATURES ── */
.features {
    padding: 6rem 4rem; text-align: center;
    background: var(--bg2);
}
.section-label {
    display: inline-block; color: var(--primary-light);
    font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1rem;
}
.features h2, .community h2, .cta h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 3rem; line-height: 1.2;
}
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 2rem; text-align: left;
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(124,58,237,.4); transform: translateY(-4px); }
.feature-icon {
    margin-bottom: 1rem;
    background: rgba(124,58,237,.15);
    border: 1px solid rgba(124,58,237,.3);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px;
    width: fit-content;
}
.feature-icon svg {
    width: 18px; height: 18px;
    stroke: var(--primary-light);
    flex-shrink: 0;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── COMMUNITY ── */
.community { padding: 6rem 4rem; }
.community-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.servers-showcase {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem; margin-top: 1rem;
}
.server-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
    transition: border-color .2s, transform .2s;
}
.server-card:hover { border-color: rgba(124,58,237,.4); transform: translateY(-2px); }
.server-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0;
}
.server-card-info { display: flex; flex-direction: column; flex: 1; text-align: left; }
.server-card-name { font-weight: 600; font-size: .95rem; }
.server-card-members { font-size: .8rem; color: var(--muted); }
.btn-join {
    background: rgba(124,58,237,.15); color: var(--primary-light);
    border: 1px solid rgba(124,58,237,.3); border-radius: 8px;
    padding: .4rem .9rem; font-size: .8rem; font-weight: 600;
    text-decoration: none; transition: background .2s;
    white-space: nowrap;
}
.btn-join:hover { background: rgba(124,58,237,.3); }

/* ── CTA ── */
.cta {
    padding: 8rem 4rem; text-align: center;
    background: var(--bg2); position: relative; overflow: hidden;
}
.cta-orb {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,.3), transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none;
}
.cta h2 { position: relative; z-index: 1; margin-bottom: 1rem; }
.cta p { color: var(--muted); margin-bottom: 2rem; position: relative; z-index: 1; }
.cta .btn-primary { position: relative; z-index: 1; }

/* ── FOOTER ── */
.footer {
    padding: 2.5rem 4rem; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
    background: var(--bg);
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: .8rem; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .navbar { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hero { flex-direction: column; padding: 7rem 1.5rem 3rem; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .app-mockup { width: 100%; max-width: 420px; height: 300px; }
    .features, .community, .cta { padding: 4rem 1.5rem; }
    .footer { padding: 2rem 1.5rem; }
}
