/* Базовые настройки и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f6f5fa;
    color: #5c5970;
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* Сдвиг прокрутки */
section[id] {
    scroll-margin-top: 100px;
}

/* Декоративные нежные круги */
.soft-bg-blur {
    position: fixed;
    border-radius: 50%;
    z-index: -2;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.6;
}

.blur-1 {
    top: -10%;
    left: 5%;
    width: 500px;
    height: 500px;
    background: #ffd3eb;
}

.blur-2 {
    bottom: 10%;
    right: 5%;
    width: 550px;
    height: 550px;
    background: #d6e4ff;
}

/* Noise overlay */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 999;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

/* Floating particles */
.floating-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.floating-particles span {
    position: absolute;
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,183,222,0.3));
    animation: floatParticle linear infinite;
}

.floating-particles span:nth-child(1) {
    left: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.floating-particles span:nth-child(2) {
    left: 25%;
    animation-duration: 22s;
    animation-delay: 3s;
}

.floating-particles span:nth-child(3) {
    left: 40%;
    animation-duration: 15s;
}

.floating-particles span:nth-child(4) {
    left: 60%;
    animation-duration: 24s;
}

.floating-particles span:nth-child(5) {
    left: 75%;
    animation-duration: 19s;
}

.floating-particles span:nth-child(6) {
    left: 90%;
    animation-duration: 26s;
}

@keyframes floatParticle {
    from {
        transform: translateY(100vh) scale(0.6);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    to {
        transform: translateY(-20vh) scale(1.4);
        opacity: 0;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background: rgba(246, 245, 250, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #e58cb6;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #8c88a5;
    margin: 0 22px;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ffb7de, #b389f7);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-link:hover {
    color: #b389f7;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.btn-main {
    background: linear-gradient(135deg, #ffb7de, #b2cbff);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 30px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(229, 140, 182, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(178, 203, 255, 0.4);
}

/* Hero section */
.hero {
    text-align: center;
    padding: 70px 0 50px;
}

.label {
    display: block;
    color: #b282eb;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* Y2K Glowing Title */
.main-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    color: #3d3a52;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(255, 183, 222, 0.4), 0 0 25px rgba(178, 203, 255, 0.25);
    animation: dreamyFloat 4s ease-in-out infinite;
}

@keyframes dreamyFloat {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #837f9c;
    max-width: 580px;
    margin: 0 auto 40px;
}

.hero-image-container {
    position: relative;
    margin: 40px auto;
    max-width: 750px;
}

.pastel-bg-block {
    position: absolute;
    top: 50%;
    left: -40px;
    right: -40px;
    height: 180px;
    background: linear-gradient(90deg, rgba(255, 183, 222, 0.25), rgba(178, 203, 255, 0.25));
    border-radius: 30px;
    z-index: -1;
    transform: translateY(-50%);
}

/* Glassmorphism для картинок */
.hero-img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(140, 136, 165, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.72);
}

/* Gradient border for hero image wrapper */
.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 460px;
}

.hero-img-wrapper::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 183, 222, 0.5), rgba(178, 203, 255, 0.5), rgba(255, 255, 255, 0.6));
    z-index: -1;
    filter: blur(12px);
}

/* Thumbnails */
.thumbnail-strip {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
}

.thumb-wrapper {
    width: 110px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(140, 136, 165, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.thumb-wrapper:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 25px rgba(229, 140, 182, 0.3);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Radio buttons for image switching */
.img-selector {
    display: none;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#img-select-1:checked ~ .hero-image-container .hero-img-1,
#img-select-2:checked ~ .hero-image-container .hero-img-2,
#img-select-3:checked ~ .hero-image-container .hero-img-3 {
    opacity: 1;
}

#img-select-1:checked ~ .thumbnail-strip label[for="img-select-1"],
#img-select-2:checked ~ .thumbnail-strip label[for="img-select-2"],
#img-select-3:checked ~ .thumbnail-strip label[for="img-select-3"] {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 25px rgba(229, 140, 182, 0.3);
    border: 4px solid #ffb7de;
}

.thumbnail-strip label {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Features section */
.features {
    padding: 80px 0 50px;
}

.features h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: #484461;
    margin-bottom: 16px;
}

.desc-text {
    max-width: 550px;
    margin-bottom: 48px;
    color: #837f9c;
    font-size: 1rem;
}

/* Glassmorphism для карточек и таблицы */
.feature-item,
.data-table,
.promo-img {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    padding: 30px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(140, 136, 165, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 183, 222, 0.15), rgba(178, 203, 255, 0.12));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(229, 140, 182, 0.15);
}

.feature-item h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #b389f7;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 0.9rem;
    color: #6e6a87;
    line-height: 1.5;
}

/* Banner */
.banner-wide {
    margin: 60px 0 80px;
}

.promo-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: 0 15px 40px rgba(140, 136, 165, 0.12);
}

/* Section divider */
.section-divider {
    text-align: center;
    margin: 60px 0;
    color: #d7b7ff;
    letter-spacing: 12px;
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Data section */
.data-section {
    padding-bottom: 100px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(140, 136, 165, 0.05);
}

.data-table th {
    background: rgba(253, 252, 255, 0.8);
    text-align: left;
    color: #484461;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 20px 24px;
    border-bottom: 2px solid #f4f2f8;
}

.data-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #f7f6fb;
    font-size: 0.95rem;
    color: #726e8d;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.data-table tbody tr:hover {
    background-color: #fef8fb;
}

.code-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: #7296eb;
}

.status-tag {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-active {
    background: #ebf3ff;
    color: #528bee;
}

.status-offline {
    background: #fff0f7;
    color: #f07cb4;
}

.corrupted-text {
    color: #f07cb4;
    font-weight: 600;
}

.btn-outline {
    background: #ffffff;
    color: #8c88a5;
    border: 2px solid #e1dee6;
    padding: 12px 36px;
    border-radius: 30px;
    font-family: 'Fredoka', sans-serif;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
    background: #fff8fc;
    border-color: #ffb7de;
    color: #e58cb6;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(225, 222, 230, 0.7);
    padding: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #a4a1ba;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        padding: 0 24px;
    }
    .header {
        padding: 16px 24px;
    }
    .nav-link {
        margin: 0 12px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .main-title {
        font-size: 52px;
    }
    .hero-img, .hero-img-wrapper {
        height: 320px;
    }
}

@media (max-width: 600px) {
    .header {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        text-align: center;
    }
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 16px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .main-title {
        font-size: 40px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }
    .thumbnail-strip {
        gap: 12px;
    }
    .thumb-wrapper {
        width: 80px;
        height: 60px;
    }
    .promo-img {
        height: 200px;
    }
    .data-table th,
    .data-table td {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    .btn-main {
        padding: 6px 18px;
        font-size: 0.85rem;
    }
}

/* Fun fact section */
.fun-fact {
    margin-top: 50px;
    padding: 20px 30px;
    background: linear-gradient(135deg, rgba(255, 183, 222, 0.15), rgba(178, 203, 255, 0.12));
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid #ffb7de;
}

.fun-fact-icon {
    font-size: 2rem;
}

.fun-fact p {
    color: #6e6a87;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Quote styling */
.section-divider {
    font-size: 1rem;
    letter-spacing: 2px;
}

/* Responsive for music player */
@media (max-width: 600px) {
    .music-player {
        margin: 30px 20px;
        padding: 10px 18px;
    }
    
    .music-icon {
        font-size: 1.5rem;
    }
    
    .music-title {
        font-size: 0.9rem;
    }
    
    .fun-fact {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}