/* main_page.css — Landing page */

/* ── Hero ── */
.mp-hero {
    background: var(--dark);
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
}
.mp-hero__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}
.mp-hero__word {
    color: var(--brand);
    display: inline-block;
    min-width: 280px;
    transition: opacity 0.35s, transform 0.35s;
}
.mp-hero__sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin: 20px 0 0;
    max-width: 420px;
    line-height: 1.55;
}
.mp-hero__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
}

/* Hero collage */
.mp-hero__collage {
    position: relative;
    height: 380px;
}
.mp-hero__sticker {
    position: absolute;
    border-radius: 10px;
    object-fit: cover;
    opacity: 0;
    transform: var(--rot) scale(0.7);
    filter:
        drop-shadow(0 2px 0 rgba(0,0,0,0.10))
        drop-shadow(0 8px 24px rgba(0,0,0,0.25));
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1),
                filter 0.4s cubic-bezier(0.22,1,0.36,1),
                opacity 0.5s ease;
}
.mp-hero__sticker--in {
    opacity: 1;
    transform: var(--rot) scale(1);
}
.mp-hero__sticker--in:hover {
    transform: rotate(0deg) scale(1.1) translateY(-8px);
    filter:
        drop-shadow(0 2px 0 rgba(0,0,0,0.06))
        drop-shadow(0 20px 48px rgba(0,0,0,0.28));
    z-index: 10;
}
.mp-hero__sticker--1 { width: 150px; height: 150px; top: 2%; right: 8%; transform: rotate(-7deg); z-index: 3; }
.mp-hero__sticker--2 { width: 120px; height: 120px; top: 38%; left: 0; transform: rotate(9deg); z-index: 1; }
.mp-hero__sticker--3 { width: 170px; height: 170px; top: 18%; left: 28%; transform: rotate(3deg); z-index: 4; }
.mp-hero__sticker--4 { width: 105px; height: 105px; bottom: 8%; left: 8%; transform: rotate(-12deg); z-index: 2; }
.mp-hero__sticker--5 { width: 135px; height: 135px; bottom: 4%; right: 12%; transform: rotate(6deg); z-index: 3; }

.mp-hero__sticker--1 { --rot: rotate(-7deg); }
.mp-hero__sticker--2 { --rot: rotate(9deg); }
.mp-hero__sticker--3 { --rot: rotate(3deg); }
.mp-hero__sticker--4 { --rot: rotate(-12deg); }
.mp-hero__sticker--5 { --rot: rotate(6deg); }
.mp-hero__btn {
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}
.mp-hero__btn:hover {
    background: var(--brand-dark);
    color: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.mp-hero__link {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.2s;
}
.mp-hero__link:hover { color: #fff; }

/* ── Marquee ── */
.mp-marquee {
    padding: 32px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.mp-marquee__track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: mp-scroll var(--duration, 120s) linear infinite;
    animation-direction: var(--direction, normal);
    will-change: transform;
}
.mp-marquee__track + .mp-marquee__track { margin-top: 12px; }
.mp-marquee__img {
    width: 100px;
    height: 100px;
    aspect-ratio: 1;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
@keyframes mp-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Skeleton placeholders */
.mp-skeleton {
    background: var(--subtle);
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.mp-skeleton::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%
    );
    animation: mp-shimmer 1.5s ease infinite;
}
[data-theme="dark"] .mp-skeleton { background: var(--border); }
[data-theme="dark"] .mp-skeleton::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.06) 50%,
        transparent 100%
    );
}
@keyframes mp-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
.mp-marquee__track--loaded .mp-skeleton { display: none; }
.mp-hero__collage .mp-skeleton {
    position: absolute;
    border-radius: 10px;
}
.mp-hero__collage--loaded .mp-skeleton { display: none; }

/* ── Section label ── */
.mp-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 24px;
}

/* ── Materials demo ── */
.mp-demo { padding: 64px 0; }
.mp-demo__inner {
    display: flex;
    align-items: center;
    gap: 48px;
}
.mp-demo__visual {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}
.mp-demo__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    filter:
        drop-shadow(0 1px 0 rgba(0,0,0,0.12))
        drop-shadow(0 2px 0 rgba(0,0,0,0.08))
        drop-shadow(0 4px 8px rgba(0,0,0,0.10))
        drop-shadow(0 8px 20px rgba(0,0,0,0.06));
}
[data-theme="dark"] .mp-demo__img {
    filter:
        drop-shadow(0 1px 0 rgba(255,255,255,0.06))
        drop-shadow(0 2px 0 rgba(0,0,0,0.25))
        drop-shadow(0 4px 8px rgba(0,0,0,0.30))
        drop-shadow(0 8px 20px rgba(0,0,0,0.20));
}
.mp-demo__img--active { opacity: 1; }
.mp-demo__dots {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.mp-demo__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    padding: 0;
    cursor: pointer;
    transition: all 0.25s;
}
.mp-demo__dot--active {
    background: var(--brand);
    transform: scale(1.3);
}
.mp-demo__name {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-1);
    margin: 0;
    transition: opacity 0.25s;
}
.mp-demo__desc {
    font-size: 14px;
    color: var(--text-2);
    margin: 8px 0 0;
    line-height: 1.55;
    max-width: 340px;
    min-height: 44px;
    transition: opacity 0.25s;
}
.mp-demo__count {
    font-size: 13px;
    color: var(--text-3);
    margin: 20px 0 28px;
}
.mp-demo__count a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.mp-demo__count a:hover { color: var(--text-1); }

