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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f94d2;
    --text-primary: #333;
    --text-secondary: #666;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border: #e0e0e0;
    --success: #28a745;
    --max-width: 1200px;
}

/* Dark mode variables */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #e0e0e0;
        --secondary-color: #b0b0b0;
        --accent-color: #4db8ff;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --background: #171a26;
        --surface: #232731;
        --border: #404040;
        --success: #4ade80;
    }

    .hero {
        background: #0d1117;
    }
    
    .hero::before {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    }

    .quote-section {
        background: var(--background);
        color: var(--text-primary);
    }

    footer {
        background: var(--background);
        color: var(--text-primary);
    }

    .hero-cta {
        background: #00897b;
        color: #ffffff;
    }

    .hero-cta:hover {
        background: #00695c;
        color: #ffffff;
    }

    .cta-form button {
        background: #00897b;
        color: #ffffff;
    }

    .cta-form button:hover {
        background: #00695c;
        color: #ffffff;
    }

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

    .footer-links a:hover {
        color: #00897b;
        opacity: 1;
    }

    .copyright {
        color: var(--text-secondary);
    }
    
    .screenshot-item {
        background: var(--surface);
        border-color: var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .screenshot-item:hover {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    }
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

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

/* Header */
header {
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    vertical-align: middle;
}

.logo img {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    flex-shrink: 0;
}

.logo span {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00897b;
}

/* Hero Section */
.hero {
    padding: 4rem 0 5rem;
    text-align: center;
    background: #1a1a2e;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background image loads after critical content */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show background image when loaded */
.hero-loaded::after {
    background-image: url("/assets/images/microsoft.png");
    opacity: 1;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-image {
    display: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Explicit h1 sizing for all contexts to fix Lighthouse warning */
section h1, article h1, aside h1, nav h1 {
    font-size: 2.5rem;
}

.hero .tagline {
    font-size: 1.25rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-cta {
    display: inline-block;
    background: #00897b;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.hero-cta:hover {
    background: #00695c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 137, 123, 0.3);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--background);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

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

/* Munger Quote Section */
.quote-section {
    padding: 4rem 0;
    background: #1a1a2e;
    color: white;
    text-align: center;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 825px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.quote-author {
    font-size: 1.2rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--surface);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.cta-form input[type="email"]:focus {
    outline: none;
    border-color: #00897b;
}

.cta-form button {
    background: #00897b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.3s;
}

.cta-form button:hover {
    background: #00695c;
    transform: translateY(-2px);
}

.note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Bot Screenshots Section */
.bot-screenshots {
    margin-top: 4rem;
    text-align: center;
}

.bot-screenshots h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.screenshots-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

.screenshot-item {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 500px;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.screenshot-caption {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: #00897b;
}

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

/* Blog styles */
.blog-posts {
    padding: 4rem 0;
    min-height: calc(100vh - 300px);
}

.blog-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

.blog-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

.post-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.post-title a:hover {
    color: #00897b;
}

.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Article styles */
article {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 20px;
}

article h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

article h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

article h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

article p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

article ul,
article ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

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

article blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border-left: 4px solid var(--accent-color);
    font-style: italic;
}

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

    .hero .tagline {
        font-size: 1.1rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .features h2,
    .cta-section h2 {
        font-size: 2rem;
    }

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

    .quote {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .cta-form input[type="email"] {
        width: 100%;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .bot-screenshots h3 {
        font-size: 1.5rem;
    }
    
    .bot-screenshots {
        margin-top: 3rem;
    }
    
    .screenshot-item {
        max-width: 100%;
        padding: 1rem;
    }
}
