/* Liquid Biologics - Modern Scientific Aesthetic */
/* Color Palette: Cream, White, Tan, Marble, Stone */

:root {
    /* Primary Colors */
    --cream: #FAF8F5;
    --cream-dark: #F5F1EB;
    --white: #FFFFFF;
    --off-white: #FEFDFB;
    
    /* Warm Neutrals */
    --tan: #D4C4B0;
    --tan-light: #E8DED0;
    --tan-dark: #B8A690;
    --stone: #8B8378;
    --stone-light: #A69B8C;
    --stone-dark: #6B655C;
    
    /* Marble Accents */
    --marble: #E5E0D8;
    --marble-dark: #C9C0B0;
    
    /* Dark Contrast */
    --charcoal: #2D2A26;
    --charcoal-light: #4A4540;
    --black: #1A1816;
    
    /* Accent - Subtle Gold */
    --gold: #C9A962;
    --gold-light: #D9C9A0;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--cream) 0%, var(--tan-light) 50%, var(--marble) 100%);
    --gradient-card: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    --gradient-text: linear-gradient(135deg, var(--charcoal) 0%, var(--stone-dark) 100%);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1280px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 42, 38, 0.04);
    --shadow-md: 0 4px 24px rgba(45, 42, 38, 0.06);
    --shadow-lg: 0 8px 48px rgba(45, 42, 38, 0.08);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 196, 176, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    color: var(--gold);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--stone-dark);
    position: relative;
}

.nav-links a:hover {
    color: var(--charcoal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--charcoal);
    color: var(--white) !important;
    border-radius: 100px;
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--charcoal-light);
}

.nav-cta::after {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition-base);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 40px 80px;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--tan-light);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--marble);
    bottom: -100px;
    left: -100px;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--cream-dark);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
}

.hero-visual {
    display: none;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--stone);
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    border: 1px solid var(--marble);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 300;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--stone-dark) 50%, var(--tan-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: var(--stone);
    max-width: 640px;
    margin: 0 auto 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--charcoal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--charcoal-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--tan);
}

.btn-secondary:hover {
    background: var(--white);
    border-color: var(--stone);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--marble);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--stone);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--stone);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--tan), transparent);
}

/* Section Styles */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 80px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--stone);
    line-height: 1.6;
}

/* Research Section */
.section-research {
    background: var(--white);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.research-card {
    background: var(--gradient-card);
    border: 1px solid var(--marble);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-base);
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--tan);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream-dark);
    border-radius: 12px;
    margin-bottom: 24px;
    color: var(--charcoal);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.research-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.research-card p {
    font-size: 14px;
    color: var(--stone);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    position: relative;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition-base);
}

.card-link:hover::after {
    width: 100%;
}

/* Featured Document Section */
.section-featured {
    background: var(--cream-dark);
}

.featured-document {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.featured-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 20px;
}

.featured-content > p {
    font-size: 16px;
    color: var(--stone);
    line-height: 1.7;
    margin-bottom: 24px;
}

.featured-list {
    list-style: none;
    margin-bottom: 32px;
}

.featured-list li {
    font-size: 14px;
    color: var(--stone-dark);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.featured-list li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 10px;
}

.featured-visual {
    display: flex;
    justify-content: center;
}

.document-preview {
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: var(--charcoal);
    color: var(--white);
    font-size: 12px;
}

.preview-header span:first-child {
    color: var(--gold);
}

.preview-content {
    padding: 24px 20px;
}

.preview-line {
    height: 8px;
    background: var(--cream-dark);
    border-radius: 4px;
    margin-bottom: 12px;
}

.preview-line.short {
    width: 60%;
}

.preview-line.medium {
    width: 80%;
}

/* Protocols Section */
.section-protocols {
    background: var(--white);
}

.protocols-list {
    max-width: 800px;
    margin: 0 auto;
}

.protocol-item {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--marble);
}

.protocol-item:first-child {
    padding-top: 0;
}

.protocol-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 200;
    color: var(--tan);
    line-height: 1;
    min-width: 80px;
}

.protocol-content {
    flex: 1;
}

.protocol-content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.protocol-content p {
    font-size: 14px;
    color: var(--stone);
    line-height: 1.6;
    margin-bottom: 8px;
}

.protocol-meta {
    font-size: 12px;
    color: var(--tan-dark);
    font-family: monospace;
}

.protocol-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--charcoal);
    padding: 8px 16px;
    border: 1px solid var(--tan);
    border-radius: 100px;
    transition: var(--transition-base);
}

.protocol-link:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

/* About Section */
.section-about {
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.3;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    color: var(--stone);
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value {
    text-align: center;
}

.value-icon {
    display: inline-block;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 12px;
}

.value h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.value p {
    font-size: 13px;
    color: var(--stone);
    margin: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 400px;
    height: 400px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-pattern {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, var(--tan-light) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--marble) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--cream-dark) 0%, transparent 70%);
    border-radius: 16px;
}

/* Contact Section */
.section-contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.contact-content > p {
    font-size: 16px;
    color: var(--stone);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--stone);
}

.contact-item a {
    font-size: 16px;
    color: var(--charcoal);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-form {
    background: var(--cream);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--marble);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--stone);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--tan);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--stone);
    box-shadow: 0 0 0 3px rgba(139, 131, 120, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--tan-dark);
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--cream);
    padding: 80px 0 40px;
}

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

.footer-brand .logo-text {
    color: var(--white);
}

.footer-brand p {
    font-size: 14px;
    color: var(--stone-light);
    line-height: 1.6;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--stone-light);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--charcoal-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--stone);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-document,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 140px 24px 60px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .protocol-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.research-card,
.protocol-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Selection Color */
::selection {
    background: var(--tan-light);
    color: var(--charcoal);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--tan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--stone);
}