:root { --primary-purple: #8b5cf6; --dark-bg: #050505; }
body { font-family: 'Inter', sans-serif; background-color: #000; color: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .font-heading { font-family: 'Montserrat', sans-serif; }

.mobile-container { width: 100%; max-width: 480px; margin: 0 auto; background-color: var(--dark-bg); position: relative; overflow: hidden; min-height: 100vh; box-shadow: 0 0 100px rgba(0,0,0,1); border-left: 1px solid #111; border-right: 1px solid #111; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity; }
.reveal.active { opacity: 1; transform: translateY(0); }

.neon-glow { text-shadow: 0 0 15px rgba(139, 92, 246, 0.6); }
.btn-pulse { animation: pulse-soft 2s infinite ease-in-out; }
@keyframes pulse-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.98); } }

.video-progress { width: 0%; transition: width 15s linear; }
.playing .video-progress { width: 100%; }

.footer-glass { background: rgba(10, 10, 12, 0.98); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border-top: 1px solid rgba(139, 92, 246, 0.3); }
.card-gradient { background: linear-gradient(165deg, rgba(35, 35, 40, 0.95) 0%, rgba(10, 10, 12, 1) 100%); }

#lightbox { display: none; z-index: 10000; backdrop-filter: blur(35px); -webkit-backdrop-filter: blur(35px); }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.step-gradient { background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, rgba(0,0,0,0) 100%); }

/* Floating logic */
.floating-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    /* Центрируем по X и прячем вниз по Y */
    transform: translateX(-50%) translateY(150%); 
    width: 90%;
    max-width: 400px;
    z-index: 9000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Состояние, когда кнопка выезжает */
.floating-footer.visible {
    transform: translateX(-50%) translateY(0);
}

/* Стиль самой кнопки внутри контейнера */
.floating-footer button {
    width: 100%;
    padding: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.milli-fast { font-variant-numeric: tabular-nums; }

/* Stylish Results Checkbox */
.check-circle-wrapper { position: relative; width: 64px; height: 64px; margin: 0 auto 15px; }
.progress-ring { transform: rotate(-90deg); }
.progress-ring__circle { stroke-dasharray: 157; stroke-dashoffset: 157; transition: stroke-dashoffset 1s ease-out 0.2s; }
.check-item.active .progress-ring__circle { stroke-dashoffset: 0; }
.check-item.active .check-mark-icon { opacity: 1; transform: scale(1) translate(-50%, -50%); }
.check-mark-icon { position: absolute; left: 50%; top: 50%; transform: scale(0.5) translate(-50%, -50%); opacity: 0; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.8s; transform-origin: 0 0; }

/* Moving CTA Card Effect */
#moving-cta-card { transition: transform 0.1s ease-out; }

section { content-visibility: auto; contain-intrinsic-size: 1px 500px; }

:root {
    --iphone-width: 380px;
    --iphone-height: 820px;
    --iphone-radius: 54px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    margin: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Placeholder Empty Blocks --- */
.desert-block {
    height: 100vh;
    width: 100%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.desert-text {
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
}

.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- Phone Section --- */
.phone-section {
    min-height: 110vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #020617; 
    padding: 80px 20px;
    position: relative;
}

.iphone-frame {
    width: var(--iphone-width);
    height: var(--iphone-height);
    background-color: #000;
    border-radius: var(--iphone-radius);
    position: relative;
    box-shadow: 
        0 0 0 12px #1e1e1e, 
        0 0 0 14px #2a2a2a,
        0 40px 100px rgba(0,0,0,0.8),
        0 0 80px rgba(56, 189, 248, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.05);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

@media (max-width: 500px) {
    .iphone-frame {
        transform: scale(0.75);
    }
    .phone-section { padding: 40px 10px; }
}

.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 36px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
}

/* Push Notification Container */
.push-wrapper {
    position: absolute;
    top: -120px;
    left: 12px;
    right: 12px;
    z-index: 200;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.push-active {
    transform: translateY(145px);
}

.push-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 26px;
    padding: 14px 16px;
    color: #000;
    display: flex;
    gap: 14px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
}

.bank-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #000;
}

/* App Styles */
.app-screen {
    background: linear-gradient(180deg, #12121e 0%, #000 40%, #000 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.balance-main {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: white;
}

.balance-dec {
    font-size: 26px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
}

.history-panel {
    background: #111;
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    flex: 1;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.history-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin: 14px auto;
}

.tab-bar {
    height: 85px;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 25px;
}

.tab-item { color: #8e8e93; font-size: 10px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tab-item.active { color: #ff4d4d; }

.flash-money { animation: flashGreen 0.7s ease-out; }
@keyframes flashGreen {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); color: #4ade80; }
    100% { transform: scale(1); }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

#tx-list::-webkit-scrollbar { display: none; }
#tx-list { scrollbar-width: none; }

/* --- Download Button UI --- */
.download-container {
    margin-top: 40px;
    z-index: 50;
}

.download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 32px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(16, 185, 129, 0.5);
}

.download-btn:active {
    transform: translateY(0) scale(0.98);
}