/* Лендинг: телефон с реальными экранами, блоки возможностей, параллакс */

/* ===== Телефон ===== */
.phone {
    --phone-w: 17rem;
    position: relative;
    width: var(--phone-w);
    max-width: 100%;
    margin: 0;
    padding: 0.5rem;
    border-radius: 2.4rem;
    background: linear-gradient(150deg, #243247, #0b1220);
    box-shadow:
        0 32px 56px -24px rgba(15, 23, 42, 0.5),
        0 10px 24px -12px rgba(15, 23, 42, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before {
    content: '';
    position: absolute;
    top: 0.95rem;
    left: 50%;
    z-index: 2;
    width: 0.55rem;
    height: 0.55rem;
    margin-left: -0.275rem;
    border-radius: 50%;
    background: #05080f;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.phone::after {
    content: '';
    position: absolute;
    top: 6.5rem;
    right: -3px;
    width: 3px;
    height: 3.5rem;
    border-radius: 0 2px 2px 0;
    background: #1b2638;
}

.phone img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 780 / 1656;
    border-radius: 1.95rem;
    background: var(--gray-100, #f1f5f9);
}

.phone--float {
    animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50% { transform: translateY(-12px) rotate(1.2deg); }
}

/* Обёртка под параллакс: JS пишет --py (смещение) и --pr (наклон) */
.phone-par {
    transform: translate3d(0, var(--py, 0px), 0) rotate(var(--pr, 0deg));
    will-change: transform;
}

.landing-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
    transform: translate3d(0, var(--py, 0px), 0);
    will-change: transform;
}

/* ===== Hero ===== */
.hero-image {
    display: flex;
    justify-content: center;
}

.hero-phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
}

.hero-phone-wrap .phone {
    --phone-w: 18rem;
    z-index: 1;
}

.hero-blob-a {
    top: 4%;
    left: 6%;
    width: 13rem;
    height: 13rem;
    background: radial-gradient(circle at 30% 30%, rgba(14, 165, 233, 0.35), rgba(14, 165, 233, 0) 70%);
}

.hero-blob-b {
    right: 4%;
    bottom: 6%;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle at 60% 40%, rgba(124, 58, 237, 0.28), rgba(124, 58, 237, 0) 70%);
}

.hero-store {
    margin: 1.25rem 0 0;
    font-size: 0.95rem;
    color: var(--gray-600);
}

.hero-store a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    font-weight: 600;
    color: var(--primary-700, #0369a1);
    text-decoration: none;
}

.hero-store a:hover {
    text-decoration: underline;
}

/* ===== Блоки возможностей ===== */
.showcase {
    padding: 4.5rem 0 3rem;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50, #f8fafc) 100%);
    overflow: hidden;
}

.showcase-head {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.showcase-head .section-title {
    margin-bottom: 0.75rem;
}

.show-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    max-width: 62rem;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.show-row--flip .show-media {
    order: 2;
}

.show-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 26rem;
}

.show-media .landing-blob {
    width: 20rem;
    height: 20rem;
    top: 50%;
    left: 50%;
    margin: -10rem 0 0 -10rem;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.22), rgba(14, 165, 233, 0) 68%);
}

.show-row:nth-of-type(3n+2) .show-media .landing-blob {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0) 68%);
}

.show-row:nth-of-type(3n) .show-media .landing-blob {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0) 68%);
}

.show-media .phone {
    z-index: 1;
}

.show-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--primary-50, #f0f9ff);
    color: var(--primary-700, #0369a1);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.show-body .landing-title {
    font-size: 1.85rem;
}

.show-body .landing-lead {
    margin-bottom: 0.85rem;
}

.show-note {
    margin: 0.85rem 0 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--gray-500);
}

.show-links {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-600);
}

.show-links a {
    color: var(--primary-700, #0369a1);
    font-weight: 500;
}

/* Три телефона: темы оформления */
.phone-trio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.phone-trio .phone-par {
    --phone-w: 10.5rem;
}

.phone-trio .phone {
    --phone-w: 10.5rem;
    padding: 0.35rem;
    border-radius: 1.8rem;
}

.phone-trio .phone img {
    border-radius: 1.45rem;
}

.phone-trio .phone::before {
    top: 0.7rem;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: -0.2rem;
}

.phone-trio .phone::after {
    display: none;
}

.phone-trio .phone-par:nth-child(1) {
    margin-right: -1.75rem;
    z-index: 1;
}

.phone-trio .phone-par:nth-child(2) {
    z-index: 3;
}

.phone-trio .phone-par:nth-child(2) .phone {
    --phone-w: 12rem;
}

.phone-trio .phone-par:nth-child(3) {
    margin-left: -1.75rem;
    z-index: 2;
}

.theme-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.theme-dots li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
}

.theme-dots i {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.15);
}

