/* CSS Variables */
:root {
    /* Dark mode backgrounds */
    --dark-background: #141a24;
    --dark-surface: #242933;
    --dark-surface-elevated: #2e3340;

    /* Sun/Orange colors */
    --warm-sun: #fadb9e;
    --sunshine: #fac75c;
    --coral: #f57361;

    /* Text colors */
    --night-ink: #2e3852;
    --text-light: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);

    /* Legacy mappings */
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--dark-background), #1a1e2e);
    min-height: 100vh;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    animation: fadeInUp 0.8s ease-out;
}

.app-icon {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--warm-sun);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(to right, var(--coral), var(--sunshine));
    color: var(--white);
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.app-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    filter: brightness(1.1);
}

.apple-logo {
    width: 24px;
    height: 24px;
}

/* Features Section */
.features {
    padding: 60px 20px 80px;
}

.features h2 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--sunshine);
    margin-bottom: 48px;
}

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

.feature-card {
    background: var(--dark-surface);
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--warm-sun);
    margin-bottom: 12px;
}

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

/* Privacy Callout */
.privacy-callout {
    background: var(--dark-surface-elevated);
    padding: 60px 20px;
    text-align: center;
    color: var(--white);
}

.privacy-callout h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--sunshine);
}

.privacy-callout p {
    max-width: 600px;
    margin: 0 auto 24px;
    opacity: 0.95;
    font-size: 1.1rem;
}

.privacy-link {
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-background);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--warm-sun);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

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

/* Hero Subtext */
.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Problem & Solution Sections */
.problem-section,
.solution-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.problem-section h2,
.solution-section h2 {
    color: var(--sunshine);
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.problem-section p,
.solution-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* How It Works */
.how-it-works {
    padding: 60px 20px;
    background: var(--dark-surface);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--sunshine);
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(to right, var(--coral), var(--sunshine));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
}

.step-card h3 {
    color: var(--warm-sun);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Premium Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(to right, var(--coral), var(--sunshine));
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* FAQ Section */
.faq-section {
    padding: 60px 20px 80px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.4rem;
    color: var(--sunshine);
    margin-bottom: 48px;
}

.faq-item {
    margin-bottom: 32px;
    background: var(--dark-surface);
    padding: 24px 28px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--warm-sun);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 40px;
    }

    .app-icon {
        width: 120px;
        height: 120px;
        border-radius: 28px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .tagline {
        font-size: 1.15rem;
    }

    .features h2,
    .privacy-callout h2 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .app-store-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .privacy-callout p {
        font-size: 1rem;
    }
}

/* Legal Pages (Privacy & Terms) */
.legal-header {
    background: var(--dark-surface);
    border-bottom: 1px solid var(--dark-surface-elevated);
}

.back-link {
    display: inline-block;
    padding: 20px 0;
    color: var(--warm-sun);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-page h1 {
    color: var(--warm-sun);
    font-size: 2.8rem;
    margin-bottom: 8px;
}

.legal-page .last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-page section {
    margin-bottom: 40px;
}

.legal-page h2 {
    color: var(--sunshine);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.legal-page p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-page ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 8px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.legal-page a {
    color: var(--coral);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.legal-page a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.legal-page strong {
    color: var(--text-light);
}

/* Legal page responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 20px;
    }

    .legal-page h1 {
        font-size: 2.2rem;
    }

    .legal-page h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-page h1 {
        font-size: 1.8rem;
    }

    .legal-page p,
    .legal-page li {
        font-size: 1rem;
    }
}
