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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #16215e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 149, 237, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(70, 130, 180, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(135, 206, 235, 0.3) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0 40px;
}

/* Hero section */
.hero {
    margin-bottom: 60px;
    max-width: 800px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.logo {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
}

.btn-icon {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.hero-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.hero-link:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.link-icon {
    font-size: 1.1rem;
}

/* Notice section */
.notice {
    margin-top: 24px;
    text-align: center;
}

.notice-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Contract section */
.contract-section {
    margin-top: 32px;
    text-align: center;
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-all;
    overflow-wrap: break-word;
}

.contract-text {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: left;
}

.copy-button {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-button:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.contract-explanation {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    animation: pulseGlow 2s ease-in-out infinite;
    padding: 0 40px;
}

.contract-explanation::before {
    content: '🎁';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: bounce 1.5s ease-in-out infinite;
}

.contract-explanation::after {
    content: '✨';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.6), 0 0 25px rgba(59, 130, 246, 0.4);
        transform: scale(1.02);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-60%) scale(1.1);
    }
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.7;
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) rotate(180deg);
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 60px 0 30px;
    }
    
    .hero {
        margin-bottom: 50px;
    }
    
    .logo {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 36px;
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .hero-links {
        gap: 24px;
        margin-bottom: 6px;
    }
    
    .hero-link {
        font-size: 0.9rem;
    }
    
    .notice {
        margin-top: 20px;
    }
    
    .notice-text {
        font-size: 0.85rem;
    }
    
    .contract-section {
        margin-top: 28px;
    }
    
    .contract-address {
        padding: 14px 16px;
        gap: 12px;
        max-width: 90%;
    }
    
    .contract-text {
        font-size: 0.85rem;
    }
    
    .copy-button {
        min-width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .contract-explanation {
        font-size: 0.85rem;
        padding: 0 35px;
    }
    
    .contract-explanation::before {
        left: 0;
        font-size: 1rem;
    }
    
    .contract-explanation::after {
        right: 0;
        font-size: 1rem;
    }
    
}

@media (max-width: 480px) {
    .logo {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }
    
    .hero-links {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 4px;
    }
    
    .notice {
        margin-top: 16px;
    }
    
    .notice-text {
        font-size: 0.8rem;
    }
    
    .contract-section {
        margin-top: 24px;
    }
    
    .contract-address {
        padding: 12px 14px;
        gap: 10px;
        max-width: 95%;
    }
    
    .contract-text {
        font-size: 0.8rem;
    }
    
    .copy-button {
        min-width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }
    
    .contract-explanation {
        font-size: 0.8rem;
        padding: 0 30px;
    }
    
    .contract-explanation::before {
        left: 0;
        font-size: 0.9rem;
    }
    
    .contract-explanation::after {
        right: 0;
        font-size: 0.9rem;
    }
    
}

/* Landscape mobile optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        padding: 40px 0 20px;
    }
    
    .hero {
        margin-bottom: 40px;
    }
    
    .logo {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .contract-section {
        margin-top: 16px;
    }
    
    .contract-address {
        padding: 10px 12px;
        gap: 8px;
        max-width: 90%;
    }
    
    .contract-text {
        font-size: 0.75rem;
    }
    
    .copy-button {
        min-width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .contract-explanation {
        font-size: 0.75rem;
        padding: 0 25px;
    }
    
    .contract-explanation::before {
        left: 0;
        font-size: 0.8rem;
    }
    
    .contract-explanation::after {
        right: 0;
        font-size: 0.8rem;
    }
    
}