/* --- CORE VARIABLES & RESETS --- */
:root {
    --teal: #45b19d;
    --orange: #ef7d31;
    --dark: #050a18;
    --glass: rgba(255, 255, 255, 0.03);
    --text-dim: #94a3b8;
}

body, html {
    margin: 0; padding: 0;
    background-color: var(--dark);
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- BACKGROUND & INTERACTIVITY --- */
#canvas { position: fixed; top: 0; left: 0; z-index: 1; opacity: 0.4; }

.cursor-glow {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(69, 177, 157, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
}

.main-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { pointer-events: auto; margin-bottom: 160px; }

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 15vh;
    text-align: center;
}

.tag-floating {
    position: relative;
    display: inline-block;
    padding: 6px 15px;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 15px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    background: transparent;
    z-index: 0;
}

.tag-floating::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, var(--teal), var(--orange));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

h1 {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 1000;
    margin: 0;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #45b19d 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 400;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-top: -10px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.description {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.cta-button {
    padding: 20px 50px;
    background: var(--orange);
    color: white;
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.cta-button:hover {
    transform: scale(1.05);
    background: white;
    color: var(--dark);;
    box-shadow: 0 0 30px rgba(239, 125, 49, 1);
}

/* --- MISSION & LATERAL PATHS --- */
.mission-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.mission-text { text-align: left; }

.mini-title {
    color: var(--teal);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 3px;
}

.mission-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin: 10px 0 30px;
    line-height: 1.1;
}

.mission-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.side-paths {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 20px;
}

/* --- THE AUDIENCE BOXES (SIDEBAR) --- */
.a-box {
    padding: 35px;
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    text-align: left;
}

.a-box:hover {
    transform: translateX(12px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.path-tag {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    color: white;
}

.academic-tag { background: var(--teal); }
.industry-tag { background: var(--orange); }

.a-box h3 { font-size: 1.5rem; color: white; margin: 0 0 12px 0; }
.a-box p { font-size: 0.95rem; line-height: 1.5; color: var(--text-dim); margin: 0 0 18px 0; }

.box-link {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

.academic-link {
    color: var(--teal);
    border-bottom-color: rgba(69, 177, 157, 0.3);
}

.academic-link:hover {
    color: white;
    border-bottom-color: white;
    letter-spacing: 1px;
}

.industry-link {
    color: var(--orange);
    border-bottom-color: rgba(239, 125, 49, 0.3);
}

.industry-link:hover {
    color: white;
    border-bottom-color: white;
    letter-spacing: 1px;
}

/* --- HIGH-IMPACT METRICS --- */
.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 80px;
    margin-bottom: 80px;
}

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

.m-num {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(180deg, white, #6f6f6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.m-label {
    font-size: 0.85rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 800;
    margin-top: 10px;
    display: block;
}

/* --- FOOTER & CLEANUP --- */
.footer-minimal {
    padding-bottom: 60px;
    opacity: 0.6;
    font-size: 0.8rem;
    text-align: center;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .mission-layout { grid-template-columns: 1fr; gap: 40px; }
    .side-paths { order: -1; } /* Moves boxes above mission text on tablets */
    .a-box:hover { transform: translateY(-8px); }
    .metrics-row { grid-template-columns: 1fr; gap: 60px; }
    h1 { font-size: 4rem; }
}

/* Reveal Effect */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Genomic Ticker Styling */
.gene-ticker {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    margin-bottom: 80px;
}

.gene-ticker-content {
    display: inline-block;
    animation: tickerLoop 30s linear infinite;
}

.gene-ticker-content span {
    color: var(--teal);
    font-family: monospace;
    font-weight: 900;
    font-size: 0.8rem;
    margin: 0 40px;
    opacity: 0.5;
}

@keyframes tickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Scanning Box Enhancement */
.a-box {
    position: relative;
    overflow: hidden;
}

.a-box::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: none;
    pointer-events: none;
}

.a-box:hover::after {
    left: 100%;
    transition: 0.8s ease-in-out;
}
