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

:root {
    --primary-color: #007AFF;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --background: #ffffff;
    --background-secondary: #f5f5f7;
    --border-color: #d2d2d7;
    --max-width: 1200px;
    --spacing-xs: 1rem;
    --spacing-sm: 2rem;
    --spacing-md: 4rem;
    --spacing-lg: 6rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-xs);
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 100;
}

nav {
    padding: 2rem 0;
}

nav .container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}


/* Hero Section */
.hero {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 2.5rem;
    line-height: 1.5;
}

.app-store-badge {
    margin: 2rem 0 1rem;
}

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

.platform-info {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Hero Screenshots - Layered Effect */
.hero-screenshots {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.screenshot-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.screenshot-front,
.screenshot-back {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.screenshot-front {
    position: relative;
    z-index: 2;
    left: 10%;
}

.screenshot-back {
    position: absolute;
    width: 90%;
    z-index: 1;
    left: -30%;
    top: 8%;
    opacity: 1;
}

/* Features Section */
.features {
    padding: var(--spacing-lg) 0;
}

.features h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature {
    text-align: left;
}

.feature h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: var(--spacing-lg) 0;
    background-color: var(--background-secondary);
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

/* Footer */
footer {
    background-color: var(--background);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-screenshots {
        min-height: 500px;
    }

    .screenshot-stack {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-sm: 1.5rem;
        --spacing-md: 3rem;
        --spacing-lg: 4rem;
    }

    .hero-screenshots {
        min-height: 400px;
    }

    .screenshot-stack {
        max-width: 300px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .app-store-badge img {
        height: 48px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Link Hover States */
a {
    transition: all 0.2s ease;
}

/* Privacy Policy Page */
.privacy-policy {
    padding: var(--spacing-lg) 0;
    min-height: 70vh;
}

.privacy-policy h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.policy-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.policy-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.policy-content ul {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --background: #000000;
        --background-secondary: #1c1c1e;
        --border-color: #38383a;
    }

    header {
        background: rgba(0, 0, 0, 0.8);
    }

    .app-store-badge img {
        filter: invert(1);
    }
}
