/* Speed Read Landing Page Styles */
/* Design system matching the iOS app */

:root {
    /* Colors - matching app theme */
    --background: #F5F3ED;
    --card-background: #EBEBE0;
    --banner-background: #F0EDE0;
    --search-background: #D9D1C6;
    --divider: #D1C8C1;

    /* Text colors */
    --text-primary: #1F191A;
    --text-secondary: #5A524A;
    --text-tertiary: #737066;

    /* Accent colors */
    --accent: #FF5F57;
    --accent-hover: #E54E47;
    --success: #33A658;
    --warning: #E6A633;
    --error: #D94040;

    /* Premium gold */
    --gold-highlight: #D4AF37;
    --gold-primary: #B48C14;
    --gold-deep: #8B6914;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 243, 237, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--divider);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.lang-switch {
    padding: var(--space-xs) var(--space-sm);
    background: var(--card-background);
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

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

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

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

.hero-image img {
    max-width: 100%;
    max-height: 600px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: var(--space-2xl);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--card-background);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--background);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

/* Legal Sections */
.legal-section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--divider);
}

.legal-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.legal-content {
    background: var(--card-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

.last-updated {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-bottom: var(--space-lg);
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

.legal-content ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.legal-content li {
    margin-bottom: var(--space-xs);
    line-height: 1.6;
}

.contact-email {
    font-weight: 600;
    color: var(--accent) !important;
}

/* Footer */
footer {
    background: var(--card-background);
    padding: var(--space-2xl) var(--space-lg);
    margin-top: var(--space-3xl);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: var(--space-md);
}

.footer-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.footer-links {
    margin-bottom: var(--space-md);
}

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

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

.footer-links .separator {
    color: var(--divider);
    margin: 0 var(--space-sm);
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: calc(80px + var(--space-xl));
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image img {
        max-height: 400px;
    }

    .nav-links {
        gap: var(--space-md);
    }

    .nav-links a:not(.lang-switch) {
        display: none;
    }

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

    .legal-content {
        padding: var(--space-lg);
    }
}

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

    .hero-subtitle {
        font-size: 16px;
    }

    .features h2,
    .legal-section h2 {
        font-size: 28px;
    }
}
