* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e5e5;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
    --warning-border: #fbbf24;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Декоративные брызги красок на фоне */
.background-splashes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: splashFloat 20s ease-in-out infinite;
}

.splash-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    top: 5%;
    left: -5%;
    animation-delay: 0s;
}

.splash-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    top: 15%;
    right: -3%;
    animation-delay: -3s;
}

.splash-3 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    bottom: 20%;
    left: 8%;
    animation-delay: -6s;
}

.splash-4 {
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    top: 40%;
    right: 5%;
    animation-delay: -9s;
}

.splash-5 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    bottom: 10%;
    right: 10%;
    animation-delay: -12s;
}

.splash-6 {
    width: 190px;
    height: 190px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    top: 60%;
    left: -2%;
    animation-delay: -15s;
}

.splash-7 {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    top: 25%;
    left: 45%;
    animation-delay: -18s;
}

.splash-8 {
    width: 170px;
    height: 170px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    bottom: 35%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes splashFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(20px, -25px) scale(1.1) rotate(5deg);
    }
    50% {
        transform: translate(-15px, 15px) scale(0.9) rotate(-5deg);
    }
    75% {
        transform: translate(15px, 20px) scale(1.05) rotate(3deg);
    }
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-secondary);
    min-height: 100vh;
    box-shadow: 0 0 0 1px var(--border);
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 60px 24px 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.phone-icon-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-container {
    perspective: 1000px;
    animation: phoneFloat 3s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-8px) rotateY(2deg);
    }
}

.phone-frame {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 32px;
    padding: 8px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Android Status Bar */
.android-status-bar {
    height: 24px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    font-size: 11px;
    font-weight: 500;
    color: #000;
    border-bottom: 1px solid #e5e5e5;
}

.status-left {
    display: flex;
    align-items: center;
}

.time {
    font-weight: 600;
}

.status-right {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 10px;
}

/* Screen Content */
.screen-content {
    height: calc(100% - 24px);
    position: relative;
    overflow: hidden;
}

.screen-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transform: translateY(20px);
}

/* Этапы будут управляться через JavaScript */

@keyframes stageShow {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stageHide {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.app-icon-large {
    font-size: 64px;
    margin-bottom: 20px;
    animation: iconBounce 1s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.stage-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    text-align: center;
}

.stage-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.progress-container {
    width: 100%;
    max-width: 140px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 4px;
    width: 0%;
}

.download-progress,
.install-progress {
    transition: width 0.1s linear;
}

.progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    display: block;
    font-weight: 500;
}


/* Check Icon */
.check-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: checkPulse 1.5s ease-in-out 5s;
}

@keyframes checkPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


.header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 40px 24px;
}

/* Download Section */
.download-section {
    margin-bottom: 48px;
    text-align: center;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.download-btn:hover .btn-icon {
    transform: translateY(2px);
}

/* Instructions */
.instructions {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(20px);
}

.step:hover {
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Warning Section */
.warning-section {
    margin-top: 40px;
}

.warning-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    align-items: flex-start;
}

.warning-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    stroke: var(--warning-text);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 2px;
}

.warning-content {
    flex: 1;
}

.warning-content p {
    font-size: 14px;
    color: var(--warning-text);
    line-height: 1.6;
}

.warning-content strong {
    font-weight: 600;
    color: var(--warning-text);
}

/* Адаптивность для брызг */
@media (max-width: 640px) {
    .splash {
        filter: blur(35px);
        opacity: 0.18;
    }
    
    .splash-1 {
        width: 160px;
        height: 160px;
        left: -8%;
    }
    
    .splash-2 {
        width: 140px;
        height: 140px;
        right: -5%;
    }
    
    .splash-3 {
        width: 130px;
        height: 130px;
        left: 5%;
    }
    
    .splash-4 {
        width: 180px;
        height: 180px;
        right: 3%;
    }
    
    .splash-5 {
        width: 120px;
        height: 120px;
        right: 8%;
    }
    
    .splash-6 {
        width: 150px;
        height: 150px;
        left: -4%;
    }
    
    .splash-7 {
        width: 110px;
        height: 110px;
        left: 40%;
    }
    
    .splash-8 {
        width: 140px;
        height: 140px;
        left: 25%;
    }
}

@media (max-width: 360px) {
    .splash {
        filter: blur(30px);
        opacity: 0.2;
    }
    
    .splash-1, .splash-2, .splash-3, .splash-4, .splash-5, .splash-6, .splash-7, .splash-8 {
        width: 120px;
        height: 120px;
    }
    
    .splash-7 {
        display: none;
    }
}

/* Адаптивность */
@media (max-width: 640px) {
    .header {
        padding: 40px 20px 32px;
    }

    .header h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }

    .phone-frame {
        width: 160px;
        height: 320px;
    }
    
    .app-icon-large {
        font-size: 48px;
    }
    
    .stage-title {
        font-size: 16px;
    }

    .main-content {
        padding: 32px 20px;
    }

    .download-btn {
        padding: 16px 40px;
        font-size: 17px;
        width: 100%;
        max-width: 320px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .step {
        padding: 20px;
        gap: 16px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 17px;
    }

    .step-content p {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .header {
        padding: 32px 16px 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .phone-frame {
        width: 140px;
        height: 280px;
    }
    
    .app-icon-large {
        font-size: 40px;
    }
    
    .check-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .main-content {
        padding: 24px 16px;
    }

    .download-btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    .step {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }
}
