@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&family=Source+Serif+Pro:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #BC9D86;
    color: #3D2914;
    overflow-x: hidden;
    line-height: 1.6;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    background: url('sky-background.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(168, 85, 247, 0.1) 100%);
    z-index: 1;
}

.hand-left {
    position: absolute;
    left: -15%;
    top: 50%;
    transform: translateY(-50%);
    width: 700px;
    height: auto;
    z-index: 2;
    animation: reachOut 8s ease-in-out infinite;
}

.tentacle-right {
    position: absolute;
    right: -15%;
    top: 60%;
    transform: translateY(-50%) rotate(15deg);
    width: 600px;
    height: auto;
    z-index: 2;
    animation: reachOut 8s ease-in-out infinite reverse;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.logo-container {
    margin-bottom: 3rem;
}

.fsm-logo {
    width: 200px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    margin-top: 2rem;
    letter-spacing: 2px;
}

.ticker {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.8rem;
    color: #6B4E3D;
    margin-top: 1rem;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 3rem 0;
    color: #5D4037;
    background: rgba(255, 255, 255, 0.25);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

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

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

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    border-radius: 2px;
}

.contract-address {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 3rem 0;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contract-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #B8941F;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contract-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    color: #3D2914;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.6);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.contract-text:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lore-section {
    background: rgba(255, 255, 255, 0.25);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    margin-top: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 16px;
}

.tab {
    background: transparent;
    border: none;
    color: #6B4E3D;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #D4AF37;
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.tab.active {
    color: #B8941F;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
    font-size: 1rem;
    line-height: 1.7;
    color: #5D4037;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.tab-content h3 {
    font-family: 'Poppins', sans-serif;
    color: #B8941F;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.tab-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Custom scrollbar for tab content */
.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #B8941F;
}

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

/* ОБНОВЛЕННАЯ ГАЛЕРЕЯ */
.gallery-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 2rem;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.links-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem;
    backdrop-filter: blur(20px);
}

.links-section .section-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: #f8fafc;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.link-item {
    color: #B8941F;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    transition: all 0.3s ease;
    display: block;
    backdrop-filter: blur(10px);
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #D4AF37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


@media (max-width: 1024px) {
    .hand-left {
        width: 600px;
        left: -20%;
    }
    
    .tentacle-right {
        width: 500px;
        right: -20%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .ticker {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 2rem;
    }
    
    .hand-left {
        width: 450px;
        left: -25%;
    }
    
    .tentacle-right {
        width: 380px;
        right: -25%;
    }
    
    .fsm-logo {
        width: 150px;
    }
    
    .tabs-container {
        flex-direction: column;
        padding: 0.5rem;
    }
    
    .tab {
        padding: 0.8rem 1rem;
        margin-bottom: 0.5rem;
        border-radius: 12px;
        width: 100%;
    }
    
    .lore-section {
        padding: 2rem;
    }
    
    .tab-content {
        max-height: 300px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .gallery-section {
        padding: 4rem 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-item {
        border-radius: 16px;
    }
    
    .gallery-image {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hand-left {
        width: 350px;
        left: -30%;
    }
    
    .tentacle-right {
        width: 280px;
        right: -30%;
    }
    
    .contract-address {
        padding: 1.5rem;
    }
    
    .contract-text {
        font-size: 0.9rem;
    }
    
    .gallery-section {
        padding: 3rem 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .gallery-item {
        border-radius: 12px;
    }
    
    .gallery-image {
        border-radius: 12px;
    }
}

@media (max-width: 320px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
}