@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-hover: #5855eb;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --dark: #0f0f23;
    --darker: #050510;
    --card: #1a1a2e;
    --card-hover: #1e1e3f;
    --border: rgba(99, 102, 241, 0.1);
    --border-hover: rgba(99, 102, 241, 0.2);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--dark) 0%, #0a0a1f 25%, var(--darker) 50%, #0f0f2a 75%, var(--dark) 100%),
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--border-hover);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo::before {
    content: '🔑';
    margin-right: 12px;
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    line-height: 2;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
}

.main-content {
    margin-top: 80px;
}

.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
    line-height: 1.6;
}

.story-section {
    background: var(--card);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-content {
    font-size: 1.2em;
    line-height: 1.8;
    text-align: center;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: 25px;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.mission-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.mission-card {
    background: var(--card);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-card:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mission-card:hover::before {
    opacity: 1;
}

.mission-icon {
    font-size: 4em;
    margin-bottom: 25px;
    display: block;
}

.mission-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 700;
}

.mission-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.1em;
}

.team-section {
    background: rgba(26, 26, 46, 0.3);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid var(--border);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 50px;
}

.team-member {
    text-align: center;
    background: var(--card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.team-member:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin: 0 auto 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.member-name {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.member-bio {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.95em;
}

.values-section {
    background: var(--card);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 60px;
    border: 1px solid var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.value-item:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.value-emoji {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.value-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.value-description {
    color: var(--text-muted);
    line-height: 1.6;
}

.stats-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.stat-item {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3.5em;
    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: 15px;
    display: block;
    line-height: 1;
}

.stat-label {
    color: var(--text);
    font-weight: 600;
    font-size: 1.2em;
}

.stat-description {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 0.9em;
}

.contact-section {
    background: var(--card);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 30px;
    background: var(--card-hover);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.contact-link.discord {
    border-color: #5865F2;
    color: #5865F2;
}

.contact-link.discord:hover {
    background: #5865F2;
    color: white;
}

.contact-link.twitter {
    border-color: #1DA1F2;
    color: #1DA1F2;
}

.contact-link.twitter:hover {
    background: #1DA1F2;
    color: white;
}

.contact-link.github {
    border-color: #333;
    color: #fff;
}

.contact-link.github:hover {
    background: #333;
    color: white;
}

.footer {
    background: var(--dark);
    border-top: 1px solid var(--border);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
    color: var(--text-muted);
}

.footer-content p {
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 3em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .story-section,
    .team-section,
    .values-section,
    .stats-section,
    .contact-section {
        padding: 40px 30px;
    }

    .mission-section {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}