@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D4AF37;
    --primary-light: #E6C654;
    --primary-dark: #B8941F;
    --secondary: #1A1A1A;
    --accent: #2563EB;
    --dark: #0A0A0A;
    --gray: #161616;
    --light-gray: #262626;
    --text: #FFFFFF;
    --text-secondary: #A1A1A1;
    --text-muted: #6B6B6B;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Light theme */
[data-theme="light"] {
    --dark: #FFFFFF;
    --gray: #F5F5F5;
    --light-gray: #E5E5E5;
    --secondary: #FAFAFA;
    --text: #0A0A0A;
    --text-secondary: #525252;
    --text-muted: #737373;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--gray);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(10, 10, 10, 0.3) 0%, 
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 400;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.stat-icon {
    width: 20px;
    height: 20px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

.btn-icon {
    font-size: 20px;
}

/* Section Styling */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Scripts Section */
.scripts-section {
    background: var(--gray);
    position: relative;
}

.scripts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.script-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.script-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.script-card:hover::before {
    transform: translateX(100%);
}

.script-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.script-icon {
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.script-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.script-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.script-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(37, 99, 235, 0.1);
    color: #60A5FA;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    background: var(--dark);
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    display: inline-block;
}

.stat-suffix {
    font-size: 32px;
    color: var(--primary);
    display: inline-block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Features Section */
.features {
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Jobs Section */
.jobs {
    background: var(--gray);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.job-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.job-card:hover .job-arrow {
    opacity: 1;
    transform: translateX(0);
}

.job-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.job-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.job-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

/* Team Section */
.team {
    background: var(--gray);
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.team-card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px var(--shadow);
}

.team-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
}

.team-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
}

.team-status.online {
    background: #22C55E;
}

.team-status.away {
    background: #F59E0B;
}

.team-status.offline {
    background: #6B7280;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.team-role {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
}

.team-role.owner {
    background: rgba(212, 175, 55, 0.2);
    color: var(--primary);
}

.team-role.head-admin {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.team-role.developer {
    background: rgba(37, 99, 235, 0.2);
    color: #60A5FA;
}

.team-role.admin {
    background: rgba(168, 85, 247, 0.2);
    color: #A78BFA;
}

.team-role.moderator {
    background: rgba(34, 197, 94, 0.2);
    color: #4ADE80;
}

.team-role.support {
    background: rgba(14, 165, 233, 0.2);
    color: #38BDF8;
}

.team-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Mobile CTA */
.mobile-cta {
    display: none;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 24px;
    font-family: 'Space Grotesk', sans-serif;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--primary);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Footer */
footer {
    background: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.footer-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 32px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--gray);
    margin: 40px auto;
    padding: 48px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 48px;
}

.modal-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.rules-content {
    display: grid;
    gap: 32px;
}

.rule-section {
    background: var(--secondary);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
}

.rule-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.rule-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.rule-list li {
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.rule-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.modal-footer {
    text-align: center;
    margin-top: 48px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--gray);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-top: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--gray);
        display: flex;
        justify-content: space-around;
        padding: 12px;
        z-index: 999;
        border-top: 1px solid var(--border);
        backdrop-filter: blur(10px);
    }

    .mobile-cta .btn {
        flex: 1;
        margin: 0 6px;
        padding: 12px 20px;
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .mobile-cta .btn span:first-child {
        font-size: 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .scripts-grid,
    .features-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-content {
        padding: 32px 24px;
    }

    /* Add padding bottom for mobile CTA */
    body {
        padding-bottom: 80px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* Body loaded state */
body:not(.loaded) {
    overflow: hidden;
}

/* Navbar improvements */
.navbar {
    transition: all 0.3s ease, transform 0.3s ease;
}

/* Join button special styling */
.join-btn {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.join-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.join-btn:hover::before {
    left: 100%;
}

.join-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.join-btn::after {
    display: none;
}

/* CTA Section restored */
.cta {
    background: linear-gradient(135deg, var(--gray) 0%, var(--secondary) 100%);
    padding: 120px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.cta-desc {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Light theme improvements */
[data-theme="light"] .video-background {
    opacity: 0.7;
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.8) 100%);
}

[data-theme="light"] .particle {
    background: var(--primary-dark);
}

/* Extra hover effects */
.script-card:hover .script-icon,
.feature-card:hover .feature-icon,
.team-card:hover .team-avatar img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Stat icon improvements */
.stat-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}