.theme-dot-light { background: linear-gradient(135deg, #f8fafc, #e0f2fe); }
.theme-dot-dark { background: linear-gradient(135deg, #0b1220, #182235); }
.theme-dot-vice { background: linear-gradient(135deg, #2a213b, #e88bb5); }

/* ===== «И ещё» ===== */
.showcase-more {
    padding: 1rem 0 4rem;
    background: var(--gray-50, #f8fafc);
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
    max-width: 62rem;
    margin: 0 auto;
}

.more-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius-lg, 0.85rem);
    background: #fff;
}

.more-card i {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    border-radius: 0.65rem;
    background: var(--primary-50, #f0f9ff);
    color: var(--primary-600, #0284c7);
}

.more-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.more-card p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--gray-600);
}

/* ===== Установка ===== */
.get-app {
    padding: 3.5rem 0;
    background: linear-gradient(135deg, #0b1220 0%, #0c2a43 100%);
    color: #fff;
}

.get-app-inner {
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}

.get-app h2 {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.get-app p {
    margin: 0 0 1.5rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.get-app-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.get-app .btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    padding: 0 1.4rem;
    border-radius: var(--radius, 0.5rem);
    background: #fff;
    color: #0b1220;
    font-weight: 600;
    text-decoration: none;
}

.get-app .btn-play:hover {
    background: #e0f2fe;
}

.get-app .btn-ghost-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius, 0.5rem);
    background: transparent;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.get-app .btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.get-app small {
    display: block;
    margin-top: 1.1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Планшет ===== */
@media (max-width: 1024px) {
    .show-row {
        gap: 2.5rem;
    }
    .hero-phone-wrap .phone {
        --phone-w: 16rem;
    }
}

/* ===== Телефон: компактно, но с анимацией ===== */
@media (max-width: 767px) {
    .hero-phone-wrap {
        padding: 0.25rem 0 0;
        /* показываем верхнюю часть экрана, нижняя уходит в плавное затухание */
        max-height: 21rem;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(#000 72%, transparent);
        mask-image: linear-gradient(#000 72%, transparent);
    }

    .hero-phone-wrap .phone {
        --phone-w: 14rem;
    }

    .hero-blob-a { width: 9rem; height: 9rem; }
    .hero-blob-b { width: 10rem; height: 10rem; }

    .hero-store {
        text-align: center;
        font-size: 0.9rem;
    }

    .showcase {
        padding: 2.5rem 0 1.5rem;
    }

    .showcase-head {
        margin-bottom: 1rem;
    }

    .show-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .show-row--flip .show-media {
        order: 0;
    }

    .show-media {
        min-height: 0;
        max-height: 17.5rem;
        overflow: hidden;
        align-items: flex-start;
        -webkit-mask-image: linear-gradient(#000 70%, transparent);
        mask-image: linear-gradient(#000 70%, transparent);
    }

    .show-media .landing-blob {
        width: 13rem;
        height: 13rem;
        top: 40%;
        margin: -6.5rem 0 0 -6.5rem;
    }

    .show-media .phone {
        --phone-w: 12.5rem;
        padding: 0.4rem;
        border-radius: 2rem;
    }

    .show-media .phone img {
        border-radius: 1.6rem;
    }

    .show-media .phone::after {
        display: none;
    }

    .show-body .landing-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .show-body .landing-lead {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 0.65rem;
    }

    .show-body .landing-list {
        gap: 0.45rem;
    }

    .show-body .landing-list li {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .show-kicker {
        margin-bottom: 0.6rem;
    }

    .phone-trio .phone-par,
    .phone-trio .phone {
        --phone-w: 7.5rem;
    }

    .phone-trio .phone-par:nth-child(2) .phone {
        --phone-w: 8.5rem;
    }

    .phone-trio .phone {
        padding: 0.25rem;
        border-radius: 1.3rem;
    }

    .phone-trio .phone img {
        border-radius: 1.05rem;
    }

    .phone-trio .phone-par:nth-child(1) { margin-right: -1rem; }
    .phone-trio .phone-par:nth-child(3) { margin-left: -1rem; }

    .more-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .more-card {
        padding: 0.9rem;
    }

    .more-card p {
        font-size: 0.8rem;
    }

    .get-app {
        padding: 2.5rem 0;
    }

    .get-app h2 {
        font-size: 1.5rem;
    }

    .get-app-actions > * {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .more-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .phone-trio .phone {
        --phone-w: 6rem;
    }

    .phone-trio .phone-par:nth-child(2) .phone {
        --phone-w: 7.25rem;
    }

    .phone-trio .phone-par:nth-child(1) { margin-right: -0.75rem; }
    .phone-trio .phone-par:nth-child(3) { margin-left: -0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    .phone--float {
        animation: none;
    }
    .phone-par,
    .landing-blob {
        transform: none !important;
        will-change: auto;
    }
}
