:root {
    /* ========================================
       COLOR SYSTEM
       ======================================== */

    /* Base Colors */
    --color-black: #000000;
    --color-gray-900: #1D1D1F;
    --color-gray-600: #86868B;
    --color-gray-100: #F5F5F7;
    --color-white: #FFFFFF;
    --color-blue-600: #0066CC;
    --color-blue-700: #004499;
    --color-red-600: #FF3B30;

    /* Semantic Color Tokens */
    --text-primary: var(--color-gray-900);
    --text-secondary: var(--color-gray-600);
    --text-inverse: var(--color-white);

    --bg-color: var(--color-white);
    --bg-primary: var(--color-white);
    --bg-secondary: var(--color-gray-100);
    --bg-dark: var(--color-black);

    --accent-blue: var(--color-blue-600);
    --accent-blue-hover: var(--color-blue-700);
    --accent-primary: var(--color-blue-600);
    --accent-primary-hover: var(--color-blue-700);
    --accent-red: var(--color-red-600);
    --accent-danger: var(--color-red-600);

    --border-light: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.15);

    /* Legacy support */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* ========================================
       TYPOGRAPHY SYSTEM
       ======================================== */

    /* Font Families */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-mono: 'SF Mono', 'Monaco', 'Courier New', monospace;

    /* Font Weights */
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Typography Scale */
    --text-display: clamp(64px, 8vw, 80px);
    --text-h1: clamp(40px, 5vw, 48px);
    --text-h2: clamp(28px, 3vw, 32px);
    --text-h3: 24px;
    --text-h4: 20px;
    --text-body-xl: 24px;
    --text-body-l: 21px;
    --text-body-m: 17px;
    --text-body-s: 15px;
    --text-caption: 14px;
    --text-micro: 12px;

    /* Legacy support */
    --h1-size: var(--text-h1);
    --h2-size: var(--text-h2);
    --h3-size: var(--text-h3);
    --body-size: var(--text-body-m);

    /* ========================================
       SPACING SYSTEM (8pt Grid)
       ======================================== */

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-15: 120px;

    /* Layout */
    --container-width: 1080px;
    --container-narrow: 800px;
    --container-wide: 1200px;
    --section-padding: var(--space-15);

    /* ========================================
       VISUAL EFFECTS
       ======================================== */

    /* Shadows & Depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 980px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: var(--body-size);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: var(--h1-size);
    margin-bottom: 24px;
}

h2 {
    font-size: var(--h2-size);
    margin-bottom: 16px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-blue {
    color: var(--accent-blue);
}

.text-center {
    text-align: center;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Typography Utilities */
.text-display {
    font-size: var(--text-display);
    line-height: 1.1;
    font-weight: var(--font-bold);
    letter-spacing: -0.03em;
}

.text-h1 {
    font-size: var(--text-h1);
    line-height: 1.1;
    font-weight: var(--font-semibold);
    letter-spacing: -0.03em;
}

.text-h2 {
    font-size: var(--text-h2);
    line-height: 1.2;
    font-weight: var(--font-semibold);
    letter-spacing: -0.02em;
}

.text-h3 {
    font-size: var(--text-h3);
    line-height: 1.3;
    font-weight: var(--font-semibold);
    letter-spacing: -0.02em;
}

.text-h4 {
    font-size: var(--text-h4);
    line-height: 1.4;
    font-weight: var(--font-semibold);
    letter-spacing: -0.01em;
}

.text-body-xl {
    font-size: var(--text-body-xl);
    line-height: 1.4;
    font-weight: var(--font-medium);
}

.text-body-l {
    font-size: var(--text-body-l);
    line-height: 1.5;
    font-weight: var(--font-regular);
}

.text-body-m {
    font-size: var(--text-body-m);
    line-height: 1.5;
    font-weight: var(--font-regular);
}

.text-body-s {
    font-size: var(--text-body-s);
    line-height: 1.5;
    font-weight: var(--font-medium);
}

.text-caption {
    font-size: var(--text-caption);
    line-height: 1.5;
    font-weight: var(--font-medium);
}

