/* ============================================================
   sMOV — Download Page Styles
   By Cyrano_31 |
   ============================================================ */

/* Nav on download page: always visible, no mix-blend-mode issue */
.nav-download {
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    transform: none !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 110px;
}

.nav-logo-icon-dl {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    margin-right: 4px;
}

.nav-cta-active {
    background: rgba(138, 95, 206, 0.15) !important;
    border-color: var(--color-accent-light) !important;
}


/* ===== DOWNLOAD HERO ===== */
.dl-page {
    background: #000;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Override body overflow:hidden from style.css */
body:has(.dl-page) {
    overflow: auto !important;
}

.dl-hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 120px var(--side-padding, 48px) 10px;
}

.dl-hero-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3vw, 60px);
}

/* Info LEFT, Phones RIGHT */
.dl-info {
    order: 1;
}
.dl-phones {
    order: 2;
    display: flex;
    gap: clamp(0px, 1vw, 10px);
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.dl-phone {
    position: relative;
    width: clamp(160px, 18vw, 260px);
    opacity: 0;
    filter: blur(20px);
    animation: phoneAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Android: bigger, foreground */
.dl-phone-1 {
    width: clamp(180px, 22vw, 300px);
    z-index: 3;
    animation-delay: 0.4s;
}

/* Apple: smaller, lower, behind */
.dl-phone-2 {
    width: clamp(150px, 17vw, 240px);
    z-index: 1;
    margin-left: -30px;
    margin-top: 40px;
    animation-delay: 0.7s;
}

@keyframes phoneAppear {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(40px) scale(0.92);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

/* Once appeared, float continuously */
.dl-phone.is-visible {
    animation: phoneAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               dlFloat 6s ease-in-out 1.6s infinite;
}

.dl-phone-1.is-visible {
    animation: phoneAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards,
               dlFloat 6s ease-in-out 1.8s infinite;
}

.dl-phone-2.is-visible {
    animation: phoneAppear 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
               dlFloat2 6s ease-in-out 2.1s infinite;
}

@keyframes dlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@keyframes dlFloat2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.dl-phone img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(138, 95, 206, 0.08);
}

/* Glow under phones */
.dl-phone-glow {
    position: absolute;
    bottom: -20px;
    left: -15%;
    width: 130%;
    height: 80%;
    background: radial-gradient(ellipse at 50% 80%, rgba(138, 95, 206, 0.5) 0%, rgba(138, 95, 206, 0.15) 40%, transparent 70%);
    filter: blur(45px);
    z-index: 0;
    pointer-events: none;
    animation: dlGlowPulse 4s ease-in-out infinite;
}

.dl-phone-glow-2 {
    background: radial-gradient(ellipse at 50% 80%, rgba(30, 120, 220, 0.5) 0%, rgba(30, 120, 220, 0.18) 40%, transparent 70%);
    animation-delay: -2s;
}

@keyframes dlGlowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}


/* ===== DOWNLOAD INFO (RIGHT) ===== */
.dl-info {
    opacity: 0;
    transform: translateX(30px);
    animation: dlInfoAppear 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes dlInfoAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dl-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #b48aff 50%, #6da0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dl-subtitle {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--color-text-dim, rgba(255,255,255,0.45));
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 40px;
}


/* ===== QR CODES ===== */
.dl-qr-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.dl-qr {
    text-align: center;
}

.dl-qr-placeholder {
    width: 185px;
    height: 185px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.dl-qr-placeholder:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(138, 95, 206, 0.3);
}

.dl-qr-placeholder svg,
.dl-qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dl-qr-label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim, rgba(255,255,255,0.45));
}


/* ===== STORE BUTTONS ===== */
.dl-store-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.dl-store-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    overflow: hidden;
    text-decoration: none;
}

.dl-store-btn .btn-border {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
}

.dl-store-btn .btn-border rect {
    stroke-dasharray: 0 520;
    stroke-dashoffset: 200;
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded .dl-store-btn .btn-border rect {
    stroke-dasharray: 520 0;
    stroke-dashoffset: 0;
}

.dl-store-btn:hover .btn-border rect {
    stroke-dasharray: 200 320;
    stroke-dashoffset: -260;
}

.dl-store-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}


/* ===== RATING ===== */
.dl-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
}

