:root {
    --bg-main: #f0f2f5;
    --bg-alt: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-on-dark: #e5e5ea;
    --accent-frost: #e0e8f0;
    --accent-blue: #007aff; /* A clean, technical blue */
    --border-color: #d1d1d6;
    --header-bg: rgba(20, 20, 22, 0.85); /* Dark scrim background */

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Global Reset & Typography --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin: 0;
}

p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px; /* Desktop logo height */
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-on-dark);
    text-decoration: none;
    transition: color 0.2s ease;
    opacity: 0.8;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--text-primary);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    z-index: 1;
    color: var(--bg-alt);
    padding: 0 20px; /* Prevent text touching edges on mobile */
}

.hero-headline {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtext {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--bg-main);
    margin-top: 16px;
    transition: opacity 0.5s ease;
}

/* --- General Content Sections --- */
.content-section {
    padding: 100px 0;
}

.content-section.alt-bg {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 48px;
}

.section-title.centered {
    text-align: center;
}

/* --- Image Wrappers --- */
.image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-alt);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.full-width-image {
    margin-bottom: 48px;
}

.full-width-image img {
    aspect-ratio: 16 / 9;
}

.process-image {
    margin-top: 48px;
}

.process-image img {
    aspect-ratio: 2 / 1;
}


/* --- The Lab Section --- */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.statement-headline {
    font-size: 2.5rem;
    margin-top: 16px;
    margin-bottom: 24px;
}

.grid-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature-item h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

/* --- Experiments Section --- */
.experiments-grid {
    display: grid;
    /* Adjusted minmax to 280px to fit smaller mobile screens without scroll */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.experiment-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experiment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.experiment-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.experiment-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 16px;
    text-transform: uppercase;
}

.experiment-status.concluded { background-color: #e5e5ea; color: #555; }
.experiment-status.in-trials { background-color: var(--accent-blue); color: white; }
.experiment-status.pending { background-color: transparent; border: 1px solid var(--border-color); color: var(--text-secondary); }

.experiment-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* --- Process Section --- */
.process-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-frost);
    -webkit-text-stroke: 1px var(--border-color);
    text-stroke: 1px var(--border-color);
}

.step-title {
    font-size: 1.25rem;
    margin: 16px 0 8px;
}

/* --- Waitlist Section --- */
.centered-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.waitlist-subtext {
    margin-top: 16px;
    margin-bottom: 32px;
}

.waitlist-form {
    display: flex;
    gap: 8px;
}

.waitlist-form input {
    flex-grow: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-main);
    font-size: 1rem;
    color: var(--text-primary);
}

.waitlist-form input:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.waitlist-form button {
    height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    background-color: var(--text-primary);
    color: var(--bg-alt);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Prevent text wrapping on button */
}

.waitlist-form button:hover {
    background-color: #333;
}

/* --- Footer --- */
.site-footer-bottom {
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.site-footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .logo-img {
        height: 32px; /* Mobile logo height */
    }
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .grid-right {
        order: -1; /* Move image to the top on mobile */
    }
    .process-flow {
        grid-template-columns: 1fr;
    }
    .statement-headline {
        font-size: 2rem;
    }

    /* Mobile Form Stacking */
    .waitlist-form {
        flex-direction: column;
        width: 100%;
    }
    .waitlist-form button {
        width: 100%;
    }
}
