/* Reset and base styles - Optimized */
*,::before,::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent layout shifts */
html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #000000;
    overflow-x: hidden;
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Loading screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    color: white;
    font-size: 14px;
    font-weight: 400;
}

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

/* Canvas container - Optimized */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    will-change: transform; /* Optimize for animations */
    contain: layout style paint; /* CSS containment for performance */
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
}

/* Main container */
.container-padding {
    position: relative;
    width: 100%;
    min-height: 100vh;
    pointer-events: none;
    z-index: 10;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    gap: 20px;
}

/* Main layout */
.main-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    gap: 60px;
}

/* Left section */
.left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 500px;
    padding-top: 150px;
}

/* Token badge */
.token-badge {
    border: 0.5px solid white;
    border-radius: 30px;
    padding: 8px 16px;
    margin-bottom: 20px;
    display: inline-block;
}

.badge-text {
    color: white;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
}

/* Main title with gradient */
.main-title {
    background: linear-gradient(45deg, #d61968 0%, #ff8e53 50%, #d61968 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Subtitle */
.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    margin: 20px 0 24px 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Glow button animations */
@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 107, 157, 0.5), 
                    0 0 40px rgba(0, 0, 83, 0.3),
                    inset 0 0 20px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 107, 157, 0.8), 
                    0 0 60px rgba(255, 142, 83, 0.5),
                    inset 0 0 30px rgba(255, 107, 157, 0.2);
    }
}

.glow-button {
    pointer-events: auto;
    background: linear-gradient(45deg, #d61968, #ff8e53);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: glow 3s ease-in-out infinite;
    transition: all 0.6s ease;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.9), 
                0 0 80px rgba(255, 142, 83, 0.6),
                inset 0 0 40px rgba(255, 107, 157, 0.3) !important;
}

/* Disclaimer */
.disclaimer {
    font-size: 9px;
    color: #999999;
    margin: 20px 0 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

/* Right section */
.right-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    max-width: 500px;
    padding-top: 20px;
    padding-left: 40px;
}

/* Info sections */
.info-section {
    margin-bottom: 30px;
}

.section-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Tokenomics grid */
.tokenomics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.tokenomics-item {
    border: 0.5px solid #999999;
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
}

.tokenomics-label {
    color: #999999;
    font-size: 10px;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.tokenomics-value {
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Features list */
.features-list {
    color: rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.feature-bullet {
    color: #ff6b9d;
    margin-right: 6px;
}

/* Earning methods */
.earning-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.earning-method {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.method-icon {
    font-size: 16px;
}

.method-content {
    flex: 1;
}

.method-title {
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.method-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.3;
}

/* Roadmap grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.roadmap-item {
    border: 0.5px solid #999999;
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
    color: white;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

/* Responsive design */
@media (max-width: 1024px) {
    .main-layout { 
        flex-direction: column !important; 
        gap: 40px !important; 
        align-items: center !important;
        text-align: center !important;
    }
    .left-section { 
        align-items: center !important; 
        text-align: center !important; 
        max-width: 100% !important;
        padding-top: 20px !important;
    }
    .right-section { 
        align-items: center !important; 
        text-align: center !important; 
        max-width: 100% !important;
        padding-top: 20px !important;
        padding-left: 0 !important;
    }
    .features-list { 
        text-align: center !important; 
    }
    .feature-item { 
        justify-content: center !important; 
    }
}

@media (max-width: 768px) {
    .main-title { 
        font-size: 36px !important; 
    }
    .subtitle { 
        font-size: 16px !important; 
    }
    .container-padding { 
        padding: 20px !important; 
    }
    .features-list { 
        font-size: 18px !important; 
    }
    .feature-item { 
        font-size: 14px !important; 
    }
}

@media (max-width: 480px) {
    .main-title { 
        font-size: 28px !important; 
    }
    .subtitle { 
        font-size: 14px !important; 
    }
    .container-padding { 
        padding: 16px !important; 
    }
    .features-list { 
        font-size: 16px !important; 
    }
    .feature-item { 
        font-size: 12px !important; 
    }
    .roadmap-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .left-section { 
        padding-top: 10px !important; 
    }
    .right-section { 
        padding-top: 10px !important; 
    }
    .main-layout { 
        gap: 20px !important; 
    }
}
