:root {
    --bg-dark: #000000;
    --text-primary: #FFFFFF;
    --text-secondary: #86868b;
    /* Apple gray */
    --accent: #FFD60A;

    --glass-bg: rgba(28, 28, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);

    --ease-apple: cubic-bezier(0.2, 0, 0.2, 1);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #F5F5F7;
        --text-primary: #1D1D1F;
        --text-secondary: #86868b;
        --glass-bg: rgba(255, 255, 255, 0.6);
        --glass-border: rgba(0, 0, 0, 0.05);
        --accent: #F5A623;
    }
}

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

body {
    background-color: var(--bg-dark);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

/* Background Gradient - Deeper and more subtle */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(255, 214, 10, 0.06) 0%, transparent 60%);
    z-index: -2;
    pointer-events: none;
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.05;
    margin-bottom: 24px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

p {
    font-size: 21px;
    line-height: 1.4;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

.text-gold {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.app-icon {
    width: 118px;
    height: 118px;
    border-radius: 26px;
    /* Continuous curve match */
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

/* Use the official badge, styled cleanly */
.app-store-badge {
    display: inline-block;
    margin-top: 40px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-badge:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.app-store-badge img {
    height: 60px;
    /* Standard visible height */
    width: auto;
}

/* ZERO ADS Pill */
.pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

/* Bento Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 120px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    transition: transform 0.4s var(--ease-apple);
}

.card:hover {
    transform: scale(1.01);
}

.card p {
    font-size: 17px;
    margin: 0;
    max-width: 100%;
}

.card-icon {
    margin-bottom: 20px;
    color: var(--accent);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0 80px;
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-secondary);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 12px;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s var(--ease-apple) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 42px;
    }

    p {
        font-size: 19px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    #qr-canvas {
        bottom: 20px;
        right: 20px;
        width: 150px;
        height: 150px;
    }
}