/* ============================================
   CHIL AI Lab — Main Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #060b1f;
    --bg-secondary: #0a1128;
    --bg-card: rgba(13, 22, 53, 0.85);
    --bg-card-hover: rgba(20, 32, 70, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

    --accent-cyan: #00d4ff;
    --accent-cyan-dim: rgba(0, 212, 255, 0.15);
    --accent-blue: #667eea;
    --accent-purple: #764ba2;
    --accent-green: #00e676;
    --accent-red: #ff4757;
    --accent-orange: #ff9f43;
    --accent-warm: #ff6b6b;

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --gradient-main: linear-gradient(135deg, #00d4ff, #667eea);
    --gradient-warm: linear-gradient(135deg, #ff6b6b, #ff9f43);
    --gradient-risk: linear-gradient(90deg, #00e676, #ff9f43, #ff4757);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    --nav-height: 64px;
    --transition-fast: 0.2s ease;
    --transition-med: 0.35s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Particles Canvas ---------- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Navigation ---------- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(6, 11, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--bg-glass-border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-chil {
    color: var(--text-primary);
    font-weight: 700;
}

.logo-ai {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all var(--transition-fast);
    letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-med);
    cursor: pointer;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: none;
}

.btn-primary:hover {
    background: rgba(0, 212, 255, 0.14);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.btn-arrow {
    font-size: 1.1rem;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

.btn-with-icon i {
    font-size: 0.85rem;
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--nav-height) 0 0;
    overflow: hidden;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-mri-wrapper {
    position: relative;
    width: 560px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: -40px -60px -40px 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}

.hero-scan-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    filter: brightness(0.75) contrast(1.2) saturate(1.05) hue-rotate(-10deg);
    mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 30%, transparent 70%);
}

/* Soft vignette that dissolves the image edges into the page bg */
.scan-edge-fade {
    position: absolute;
    inset: -20px;
    border-radius: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 60% at 50% 50%, transparent 30%, var(--bg-dark, #060b1f) 70%);
}

#mri-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.mri-glow {
    position: absolute;
    top: 45%;
    left: 48%;
    width: 280px;
    height: 240px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 100, 50, 0.12) 0%, rgba(0, 80, 200, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: mriPulse 5s ease-in-out infinite;
}

.mri-scan-line {
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
    animation: scanLine 5s linear infinite;
    pointer-events: none;
    opacity: 0.7;
    border-radius: 0;
}

@keyframes mriPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

.hero-text-col {
    padding-left: 20px;
    min-width: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.dot-sep {
    color: var(--accent-cyan);
    margin: 0 4px;
    font-weight: 700;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* ---------- SHARED ELEMENTS ---------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

/* ---------- PIPELINE / HOW IT WORKS ---------- */
.pipeline-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.pipeline-hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.pipeline-hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.pipeline-hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

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

.pipeline-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--transition-med);
    backdrop-filter: blur(10px);
}

.pipeline-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.pipeline-step-badge {
    position: absolute;
    top: -14px;
    left: 20px;
    width: 28px;
    height: 28px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.4);
}

.pipeline-card-icon {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    opacity: 0.7;
}

.pipeline-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.pipeline-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
    flex-shrink: 0;
}

.pipeline-card-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 56px;
}

/* Step 1 - Upload Visual (animated) */
.upload-visual {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* MRI scan thumbnails */
.upload-scan-thumbs {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.scan-thumb {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.1);
}

.scan-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scan-thumb-overlay {
    display: none;
}

.upload-anim-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cloud icon */
.upload-cloud {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 48px;
    color: var(--accent-cyan);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.4));
    animation: cloudBob 3s ease-in-out infinite;
}

.cloud-svg {
    width: 100%;
    height: 100%;
}

@keyframes cloudBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Data particles rising into cloud */
.data-particle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: riseUp 2.4s ease-in infinite;
}

.data-particle.p1 {
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    left: 35%; bottom: 0;
    animation-delay: 0s;
}
.data-particle.p2 {
    width: 6px; height: 6px;
    background: #667eea;
    left: 55%; bottom: 0;
    animation-delay: 0.4s;
}
.data-particle.p3 {
    width: 10px; height: 10px;
    background: var(--accent-green);
    left: 45%; bottom: 0;
    animation-delay: 0.8s;
}
.data-particle.p4 {
    width: 5px; height: 5px;
    background: var(--accent-orange);
    left: 60%; bottom: 0;
    animation-delay: 1.2s;
}
.data-particle.p5 {
    width: 7px; height: 7px;
    background: var(--accent-cyan);
    left: 30%; bottom: 0;
    animation-delay: 1.6s;
}
.data-particle.p6 {
    width: 6px; height: 6px;
    background: #667eea;
    left: 50%; bottom: 0;
    animation-delay: 2.0s;
}