/* ── Steps ── */
.mp-steps {
    padding: 48px 0 56px;
    border-top: 1px solid var(--border);
}
.mp-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.mp-step__num {
    font-size: 32px;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    display: block;
    margin-bottom: 12px;
}
.mp-step__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 6px;
}
.mp-step__desc {
    font-size: 13px;
    color: var(--text-2);
    margin: 0;
    line-height: 1.5;
}

/* ── Artists ── */
.mp-artists {
    background: var(--dark);
    padding: 64px 0;
}
.mp-artists__inner { max-width: 480px; }
.mp-artists__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}
.mp-artists__desc {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0 0 28px;
    line-height: 1.6;
}
.mp-artists__btn {
    display: inline-flex;
    align-items: center;
    background: var(--brand);
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}
.mp-artists__btn:hover {
    background: var(--brand-dark);
    color: var(--dark);
}

/* ── Telegram ── */
.mp-tg {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.mp-tg__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.mp-tg__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-1);
    margin: 0 0 4px;
}
.mp-tg__desc {
    font-size: 13px;
    color: var(--text-2);
    margin: 0;
}
.mp-tg__btn {
    flex-shrink: 0;
    gap: 6px;
    white-space: nowrap;
}

/* ── Stats ── */
.mp-stats { padding: 56px 0; }
.mp-stats__grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    text-align: center;
}
.mp-stat__num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
}
.mp-stat__label {
    display: block;
    font-size: 12px;
    color: var(--text-3);
    margin-top: 6px;
}

/* ── Final CTA ── */
.mp-final {
    padding: 56px 0 72px;
    border-top: 1px solid var(--border);
}
.mp-final__title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-1);
    margin: 0 0 8px;
}
.mp-final__desc {
    font-size: 14px;
    color: var(--text-2);
    margin: 0 0 28px;
}
.mp-final__btn {
    display: inline-flex;
    align-items: center;
    background: var(--dark);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}
.mp-final__btn:hover {
    background: var(--dark-soft);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(43,42,41,0.2);
}

/* ── Dark theme ── */
[data-theme="dark"] .mp-hero { background: #141313; }
[data-theme="dark"] .mp-marquee__img { border-color: var(--border); }
[data-theme="dark"] .mp-step__num { color: var(--border); }
[data-theme="dark"] .mp-artists { background: #141313; }
[data-theme="dark"] .mp-final__btn {
    background: #E8E6E3;
    color: #1C1B1A;
}
[data-theme="dark"] .mp-final__btn:hover {
    background: #D0CEC9;
    color: #1C1B1A;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .mp-hero {
        min-height: auto;
        padding: 52px 0 44px;
    }
    .mp-hero__title { font-size: 32px; }
    .mp-hero__word { min-width: 180px; }
    .mp-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .mp-hero__btn { width: 100%; justify-content: center; }
    .mp-hero__collage { height: 260px; margin-top: 32px; }
    .mp-hero__sticker--1 { width: 100px; height: 100px; }
    .mp-hero__sticker--2 { width: 80px; height: 80px; }
    .mp-hero__sticker--3 { width: 120px; height: 120px; }
    .mp-hero__sticker--4 { width: 75px; height: 75px; }
    .mp-hero__sticker--5 { width: 95px; height: 95px; }
    .mp-marquee { padding: 20px 0; }
    .mp-marquee__img { width: 80px; height: 80px; }
    .mp-demo { padding: 44px 0; }
    .mp-demo__inner {
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }
    .mp-demo__visual { width: 220px; height: 220px; margin: 0 auto; }
    .mp-demo__desc { margin-left: auto; margin-right: auto; }
    .mp-demo__count { margin-left: auto; margin-right: auto; }
    .mp-steps__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .mp-artists { padding: 44px 0; }
    .mp-artists__title { font-size: 22px; }
    .mp-tg__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .mp-tg__btn { width: 100%; justify-content: center; }
    .mp-stats__grid {
        gap: 24px;
        flex-wrap: wrap;
    }
    .mp-stat__num { font-size: 26px; }
    .mp-final { padding: 44px 0 56px; }
}
