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

:root {
    /* Light mode colors */
    --purple-primary: rgb(105, 62, 130);
    --purple-secondary: rgb(125, 74, 155);
    --grey-light: rgb(246, 246, 246);
    --grey-dark: rgb(50, 50, 50);
    --accent-light: rgb(62, 130, 94);
    --accent-dark: rgb(73, 154, 111);
    --text-dark: rgb(30, 30, 30);
    --text-light: rgb(255, 255, 255);
    --background: rgb(255, 255, 255);
    --section-bg: rgb(250, 250, 250);
    --card-bg: rgb(246, 246, 246);
    --border-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        --purple-primary: rgb(125, 74, 155);
        --purple-secondary: rgb(145, 90, 175);
        --grey-light: rgb(50, 50, 50);
        --grey-dark: rgb(30, 30, 30);
        --accent-light: rgb(73, 154, 111);
        --accent-dark: rgb(85, 175, 130);
        --text-dark: rgb(255, 255, 255);
        --text-light: rgb(255, 255, 255);
        --background: rgb(20, 20, 20);
        --section-bg: rgb(30, 30, 30);
        --card-bg: rgb(35, 35, 35);
        --border-color: rgba(255, 255, 255, 0.1);
    }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    transition: background 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 26px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.tagline h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.95;
}

.tagline-text {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
}

/* Hero Section */
.hero {
    background-color: var(--section-bg);
    padding: 80px 20px;
    transition: background-color 0.3s ease;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-iPhone {
    display: block;
    margin: auto;
    width: 320px;
    height: 640px;
    padding: 15px;
    position: relative;
}

.iphone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 50px;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease;
}

.phone-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--grey-light) 0%, var(--background) 100%);
    transition: background 0.3s ease;
}

.placeholder-text {
    text-align: center;
    color: var(--text-dark);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: color 0.3s ease;
}

.app-store-badge-container {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 40px;
}

.availability-text {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.7;
    transition: color 0.3s ease;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background-color: var(--background);
    transition: background-color 0.3s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(105, 62, 130, 0.25);
}

@media (prefers-color-scheme: dark) {
    .feature-card:hover {
        box-shadow: 0 10px 30px rgba(125, 74, 155, 0.3);
    }
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--purple-primary);
    transition: color 0.3s ease;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    opacity: 0.8;
    transition: color 0.3s ease;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
    color: var(--text-light);
    transition: background 0.3s ease;
}

.how-it-works .section-title {
    color: var(--text-light);
}

.steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
}

.step {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    padding: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.step p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    padding: 100px 20px;
    background-color: var(--section-bg);
    text-align: center;
    transition: background-color 0.3s ease;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    opacity: 0.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: color 0.3s ease;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-secondary) 100%);
    color: var(--text-light);
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 15px rgba(105, 62, 130, 0.3);
}

@media (prefers-color-scheme: dark) {
    .download-button {
        box-shadow: 0 4px 15px rgba(125, 74, 155, 0.4);
    }
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 62, 130, 0.4);
}

@media (prefers-color-scheme: dark) {
    .download-button:hover {
        box-shadow: 0 6px 20px rgba(125, 74, 155, 0.5);
    }
}

/* Footer */
.footer {
    background-color: var(--grey-dark);
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-link {
    color: var(--text-light);
    text-decoration: underline;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Privacy Page Styles */
.privacy-content {
    padding: 80px 20px;
    background-color: var(--background);
    transition: background-color 0.3s ease;
}

.privacy-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--purple-primary);
    transition: color 0.3s ease;
}

.privacy-text h2:first-of-type {
    margin-top: 0;
}

.privacy-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.privacy-text p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
    transition: color 0.3s ease;
}

.privacy-text ul {
    margin-left: 30px;
    margin-bottom: 30px;
}

.privacy-text li {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    opacity: 0.9;
    transition: color 0.3s ease;
}

.privacy-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.back-link {
    display: inline-block;
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
    color: var(--purple-secondary);
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tagline h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .tagline-text {
        font-size: 1rem;
    }

    .phone-frame {
        width: 260px;
        height: 520px;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        max-width: 100%;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 20px;
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .tagline h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 50px 20px;
    }

    .features,
    .how-it-works,
    .cta {
        padding: 60px 20px;
    }

    .privacy-content {
        padding: 60px 20px;
    }

    .privacy-text h2 {
        font-size: 1.7rem;
    }

    .privacy-text h3 {
        font-size: 1.2rem;
    }
}
