/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2C3E50; /* Deep Indigo */
    --secondary-color: #1ABC9C; /* Vibrant Teal */
    --accent-color-1: #9B59B6; /* Electric Purple */
    --accent-color-2: #F1C40F; /* Bright Yellow */
    --accent-color-3: #E74C3C; /* Coral Orange */
    --text-color: #ECF0F1; /* Light Gray */
    --text-color-dark: #34495e; /* Darker text for light backgrounds */
    --background-color: #2C3E50; /* Deep Indigo */
    --background-light: #ECF0F1; /* Light Gray */
    --background-medium: #34495e; /* Slightly Lighter Indigo */
    --border-color: #4e6a85;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    margin-bottom: 0.8em;
    color: var(--secondary-color); /* Teal headings */
    line-height: 1.3;
}
h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.5em; }
p { margin-bottom: 1em; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color-1); }
ul { list-style: none; }

.section-padding {
    padding: 80px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-family: var(--font-primary);
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color); /* Teal */
    color: var(--primary-color); /* Dark text */
}
.btn-primary:hover {
    background-color: #16a085; /* Darker Teal */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* --- Header --- */
.site-header {
    background-color: rgba(44, 62, 80, 0.9); /* Slightly transparent Indigo */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

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

.logo {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1.4em;
    font-weight: bold;
}
.logo img {
    height: 80px;
    margin-right: 10px;
}
.logo:hover {
    color: var(--secondary-color);
}

.main-nav ul {
    display: flex;
    align-items: center;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: bold;
    font-family: var(--font-primary);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.main-nav ul li a.btn {
    border-bottom: none;
    padding: 8px 20px; /* Smaller padding for nav button */
}
.main-nav ul li a.btn:hover {
     border-bottom: none;
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 0 100px; /* More top padding due to fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e5671 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    color: var(--text-color);
    font-size: 3.2em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 1.5em;
    color: #bdc3c7; /* Slightly lighter text */
}

.hero-image {
    flex: 1;
    max-width: 50%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.background-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(26, 188, 156, 0.15) 0%, rgba(26, 188, 156, 0) 70%);
    z-index: 1;
    border-radius: 50%;
}

/* --- How It Works Section --- */
.how-it-works-section {
    background-color: var(--background-medium);
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}

.step {
    flex: 1;
    padding: 20px;
}

.step-icon {
    font-size: 3em;
    color: var(--accent-color-1); /* Purple icons */
    margin-bottom: 15px;
}

.step h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

/* --- Features Section --- */
.features-section {
     background-color: var(--background-color); /* Back to primary dark */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-item {
    background-color: var(--background-medium);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--secondary-color); /* Teal icons */
    margin-bottom: 15px;
}

.feature-item h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}
.app-promo {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #bdc3c7;
}

/* --- Science Section --- */
.science-section {
    background-color: var(--background-medium);
    text-align: center;
}
.science-section .container {
    max-width: 800px; /* Narrower container for text focus */
}
.science-section h2 {
     color: var(--accent-color-1); /* Purple heading */
}

/* --- Early Access Section --- */
.early-access-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/neuro-background.jpg') no-repeat center center/cover; /* Add a subtle neuro background */
    text-align: center;
    background-color: #1e2b38; /* Fallback color */
}
.early-access-section h2 {
    color: var(--accent-color-2); /* Yellow heading */
}
.early-access-form {
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.early-access-form input[type="email"] {
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    border: 1px solid var(--border-color);
    background-color: rgba(236, 240, 241, 0.9);
    color: var(--text-color-dark);
    font-size: 1em;
}

.early-access-form .btn {
    width: 100%;
    background-color: var(--accent-color-3); /* Coral button */
    color: white;
}
.early-access-form .btn:hover {
    background-color: #c0392b; /* Darker Coral */
     box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.newsletter-opt-in {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #bdc3c7;
}
.newsletter-opt-in input[type="checkbox"] {
    accent-color: var(--secondary-color);
}


/* --- Footer --- */
.site-footer {
    background-color: #1e2b38; /* Slightly darker than primary */
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.9em;
    color: #bdc3c7;
}
.site-footer nav a {
    margin: 0 10px;
    color: #bdc3c7;
}
.site-footer nav a:hover {
    color: var(--secondary-color);
}

/* --- Floating Chat Button --- */
.chat-toggle-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 180px; /* 60px * 3 */
    height: 180px; /* 60px * 3 */
    background-color: transparent; /* Changed from var(--accent-color-1) */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: none; /* Removed purple shadow */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transition: transform 0.3s ease;
}
.chat-toggle-button:hover {
    transform: scale(1.1);
    box-shadow: none; /* Removed purple shadow on hover */
}
.chat-toggle-button img {
    width: 105px; /* 35px * 3 */
    height: auto;
}

/* --- Chatbot Page Specific Styles --- */
.chatbot-page-main {
    padding-top: 100px; /* Adjust for fixed header */
    padding-bottom: 80px;
}

.chatbot-header {
    text-align: center;
    margin-bottom: 50px;
}
.chatbot-header .tagline {
    font-size: 1.2em;
    color: #bdc3c7;
}
.chatbot-banner {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.chatbot-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.chatbot-info-section {
    background-color: var(--background-medium);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.chatbot-info-section h2 {
    text-align: left;
    margin-bottom: 1em;
    color: var(--secondary-color);
    font-size: 1.6em;
}
.chatbot-info-section h2 i {
    margin-right: 10px;
    color: var(--accent-color-1); /* Purple icons */
}
.chatbot-info-section ul {
    list-style: none;
    padding-left: 0;
}
.chatbot-info-section li {
    margin-bottom: 0.8em;
    padding-left: 1.5em;
    position: relative;
}
.chatbot-info-section li::before {
    content: "\f105"; /* Font Awesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color-1);
}
.chatbot-info-section strong {
    color: var(--text-color);
}

.chatbot-disclaimer {
    background-color: rgba(231, 76, 60, 0.1); /* Light Coral background */
    border: 1px solid var(--accent-color-3); /* Coral border */
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 50px;
}
.chatbot-disclaimer h3 {
    color: var(--accent-color-3); /* Coral heading */
    margin-bottom: 1em;
    font-size: 1.4em;
}
.chatbot-disclaimer h3 i {
    margin-right: 10px;
}
.chatbot-disclaimer p {
    color: #f2aeae; /* Lighter text on the coral background */
    font-size: 0.95em;
}
.chatbot-disclaimer strong {
    color: #f8d7da; /* Even lighter for emphasis */
}


.chat-interface-placeholder {
    background-color: var(--background-medium);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
}
.chat-interface-placeholder h2 {
     color: var(--secondary-color);
     font-size: 1.6em;
}
.chat-interface-placeholder h2 i {
    margin-right: 10px;
    color: var(--accent-color-1);
}
.chat-window-mockup {
    margin-top: 20px;
    height: 300px;
    background-color: var(--background-light);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color-dark);
    font-style: italic;
}

/* Move the whole chat box higher so its input won’t sit behind the toggle */
.chat-widget-container {
    position: fixed;
    bottom: 180px;/* ↑ increase from 100px until it clears the toggle */
    right: 30px;
    width: 350px;
    max-height: 500px;
    background-color: var(--background-medium);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1002;
    overflow: hidden;
}

.chat-header {
    background-color: white(--secondary-color);
    color: white(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5em;
    cursor: pointer;
}

.chat-messages {
    margin-bottom: 30px; /* Increased from previous value */
    padding: 20px 15px; /* Added padding */
    overflow-y: auto;
    max-height: 400px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-message, .user-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
}

.bot-message {
    background-color: var(--accent-color-1);
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-right: 10px;
}

.chat-input button {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 30px;
    }
    .hero-image {
        max-width: 70%;
    }
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
     .chatbot-info-grid {
        grid-template-columns: 1fr; /* Stack info sections on smaller screens */
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        display: none; /* Basic mobile: hide nav links - needs JS for a toggle menu */
    }
    .logo span {
        display: none; /* Hide text part of logo on small screens */
    }
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .section-padding {
        padding: 60px 0;
    }
    .chatbot-page-main {
        padding-top: 80px; /* Adjust for header */
    }
    .feature-grid {
        grid-template-columns: 1fr; /* Stack features */
    }

}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    .btn { padding: 10px 20px; font-size: 0.9em; }
    .early-access-form input[type="email"] { padding: 12px; }
    .chat-toggle-button { 
        width: 150px; 
        height: 150px; 
        bottom: 20px; 
        right: 20px;
        background-color: transparent; /* Added for mobile */
    }
    .chat-toggle-button img { width: 84px; } /* 28px * 3 */
}