* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #121212;
    color: #e0e0e0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 480px;
    background: #1e1e1e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.header {
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Deep Purple/Blue */
    color: #fff;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px;
    border: 2px solid rgba(255,255,255,0.2);
}

.app-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.app-desc {
    font-size: 14px;
    opacity: 0.8;
}

.content {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loading {
    color: #888;
    font-size: 14px;
    margin-top: 20px;
}

/* Flex Layout for Download Buttons */
.download-grid {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 24px;
}

.download-item {
    flex: 1;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 16px 8px;
    border-radius: 16px;
    background: #252525;
    border: 1px solid #333;
}

.download-item:active {
    background: #333;
    transform: scale(0.95);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background: #2a2a2a;
}

.icon, .icon-wrapper img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
}

/* Custom platform colors for icons if transparent PNGs are used */
.windows .icon-wrapper { background: rgba(24, 144, 255, 0.1); border: 1px solid rgba(24, 144, 255, 0.3); }
.android .icon-wrapper { background: rgba(82, 196, 26, 0.1); border: 1px solid rgba(82, 196, 26, 0.3); }
.ios .icon-wrapper { background: rgba(250, 140, 22, 0.1); border: 1px solid rgba(250, 140, 22, 0.3); }

.btn-text {
    font-size: 14px;
    font-weight: 500;
    color: #eee;
    margin-bottom: 6px;
    text-align: center;
}

.version-tag {
    font-size: 10px;
    color: #888;
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid #333;
}

/* QR Code Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 24px;
    background: #252525;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid #333;
    width: 100%;
    max-width: 320px;
}

.qrcode-container {
    padding: 12px;
    background: #fff; /* QR code needs white background for contrast */
    border-radius: 12px;
}

.qrcode-container img {
    display: block;
}

.qr-text {
    margin-top: 16px;
    font-size: 14px;
    color: #aaa;
    font-weight: 500;
}

.footer {
    margin-top: auto;
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}

@media (min-width: 481px) {
    .container {
        min-height: auto;
        margin: 40px 0;
        border-radius: 32px;
        overflow: hidden;
    }
}
