/* Global Variables */
:root {
    --bg-light: #f8fafc;
    --bg-lighter: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #475569;
    
    /* Vibrant Accents */
    --accent-android: #10b981;
    --accent-android-hover: #059669;
    --accent-ios: #3b82f6;
    --accent-ios-hover: #2563eb;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent-ios);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-ios-hover);
}

/* Layout */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: flex-start; /* Removed center to fix cutoff at top */
    justify-content: center;
    gap: 64px;
    padding: 60px 24px 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
}

.hero-text {
    order: 1;
}

.download-section {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.download-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
}

.qr-code {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background-color: white;
    padding: 4px;
}

.btn-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.btn, a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    color: white !important;
}

.btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.btn-android {
    background-color: var(--accent-android);
}

.btn-android:hover {
    background-color: var(--accent-android-hover);
    transform: translateY(-2px);
}

.btn-ios {
    background-color: var(--accent-ios);
}

.btn-ios:hover {
    background-color: var(--accent-ios-hover);
    transform: translateY(-2px);
}

/* App Mockup */
.hero-visual {
    flex: 1.5;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.mockup-img {
    max-width: 600px;
    width: 100%;
    margin-bottom: -200px;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.mockup-img:hover {
    transform: scale(1.02);
}

/* Features */
.features {
    padding: 240px 24px 80px 24px;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    max-width: 320px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Legal Pages Styling */
header {
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
}

.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.legal-container p.date {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.legal-container h2, .legal-container h3 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #334155;
}

.legal-container p {
    margin-bottom: 16px;
    color: #475569;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer .links, footer .socials {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

footer .socials a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

footer .socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 30px 20px 20px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: #0f172a;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 40px 24px;
        gap: 40px;
    }
    
    .hero-text {
        order: 1;
        text-align: center;
    }

    .download-section {
        order: 2;
        margin-top: 0;
        margin-bottom: 32px;
        width: 100%;
    }
    
    .qr-code {
        display: none; /* Hide QR codes on mobile since users can't scan their own screen */
    }

    .logo {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-bottom: 0;
    }

    .download-card {
        flex-direction: column;
    }
    
    .mockup-img {
        max-width: 100%;
        margin-bottom: -50px;
    }
    
    .features {
        padding-top: 100px;
    }

    footer .socials {
        flex-direction: column;
        gap: 16px;
    }
}
