: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%;
    }
}
/* Navigation – lab control panel aesthetic v2 */
.site-header nav {
    display: flex;
    align-items: center;
    gap: 8px;                    /* tight but deliberate spacing between pills */
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-on-dark);
    text-decoration: none;
    opacity: 0.85;
    padding: 8px 16px;           /* generous inner padding for pill feel */
    border-radius: 999px;        /* full pill shape */
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.04);  /* very faint base glow */
    border: 1px solid rgba(0, 122, 255, 0.18); /* subtle blue outline */
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    opacity: 1;
    color: #ffffff;
    background: rgba(0, 122, 255, 0.18);     /* stronger electric-blue fill on interaction */
    border-color: var(--accent-blue);
    box-shadow:
        0 0 12px rgba(0, 122, 255, 0.4),     /* outer neon glow */
        inset 0 0 8px rgba(0, 122, 255, 0.25); /* subtle inner glow */
    transform: translateY(-1px);             /* slight lift */
}

.nav-link.active {
    background: rgba(0, 122, 255, 0.28);
    box-shadow:
        0 0 20px rgba(0, 122, 255, 0.5),
        inset 0 0 10px rgba(0, 122, 255, 0.3);
}

/* Optional: tiny animated pulse on active (very subtle) */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 122, 255, 0.5); }
    50%      { box-shadow: 0 0 28px rgba(0, 122, 255, 0.7); }
}

.nav-link.active {
    animation: pulse-glow 4s infinite ease-in-out;
}

/* Underline fallback if you prefer lines over pills — comment out pill styles and use this instead */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-blue);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}
/* Modal – Lab Observation Window */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-blue);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-id {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.modal-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    text-transform: uppercase;
}

.modal-status.in-trials { background: var(--accent-blue); color: white; }

.modal-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
}

.modal-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.spec-item {
    background: rgba(0, 122, 255, 0.06);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.spec-value {
    font-weight: 600;
    color: var(--accent-blue);
}

.modal-cta {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.modal-notify-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 24px auto 0;
}

.modal-notify-form input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    font-size: 1rem;
}

.modal-notify-form button {
    height: 48px;
    padding: 0 28px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.modal-notify-form button:hover {
    background: #333;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .modal-content {
        padding: 24px 16px;
    }
    .modal-notify-form {
        flex-direction: column;
    }
    .modal-notify-form button {
        width: 100%;
    }
}
/* Lab Journal – Notebook aesthetic */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
}

.journal-entry {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journal-entry:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.entry-id {
    font-weight: 600;
}

.entry-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.entry-excerpt {
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.entry-media .image-wrapper img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.entry-cta {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 20px;
    font-size: 0.95rem;
    /* Reuses pill + glow styles from nav */
}

@media (max-width: 768px) {
    .journal-grid {
        gap: 32px;
    }
    .journal-entry {
        padding: 24px;
    }
}
/* Coming Soon / Shop enhancements */
.status-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 16px 0 20px;
}

.notify-btn {
    width: 100%;
    height: 52px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.notify-btn:hover {
    background: #0066d6;
}

.coming-soon .product-price {
    color: var(--text-secondary);
    font-style: italic;
}
/* Shop-specific enhancements */
.hero-shop {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    text-align: center;
    position: relative;
}

.hero-shop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,122,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-shop .section-title {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.hero-shop .hero-subtext {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 48px;
}

.product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(0,122,255,0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,122,255,0.15);
    border-color: var(--accent-blue);
}

.product-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.comparison-toggle {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .comparison-toggle {
    opacity: 1;
}

.status-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-blue);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 28px;
    text-align: center;
}

.product-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.product-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.product-specs span {
    display: block;
    font-size: 0.95rem;
    color: var(--accent-blue);
    margin: 6px 0;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 20px 0;
}

.notify-btn {
    width: 100%;
    height: 52px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notify-btn:hover {
    background: #0066d6;
    transform: translateY(-2px);
}

/* Notify Modal */
#notify-modal .modal-content {
    max-width: 480px;
}

#notify-modal h3 {
    color: #ffffff;
}

#notify-form input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: white;
}

#notify-form button {
    width: 100%;
    height: 52px;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
}