/* Reset and base styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-start: #1a1a2e;
    --color-bg-mid: #16213e;
    --color-bg-end: #0f3460;
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-accent: #667eea;
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, var(--color-bg-start) 0%, var(--color-bg-mid) 50%, var(--color-bg-end) 100%);
    background-attachment: fixed;
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

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

.logo-text {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.header-cta {
    background: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 60px;
}

.hero-headline {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-badge img {
    height: 54px;
    transition: transform 0.2s;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

.hero-screenshot {
    width: 100%;
    max-width: 320px;
}

.device-frame {
    background: #000;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.device-frame img {
    width: 100%;
    border-radius: 30px;
    display: block;
}

/* Features Section */
.features {
    padding: 80px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-screenshot {
    margin-bottom: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-screenshot img {
    width: 100%;
    display: block;
}

.feature-headline {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.feature-description {
    color: var(--color-text-muted);
    font-size: 16px;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 100px 24px;
}

.cta-headline {
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-subheadline {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 12px 16px;
    }

    .logo-text {
        display: none;
    }

    .hero {
        padding: 100px 16px 40px;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .features {
        padding: 60px 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .cta {
        padding: 60px 16px;
    }

    .device-frame {
        border-radius: 32px;
        padding: 8px;
    }

    .device-frame img {
        border-radius: 24px;
    }
}

@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        justify-content: center;
        gap: 80px;
        padding: 140px 48px 80px;
    }

    .hero-content {
        text-align: left;
        margin-bottom: 0;
    }

    .hero-subheadline {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-screenshot {
        max-width: 380px;
    }
}
