@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
    --un-blue: #009EDB;
    --un-dark: #1A1A2E;
    --un-navy: #0D2137;
    --un-light: #F5F7FA;
    --un-white: #FFFFFF;
    --un-gold: #C8A84B;
    --un-gray: #6B7280;
    --un-border: #E2E8F0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--un-white);
    color: var(--un-dark);
    line-height: 1.6;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--un-navy);
    color: var(--un-white);
    font-size: 0.75rem;
    padding: 6px 0;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* ── NAVBAR ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--un-white);
    border-bottom: 3px solid var(--un-blue);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--un-dark);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--un-blue);
    border-bottom-color: var(--un-blue);
}

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, var(--un-navy) 0%, #0a3255 60%, #0d4a7a 100%);
    color: var(--un-white);
    padding: 100px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23009EDB' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-badge {
    display: inline-block;
    background: var(--un-blue);
    color: var(--un-white);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 2px;
    margin-bottom: 28px;
    position: relative;
}

.hero h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    max-width: 780px;
    margin: 0 auto 16px;
    position: relative;
}

.hero h1 span {
    color: var(--un-blue);
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-primary {
    background: var(--un-blue);
    color: var(--un-white);
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--un-blue);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    background: transparent;
    color: var(--un-blue);
}

.btn-outline {
    background: transparent;
    color: var(--un-white);
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--un-white);
    background: rgba(255, 255, 255, 0.1);
}

/* ── STATS BAR ── */
.stats-bar {
    background: var(--un-blue);
    color: var(--un-white);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    padding: 28px 48px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 160px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-top: 4px;
    display: block;
}

/* ── SECTIONS ── */
section {
    padding: 80px 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--un-blue);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--un-navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--un-gray);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 52px;
    font-weight: 300;
}

/* ── ABOUT ── */
.about {
    background: var(--un-light);
}

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

.about-text p {
    color: var(--un-gray);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.75;
}

.about-text p strong {
    color: var(--un-navy);
}

.about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-card {
    background: var(--un-white);
    border-top: 3px solid var(--un-blue);
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.about-card .card-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.about-card h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    color: var(--un-navy);
    margin-bottom: 6px;
}

.about-card p {
    font-size: 0.82rem;
    color: var(--un-gray);
    line-height: 1.5;
}

/* ── TIMELINE ── */
.timeline {
    position: relative;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: rgba(0, 158, 219, 0.3);
}

.tl-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 36px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -29px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--un-navy);
    border: 2px solid var(--un-blue);
    flex-shrink: 0;
    z-index: 1;
}

.tl-active .tl-dot {
    background: var(--un-blue);
    border-color: var(--un-white);
    box-shadow: 0 0 0 3px var(--un-blue);
}

.tl-content {
    flex: 1;
}

.tl-date {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--un-blue);
    display: block;
    margin-bottom: 4px;
}

.tl-content h4 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--un-white);
    margin-bottom: 6px;
}

.tl-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
}

.tl-active .tl-content h4 {
    color: var(--un-blue);
}

/* ── MEMBERS ── */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.member-card {
    background: var(--un-white);
    border: 1px solid var(--un-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.member-card:hover {
    border-color: var(--un-blue);
    box-shadow: 0 4px 16px rgba(0, 158, 219, 0.12);
    transform: translateY(-2px);
}

.member-flag {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.member-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.member-info strong {
    display: block;
    font-size: 0.88rem;
    color: var(--un-navy);
    font-weight: 700;
    margin-bottom: 4px;
}

.member-info>span:not(.member-badge) {
    font-size: 0.75rem;
    color: var(--un-gray);
    display: block;
    flex: 1;
}

.member-badge {
    font-size: 0.62rem;
    background: var(--un-blue);
    color: white;
    padding: 3px 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
    margin-top: 12px;
}

.member-badge.invited {
    background: var(--un-gold);
}

/* ── PROJECTS ── */
.projects {
    background: var(--un-navy);
    color: var(--un-white);
}

.projects .section-title {
    color: var(--un-white);
}

.projects .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--un-blue);
    padding: 28px;
    transition: var(--transition);
}

.project-card:hover {
    background: rgba(0, 158, 219, 0.1);
    border-left-color: var(--un-gold);
}

.project-number {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--un-blue);
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--un-white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ── FRAMEWORK ── */
.framework {
    background: var(--un-light);
}

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

.framework-item {
    background: var(--un-white);
    padding: 32px 28px;
    border-bottom: 3px solid var(--un-border);
    transition: var(--transition);
}

.framework-item:hover {
    border-bottom-color: var(--un-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.framework-item .fi-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 2.4rem;
    color: var(--un-blue);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 12px;
}

.framework-item h3 {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    color: var(--un-navy);
    margin-bottom: 10px;
}

.framework-item p {
    font-size: 0.85rem;
    color: var(--un-gray);
    line-height: 1.65;
}

/* ── CTA ── */
.cta {
    background: linear-gradient(135deg, var(--un-blue) 0%, #0077aa 100%);
    color: var(--un-white);
    text-align: center;
    padding: 80px 2rem;
}

.cta .section-title {
    color: var(--un-white);
    max-width: 600px;
    margin: 0 auto 16px;
}

.cta p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 36px;
    font-weight: 300;
}

/* ── FOOTER ── */
footer {
    background: var(--un-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 2rem 24px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-brand strong {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--un-white);
    display: block;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.83rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--un-blue);
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col ul a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--un-blue);
}

.footer-bottom {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    nav {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stat-item {
        padding: 20px 24px;
    }
}