:root {
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary-blue: #1d72b8; /* Approximate from logo */
    --primary-green: #8bc53f; /* Approximate from logo */
    --shadow-color: rgba(148, 163, 184, 0.15);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow-x: hidden;
}

/* Background aesthetic blobs */
.blob-1, .blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--primary-blue);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--primary-green);
    animation-delay: -5s;
}

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

.container {
    width: 100%;
    max-width: 440px;
    z-index: 10;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 48px 32px;
    box-shadow: 0 24px 48px var(--shadow-color), inset 0 1px 0 rgba(255,255,255,1);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(29, 114, 184, 0.15);
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin-bottom: 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Download Options */
.logo {
    max-width: 220px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.download-options p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.store-button::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(255,255,255,0.15), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-button:hover::before {
    opacity: 1;
}

.store-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.store-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.apple-btn {
    background-color: #000000;
}

.google-btn {
    background-color: #1e293b; /* Dark slate for a premium feel */
}

.icon {
    flex-shrink: 0;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.small-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
}

.large-text {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .card {
        padding: 40px 24px;
        border-radius: 24px;
    }
    h1 {
        font-size: 1.5rem;
    }
}
