:root {
    --primary-color: #E53935;
    /* Light Red */
    --primary-hover: #D32F2F;
    --text-dark: #111111;
    --text-medium: #424242;
    --text-light: #757575;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-grey: #F3F4F6;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-dark);
}

p {
    color: var(--text-medium);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-dark);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: rgba(229, 57, 53, 0.05);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-medium);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.mobile-menu-btn {
    display: none;
}

/* Hero */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    background-image: url('assets/images/neural-wave.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(229, 57, 53, 0.1);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Stats */
.stats {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #000000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Features */
.features {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* Process */
.process {
    padding: 100px 0;
    background-color: var(--bg-grey);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
}

.step:hover {
    border-left-color: var(--primary-color);
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

/* CTA */
.cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--text-dark);
    color: white;
}

.cta-content h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 24px;
}

.cta-content p {
    color: #A3A3A3;
    font-size: 20px;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: block;
    margin-bottom: 16px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-medium);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

/* Mobile Responsive */
/* Tablet Responsive */
@media (max-width: 1024px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 32px;
    }

    .container {
        padding: 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    .nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 10px;
    }

    .nav-list li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-dark);
        margin: 5px 0;
        transition: 0.3s;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

/* Contact Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-backdrop.active .contact-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 24px;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-success {
    text-align: center;
    display: none;
}

.modal-success.active {
    display: block;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #10B981;
}

/* Contact Modal Refinements */
.contact-modal {
    max-width: 600px;
    /* Slightly wider for the grid */
    padding: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-input,
.form-textarea {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 14px;
    /* Taller touch targets like the image */
    font-size: 14px;
    transition: all 0.2s;
}

.form-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/* Custom Checkboxes */
.form-checkbox-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    /* Align with top of text */
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-medium);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* Rounded corners like the image */
    transition: all 0.2s;
}

.checkbox-container:hover input~.checkmark {
    border-color: var(--primary-color);
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Checkmark icon */
.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Update Modal Title alignment */
.modal-title,
.modal-subtitle {
    text-align: left;
    /* Align left to match standard form layouts usually */
}


/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    /* Slate 900 */
    color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 2050;
    /* Above modal backdrop */
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.cookie-text {
    font-size: 14px;
    flex-grow: 1;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-cookie-accept:hover {
    background-color: var(--primary-hover);
}

.btn-cookie-decline {
    background-color: transparent;
    color: #94a3b8;
    /* Slate 400 */
    border: 1px solid #334155;
    /* Slate 700 */
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-decline:hover {
    color: white;
    border-color: white;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }
}

#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Honeypot for Bot Protection --- */
.honey-pot {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    z-index: -1;
}

/* --- Desktop Font Size Increase ( > 1024px) --- */
@media (min-width: 1025px) {

    /* Increase base font size for main content only (excludes header/footer) */
    main {
        font-size: 22px;
    }

    /* Hero Section */
    .hero-title {
        font-size: 62px;
        /* Increased from 56px */
    }

    .hero-subtitle {
        font-size: 26px;
        /* Increased from 20px */
    }

    .badge {
        font-size: 16px;
        /* Increased from 14px */
    }

    .btn {
        font-size: 18px;
        /* Increased from standard */
        padding: 14px 28px;
        /* Slightly larger buttons */
    }

    /* Stats Section */
    .stat-number {
        font-size: 46px;
        /* Increased from 40px */
    }

    .stat-label {
        font-size: 16px;
        /* Increased from 14px */
    }

    /* Section Headers */
    .section-title {
        font-size: 42px;
        /* Increased from 36px */
    }

    .section-subtitle {
        font-size: 24px;
        /* Increased from 18px */
    }

    /* Features */
    .feature-card h3 {
        font-size: 26px;
        /* Increased from 20px */
    }

    .feature-card p {
        font-size: 18px;
        /* explicitly set to ensure readability */
    }

    /* Process Steps */
    .step-content h3 {
        font-size: 30px;
        /* Increased from 24px */
    }

    .step-content p {
        font-size: 20px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 46px;
        /* Increased from 40px */
    }

    .cta-content p {
        font-size: 26px;
        /* Increased from 20px */
    }
}