/* Mobile-First CSS - Starting at 320px */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f5576c;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
    box-sizing: border-box;
    position: relative;
}

/* Ensure minimum 320px support - Everything centered and contained */
@media (max-width: 320px) {
    html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        font-size: 14px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    header {
        width: 100%;
        padding: 1rem 0 0.75rem;
    }
    
    header h1 {
        font-size: 1.4rem;
        word-wrap: break-word;
        padding: 0 0.25rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }
    
    .main-nav {
        width: 100%;
        margin: 0.75rem auto 0;
        padding: 0.5rem;
    }
    
    .mobile-menu-toggle {
        width: auto;
        margin: 0 auto 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-menu {
        width: 100%;
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        word-wrap: break-word;
        text-align: center;
    }
    
    .hero-section {
        width: 100%;
        padding: 1.25rem 0;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
        word-wrap: break-word;
        padding: 0;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        word-wrap: break-word;
        padding: 0;
    }
    
    .hero-buttons {
        width: 100%;
        padding: 0;
    }
    
    .btn-hero,
    .btn-cta,
    .btn-support {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word;
    }
    
    .hero-social {
        width: 100%;
        padding: 0;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .social-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        flex: 0 1 auto;
    }
    
    .intro {
        padding: 1rem 0.75rem;
        width: 100%;
        margin: 0 auto 1.25rem;
        box-sizing: border-box;
    }
    
    .intro h2 {
        font-size: 1.15rem;
        word-wrap: break-word;
    }
    
    .intro-text {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .section-title {
        font-size: 1.25rem;
        word-wrap: break-word;
        padding: 0 0.5rem;
    }
    
    .feature-grid {
        padding: 0;
        width: 100%;
    }
    
    .feature-card {
        padding: 1rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .feature-card h3 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        word-wrap: break-word;
    }
    
    .highlight-box {
        padding: 1rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .highlight-box h3 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .highlight-box p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .cta-section {
        padding: 1.5rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .cta-content h2 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }
    
    .cta-content p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .cta-buttons {
        width: 100%;
    }
    
    .support-section {
        padding: 1.5rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .support-section h2 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }
    
    .support-section > .support-content > p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .support-buttons {
        width: 100%;
    }
    
    .content {
        padding: 1rem 0.75rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .content h2 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }
    
    .content > p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .dev-notice {
        width: 100%;
        padding: 0.5rem 0.75rem;
        box-sizing: border-box;
    }
    
    .dev-notice p {
        font-size: 0.75rem;
        word-wrap: break-word;
        margin: 0;
    }
    
    .accessibility-controls {
        top: 5px;
        right: 5px;
        left: auto;
        padding: 0.4rem;
        gap: 0.35rem;
        max-width: calc(100% - 10px);
        flex-wrap: wrap;
    }
    
    .access-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        min-width: 32px;
        flex: 0 1 auto;
    }
    
    footer {
        width: 100%;
        padding: 1.5rem 0.75rem 1rem;
        box-sizing: border-box;
    }
    
    .footer-content {
        width: 100%;
        padding: 0;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-copyright {
        font-size: 0.75rem;
        word-wrap: break-word;
        padding: 0 0.5rem;
    }
}

/* Development Landing Page */
.dev-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
    text-align: center;
}

.dev-landing-content {
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.dev-landing-content h1 {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.dev-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.dev-landing-content h2 {
    font-size: 1.75rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.dev-message {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dev-services {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.dev-services p {
    font-size: 1rem;
    color: #667eea;
    font-weight: 500;
    line-height: 1.6;
}

/* Development Notice */
.dev-notice {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #000;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 999;
    width: 100%;
    box-sizing: border-box;
}

.dev-notice p {
    margin: 0;
    font-size: 0.9rem;
    word-wrap: break-word;
}

/* Responsive for dev landing */
@media (max-width: 480px) {
    .dev-landing-content {
        padding: 2rem 1.5rem;
    }
    
    .dev-landing-content h1 {
        font-size: 2rem;
    }
    
    .dev-subtitle {
        font-size: 1rem;
    }
    
    .dev-icon {
        font-size: 3rem;
    }
    
    .dev-landing-content h2 {
        font-size: 1.5rem;
    }
    
    .dev-message {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .dev-landing {
        padding: 1rem 0.5rem;
    }
    
    .dev-landing-content {
        padding: 1.5rem 1rem;
    }
    
    .dev-landing-content h1 {
        font-size: 1.75rem;
    }
    
    .dev-subtitle {
        font-size: 0.9rem;
    }
    
    .dev-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .dev-landing-content h2 {
        font-size: 1.25rem;
    }
    
    .dev-message {
        font-size: 0.9rem;
    }
}

/* Skip Links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Accessibility Controls */
.accessibility-controls {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-width: calc(100% - 20px);
    box-sizing: border-box;
}

.access-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    min-width: 40px;
}

#high-contrast {
    display: none;
}

.access-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.access-btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Header - Mobile First */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 0 1rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

header .container {
    width: 100%;
    max-width: 100%;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    padding: 0 0.5rem;
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.95;
    word-wrap: break-word;
    padding: 0 0.5rem;
}

/* Simplified Navigation - Mobile First */
.main-nav {
    margin-top: 1rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mobile-menu-toggle {
    display: block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    width: auto;
    min-width: 44px;
    min-height: 44px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

.mobile-menu-toggle.active {
    background: rgba(255, 255, 255, 0.3);
}

.menu-icon,
.menu-close {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-close {
    display: none;
    font-size: 1.25rem;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .menu-close {
    display: inline-block;
}

.nav-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.active {
    display: flex;
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-bottom: 0.5rem;
}

/* Desktop - Always show menu */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-nav {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        gap: 0.25rem;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.nav-link:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Hero Section - 320px optimized */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
}

.btn-hero,
.btn-cta,
.btn-support {
    padding: 1rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    min-height: 48px;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-hero.btn-primary,
.btn-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-hero.btn-primary:hover,
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-hero.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-hero.btn-secondary:hover {
    background: #5d3a7f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.4);
}

.btn-hero.btn-funding,
.btn-support {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.btn-hero.btn-funding:hover,
.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Ensure all hero buttons are identical size */
.btn-hero {
    width: 100%;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hero-social {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.social-intro {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 1.1rem;
}

/* Content Sections - 320px optimized */
.intro {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: 100%;
    margin: 0 auto 1.5rem;
    text-align: center;
    box-sizing: border-box;
}

.intro h2 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 0.875rem;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.intro-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 0.875rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Features Grid - 320px optimized */
.features {
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-card {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

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

.feature-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.feature-link:hover {
    color: var(--secondary-color);
}

/* Highlights */
.highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.highlight-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.highlight-box p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 2rem 1rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cta-content h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn-cta-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.1) 0%, rgba(245, 87, 108, 0.1) 100%);
    padding: 2rem 1rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.support-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.support-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.support-section h2 {
    font-size: 1.75rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.support-section > .support-content > p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-support-secondary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.support-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-top: 1rem;
}

/* Content Pages */
.content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.content > p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-box {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1.25rem;
}

.content-box h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-box p {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

.media-list {
    list-style: none;
    padding-left: 0;
}

.media-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.media-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.media-list ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.media-list ol li {
    padding-left: 0.5rem;
    position: relative;
}

.media-list ol li:before {
    display: none;
}

/* External Links */
.external-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--secondary-color);
}

.external-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social-link {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-social-link:hover {
    transform: scale(1.2);
}

.footer-support-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-support-link:hover {
    color: #f093fb;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form Styles */
.signup-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background-color: #5d3a7f;
    transform: translateY(-1px);
}

/* Letter Template */
.letter-template {
    margin-top: 1rem;
}

.letter-template h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.letter-content {
    background-color: white;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    white-space: pre-line;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
}

.letter-content ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Ideas Generator */
.generator-controls {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.generator-controls label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.category-select {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.category-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.idea-result {
    margin-top: 1.5rem;
    min-height: 120px;
    transition: opacity 0.3s ease;
}

.idea-placeholder {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 1.5rem;
}

.idea-display {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.idea-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.idea-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* High Contrast Mode */
body.high-contrast {
    background-color: #000;
    color: #fff;
}

body.high-contrast header {
    background: #000;
    border-bottom: 3px solid #fff;
}

body.high-contrast .nav-link {
    color: #fff;
    border: 1px solid #fff;
}

body.high-contrast .nav-link:hover,
body.high-contrast .nav-link:focus {
    background: #fff;
    color: #000;
}

body.high-contrast .content,
body.high-contrast .intro,
body.high-contrast .feature-card {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}

body.high-contrast a {
    color: #ffff00;
}

body.high-contrast a:focus {
    outline: 3px solid #ffff00;
    outline-offset: 2px;
}

/* Text Size Controls */
body.large-text {
    font-size: 120%;
}

body.large-text h1 { font-size: 2.25rem; }
body.large-text h2 { font-size: 2rem; }
body.large-text h3 { font-size: 1.5rem; }
body.large-text .nav-link { font-size: 1.1rem; padding: 0.875rem 1.25rem; }

body.extra-large-text {
    font-size: 150%;
}

body.extra-large-text h1 { font-size: 2.75rem; }
body.extra-large-text h2 { font-size: 2.5rem; }
body.extra-large-text h3 { font-size: 2rem; }
body.extra-large-text .nav-link { font-size: 1.3rem; padding: 1rem 1.5rem; }

body.small-text {
    font-size: 90%;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    outline-style: solid;
}

/* Tablet and Up - 481px */
@media (min-width: 481px) {
    .container {
        padding: 0 1.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlights {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons,
    .support-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop - 769px */
@media (min-width: 769px) {
    .container {
        padding: 0 2rem;
    }
    
    header {
        padding: 2rem 0 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .main-nav {
        margin-top: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .intro {
        padding: 3rem;
    }
    
    .intro h2 {
        font-size: 2.5rem;
    }
    
    .intro-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .highlights {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .cta-section {
        padding: 4rem 2rem;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.2rem;
    }
    
    .support-section {
        padding: 4rem 2rem;
    }
    
    .support-section h2 {
        font-size: 2.5rem;
    }
    
    .support-section > .support-content > p {
        font-size: 1.2rem;
    }
    
    .content {
        padding: 2.5rem;
    }
    
    .content h2 {
        font-size: 2rem;
    }
    
    .content > p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

/* Large Desktop - 1025px */
@media (min-width: 1025px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-link {
        padding: 0.85rem 1.5rem;
    }
}
