/* Variables matching app theme.dart */
:root {
    --primary-color: #00BBFF;
    --bg-color: #F5F6F8;
    --text-primary: #011B6C; /* titleColor */
    --text-secondary: #6C84A9; /* secondaryFontColor */
    --surface-color: #FFFFFF;
    --btn-bg: #111111;
    --btn-text: #FFFFFF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

.container {
    background-color: var(--surface-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 187, 255, 0.08);
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.logo-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.app-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Download Section */
.download-section {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

.platform-note {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

/* Buttons */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

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

.google-btn {
    background-color: var(--primary-color);
}

.google-btn:hover {
    background-color: #00A3E0;
    box-shadow: 0 8px 20px rgba(0, 187, 255, 0.3);
}

.btn-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

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

.btn-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.btn-main {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
}

/* Footer */
.footer p {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 10px;
}

/* Mask for Restricted Browsers (e.g. WeChat) */
.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

.mask-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.mask-guide {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.curved-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -10px); }
}

.mask-info {
    position: absolute;
    top: 150px;
    right: 30px;
    color: #fff;
    text-align: right;
    max-width: 250px;
    pointer-events: auto;
}

.mask-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.mask-info p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.mask-info strong {
    color: var(--primary-color);
}

.close-mask {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 187, 255, 0.4);
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .container {
        border-radius: 0;
        box-shadow: none;
        background-color: transparent;
        padding: 20px;
    }

    body {
        align-items: flex-start;
        padding-top: 40px;
    }
}