@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --bg-primary: #030305;
    --bg-secondary: #080810;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --accent: #c8a44e;
    --accent-light: #e8c86e;
    --accent-glow: rgba(200, 164, 78, 0.4);
    --accent-dim: rgba(200, 164, 78, 0.08);
    --green: #00d97e;
    --green-glow: rgba(0, 217, 126, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #6b6b8a;
    --text-dim: #3a3a55;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 48px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(3, 3, 5, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    height: 64px;
    background: rgba(3, 3, 5, 0.9);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(200, 164, 78, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-logo-text span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links a {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-join {
    margin-left: 12px;
    padding: 9px 22px !important;
    background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
    color: var(--bg-primary) !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase;
}

.nav-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow) !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    background-image: url('../images/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to bottom, rgba(3, 3, 5, 0.5) 0%, rgba(3, 3, 5, 0.7) 50%, rgba(3, 3, 5, 0.95) 100%),
        radial-gradient(ellipse at center top, rgba(200, 164, 78, 0.08) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(200, 164, 78, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 164, 78, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 24px;
}

.hero h1 {
    font-size: clamp(52px, 9vw, 96px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 40px;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.04em;
}

.hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--bg-primary);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px var(--accent-glow);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    color: white;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 40px rgba(88, 101, 242, 0.5);
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 48px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.section-header h2 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    margin: 24px auto;
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== CARDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(200, 164, 78, 0.2);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 60px var(--accent-dim);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 0.08;
}

.card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: var(--accent-dim);
    border: 1px solid rgba(200, 164, 78, 0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.card h3 {
    font-size: 19px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== CTA ===== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg, rgba(200, 164, 78, 0.05), rgba(200, 164, 78, 0.02));
    border: 1px solid rgba(200, 164, 78, 0.15);
    border-radius: 24px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-box::after {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-box h2 span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 48px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.footer p {
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.5px;
}

.footer a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 12px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 164, 78, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== RULES GRID ===== */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.rule-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.rule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.rule-card:hover {
    border-color: rgba(200, 164, 78, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.rule-card:hover::before {
    opacity: 1;
}

.rule-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.15;
    margin-bottom: 12px;
    line-height: 1;
}

.rule-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.rule-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* ===== SNOW EFFECT ===== */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    animation: snowfall linear infinite;
    pointer-events: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.2;
    }
}

/* ===== FOUNDERS ===== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.founder-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.founder-card:hover {
    border-color: rgba(200, 164, 78, 0.25);
    transform: translateY(-6px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.3),
        0 0 40px var(--accent-dim);
}

.founder-card:hover::before {
    opacity: 1;
}

.founder-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.founder-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(200, 164, 78, 0.3);
    transition: all 0.4s ease;
}

.founder-card:hover .founder-avatar-img {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: scale(1.05);
}

.founder-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px var(--green-glow);
}

.founder-info {
    margin-bottom: 8px;
}

.founder-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.founder-rank {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(3, 3, 5, 0.98);
        backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 20px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-join {
        margin-left: 0;
        margin-top: 8px;
        text-align: center;
        justify-content: center;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 80px 20px;
    }

    .section::before {
        display: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        padding: 48px 24px;
    }
}