@keyframes riseUp {
    0%   { opacity: 0; transform: translateY(0) scale(1); }
    15%  { opacity: 1; }
    70%  { opacity: 0.8; transform: translateY(-70px) scale(0.7); }
    100% { opacity: 0; transform: translateY(-90px) scale(0.3); }
}

/* Pulse ring behind cloud */
.upload-ring {
    position: absolute;
    top: 50%; left: 50%;
    width: 80px; height: 80px;
    margin: -40px 0 0 -40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.2);
    animation: ringPulse 2.5s ease-out infinite;
}

@keyframes ringPulse {
    0%   { transform: scale(0.6); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Animated progress bar */
.upload-status-bar {
    width: 80%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.upload-status-fill {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, var(--accent-cyan), #00e5ff);
    border-radius: 3px;
    animation: barFill 3s ease-in-out infinite;
}

@keyframes barFill {
    0%   { width: 10%; }
    50%  { width: 80%; }
    100% { width: 10%; }
}

.upload-status-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Step 2 - Analysis Visual */
.analysis-visual {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.analysis-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100%;
    padding-bottom: 10px;
}

.a-bar {
    width: 16px;
    background: linear-gradient(to top, rgba(0, 212, 255, 0.3), rgba(0, 212, 255, 0.7));
    border-radius: 3px 3px 0 0;
    transition: all var(--transition-med);
}

.a-bar.active {
    background: linear-gradient(to top, var(--accent-cyan), #00e5ff);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

/* Step 3 - Risk Visual */
.risk-visual {
    text-align: center;
    width: 100%;
}

.risk-big-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
    margin-bottom: 2px;
}

.risk-percent {
    font-size: 1.4rem;
    font-weight: 600;
}

.risk-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.risk-confidence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 14px;
}

.risk-pm {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.risk-conf-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.risk-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.25);
    padding: 5px 14px;
    border-radius: 20px;
}

.risk-high {
    color: var(--accent-red);
    font-weight: 700;
}

/* Step 4 - Report Visual */
.report-visual {
    width: 100%;
}

.report-doc {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 12px;
}

.report-header-line {
    width: 60%;
    height: 8px;
    background: rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    margin-bottom: 10px;
}

.report-text-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 6px;
}

.report-text-line.long { width: 100%; }
.report-text-line.medium { width: 75%; }
.report-text-line.short { width: 50%; }

.report-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.report-mini-charts {
    display: flex;
    gap: 10px;
}

.mini-chart-line,
.mini-chart-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px;
    border: 1px solid var(--bg-glass-border);
}

.mini-line-chart {
    width: 100%;
    height: 30px;
}

.mini-chart-bar {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 46px;
}

.mcb {
    flex: 1;
    background: linear-gradient(to top, rgba(102, 126, 234, 0.3), rgba(102, 126, 234, 0.7));
    border-radius: 2px 2px 0 0;
}

/* ---------- ABOUT SECTION ---------- */
.about-section {
    position: relative;
    z-index: 1;
    padding: 80px 0 0;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-chil {
    color: var(--text-primary);
}

.about-ai {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.about-stats-row {
    display: flex;
    gap: 16px;
}

.about-stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: center;
    flex: 1;
    transition: all var(--transition-med);
}

.about-stat-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.stat-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon-accuracy { color: var(--accent-cyan); }
.stat-icon-confidence { color: #667eea; }
.stat-icon-validated { color: #00e676; }

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.about-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 0;
}

.about-visual-caption {
    text-align: center;
    padding: 12px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid var(--bg-glass-border);
}

.about-brain-wrapper {
    position: relative;
    width: 420px;
    height: 380px;
}

#brain-canvas {
    width: 100%;
    height: 100%;
}

.brain-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 80, 40, 0.35) 0%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: brainPulse 4s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Mission Cards Row */
.about-mission-row {
    max-width: 1280px;
    margin: 0 auto 48px;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mission-card {
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: all var(--transition-med);
}

.mission-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.mission-icon {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}

.mission-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.mission-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Partners Bar */
.partners-bar {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 30px 32px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--bg-glass-border);
}

