:root {
    --bg: #09090b;
    --text: #ffffff;
    --text-muted: #a1a1aa;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #18181b;
    --border: #27272a;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Background Glows */
.background-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
}

.top {
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.bottom {
    background: #a855f7;
    bottom: -200px;
    right: -100px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid transparent;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    min-height: 80vh;
}

.hero-content {
    max-width: 600px;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 2rem 10%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: -2rem;
    /* Pull up closer to hero */
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.stat-box {
    text-align: center;
}

.stat-box i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-box .counter {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-box label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
}

@media (max-width: 768px) {
    .stats-section {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Hero Visual (Glass Cards) */
.hero-visual {
    position: relative;
    width: 450px;
    height: 450px;
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual {
        display: block;
    }
}

.card-glass {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    position: absolute;
    width: 300px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.floating {
    animation: float 6s ease-in-out infinite;
    top: 50px;
    left: 50px;
    z-index: 2;
}

.floating-delayed {
    animation: float 7s ease-in-out infinite 1s;
    bottom: 80px;
    right: 20px;
    width: 220px;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

.name strong {
    display: block;
}

.name span {
    font-size: 0.7rem;
    background: #5865F2;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Features */
.features {
    padding: 5rem 10%;
    background: #0c0c0e;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.feature-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
}

.icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bg-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.bg-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.bg-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.bg-yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.bg-green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.bg-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

/* FAQ */
.faq {
    padding: 5rem 10%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--secondary);
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
}

.faq-item summary {
    padding: 1.5rem;
    font-weight: 600;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    display: none;
}

.faq-item.active .answer {
    display: block;
}

/* Footer */
footer {
    padding: 3rem 10%;
    border-top: 1px solid var(--border);
    text-align: center;
}

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

.socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .h1 {
        font-size: 2.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats-mini {
        justify-content: center;
    }
}

/* Documentation Styles */
.docs-page {
    background: #09090b;
}

.docs-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 3rem;
    min-height: 80vh;
}

.sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
    border-right: 1px solid var(--border);
    padding-right: 1rem;
}

@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 1rem;
        position: relative;
        /* Disable sticky on mobile */
        top: 0;
    }

    /* Mobile Nav */
    .nav-links {
        display: none;
    }

    .mobile-hide {
        display: none !important;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.mobile-menu .btn {
    justify-content: center;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hamburger {
    display: none;
}

.docs-content {
    flex: 1;
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.docs-content .intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.docs-content section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
    /* Offset for sticky nav */
}

.docs-content h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.docs-content code {
    background: #18181b;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
}

.code-block {
    background: #18181b;
    padding: 1rem;
    border-radius: 8px;
    color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 1rem;
    border: 1px solid var(--border);
}

/* Legal Pages */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 80vh;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-container h2 {
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.legal-container p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-container ul {
    margin-left: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}