/* ===== VARIABLES ===== */
:root {
    --gold: #F0B90B;
    --gold-light: #FFD700;
    --gold-dark: #C99400;
    --gold-glow: rgba(240, 185, 11, 0.4);
    --blue: #1E40AF;
    --blue-light: #3B82F6;
    --bg-dark: #020408;
    --bg-darker: #010204;
    --bg-card: rgba(10, 14, 26, 0.98);
    --text-white: #FFFFFF;
    --text-gray: #9CA3AF;
    --text-muted: #6B7280;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --glass: rgba(255, 255, 255, 0.03);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-gold: 0 0 40px rgba(240, 185, 11, 0.3);
}

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

html {
    scroll-behavior: auto; /* Désactivé pour scroll rapide */
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== CANVAS BACKGROUND ===== */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
.nav-pill {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    height: 72px;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.nav-pill.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    transition: var(--transition);
}

.logo-img-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), transparent, var(--gold));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

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

.nav-cta-small {
    background: var(--gold);
    color: #000 !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.nav-cta-small:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--gold-glow);
}

.nav-cta-small::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 2rem 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold);
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% { box-shadow: 0 0 0 0 rgba(240, 185, 11, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(240, 185, 11, 0.2); }
}

.dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.badge-text {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Mascot Container - Simplified for performance */
.mascot-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.mascot-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    z-index: 10;
}

.main-mascot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: var(--shadow-gold);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px dashed var(--gold);
    border-radius: 50%;
    opacity: 0.3;
}

.orbit-1 {
    width: 280px;
    height: 280px;
    animation: orbit 20s linear infinite;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    animation: orbit-reverse 25s linear infinite;
    border-style: dotted;
    opacity: 0.2;
}

@keyframes orbit {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    filter: blur(40px);
    animation: glow-pulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.title-line {
    display: block;
}

.gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    font-weight: 400;
}

/* CA Container */
.ca-container {
    margin-bottom: 2.5rem;
}

.ca-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--gold);
    border-radius: 100px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.ca-pill:hover {
    box-shadow: 0 0 30px rgba(240, 185, 11, 0.2);
    transform: translateY(-2px);
}

.ca-pill code {
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.5rem;
}

.copy-btn:hover {
    color: var(--gold-light);
}

.copy-btn.copied {
    color: #22c55e;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    box-shadow: 0 10px 30px rgba(240, 185, 11, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(240, 185, 11, 0.4);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 2rem;
    position: relative;
}

.section-dark {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.5) 50%, transparent 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(240, 185, 11, 0.2);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ===== STORY SECTION ===== */
.story-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.story-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(240, 185, 11, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.story-visual {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

.frame-glow {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    box-shadow: inset 0 0 60px rgba(240, 185, 11, 0.2);
    pointer-events: none;
}

.floating-stats {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: float-stats 4s ease-in-out infinite;
}

@keyframes float-stats {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-content {
    position: relative;
    z-index: 1;
}

.quote-box {
    position: relative;
    margin-bottom: 2rem;
}

.quote-icon {
    color: var(--gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-white);
    font-style: italic;
}

.story-text {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-footer {
    margin-top: 2rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 1rem;
}

.mission-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(240, 185, 11, 0.1);
    border: 1px solid rgba(240, 185, 11, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== TOKENOMICS SECTION ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.metric-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    transition: var(--transition);
}

.metric-card:hover .metric-icon {
    background: var(--gold);
    color: #000;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.metric-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    transition: width 1.5s ease;
}

.metric-card.animate .metric-progress {
    width: 100%;
}

/* ===== HOW TO BUY SECTION ===== */
.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--gold);
    transform: translateX(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    box-shadow: 0 10px 30px rgba(240, 185, 11, 0.3);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.step-content p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}

.step-visual {
    color: var(--gold);
    opacity: 0.5;
    transition: var(--transition);
}

.step-card:hover .step-visual {
    opacity: 1;
    transform: scale(1.1);
}

.step-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--border), var(--gold), var(--border));
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 2rem 40px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 26, 0.5) 100%);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--gold);
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-pill {
        height: auto;
        padding: 1rem;
        border-radius: 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 1.5rem 60px;
    }

    .mascot-wrapper {
        width: 250px;
        height: 250px;
    }

    .mascot-container {
        width: 180px;
        height: 180px;
    }

    .orbit-1 {
        width: 220px;
        height: 220px;
    }

    .orbit-2 {
        width: 260px;
        height: 260px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .ca-pill {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }

    .ca-pill code {
        font-size: 0.75rem;
        word-break: break-all;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

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

    .section {
        padding: 80px 1.5rem;
    }

    .story-card {
        padding: 2rem;
        border-radius: 30px;
    }

    .floating-stats {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 1rem;
    }

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

    .step-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .step-visual {
        order: -1;
    }

    .step-connector {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .highlight-text {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}