.partners-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.partners-logos {
    display: flex;
    align-items: center;
    gap: 32px;
}

.partner {
    flex-shrink: 0;
}

.partner-divider {
    width: 1px;
    height: 40px;
    background: var(--bg-glass-border);
}

.partner-logo-uni {
    display: flex;
    align-items: center;
    gap: 10px;
}

.partner-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
}

.partner-logo-uni i {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.partner-logo-uni strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.partner-logo-nhs .nhs-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #005eb8;
    background: #fff;
    padding: 2px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.partner-logo-mhra {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.partner-logo-mhra i {
    color: #00e676;
}

/* ---------- CONTACT & FOOTER ---------- */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.contact-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

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

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
}

a.contact-info-value {
    text-decoration: none;
    transition: color var(--transition-med);
}

a.contact-info-value:hover {
    color: var(--accent-cyan);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: border-color var(--transition-med);
    outline: none;
    box-sizing: border-box;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option {
    background: #0a1128;
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.main-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--bg-glass-border);
    padding: 24px 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */

/* --- Tablet landscape & small desktop --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-text-col {
        padding-left: 0;
        order: -1;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-mri-wrapper {
        width: 340px;
        margin: 0 auto;
    }

    .hero-container {
        overflow: visible;
    }

    .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stats-row {
        justify-content: center;
    }

    .about-brain-wrapper {
        width: 320px;
        height: 300px;
    }

    .about-mission-row {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Tablet portrait & large phones --- */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(6, 11, 31, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 16px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 999;
        margin: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        list-style: none;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 16px;
        font-size: 0.95rem;
        width: 100%;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        transition: all var(--transition-fast);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-mobile-toggle {
        display: flex;
    }

    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Hero */
    .hero-section {
        min-height: auto;
        padding-top: var(--nav-height);
    }

    .hero-container {
        padding: 40px 20px 32px;
        gap: 24px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .hero-mri-wrapper {
        width: 280px;
        margin: 0 auto;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        text-align: center;
    }

    /* Pipeline */
    .pipeline-grid {
        grid-template-columns: 1fr;
    }

    .pipeline-hero-title {
        font-size: 2rem;
    }

    .pipeline-hero-desc {
        font-size: 1rem;
    }

    .section-container {
        padding: 0 20px;
    }

    .pipeline-section {
        padding: 60px 0;
    }

    /* About */
    .about-title,
    .contact-title {
        font-size: 2rem;
    }

    .about-stats-row {
        flex-direction: column;
        align-items: center;
    }

    .about-stat-card {
        width: 100%;
        max-width: 280px;
    }

    .partners-bar {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }

    .partners-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .partner-divider {
        display: none;
    }

    /* Contact */
    .contact-form {
        padding: 28px 20px;
    }

    /* Pipeline CTA */
    .pipeline-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .pipeline-cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 0 20px;
    }

    /* Full-page sections */
    .pipeline-page,
    .about-page,
    .contact-page {
        padding-top: calc(var(--nav-height) + 32px);
        padding-bottom: 32px;
        min-height: auto;
    }
}

/* --- Small phones --- */
@media (max-width: 480px) {
    .hero-container {
        padding: 28px 16px 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 20px;
    }

    .hero-mri-wrapper {
        width: 220px;
    }

    .hero-cta-group .btn {
        font-size: 0.85rem;
        padding: 13px 20px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 28px;
    }

    .section-container {
        padding: 0 16px;
    }

    .pipeline-hero-title {
        font-size: 1.6rem;
    }

    .pipeline-card {
        padding: 24px 18px 22px;
    }

    .about-title,
    .contact-title {
        font-size: 1.6rem;
    }

    .about-brain-wrapper {
        width: 240px;
        height: 220px;
    }

    .partner-logo-img {
        height: 30px;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-logo {
        font-size: 0.9rem;
    }

    .footer-copy {
        font-size: 0.72rem;
    }
}

/* ---------- Full-Page Overrides ---------- */
.pipeline-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
}

.about-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
}

.contact-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(100, 126, 234, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 126, 234, 0.5);
}
