:root {
    --primary: #FF7EB3;
    --primary-dark: #FF5A9C;
    --secondary: #4A90E2;
    --background: #F8F9FA;
    --surface: rgba(255, 255, 255, 0.85);
    --text-main: #2D3748;
    --text-muted: #718096;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-x: hidden;
    position: relative;
}

/* --- Animated Background Blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #FFD700;
    bottom: 30%;
    left: 20%;
    animation-delay: -2s;
    opacity: 0.4;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Glassmorphism Container --- */
.container {
    width: 100%;
    max-width: 540px;
    padding: 40px;
    border-radius: 24px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    z-index: 1;
    margin: auto;
}

/* --- Header --- */
.header {
    margin-bottom: 30px;
}

.logo-image {
    width: 120px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    border-radius: 24px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.text-primary {
    color: var(--primary);
}

.slogan {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* --- Main Content --- */
.description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.download-btn {
    position: relative;
    display: inline-block;
    width: 100%;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 16px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.btn-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.icon {
    width: 24px;
    height: 24px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 126, 179, 0.4);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    z-index: 1;
    transition: left 0.5s ease;
}

.download-btn:hover .btn-glow {
    left: 150%;
}

.version-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

/* --- Instructions --- */
.instructions {
    margin-top: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.6);
    padding: 24px;
    border-radius: 16px;
}

.instructions h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--secondary);
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.step p {
    font-size: 14px;
    line-height: 1.5;
}

/* --- Responsive Design --- */

/* Tablets & iPads (Portrait & Landscape) */
@media (max-width: 820px) {
    .container {
        max-width: 90%;
        padding: 32px;
    }
    .logo-image {
        width: 100px;
    }
    .brand-name {
        font-size: 28px;
    }
}

/* Mobile Phones (Portrait) */
@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: flex-start; /* Prevent cut-off */
    }
    .container {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 8vh 24px 40px 24px;
        border-radius: 0;
        border: none;
        box-shadow: none;
        margin: 0;
    }
    .logo-image {
        width: 90px;
        border-radius: 18px;
    }
    .brand-name {
        font-size: 28px;
    }
    .slogan {
        font-size: 14px;
    }
    .description {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .download-btn {
        font-size: 16px;
        padding: 16px 20px;
    }
    .instructions {
        padding: 24px 20px;
        margin-top: 32px;
        background: rgba(255, 255, 255, 0.75);
    }
    .instructions h3 {
        font-size: 17px;
    }
    .step p {
        font-size: 14px;
    }
}

/* Landscape on Mobile & Small Height Devices */
@media (max-height: 700px) {
    body {
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .container {
        margin: 0 auto;
    }
}

/* Small Landscape Devices (e.g. iPhone Landscape) */
@media (max-height: 480px) and (orientation: landscape) {
    body {
        padding: 16px;
        align-items: center;
    }
    .container {
        max-width: 850px;
        padding: 24px 32px;
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "header content"
            "header instructions";
        gap: 16px 40px;
        align-items: center;
        text-align: left;
    }
    .header {
        grid-area: header;
        margin-bottom: 0;
    }
    .logo-image {
        margin: 0 0 20px 0;
        width: 80px;
    }
    .main-content {
        grid-area: content;
    }
    .brand-name {
        font-size: 26px;
    }
    .description {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .download-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    .instructions {
        grid-area: instructions;
        margin-top: 0;
        padding: 16px 20px;
    }
}

/* --- Forms & Buttons Additions --- */
.email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.email-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.email-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 126, 179, 0.1);
    background: #fff;
}

.submit-btn {
    border: none;
    cursor: pointer;
}

.secondary-btn {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    margin-top: 16px;
}

.secondary-btn:hover {
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
}

.instruction-text {
    font-size: 15px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-weight: 500;
}

.success-text {
    font-size: 15px;
    margin-bottom: 20px;
    color: #2e7d32;
    font-weight: 600;
}