.text-micro {
    font-size: var(--text-micro);
    line-height: 1.5;
    font-weight: var(--font-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Color Utilities */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-inverse {
    color: var(--text-inverse) !important;
}

.bg-primary {
    background-color: var(--bg-primary);
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.bg-dark {
    background-color: var(--bg-dark);
}

/* Spacing Utilities - Margin */
.m-0 {
    margin: 0;
}

.mb-1 {
    margin-bottom: var(--space-1);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-3 {
    margin-bottom: var(--space-3);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mt-3 {
    margin-top: var(--space-3);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

/* Spacing Utilities - Gap */
.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-10 {
    gap: var(--space-10);
}

/* Layout Utilities */
.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

/* Stat Value (for large numbers) */
.stat-value {
    font-size: 48px;
    font-weight: var(--font-semibold);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-body-s);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding) 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    /* Increased height */
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-content {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 20px;
    /* Larger logo */
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 15px;
    /* Increased from 12px */
    font-weight: 500;
    color: var(--text-primary);
    opacity: 1;
    /* Removed opacity for better readability */
}

.nav-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    /* Darker on hover */
}

.nav-links a.text-blue {
    color: var(--accent-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link-btn {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.nav-link-btn:hover {
    background: var(--bg-secondary);
}

.nav-btn {
    background: var(--text-primary);
    color: white;
    padding: 10px 20px;
    /* Larger padding */
    border-radius: 980px;
    font-size: 14px;
    /* Larger font */
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    transform: translateY(-1px);
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-heading {
    font-size: calc(var(--h1-size) * 1.2);
    max-width: 900px;
    margin-bottom: 32px;
}

.hero-subheadline {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.4;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 80px;
}

.hero-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue);
    margin-bottom: 24px;
    border: 1px solid rgba(0, 102, 204, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(0, 102, 204, 0.05);
}

.hero-visual {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin-top: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 204, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    position: relative;
}

/* Seismic Ripple Animation */
.ripple {
    transform-origin: center;
    animation: seismicPulse 10s ease-in-out infinite;
}

.ripple-1 {
    animation-delay: 0s;
}

.ripple-2 {
    animation-delay: 0.5s;
}

.ripple-3 {
    animation-delay: 1s;
}

.ripple-4 {
    animation-delay: 1.5s;
}

.ripple-5 {
    animation-delay: 2s;
}

@keyframes seismicPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-caption);
    font-weight: var(--font-semibold);
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px var(--space-2);
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-tertiary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-tertiary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.btn-large {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-body-m);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 24px;
}

.bento-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: white;
}

.bento-large {
    grid-column: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive & Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Animation */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    :root {
        --h1-size: 56px;
        --h2-size: 36px;
        --section-padding: 80px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
    }

    .bento-tall {
        grid-row: span 1;
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    :root {
        --h1-size: 36px;
        --h2-size: 28px;
        --section-padding: 60px;
    }

    .nav-links,
    .nav-actions,
    .nav-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-heading {
        font-size: calc(var(--h1-size) * 1.15);
    }

    .hero-subheadline {
        font-size: 18px;
        margin-bottom: 32px;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 300px;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .hero-visual {
        height: 300px;
        margin-top: 40px;
    }

    /* Robust Grid & Layout Fixes */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }

    .stats-grid>div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .founder-card {
        flex-direction: column !important;
        text-align: center !important;
        gap: 24px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center !important;
    }

    .footer-bottom>div:last-child {
        flex-wrap: wrap;
        justify-content: center;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .hybrid-grid {
        grid-template-columns: 1fr !important;
    }

    .table-container {
        margin: 0 -24px;
        /* Negative margin to span full width */
        padding: 0 24px;
        width: calc(100% + 48px);
    }
}

/* New Component Classes (Add these to support the HTML changes) */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.founder-card {
    max-width: 800px;
    margin: 0 auto 60px;
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.founder-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 32px;
    font-size: 12px;
}

/* Chatbot Process Flow Diagram */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.process-step {
    flex: 1;
    width: 100%;
}

.process-box {
    border: 2px solid var(--accent-blue);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.process-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.process-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.process-arrow {
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table Container */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Force scroll on mobile */
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

td {
    color: var(--text-secondary);
}

.improvement {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ========================================
   SCIENCE PAGE STYLES
   ======================================== */

/* Science Hero */
.science-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #000 0%, #1a1a1a 100%);
}

.science-hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 102, 204, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridPulse 25s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.02);
    }
}

.science-hero-heading {
    font-size: calc(var(--h1-size) * 1.1);
    max-width: 900px;
    margin-bottom: 32px;
    color: white;
}

.science-hero-subheading {
    font-size: 22px;
    font-weight: 400;
    color: #D1D1D6;
    max-width: 750px;
    margin: 0 auto 48px;
    line-height: 1.5;
}

.science-hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

/* Science Sections */
.science-section {
    padding: var(--section-padding) 0;
}

.section-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hybrid Grid */
.hybrid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.hybrid-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.hybrid-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hybrid-card h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hybrid-card ul {
    list-style: none;
    padding: 0;
}

.hybrid-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 15px;
    position: relative;
    padding-left: 20px;
}

.hybrid-card li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

/* Diagram Container */
.diagram-container {
    margin-top: 80px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.soil-diagram {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.seismic-wave {
    animation: waveFlow 3s ease-in-out infinite;
}

@keyframes waveFlow {

    0%,
    100% {
        stroke-opacity: 0.8;
    }

    50% {
        stroke-opacity: 1;
    }
}

/* Architecture Diagram */
.architecture-diagram {
    max-width: 700px;
    margin: 0 auto;
}

.arch-layer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 16px;
    display: flex;
    gap: 24px;
    align-items: center;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(-30px);
}

.arch-layer.visible {
    opacity: 1;
    transform: translateX(0);
}

.arch-layer:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: rgba(0, 102, 204, 0.3);
    box-shadow: 0 0 30px rgba(0, 102, 204, 0.2);
}

.layer-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 60px;
    text-align: center;
}

.layer-content h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

.layer-content p {
    color: #86868B;
    font-size: 15px;
    margin: 0;
}

.arch-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--accent-blue);
    margin: 8px 0;
}

/* Sequential glow animation */
.layer-1 {
    animation-delay: 0.1s;
}

.layer-2 {
    animation-delay: 0.3s;
}

.layer-3 {
    animation-delay: 0.5s;
}

.layer-4 {
    animation-delay: 0.7s;
}

.layer-5 {
    animation-delay: 0.9s;
}

.layer-6 {
    animation-delay: 1.1s;
}

/* Training Grid */
.training-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.training-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.training-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.training-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.training-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.training-card ul {
    list-style: none;
    padding: 0;
}

.training-card li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 16px;
}

