/* MandarinSOS Website Styles - Fast, Modern, Responsive */

:root {
    --primary-color: #FF3B30;
    --primary-dark: #E5342A;
    --secondary-color: #004E89;
    --text-color: #2C3E50;
    --text-light: #7F8C8D;
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #E1E8ED;
    --max-width: 1200px;
    --spacing: 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: white;
    text-decoration: none;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: var(--bg-light);
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
}

.hero-logo {
    flex-shrink: 0;
    padding-top: 0.3rem;
}

.logo {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-text {
    flex-shrink: 0;
    text-align: left;
    padding-top: 0.6rem;
    max-width: 700px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: left;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    text-align: center;
    margin: 1.5rem auto 0;
    padding-left: calc(60px + 1rem + 0.3rem);
}

/* Features Section */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-light);
}

.download h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.download p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.app-badge {
    display: inline-block;
}

.app-badge img {
    transition: opacity 0.2s;
}

.app-badge:hover img {
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.email {
    font-size: 1.5rem;
    font-weight: 600;
}

.email a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.email a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Legal Pages */
.legal {
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.legal h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.legal h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.legal p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

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

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

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer .container {
    text-align: center;
}

footer nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

footer nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

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

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

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

    .hero-top {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text {
        text-align: center;
        padding-top: 0;
    }

    .hero h2 {
        text-align: center;
    }

    .lead {
        padding-left: 0;
    }

    .logo {
        max-width: 50px;
        max-height: 50px;
    }

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

    .lead {
        font-size: 1.1rem;
    }

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

    .legal {
        padding: 2rem 1rem;
    }

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

    .legal h2 {
        font-size: 1.5rem;
    }

    footer nav {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Apple EULA Button */
.apple-eula-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.apple-eula-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #FFFFFF !important;
}

/* Print Styles */
@media print {
    header, footer {
        background: white;
        color: black;
    }
    
    .hero, .download {
        background: white;
    }
}

