/* ==================== CSS Variables ==================== */
:root {
    --color-bg-start: #1a3c2a;
    --color-bg-mid: #234d35;
    --color-bg-end: #0d2818;
    --color-white: rgba(255, 255, 255, 0.92);
    --color-white-muted: rgba(255, 255, 255, 0.78);
    --glass-bg: rgba(255, 255, 255, 0.09);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18);
    --btn-google-bg: #ffffff;
    --btn-google-text: #1a1a1a;
    --btn-apple-bg: #ffffff;
    --btn-apple-text: #1a1a1a;
    --btn-share-bg: rgba(255, 255, 255, 0.18);
    --btn-share-hover: rgba(255, 255, 255, 0.28);
    --radius-lg: 20px;
    --radius-md: 14px;
    --transition-fast: 0.2s ease;
}

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    
    background-color: var(--color-bg-end); 
    background-image: linear-gradient(160deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
    
    background-attachment: fixed; 
    color: var(--color-white);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}


/* ==================== Background Decor ==================== */
.bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.bg-circle--1 {
    width: 55vw;
    height: 55vw;
    max-width: 500px;
    max-height: 500px;
    background: #b8e6c8;
    top: -12%;
    right: -15%;
}

.bg-circle--2 {
    width: 45vw;
    height: 45vw;
    max-width: 380px;
    max-height: 380px;
    background: #d4f0dc;
    bottom: 15%;
    left: -10%;
    opacity: 0.09;
}

.bg-circle--3 {
    width: 35vw;
    height: 35vw;
    max-width: 280px;
    max-height: 280px;
    background: #e8f5ec;
    top: 55%;
    right: -8%;
    opacity: 0.07;
}

/* ==================== Container ==================== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 40px 20px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==================== Header & Logo ==================== */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.site-logo {
    width: 120px;
    height: 120px;
    max-width: 40%; 
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    margin-bottom: 0;
}


/* ==================== Hero ==================== */
.hero {
    text-align: center;
    margin-bottom: 28px;
    width: 100%;
}

.hero__title {
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--color-white);
}

.hero__subtitle {
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    font-weight: 400;
    color: var(--color-white-muted);
    max-width: 440px;
    margin: 0 auto;
}

/* ==================== Card ==================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.card--download {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    width: 100%;
}

/* ==================== Download Section ==================== */
.download {
    width: 100%;
    margin-bottom: 20px;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: var(--radius-md);
    padding: 14px 24px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn--google,
.btn--apple {
    width: 100%;
    color: var(--btn-google-text);
    background: var(--btn-google-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn--google:hover,
.btn--apple:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.btn--apple {
    background: var(--btn-apple-bg);
    color: var(--btn-apple-text);
}

.btn__icon {
    flex-shrink: 0;
}

/* ==================== Share ==================== */
.share {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.btn--share {
    background: var(--btn-share-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--color-white);
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 500;
}

.btn--share:hover {
    background: var(--btn-share-hover);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==================== Footer ==================== */
.footer {
    text-align: center;
    width: 100%;
}

.footer__copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.footer__links a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ==================== Desktop (≥ 768px) ==================== */
@media (min-width: 768px) {

    .bg-circle--1 {
        top: -8%;
        right: -8%;
    }

    .bg-circle--2 {
        bottom: 12%;
        left: -6%;
    }

    .container {
        padding: 48px 24px 40px;
    }

    .site-logo {
        width: 160px;
        height: 160px;
        max-width: 160px;
    }

    .header {
        margin-bottom: 24px;
    }

    .hero {
        margin-bottom: 32px;
    }

    .card--download {
        padding: 28px 24px;
        gap: 16px;
    }

    .btn {
        font-size: 1.05rem;
        padding: 16px 28px;
    }

    .btn__icon {
        width: 30px;
        height: 30px;
    }
}
