/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #0f0f23;
    --darker-bg: #0a0a1a;
    --card-bg: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #f59e0b 100%);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gradient-secondary);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(245, 158, 11, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-200px); }
}

/* ===== TON COINS EFFECT ===== */
.ton-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.ton-coin {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #0088cc;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 136, 204, 0.8), 0 0 50px rgba(0, 168, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TON Logo using dynamic images */
.ton-coin {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ton-coin::before {
    display: none;
}

.ton-coin::after {
    display: none;
}

/* Different coin sizes */
.ton-coin.small {
    width: 30px;
    height: 30px;
    border-width: 2px;
}

.ton-coin.small::before {
    width: 14px;
    height: 14px;
}

.ton-coin.medium {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.ton-coin.medium::before {
    width: 20px;
    height: 20px;
}

.ton-coin.large {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.ton-coin.large::before {
    width: 26px;
    height: 26px;
}

/* Coin glow animation */
@keyframes coin-glow {
    0%, 100% {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 136, 204, 0.8), 0 0 50px rgba(0, 168, 255, 0.6);
    }
    50% {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 136, 204, 1), 0 0 70px rgba(0, 168, 255, 0.8);
    }
}

/* ===== MEMS BACKGROUND TEXT ===== */
.mems-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.3);
    z-index: -1;
    pointer-events: none;
    animation: mems-pulse 3s ease-in-out infinite;
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
    letter-spacing: 0.3em;
    font-family: 'Arial Black', Arial, sans-serif;
    opacity: 0.3;
    will-change: transform, opacity, text-shadow;
}

@keyframes mems-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
        text-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.5;
        text-shadow: 0 0 100px rgba(99, 102, 241, 0.7);
    }
}

/* Responsive adjustments for MEMS background */
@media (max-width: 1200px) {
    .mems-background {
        font-size: 12rem;
    }
}

@media (max-width: 768px) {
    .mems-background {
        font-size: 8rem;
    }
}

@media (max-width: 576px) {
    .mems-background {
        font-size: 6rem;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

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

.hero-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-buttons .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;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) rotate(-45deg) translateY(0); }
    40% { transform: translateX(-50%) rotate(-45deg) translateY(-10px); }
    60% { transform: translateX(-50%) rotate(-45deg) translateY(-5px); }
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* ===== FEATURES SECTION ===== */
.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.feature-card > * {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced card animations */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.25);
}

.stat-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* Pulse animation for stat icons */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== ABOUT SECTION ===== */
.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-visualization {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.token-outer-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.token-inner-circle {
    width: 80px;
    height: 80px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.token-symbol {
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.orbit {
    border: 2px solid rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    opacity: 0.8;
    animation: orbit-glow 3s ease-in-out infinite alternate;
}

.orbit-1 {
    width: 180px;
    height: 180px;
    animation: orbit-rotate-1 15s linear infinite, orbit-glow 3s ease-in-out infinite alternate;
    border-color: rgba(139, 92, 246, 0.6);
}

.orbit-2 {
    width: 240px;
    height: 240px;
    animation: orbit-rotate-2 25s linear infinite reverse, orbit-glow 4s ease-in-out infinite alternate;
    border-color: rgba(245, 158, 11, 0.6);
}

.orbit-3 {
    width: 300px;
    height: 300px;
    animation: orbit-rotate-3 35s linear infinite, orbit-glow 5s ease-in-out infinite alternate;
    border-color: rgba(139, 92, 246, 0.5);
}

@keyframes pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1); 
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.15); 
        box-shadow: 0 0 50px rgba(139, 92, 246, 0.6), 0 0 80px rgba(245, 158, 11, 0.4);
    }
}

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

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

@keyframes orbit-glow {
    0% { 
        opacity: 0.6;
        border-color: rgba(139, 92, 246, 0.4);
    }
    100% { 
        opacity: 1;
        border-color: rgba(139, 92, 246, 0.8);
    }
}

