/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0a0e17;
    color: #e0e6f0;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: #5b9bf5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #8bbdff;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(91, 155, 245, 0.1);
    transition: background 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.navbar-brand span {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2b7de9, #5b9bf5);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #e0e6f0;
    border-radius: 2px;
    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(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('logo.jpg') center center / cover no-repeat;
    filter: brightness(0.35) blur(2px);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(10, 14, 23, 0.6) 0%,
            rgba(10, 14, 23, 0.3) 40%,
            rgba(10, 14, 23, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(43, 125, 233, 0.3);
    border: 2px solid rgba(91, 155, 245, 0.3);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #2b7de9, #5b9bf5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: #a0aec0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, #2b7de9, #1a5fbf);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(43, 125, 233, 0.4);
    text-decoration: none;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(43, 125, 233, 0.5);
    color: #ffffff;
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-title p {
    color: #7a8ba8;
    font-size: 1.05rem;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2b7de9, #5b9bf5);
    margin: 1rem auto 0;
    border-radius: 4px;
}

/* ===== STEPS (How to join) ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-card {
    background: linear-gradient(145deg, #131829, #0f1322);
    border: 1px solid rgba(91, 155, 245, 0.08);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2b7de9, #5b9bf5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 155, 245, 0.2);
    box-shadow: 0 12px 40px rgba(43, 125, 233, 0.12);
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(43, 125, 233, 0.15), rgba(91, 155, 245, 0.08));
    color: #5b9bf5;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(91, 155, 245, 0.15);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #7a8ba8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
    padding: 0.6rem 1.4rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2b7de9, #1a5fbf);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(43, 125, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(43, 125, 233, 0.4);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #5b9bf5;
    border: 1px solid rgba(91, 155, 245, 0.3);
}

.btn-outline:hover {
    background: rgba(91, 155, 245, 0.1);
    border-color: rgba(91, 155, 245, 0.5);
    color: #8bbdff;
}

.ip-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    background: rgba(43, 125, 233, 0.08);
    border: 1px solid rgba(91, 155, 245, 0.15);
    border-radius: 10px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95rem;
    color: #5b9bf5;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.copy-btn {
    background: none;
    border: none;
    color: #5b9bf5;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.copy-btn:hover {
    background: rgba(91, 155, 245, 0.15);
}

.copy-btn.copied {
    color: #48bb78;
}

/* ===== RULES ===== */
.rules-container {
    max-width: 750px;
    margin: 0 auto;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(145deg, #131829, #0f1322);
    border: 1px solid rgba(91, 155, 245, 0.06);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.rule-item:hover {
    border-color: rgba(91, 155, 245, 0.15);
    transform: translateX(4px);
}

.rule-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(43, 125, 233, 0.12);
    color: #5b9bf5;
    font-size: 0.85rem;
    font-weight: 700;
}

.rule-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.rule-item p {
    font-size: 0.9rem;
    color: #7a8ba8;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(91, 155, 245, 0.08);
    padding: 2rem;
    text-align: center;
    color: #4a5568;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
}

.footer-links a {
    color: #7a8ba8;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5b9bf5;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== CGU PAGE ===== */
.cgu-page {
    padding-top: 100px;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 4rem;
}

.cgu-page h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cgu-page .subtitle {
    color: #7a8ba8;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.cgu-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(91, 155, 245, 0.1);
}

.cgu-page p,
.cgu-page li {
    color: #a0aec0;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.cgu-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.cgu-page li {
    margin-bottom: 0.4rem;
}

.cgu-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    padding: 0.7rem 1.6rem;
    background: linear-gradient(135deg, #2b7de9, #1a5fbf);
    color: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(43, 125, 233, 0.3);
}

.cgu-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(43, 125, 233, 0.4);
    color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 14, 23, 0.97);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(91, 155, 245, 0.1);
    }

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

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .cgu-page {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