.training-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

/* Performance Chart */
.performance-chart {
    margin-top: 80px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.performance-chart svg {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.performance-curve {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawCurve 2s ease-out forwards;
}

@keyframes drawCurve {
    to {
        stroke-dashoffset: 0;
    }
}

/* Comparison Table */
.comparison-table {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--text-primary);
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    font-size: 15px;
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

.comparison-table .improvement {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Validation Events */
.validation-events {
    margin-top: 80px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.event-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.event-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.event-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-blue);
}

.event-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Interpretability Grid */
.interpretability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 80px;
}

.interp-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.interp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.interp-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.interp-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Reasoning Trace */
.reasoning-trace {
    max-width: 900px;
    margin: 0 auto;
}

.trace-block {
    background: #1D1D1F;
    border-radius: var(--radius-md);
    padding: 32px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.trace-step {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trace-step:last-child {
    border-bottom: none;
}

.trace-label {
    color: #0066CC;
    font-size: 13px;
    font-weight: 600;
    min-width: 140px;
    flex-shrink: 0;
}

.trace-value {
    color: #D1D1D6;
    font-size: 13px;
    line-height: 1.6;
}

.trace-final {
    color: #FF3B30;
    font-weight: 600;
}

/* Safety Grid */
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.safety-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.safety-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 102, 204, 0.3);
    transform: translateY(-4px);
}

.safety-badge {
    font-size: 48px;
    margin-bottom: 20px;
}

.safety-card h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 12px;
}

.safety-card p {
    color: #86868B;
    font-size: 14px;
    margin: 0;
}

/* White Paper Section */
.white-paper-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
}

.white-paper-card {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.white-paper-icon {
    flex-shrink: 0;
}

.white-paper-content h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 16px;
}

.white-paper-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 32px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Future Grid */
.future-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.future-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s ease;
}

.future-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.future-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.future-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive - Science Page */
@media (max-width: 1024px) {

    .hybrid-grid,
    .training-grid,
    .safety-grid,
    .future-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-grid,
    .interpretability-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .science-hero {
        padding: 120px 24px 80px;
        min-height: 60vh;
    }

    .science-hero-heading {
        font-size: calc(var(--h1-size) * 0.9);
    }

    .science-hero-subheading {
        font-size: 18px;
    }

    .science-hero-ctas {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .science-hero-ctas .btn {
        width: 100%;
    }

    .hybrid-grid,
    .training-grid,
    .safety-grid,
    .future-grid,
    .event-grid,
    .interpretability-grid {
        grid-template-columns: 1fr;
    }

    .white-paper-card {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .white-paper-content h2 {
        font-size: 32px;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-table table {
        min-width: 600px;
    }

    .trace-step {
        flex-direction: column;
        gap: 8px;
    }

    .trace-label {
        min-width: auto;
    }
}

/* ========================================
   CHATBOT INTEGRATION STYLES
   ======================================== */

/* Chatbot Section */
.chatbot-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.chatbot-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 60px 0;
}

.chatbot-feature-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
}

.chatbot-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.chatbot-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.chatbot-diagram {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.chatbot-diagram svg {
    width: 100%;
    height: auto;
}

/* Floating Chatbot Launcher */
.chatbot-launcher {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.chatbot-launcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
    animation: chatbotPulse 1.5s ease-in-out infinite;
}

.chatbot-launcher svg {
    width: 28px;
    height: 28px;
}

@keyframes chatbotPulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    }

    50% {
        box-shadow: 0 6px 24px rgba(0, 102, 204, 0.6);
    }
}

/* Hero Chatbot Link */
.hero-chatbot-link {
    font-size: 15px;
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.hero-chatbot-link:hover {
    text-decoration: underline;
    color: var(--accent-blue-hover);
}

/* Button Large Variant */
.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Responsive - Chatbot */
@media (max-width: 1024px) {
    .chatbot-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chatbot-feature-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-launcher {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
    }

    .chatbot-launcher svg {
        width: 24px;
        height: 24px;
    }

    .chatbot-diagram {
        padding: 24px;
    }

    .hero-chatbot-link {
        display: block;
        text-align: center;
        margin-top: 20px;
    }
}