:root {
    --bg-main: #030304;
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --brand-primary: #8b5cf6;
    --brand-secondary: #6366f1;
    --brand-glow: rgba(139, 92, 246, 0.4);
    --border-light: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --success: #10b981;
}

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

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

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    width: 80vw;
    height: 80vw;
    top: -30%;
    left: -20%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15), transparent 60%);
    filter: blur(100px);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    bottom: -20%;
    right: -20%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 20s infinite alternate-reverse;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(3, 3, 4, 0.85);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.invite-btn {
    background: var(--text-main);
    color: var(--bg-main) !important;
    padding: 0.7rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.invite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.invite-btn::after {
    display: none;
}

/* Mobile Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    margin: 6px 0;
    transition: 0.3s;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: radial-gradient(circle at center, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .invite-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: white !important;
    box-shadow: 0 0 30px var(--brand-glow);
}

.hero .invite-btn:hover {
    box-shadow: 0 0 50px var(--brand-glow);
}

/* Sections & Cards */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    pointer-events: none;
}

.card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: 0.4s;
}

.card:hover .card-icon {
    background: var(--brand-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

.card ul {
    list-style: none;
    margin-top: 1.5rem;
}

.card li {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: start;
    gap: 0.8rem;
}

.card li i {
    color: var(--brand-primary);
    margin-top: 4px;
}

.card li strong {
    color: var(--text-main);
    font-weight: 600;
}

/* Content Pages (Docs, Privacy) */
.content-container {
    background: rgba(10, 10, 12, 0.6);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 4rem;
    backdrop-filter: blur(20px);
    margin-bottom: 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.content-container h2 {
    font-size: 2.2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container h2 i {
    color: var(--brand-primary);
    font-size: 0.8em;
}

.content-container h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #e2e8f0;
}

.content-container p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-container ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content-container li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.content-container code {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9em;
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.code-box {
    background: #0f0f12;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: 'Roboto Mono', monospace;
    color: #a78bfa;
    border: 1px solid var(--border-light);
    display: inline-block;
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    background: rgba(3, 3, 4, 0.5);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* FAQ Items */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-item.active .icon {
    transform: rotate(45deg);
}

/* Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-main);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--brand-primary);
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Particles */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Animations from main.js support */
.fade-out { opacity: 0; visibility: hidden; }

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

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease forwards; }
.animate-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2s infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(3, 3, 4, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-left: 1px solid var(--border-light);
        z-index: 1000;
    }
    
    .nav-links.active { right: 0; }
    
    .hamburger { display: block; z-index: 1001; }
    
    .content-container { padding: 2rem; }
    
    .card { padding: 2rem; }
}

.no-scroll {
    overflow: hidden;
}

/* New Feature Pill */
.new-feature-pill {
    margin-bottom: 2rem;
    display: inline-block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.new-feature-pill a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 100px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-feature-pill:hover a {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.new-badge {
    background: var(--brand-primary);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.new-feature-pill i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.new-feature-pill:hover i {
    transform: translateX(4px);
}