/* Theme tokens (align with src/theme.js) */
:root {
    --bg-default: #121212;
    --bg-paper: #1e1e1e;
    --border: #333333;
    --primary: #00bcd4;
    /* theme.palette.primary.main */
    --secondary: #FFD700;
    /* theme.palette.secondary.main */
    --text-primary: #e0e0e0;
    --text-secondary: #9e9e9e;
    --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-default);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-container {
    overflow-x: hidden;
    /* Prevent horizontal scroll from responsive elements */
}

.container {
    max-width: 1280px;
    /* maxWidth="lg" */
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    /* Default MUI Container padding */
    padding-right: 24px;
    /* Default MUI Container padding */
}

/* Helper Classes */
.section-title {
    font-size: 2.125rem;
    /* h4 */
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
    /* gutterBottom & mb:6/8 */
}

.section-description {
    text-align: center;
    margin-top: 4rem;
    /* mt:8 */
    color: var(--text-secondary);
    /* text.secondary */
    font-size: 1.1rem;
}


/* Buttons */
.btn-contained {
    display: inline-block;
    background-color: var(--primary);
    color: #121212;
    /* match MUI contrast on light primary */
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-1);
    cursor: pointer;
}

.btn-contained:hover {
    background-color: #00acc1;
    /* slightly darker primary */
    box-shadow: var(--shadow-2);
}

.btn-outlined {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.btn-outlined:hover {
    background-color: rgba(0, 188, 212, 0.08);
    color: var(--primary);
}

/* Header & Navigation */
.site-header {
    background-color: var(--bg-default);
    /* grey.900 */
    color: var(--text-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 1.75rem;
    /* h5 */
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.site-header .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.site-header .nav-list li a {
    color: var(--text-primary);
    /* text.primary */
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.site-header .nav-list li a:hover {
    color: var(--primary);
}

/* Mobile Menu Specific Styles */
.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    cursor: pointer;
    font-size: 2rem;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(1000px 600px at 50% -200px, rgba(0, 188, 212, 0.15), transparent 60%),
        var(--bg-default);
    color: var(--text-primary);
    padding: 64px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 3.5rem;
    /* h2 */
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    /* h5 */
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    /* Allow buttons to wrap on smaller screens */
}

.hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    padding: 0 24px;
    box-sizing: border-box;
    /* Include padding in width calculation */
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-2);
}

/* Features Section */
.features-section {
    padding: 64px 0;
    background-color: var(--bg-default);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background-color: var(--bg-paper);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: none;
    padding: 32px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-card .material-icons {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.5rem;
    /* h6 */
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Solution Section */
.solution-section {
    padding: 64px 0;
    background: linear-gradient(180deg, rgba(0, 188, 212, 0.08), rgba(0, 0, 0, 0) 40%), var(--bg-default);
}

.solution-content {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
    /* Allow content to wrap on smaller screens */
}

.solution-text {
    flex: 1;
    min-width: 300px;
    /* Ensure text doesn't get too narrow */
}

.solution-text h3 {
    font-size: 2rem;
    /* h4 */
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.solution-text p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.solution-text ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.solution-text ul li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-primary);
}

.solution-text ul li .material-icons {
    color: var(--secondary);
    margin-right: 8px;
}

.solution-image {
    flex: 1;
    min-width: 300px;
    /* Ensure image doesn't get too small */
    text-align: center;
}

.solution-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Empower Section */
.empower-section {
    padding: 64px 0;
    background-color: var(--bg-default);
}

.empower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.empower-card {
    background-color: var(--bg-paper);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 32px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.empower-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-1);
}

.empower-card .material-icons {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.empower-card h3 {
    font-size: 1.5rem;
    /* h6 */
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empower-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #26c6da 40%, var(--secondary) 100%);
    color: #121212;
    padding: 64px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-title {
    font-size: 2.5rem;
    /* h3 */
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.25rem;
    /* h5 */
    font-weight: 300;
    margin-bottom: 40px;
    color: rgba(0, 0, 0, 0.7);
}

#cta-login-btn {
    background-color: var(--bg-default);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

#cta-login-btn:hover {
    background-color: #1a1a1a;
}

/* Footer */
.footer {
    background-color: var(--bg-default);
    color: var(--text-secondary);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Blog Post Layout */
.blog-post {
    padding: 64px;
    color: var(--text-primary);
}

.blog-post h1 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.post-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Featured Image */
.blog-post img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto 48px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Headings & Lists */
.blog-post h2 {
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.blog-post p {
    margin-bottom: 16px;
    color: var(--text-primary);
}

.blog-post ul,
.blog-post ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.blog-post li {
    margin-bottom: 8px;
    color: var(--text-primary);
}

/* Consent Banner */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-paper);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-1);
    z-index: 2000;
}

.consent-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.consent-text {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.consent-actions {
    display: flex;
    gap: 8px;
}

.consent-actions .btn-contained,
.consent-actions .btn-outlined {
    padding: 8px 14px;
    font-size: 0.95rem;
}

/* Lead Forms */
.lead-form-card {
    background-color: var(--bg-paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-1);
    margin-top: 24px;
}

.lead-form-card h3 {
    margin: 0 0 8px;
}

.lead-form-card p.helper {
    margin: 0 0 16px;
    color: var(--text-secondary);
}

.lead-form {
    width: 100%;
}

.lead-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.lead-form .form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-form label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    background-color: #151515;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 1rem;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: #7a7a7a;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

.lead-form-actions {
    margin-top: 12px;
}

.lead-form .btn-contained {
    border: none;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .solution-content {
        flex-direction: column;
        text-align: center;
    }

    .solution-image {
        order: -1;
        /* Move image above text on small screens */
    }

    .solution-text ul {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .site-header .nav-list {
        display: none;
        /* Hide regular navigation on mobile */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 64px;
        /* Adjust based on header height */
        left: 0;
        background-color: var(--bg-default);
        /* Match header background */
        padding: 20px 0;
        z-index: 999;
        /* Ensure it's above other content but below header if needed */
        border-bottom: 1px solid var(--border);
    }

    .site-header .nav-list.active {
        /* Class added by JavaScript when menu is open */
        display: flex;
    }

    .site-header .nav-list li {
        text-align: center;
        margin: 10px 0;
    }

    .site-header .nav-list li a {
        color: var(--text-primary);
        font-size: 1.2rem;
        padding: 10px;
        display: block;
    }

    .desktop-cta {
        display: none;
        /* Hide desktop login button on mobile */
    }

    .menu-toggle {
        display: block;
        /* Show hamburger icon on mobile */
    }

    .hero-section {
        padding: 40px 0;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

    .feature-card,
    .empower-card {
        padding: 24px;
    }

    .solution-text h3 {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .blog-post {
        padding: 32px;
    }

    .blog-post h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-contained,
    .btn-outlined {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .site-header .logo {
        font-size: 1.5rem;
    }

    .menu-toggle {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .solution-text h3 {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 0.9rem;
    }
}