@keyframes ball-pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    }
    50% { 
        transform: translateX(-50%) scale(1.2);
        box-shadow: 0 0 15px rgba(139, 92, 246, 1);
    }
}

@keyframes ball-orbit-1 {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes ball-orbit-2 {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(-360deg); }
}

@keyframes ball-orbit-3 {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

.orbit-ball {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: ball-pulse 2s ease-in-out infinite;
    transform-origin: 50% calc(50% + 90px);
}

.ball-1 {
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
    animation: ball-pulse 2s ease-in-out infinite, ball-orbit-1 15s linear infinite;
    transform-origin: 50% calc(50% + 90px);
}

.ball-2 {
    background: linear-gradient(135deg, #F59E0B 0%, #8B5CF6 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
    animation: ball-pulse 2.5s ease-in-out infinite, ball-orbit-2 25s linear infinite reverse;
    transform-origin: 50% calc(50% + 120px);
}

.ball-3 {
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    animation: ball-pulse 3s ease-in-out infinite, ball-orbit-3 35s linear infinite;
    transform-origin: 50% calc(50% + 150px);
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== STRATEGY SECTION ===== */
.strategy-step {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strategy-step:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.strategy-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #F59E0B);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.strategy-step h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.strategy-step p {
    line-height: 1.6;
    margin-bottom: 0;
}

.strategy-step ul li {
    padding-left: 0.5rem;
    line-height: 1.6;
}

/* ===== TOKEN ADDRESS SECTION ===== */
.token-address-section {
    margin-top: 2rem;
    animation-delay: 1.2s;
}

.token-address-container {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.token-address-container:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.token-address-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
}

.token-address-header i {
    color: #8B5CF6;
    font-size: 1.2rem;
}

.token-address-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.token-address-text {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    line-height: 1.4;
}

.btn-copy {
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7C3AED 0%, #D97706 100%);
}

.btn-copy:active {
    transform: translateY(0);
}

.token-address-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .token-address-field {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .token-address-text {
        text-align: center;
        font-size: 0.8rem;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .token-address-container {
        padding: 1rem;
    }
}

/* ===== ROADMAP SECTION ===== */
.roadmap-container {
    position: relative;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.roadmap-container:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
}

.roadmap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    opacity: 0.3;
    pointer-events: none;
}

.roadmap-lock {
    position: relative;
    z-index: 2;
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: lock-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.roadmap-lock h3 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    animation: question-marks-glow 2s ease-in-out infinite alternate;
}

.roadmap-lock p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6 0%, #F59E0B 100%);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    animation: badge-glow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.coming-soon-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes lock-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
    }
}

@keyframes badge-glow {
    0%, 100% { 
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    }
    50% { 
        box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6), 0 0 20px rgba(245, 158, 11, 0.4);
    }
}

