/* xanadu.science — Frutiger Aero Glossy */

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    background: #E3F2FD;
    color: #1A1A2E;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== NATURE PARALLAX BACKGROUND ===== */
.nature-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.nature-scene {
    width: 100%;
    height: 100%;
}

/* ===== SHARED: SECTION HEADING ===== */
.section-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 36px;
    color: #1565C0;
    text-align: center;
    margin-bottom: 2.5rem;
}

/* ===== SHARED: GLASS CARD ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* Lens flare on card corners */
.card-flare {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    pointer-events: none;
    z-index: 2;
}

/* ===== SHARED: FADE-IN ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== SHARED: PROGRESS BARS ===== */
.progress-track,
.bar-track {
    flex: 1;
    height: 8px;
    background: #E3F2FD;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #42A5F5, #1565C0);
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.progress-fill.green {
    background: linear-gradient(90deg, #66BB6A, #43A047);
}

/* ===== LEAF ICON ===== */
.leaf-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

/* ===== SECTION 1: HERO / VISION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(180deg, #E3F2FD 0%, #FFFFFF 100%);
    z-index: 1;
    overflow: hidden;
}

/* Cloud overlay */
.hero-clouds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 200px 60px at 20% 25%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(ellipse 260px 70px at 75% 15%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(ellipse 180px 50px at 50% 40%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(ellipse 300px 80px at 85% 55%, rgba(255, 255, 255, 0.4), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Lens flare effects */
.hero-flare {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-flare--left {
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(129, 212, 250, 0.25), transparent);
}

.hero-flare--right {
    bottom: 15%;
    right: 8%;
    background: radial-gradient(circle, rgba(66, 165, 245, 0.2), transparent);
}

/* Floating translucent panels */
.hero-floating-panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-floating-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 16px 16px 0 0;
    pointer-events: none;
}

.hero-floating-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.hero-floating-panel--left {
    top: 18%;
    left: 6%;
}

.hero-floating-panel--right {
    top: 22%;
    right: 6%;
}

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

.panel-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #1565C0;
}

.panel-stat {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #546E7A;
}

/* Hero title with glass reflection */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title-text {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #1565C0;
    position: relative;
}

.hero-title-reflection {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 64px;
    color: #1565C0;
    opacity: 0.12;
    transform: scaleY(-1);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
    line-height: 1;
    margin-top: -0.15em;
    pointer-events: none;
    user-select: none;
}

.hero-sub {
    font-size: 18px;
    color: #546E7A;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Glossy pill buttons */
.track-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #42A5F5, #1565C0);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(21, 101, 192, 0.25);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 999px 999px 0 0;
    pointer-events: none;
}

.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

.pill-icon {
    flex-shrink: 0;
}

/* Hero metric counters */
.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    z-index: 2;
    position: relative;
}

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

.hero-metric-val {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 28px;
    color: #1565C0;
}

.hero-metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #546E7A;
    margin-top: 0.25rem;
}

/* ===== SECTION 2: RESEARCH ===== */
.research {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.research-cards .glass-card {
    padding: 2rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #1565C0;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 2;
}

.card-text {
    font-size: 15px;
    color: #546E7A;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.card-diagram {
    margin-bottom: 1rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.metric-label {
    font-size: 13px;
    color: #546E7A;
    min-width: 4.5rem;
    font-family: 'Inter', sans-serif;
}

.metric-val {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: #1565C0;
    min-width: 2.5rem;
    text-align: right;
}

/* ===== SECTION 3: COMPARISON ===== */
.comparison {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.compare-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.compare-item {
    padding: 1.5rem;
}

.compare-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #1565C0;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.compare-bars {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bar-label {
    font-size: 13px;
    color: #546E7A;
    min-width: 4.5rem;
    font-family: 'Inter', sans-serif;
}

.bar-val {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 13px;
    color: #1565C0;
    min-width: 2.5rem;
    text-align: right;
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.milestone-list {
    position: relative;
    padding-left: 2rem;
}

.milestone-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #81D4FA, #42A5F5, #1565C0);
    border-radius: 999px;
}

.milestone {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 16px;
}

.milestone-marker {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #42A5F5;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
    z-index: 3;
}

.milestone .milestone-marker {
    left: -2.55rem;
}

.milestone-year {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 14px;
    color: #42A5F5;
    display: block;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 2;
}

.milestone-text {
    font-size: 15px;
    color: #1A1A2E;
    position: relative;
    z-index: 2;
}

/* ===== CONTRIBUTORS ===== */
.contributors {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.contributor-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.avatar-frame {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #81D4FA, #42A5F5);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(66, 165, 245, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.avatar-frame svg {
    border-radius: 50%;
}

.contributor-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1565C0;
    position: relative;
    z-index: 2;
}

.contributor-role {
    font-size: 13px;
    color: #546E7A;
    position: relative;
    z-index: 2;
}

.contributor-papers {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    color: #42A5F5;
    position: relative;
    z-index: 2;
}

/* ===== FOOTER / HORIZON ===== */
.footer {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, #E3F2FD 0%, #42A5F5 40%, #1565C0 100%);
    padding: 5rem 2rem 3rem;
    text-align: center;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.25), transparent);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 26px;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.footer-vision {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #FFFFFF;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-pills {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.flink-pill {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.flink-pill:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.footer-categories {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-cat {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .research-cards {
        grid-template-columns: 1fr;
    }

    .compare-panels {
        grid-template-columns: 1fr;
    }

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

    .hero-floating-panel {
        display: none;
    }

    .section-heading {
        font-size: 28px;
    }

    .hero-title-text,
    .hero-title-reflection {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    .track-pills {
        flex-direction: column;
        align-items: center;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .hero-title-text,
    .hero-title-reflection {
        font-size: 36px;
    }

    .section-heading {
        font-size: 24px;
    }

    .footer-categories {
        gap: 0.75rem;
    }
}
