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

:root {
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --bg: #fafafa;
    --bg-card: #fff;
    --border: #e5e5e5;
    --accent: #0066cc;
    --accent-light: #e6f0ff;
    --accent-dark: #004d99;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Dark Mode */
[data-theme="dark"] {
    --text: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --bg: #0a0a0a;
    --bg-card: #151515;
    --border: #2a2a2a;
    --accent: #4d9fff;
    --accent-light: rgba(77, 159, 255, 0.15);
    --accent-dark: #3385ff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
nav {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] nav {
    background: rgba(10,10,10,0.9);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--border);
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--bg) 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, rgba(77, 159, 255, 0.1) 0%, var(--bg) 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Affiliations */
.affiliations {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.affiliation-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.affiliation-text a {
    color: var(--accent);
    text-decoration: none;
}

.affiliation-text a:hover {
    text-decoration: underline;
}

.funders {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
}

.funders span:first-child {
    font-weight: 600;
}

/* Research Section */
.research {
    padding: 80px 0;
}

.research h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
}

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

.research-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.research-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.research-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Platform Section */
.platform {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.platform h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.platform-intro {
    font-size: 18px;
    color: var(--text);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.platform-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.platform-features li {
    background: var(--bg);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.platform-features strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 6px;
}

.platform-features span {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.demo-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.demo-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.demo-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 28px;
    line-height: 1.6;
}

.demo .btn-primary {
    background: white;
    color: var(--accent);
    font-weight: 600;
    padding: 14px 32px;
}

.demo .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Publications Section */
.publications {
    padding: 80px 0;
}

.publications h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.pub-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
}

.pub-list li {
    margin-bottom: 12px;
}

.pub-list a,
.pub-list li:not(:has(a)) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.2s ease;
}

.pub-list a:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.pub-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.pub-venue {
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

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

.about-content p:last-child {
    margin-bottom: 0;
}

/* Team Section */
.team {
    padding: 80px 0;
}

.team h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 48px;
    text-align: center;
}

.team-lead {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 56px;
}

.team-member.lead {
    width: 240px;
}

.team-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.team-grid .team-member {
    width: 150px;
}

.team-member {
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-4px);
}

.team-member:hover .member-avatar {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    font-weight: 600;
    color: white;
    border: 3px solid var(--border);
    transition: all 0.3s ease;
}

.team-member.lead .member-avatar {
    width: 120px;
    height: 120px;
    font-size: 32px;
    border-width: 4px;
    border-color: var(--accent);
}

.member-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.team-member.lead .member-info h3 {
    font-size: 18px;
}

.member-info .role {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2px;
}

.team-member.lead .member-info .role {
    font-size: 14px;
}

.member-info .affiliation {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.team-member.lead .member-info .affiliation {
    font-size: 12px;
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--accent-light);
    transition: all 0.2s ease;
}

.member-link:hover {
    background: var(--accent);
    color: white;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact h2 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 32px;
    text-align: center;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

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

.contact-email {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.contact-email:hover {
    text-decoration: underline;
}

.contact-info {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.contact-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0;
}

.contact-info strong {
    color: var(--text);
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 48px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 800px) {
    .research-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .platform-features {
        grid-template-columns: 1fr;
    }

    .team-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .tagline {
        font-size: 15px;
    }

    .pub-list a {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        gap: 16px;
    }

    .member-avatar {
        width: 64px;
        height: 64px;
        font-size: 20px;
    }

    .team-member.lead .member-avatar {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }

    .member-info h3 {
        font-size: 13px;
    }

    .member-info .role {
        font-size: 11px;
    }

    .member-info .affiliation {
        font-size: 10px;
    }
}


@media (max-width: 600px) {
    .container {
        padding: 0 20px;
    }

    nav .container {
        gap: 12px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .hero .tagline {
        font-size: 14px;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

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

    .research, .about, .contact {
        padding: 60px 0;
    }

    .research-card {
        padding: 24px 20px;
    }

    .contact-card {
        padding: 28px 24px;
    }

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

    .footer-links {
        justify-content: center;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Scroll margin for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}
