:root {
    --bg-dark: #0f172a;
    --bg-darker: #050810;
    --bg-card: #1e293b;
    --bg-elevated: #334155;
    --border-color: #334155;
    --border-light: #475569;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --navbar-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(30, 41, 59, 0.8);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    color: var(--primary-light);
}

.nav-logo .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex: 1;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.user-info {
    display: flex !important;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    color: var(--primary);
    font-weight: 600;
}

.btn-auth,
.btn-logout {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-auth {
    background: var(--primary);
    color: white;
}

.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-logout:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* ==================== HERO SECTION ==================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-graphic svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.2));
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==================== FEATURES SECTION ==================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features {
    margin-bottom: 8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(139, 92, 246, 0.4) 100%);
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== STATS SECTION ==================== */
.stats {
    margin-bottom: 8rem;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==================== CTA SECTION ==================== */
.cta {
    margin-bottom: 6rem;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 3rem;
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}

.auth-container {
    padding-top: 1rem;
}

.auth-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    position: relative;
    bottom: -1px;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.auth-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-input::placeholder {
    color: var(--text-muted);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 8rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-graphic {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1.5rem;
        gap: 1rem;
    }

    .nav-logo span {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        gap: 0;
        padding: 0;
        z-index: 101;
        width: 100%;
        max-height: calc(100vh - var(--navbar-height) - 80px);
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.mobile-active li {
        width: 100%;
        margin: 0;
    }

    .nav-menu.mobile-active .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .nav-auth {
        display: none;
    }

    .nav-auth.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        z-index: 100;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
    }

    .nav-auth.mobile-active .user-info {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-auth.mobile-active .btn-auth,
    .nav-auth.mobile-active .btn-logout {
        width: 100%;
        justify-content: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        padding: 2rem 1rem;
        padding-bottom: 120px;
    }

    .hero {
        margin-bottom: 4rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 0.75rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.75rem 1.25rem;
    }

    .stats-grid {
        gap: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar {
        position: sticky;
        width: 100%;
        top: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-container {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        gap: 0;
        padding: 0;
        max-height: calc(100vh - var(--navbar-height) - 80px);
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        z-index: 101;
        width: 100%;
        pointer-events: auto;
        overscroll-behavior: contain;
    }

    .nav-menu.mobile-active li {
        width: 100%;
        margin: 0;
    }

    .nav-menu.mobile-active .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .nav-auth {
        display: none;
    }

    .nav-auth.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        padding: 1rem;
        z-index: 100;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
    }

    .nav-auth.mobile-active .user-info {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-auth.mobile-active .btn-auth,
    .nav-auth.mobile-active .btn-logout {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding: 1.5rem 1rem;
        padding-bottom: 150px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        padding: 2rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* WEBSITE CHANGELOGS */
.commits {
    text-decoration: none;
    cursor: pointer;
    color: rgba(255, 251, 0, 0.651);
}
