
/* CSS Variables */
:root {
    --color-primary: #FFB300;
    --color-primary-dark: #FF8F00;
    --color-secondary-light: #FFFFFF;
    --color-secondary-dark: #1a1a1a;
    --text-color-light: #000000;
    --text-color-dark: #FFFFFF;
    --link-hover: #FFC933;
    --card-bg-light: #F8F8F8;
    --card-bg-dark: #2d2d2d;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

/* Light Mode */
body {
    background-color: var(--color-secondary-light);
    color: var(--text-color-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Header - Hero Banner */
header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 4em 2em;
    text-align: center;
    color: var(--text-color-dark);
    box-shadow: 0 4px 20px var(--shadow-light);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 3em;
    margin-bottom: 0.2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo-image {
    width: 1em;
    height: 1em;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

header h1 {
    font-size: 3em;
    margin-bottom: 0.3em;
    color: var(--text-color-dark);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.4em;
    margin-bottom: 1.5em;
    opacity: 0.95;
    font-weight: 300;
}

/* CTA Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 1em 2.5em;
    background: var(--text-color-dark);
    color: var(--text-color-light);
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 1em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.app-store-badge {
    width: 120px;
    height: auto;
}

.cta-large {
    font-size: 1.3em;
    padding: 1.2em 3em;
}

.app-store-primary .app-store-badge {
    width: 140px;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

section {
    padding: 4em 2em;
}

h2 {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 0.8em;
    text-align: center;
    font-weight: 700;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, var(--card-bg-light), var(--color-secondary-light));
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8em;
}

.hero-description {
    font-size: 1.25em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Feature Cards Grid */
.features-grid {
    background-color: var(--color-secondary-light);
}

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

.feature-card {
    background: var(--card-bg-light);
    padding: 2em;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-light);
    border-color: var(--color-primary);
}

.feature-icon {
    font-size: 3.5em;
    margin-bottom: 0.5em;
}

.feature-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.8em;
}

.feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--text-color-dark);
    text-align: center;
    border-radius: 20px;
    margin: 2em;
    box-shadow: 0 10px 40px var(--shadow-light);
}

.cta-section h2 {
    color: var(--text-color-dark);
    font-size: 2.8em;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 1.5em;
    opacity: 0.95;
}

.coming-soon {
    font-size: 1em !important;
    margin-top: 1em !important;
    opacity: 0.8 !important;
    font-style: italic;
}

/* Social Links */
.social-links {
    background: var(--card-bg-light);
    text-align: center;
}

.social-links h3 {
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 1.5em;
}

.link-buttons {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5em;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 1em 2em;
    background: var(--color-secondary-light);
    color: var(--text-color-light);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--card-bg-light);
    box-shadow: 0 2px 10px var(--shadow-light);
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-light);
    text-decoration: none;
}

.link-button.github:hover {
    border-color: #333;
    color: #333;
}

.link-button.linkedin:hover {
    border-color: #0077B5;
    color: #0077B5;
}

.link-button.privacy:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.link-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--card-bg-light), var(--color-secondary-light));
    padding: 3em 2em;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.merriam-webster-credit {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 1em;
}

.merriam-webster-logo {
    font-weight: 600;
}

.merriam-webster-logo::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('mw_logo.png') no-repeat center center;
    background-size: contain;
    vertical-align: middle;
    margin-right: 0.4em;
}

.copyright {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 1em;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--color-secondary-dark);
        color: var(--text-color-dark);
    }

    .hero-section {
        background: linear-gradient(to bottom, var(--card-bg-dark), var(--color-secondary-dark));
    }

    .hero-description {
        color: #ccc;
    }

    .feature-card {
        background: var(--card-bg-dark);
        box-shadow: 0 2px 10px var(--shadow-dark);
    }

    .feature-card:hover {
        box-shadow: 0 8px 30px var(--shadow-dark);
    }

    .feature-card p {
        color: #aaa;
    }

    .social-links {
        background: var(--card-bg-dark);
    }

    .link-button {
        background: var(--color-secondary-dark);
        color: var(--text-color-dark);
        border-color: var(--card-bg-dark);
        box-shadow: 0 2px 10px var(--shadow-dark);
    }

    .link-button:hover {
        box-shadow: 0 6px 20px var(--shadow-dark);
    }

    .link-button.github:hover {
        border-color: #fff;
        color: #fff;
    }

    footer {
        background: linear-gradient(to top, var(--card-bg-dark), var(--color-secondary-dark));
        border-top-color: #444;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 3em 1.5em;
    }

    .logo {
        font-size: 2.5em;
        flex-direction: column;
        gap: 0.3em;
    }

    .logo-image {
        width: 1.2em;
        height: 1.2em;
    }

    header h1 {
        font-size: 2em;
    }

    .tagline {
        font-size: 1.1em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-description {
        font-size: 1.1em;
    }

    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .link-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .link-button {
        justify-content: center;
    }

    section {
        padding: 3em 1.5em;
    }

    .cta-section {
        margin: 1em;
        padding: 3em 1.5em;
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .cta-large {
        font-size: 1.1em;
        padding: 1em 2em;
    }

    .app-store-badge {
        width: 100px;
    }

    .app-store-primary .app-store-badge {
        width: 120px;
    }
}
