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

:root {
    --primary-color: #E3BE78;
    --secondary-color: #8B7355;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 100vh;
}

.hero {
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 20px;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0px;
    max-width: 600px;
    width: 100%;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0px;
}

.download-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    margin: 20px auto 0;
    width: 100%;
    text-align: center;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
    min-width: 160px;
}

.download-btn:hover {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

/* QR Code Popup Styles */
.qr-code-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    margin-top: 10px;
}

.qr-code-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--white);
}

.qr-code-content {
    padding: 20px;
    text-align: center;
    min-width: 260px;
}

.qr-code-placeholder {
    width: 140px;
    height: 140px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    overflow: hidden;
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.qr-text {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Show QR code on hover (web only) */
@media screen and (min-width: 1024px) {
    .download-btn.ios,
    .download-btn.android {
        position: relative;
    }

    .download-btn.ios:hover .qr-code-popup,
    .download-btn.android:hover .qr-code-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(5px);
    }
}

/* Mobile-first: 2x2 grid layout for download buttons */
@media screen and (max-width: 767px) {
    .download-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        justify-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 140px;
        font-size: 14px;
        padding: 10px 8px;
        text-align: center;
    }
}

/* Tablet and desktop: horizontal layout */
@media screen and (min-width: 768px) {
    .container {
        max-width: 100%;
    }

    .download-options {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px;
        width: 100%;
        margin: 20px auto 0;
    }

    .download-btn {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        max-width: 100%;
    }
} 