@keyframes question-marks-glow {
    0% { 
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
        transform: scale(1);
    }
    100% { 
        text-shadow: 0 0 50px rgba(139, 92, 246, 0.8), 0 0 80px rgba(245, 158, 11, 0.6);
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== STATS SECTION ===== */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: visible;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: rotate 3s linear infinite;
    border-radius: 20px;
    z-index: 0;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.stat-card:hover::after {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3), 0 0 60px rgba(102, 126, 234, 0.2);
}

.stat-card > * {
    position: relative;
    z-index: 2;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    animation: iconPulse 1s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
    }
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.stat-card:hover h3 {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.stat-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    transition: all 0.4s ease;
}

.stat-card:hover p {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

/* ===== CTA SECTION ===== */
.bg-gradient {
    background: var(--gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.cta-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* Анимации для карточек статистики */
.stat-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s ease-out;
}

.stat-card.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stat-card.animate-on-scroll .stat-icon {
    transform: scale(0);
    transition: transform 0.6s ease-out 0.3s;
}

.stat-card.animate-on-scroll.visible .stat-icon {
    transform: scale(1);
}

.stat-card.animate-on-scroll h3 {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out 0.5s;
}

.stat-card.animate-on-scroll.visible h3 {
    opacity: 1;
    transform: translateY(0);
}

.stat-card.animate-on-scroll .counter {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.6s ease-out 0.7s;
}

.stat-card.animate-on-scroll.visible .counter {
    opacity: 1;
    transform: scale(1);
}

/* Анимации для элементов статистики */
.stat-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.stat-item.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-item.animate-on-scroll .chart-bar {
    transform: scaleY(0);
    transition: transform 1s ease-out 0.3s;
}

.stat-item.animate-on-scroll.visible .chart-bar {
    transform: scaleY(1);
}

.stat-item.animate-on-scroll .chart-circle {
    transform: scale(0);
    transition: transform 1.2s ease-out 0.5s;
}

.stat-item.animate-on-scroll.visible .chart-circle {
    transform: scale(1);
}

.stat-item.animate-on-scroll .stat-icon {
    transform: scale(0);
    transition: transform 0.8s ease-out 0.7s;
}

.stat-item.animate-on-scroll.visible .stat-icon {
    transform: scale(1);
}

/* Анимация для символа бесконечности */
.infinity-counter {
    animation: infinity-pulse 2s ease-in-out infinite;
}

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

@keyframes counter-glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    }
}

/* Стили для счетчиков */
.counter {
    display: inline-block;
    font-weight: 700;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    min-width: 2em;
    text-align: center;
}

.stat-card.animate-on-scroll .infinity-counter {
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all 1s ease 0.5s;
}

.stat-card.animate-on-scroll.visible .infinity-counter {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.stat-card.animate-on-scroll p {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}

.stat-card.animate-on-scroll.visible p {
    opacity: 1;
    transform: translateY(0);
}

.stat-item.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.8);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item.animate-on-scroll .chart-bar {
    animation: none;
    transform: scaleY(0);
}

.stat-item.animate-on-scroll.visible .chart-bar {
    animation: bar-grow 1.5s ease-out forwards;
}

.stat-item.animate-on-scroll .chart-circle {
    animation: none;
    transform: scale(0);
}

.stat-item.animate-on-scroll.visible .chart-circle {
    animation: circle-grow 2s ease-out forwards;
}

.stat-item.animate-on-scroll .stat-icon {
    animation: none;
    transform: scale(0);
}

.stat-item.animate-on-scroll.visible .stat-icon {
    animation: icon-pulse 2s ease-in-out infinite;
}

/* ===== STAT VISUALIZATIONS ===== */
.stat-visualization {
    position: relative;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-chart {
    position: relative;
    height: 100%;
    display: flex;
    align-items: end;
    gap: 3px;
}

.chart-bar {
    width: 12px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }

@keyframes bar-grow {
    to {
        transform: scaleY(1);
    }
}

.chart-circle {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #667eea 0deg, #667eea 270deg, rgba(102, 126, 234, 0.2) 270deg, rgba(102, 126, 234, 0.2) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
}

.circle-center {
    width: 45px;
    height: 45px;
    background: var(--bs-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 20px;
}

@keyframes circle-grow {
    to {
        transform: scale(1);
    }
}

.stat-visualization .stat-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(0);
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    }
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* ===== FOOTER ===== */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .token-visualization {
        width: 250px;
        height: 250px;
    }
    
    .token-outer-circle {
        width: 100px;
        height: 100px;
    }
    
    .token-inner-circle {
        width: 70px;
        height: 70px;
    }
    
    .orbit-1 { 
        width: 150px; 
        height: 150px; 
    }
    .orbit-2 { 
        width: 200px; 
        height: 200px; 
    }
    .orbit-3 { 
        width: 250px; 
        height: 250px; 
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .feature-card,
    .stat-card {
        padding: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
}


.animate-hero-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LANGUAGE SWITCHER ===== */
.language-switcher {
    margin-left: 1rem;
}

.language-switcher .btn {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-switcher .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;
}

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

.language-switcher .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

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

