/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F5F5F7;
    --text-primary: #1D1D1F;
    --text-secondary: #424245;
    --footer-bg: #F5F5F7;
    --footer-border: #D2D2D7;
    --link-color: #424245;
    --link-hover: #1D1D1F;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 88px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.hero-text {
    max-width: 601px;
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.app-store-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.app-store-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-badge {
    width: 210px;
    height: auto;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 28px 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
}

.footer-link {
    font-size: 16px;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--link-hover);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: var(--link-hover);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-link:hover::after {
    width: 100%;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal:target {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal:target .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.modal-content h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 16px;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 60px;
    }

    .hero-content {
        gap: 60px;
    }
}

@media (max-width: 968px) {
    .container {
        padding: 0 40px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-description {
        font-size: 16px;
    }

    .app-store-link {
        display: inline-block;
    }

    .phone-mockup {
        max-width: 400px;
    }

    .footer-nav {
        gap: 60px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 24px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 32px;
    }

    .app-store-badge {
        width: 160px;
    }

    .phone-mockup {
        max-width: 300px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 24px;
    }

    .modal-content {
        padding: 32px 24px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .modal-content h3 {
        font-size: 18px;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .phone-mockup {
        animation: none;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --text-primary: #F5F5F7;
        --text-secondary: #A1A1A6;
        --footer-bg: #000000;
        --footer-border: #424245;
        --link-color: #A1A1A6;
        --link-hover: #F5F5F7;
    }

    .modal-content {
        background-color: #1D1D1F;
    }
}