.dl-rating-score {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.dl-rating-stars {
    font-size: 18px;
    color: #f5a623;
    letter-spacing: 2px;
}

.dl-rating-count {
    font-size: 14px;
    color: var(--color-text-dim, rgba(255,255,255,0.45));
}


/* ===== APP SHOWCASE — 3D Perspective Carousel ===== */
.app-showcase {
    padding: 0;
    background: #000;
    overflow: hidden;
}

.app-showcase .section-inner {
    padding-top: clamp(20px, 3vw, 40px);
    padding-bottom: clamp(20px, 3vw, 40px);
}

.showcase-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
}

.showcase-track {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Each slide */
.showcase-slide {
    position: absolute;
    width: 260px;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.showcase-phone-frame {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.7s ease;
    position: relative;
}

.showcase-phone-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.7s ease;
}

/* States: center, left-1, left-2, right-1, right-2, hidden */
.showcase-slide[data-state="center"] {
    transform: translateX(-50%) scale(1);
    left: 50%;
    z-index: 10;
    opacity: 1;
}

.showcase-slide[data-state="center"] .showcase-phone-frame {
    box-shadow:
        0 30px 80px rgba(138, 95, 206, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 120px rgba(138, 95, 206, 0.1);
}

.showcase-slide[data-state="left-1"] {
    transform: translateX(-50%) scale(0.78) rotateY(8deg);
    left: 22%;
    z-index: 5;
    opacity: 0.7;
}

.showcase-slide[data-state="left-1"] .showcase-phone-frame img {
    filter: brightness(0.6) blur(1px);
}

.showcase-slide[data-state="right-1"] {
    transform: translateX(-50%) scale(0.78) rotateY(-8deg);
    left: 78%;
    z-index: 5;
    opacity: 0.7;
}

.showcase-slide[data-state="right-1"] .showcase-phone-frame img {
    filter: brightness(0.6) blur(1px);
}

.showcase-slide[data-state="left-2"] {
    transform: translateX(-50%) scale(0.6) rotateY(14deg);
    left: 5%;
    z-index: 2;
    opacity: 0.35;
}

.showcase-slide[data-state="left-2"] .showcase-phone-frame img {
    filter: brightness(0.4) blur(2px);
}

.showcase-slide[data-state="right-2"] {
    transform: translateX(-50%) scale(0.6) rotateY(-14deg);
    left: 95%;
    z-index: 2;
    opacity: 0.35;
}

.showcase-slide[data-state="right-2"] .showcase-phone-frame img {
    filter: brightness(0.4) blur(2px);
}

.showcase-slide[data-state="hidden"] {
    transform: translateX(-50%) scale(0.4);
    left: 50%;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}


/* ===== ANNOTATIONS (only visible on center slide) ===== */
.showcase-annotations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.showcase-annotation {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.6s ease 0.3s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.showcase-slide[data-state="center"] .showcase-annotation {
    opacity: 1;
}

.annotation-left {
    right: calc(100% + 20px);
    flex-direction: row-reverse;
    text-align: right;
}

.annotation-left.annotation-top { top: 15%; }
.annotation-left.annotation-bottom { top: 65%; }

.showcase-slide[data-state="center"] .annotation-left {
    transform: translateX(-10px);
}

.annotation-right {
    left: calc(100% + 20px);
    text-align: left;
}

.annotation-right.annotation-top { top: 35%; }
.annotation-right.annotation-bottom { top: 78%; }

.showcase-slide[data-state="center"] .annotation-right {
    transform: translateX(10px);
}

.annotation-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent-light, #b48aff));
    flex-shrink: 0;
}

.annotation-left .annotation-line {
    background: linear-gradient(90deg, var(--color-accent-light, #b48aff), transparent);
}

.annotation-content {
    white-space: nowrap;
}

.annotation-content strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.annotation-content p {
    font-size: 12px;
    color: var(--color-text-dim, rgba(255, 255, 255, 0.76));
    margin: 0;
    line-height: 1.4;
}


/* ===== ARROWS ===== */
.showcase-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.showcase-arrow:hover {
    border-color: var(--color-accent-light, #b48aff);
    background: rgba(138, 95, 206, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.showcase-arrow-left {
    left: 0;
}

.showcase-arrow-right {
    right: 0;
}


/* ===== DOTS ===== */
.showcase-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.showcase-dot.active {
    background: var(--color-accent-light, #b48aff);
    width: 24px;
    border-radius: 4px;
}


/* ===== EXPANDED OVERLAY (mobile tap-to-zoom) ===== */
.showcase-expand-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.showcase-expand-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.expand-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(88vw, 380px);
}

.expand-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    border-radius: 24px;
    box-shadow:
        0 40px 100px rgba(138, 95, 206, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.12),
        0 0 120px rgba(138, 95, 206, 0.12);
    transform: scale(0.85);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-expand-overlay.active .expand-wrapper img {
    transform: scale(1);
}

/* Info bar at bottom of expanded image */
.expand-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    justify-items: center;
    padding: 14px 8px 6px;
    margin-top: 14px;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.showcase-expand-overlay.active .expand-info {
    opacity: 1;
    transform: translateY(0);
}

.expand-info-item {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.expand-info-item strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-light, #b48aff);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expand-info-item p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.4;
}

/* Close hint */
.expand-close-hint {
    display: block;
    margin-top: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.showcase-expand-overlay.active .expand-close-hint {
    opacity: 1;
}


/* ===== SHOWCASE RESPONSIVE ===== */
@media (max-width: 900px) {
    .showcase-track {
        height: 420px;
    }
    .showcase-slide {
        width: 200px;
    }
    .showcase-annotations {
        display: none;
    }
    .showcase-slide[data-state="left-2"],
    .showcase-slide[data-state="right-2"] {
        opacity: 0;
        pointer-events: none;
    }
}

@media (max-width: 600px) {
    .showcase-track {
        height: 380px;
    }
    .showcase-slide {
        width: 180px;
    }
    .showcase-slide[data-state="left-1"] {
        left: 10%;
        transform: translateX(-50%) scale(0.7) rotateY(6deg);
        opacity: 0.5;
    }
    .showcase-slide[data-state="right-1"] {
        left: 90%;
        transform: translateX(-50%) scale(0.7) rotateY(-6deg);
        opacity: 0.5;
    }
    .showcase-arrow {
        width: 36px;
        height: 36px;
    }
    .app-showcase {
        padding: 30px 0;
    }
}


/* ===== MORE INFO SECTION ===== */
.dl-more {
    padding: 0;
    background: var(--color-bg-dark, #0a0a0f);
}

.dl-more .section-inner {
    padding-top: clamp(30px, 4vw, 50px);
    padding-bottom: clamp(30px, 4vw, 50px);
}

.dl-features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 60px);
    margin-top: clamp(30px, 4vw, 50px);
}

.dl-feature {
    text-align: center;
    padding: 40px 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.dl-feature {
    cursor: pointer;
    position: relative;
}

.dl-feature:hover {
    transform: translateY(-8px);
    border-color: rgba(43, 122, 224, 0.25);
}

.dl-feature-more {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,0.35);
    transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.dl-feature:hover .dl-feature-more {
    border-color: var(--color-accent, #2B7AE0);
    color: var(--color-accent-light, #5BA3F5);
    transform: rotate(90deg);
}

.dl-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--color-accent-light, #b48aff);
}

.dl-feature-icon svg {
    width: 100%;
    height: 100%;
}

.dl-feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dl-feature p {
    font-size: 15px;
    color: var(--color-text-dim, rgba(255,255,255,0.45));
    line-height: 1.6;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .dl-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .dl-phones {
        order: 1;
        justify-content: center;
        margin-bottom: 40px;
    }
    .dl-info {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .dl-qr-row {
        justify-content: center;
    }
    .dl-store-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .dl-rating {
        justify-content: center;
    }
    .dl-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .nav-download {
        height: 70px;
    }
    .nav-logo-icon-dl {
        width: 50px;
        height: 50px;
    }
    .dl-hero {
        padding: 80px 20px 10px;
    }
    .dl-more {
        padding: 20px 0 40px;
    }
}

@media (max-width: 600px) {
    .dl-hero {
        padding: 100px 20px 60px;
    }
    .dl-phone {
        width: clamp(120px, 35vw, 180px);
    }
    .dl-phone-2 {
        margin-left: -20px;
        margin-top: 24px;
    }
    .dl-qr-row {
        gap: 16px;
    }
    .dl-qr-placeholder {
        width: 140px;
        height: 140px;
    }
    .dl-features-row {
        grid-template-columns: 1fr;
    }
    .dl-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .dl-store-btn {
        width: 100%;
        justify-content: center;
    }
    .dl-title {
        font-size: clamp(28px, 8vw, 48px);
    }
    .dl-subtitle {
        font-size: 15px;
    }
}
