/* ═══════════════════════════════════════════════
   EchoRisk-MICCAI 2026 — Main Stylesheet
   ═══════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
    --bg: #04080f;
    --surface: #080e1a;
    --card: #0d1626;
    --border: rgba(255, 255, 255, 0.07);
    --accent: #00c9a7;
    --accent2: #4f8eff;
    --accent3: #ff6b6b;
    --text: #e8edf5;
    --muted: #7a8ba5;
    --heading-font: 'DM Serif Display', serif;
    --body-font: 'DM Sans', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-title, .cta-title {
    font-family: var(--heading-font);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.stat-num, .task-metric, .award-value, .task-num,
.footer-bottom, .hero-badge, .section-label, .tl-date {
    font-family: var(--mono-font);
}

/* ── BACKGROUND ── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 201, 167, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 167, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: drift 20s ease-in-out infinite alternate;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 201, 167, 0.07);
    top: -150px;
    right: -150px;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(79, 142, 255, 0.06);
    bottom: 10%;
    left: -200px;
    animation-delay: -8s;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(255, 107, 107, 0.04);
    top: 40%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }
    to {
        transform: translate(40px, 60px) scale(1.05);
    }
}

/* ── AFFILIATION BAR ── */
.affiliation-bar {
    background: rgba(4, 8, 15, 0.95);
    border-bottom: 1px solid rgba(79,142,255,0.25);
    padding: 10px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--mono-font);
    font-size: 13px; /* was 11px */
    letter-spacing: 0.12em; /* was 0.1em */
    color: var(--text);
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 99;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 72px;
    background: rgba(4, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo-text {
    font-family: var(--mono-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
}

.logo-text span {
    color: var(--accent);
}

.logo-text, .nav-cta {
    white-space: nowrap;
}

nav img {
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

.nav-cta {
    background: var(--accent);
    color: #04080f !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.nav-cta:hover {
    background: #00e0bc;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.4);
    color: #000 !important;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.2s;
}

#nav-toggle:checked ~ ul.nav-links {
    display: flex;
}

/* ── HERO ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 80px; /* was 120px — increased to clear nav + bar */
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 201, 167, 0.1);
    border: 1px solid rgba(0, 201, 167, 0.3);
    color: var(--accent);
    font-family: var(--mono-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.hero h1 {
    font-family: var(--heading-font);
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-bottom: 8px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-family: var(--mono-font);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.hero-desc {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 48px;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 80px;
    animation: fadeUp 0.6s ease 0.4s both;
}

.hero-ecg-wrap {
    width: 100%;
    max-width: 900px;
    position: relative;
    animation: fadeUp 0.6s ease 0.5s both;
}

.ecg-svg {
    width: 100%;
    height: 80px;
    opacity: 0.6;
}

.ecg-line {
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    animation: drawECG 3s ease 1s forwards;
}

@keyframes drawECG {
    to {
        stroke-dashoffset: 0;
    }
}

/* ── BUTTONS ── */
.btn-primary {
    background: var(--accent);
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #00e0bc;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 201, 167, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

/* ── STATS STRIP ── */
.stats-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    background: var(--surface);
    padding: 36px 24px;
    text-align: center;
}

.stat-num {
    font-family: var(--heading-font);
    font-size: 42px;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-num.green {
    color: var(--accent);
}

.stat-num.blue {
    color: var(--accent2);
}

.stat-num.purple {
    color: #a78bfa;
}

.stat-num.orange {
    color: #fbbf24;
}

.stat-num.red {
    color: var(--accent3);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    font-family: var(--mono-font);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── SECTION COMMONS ── */
section {
    position: relative;
    z-index: 1;
    padding: 96px 48px;
}

.page-header {
    margin-top: 72px;
    padding: 64px 48px 24px;
    text-align: center;
}

.section-label {
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--heading-font);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.75;
    margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ── ABOUT ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 64px;
}

.about-text p {
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

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

.highlight-box {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    padding: 2px 0 2px 24px;
    margin: 24px 0;
    font-size: 15px;
    font-style: italic;
    color: var(--muted);
    line-height: 1.7;
}

.highlight-box strong {
    font-style: normal;
    font-weight: 500;
    color: var(--text);
}

.about-visual {
    position: relative;
}

.mini-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.mini-card:hover {
    border-color: rgba(0, 201, 167, 0.3);
}

.mini-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mini-tag {
    font-family: var(--mono-font);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.tag-green {
    background: rgba(0, 201, 167, 0.12);
    color: var(--accent);
}

.tag-blue {
    background: rgba(79, 142, 255, 0.12);
    color: var(--accent2);
}

.tag-red {
    background: rgba(255, 107, 107, 0.12);
    color: var(--accent3);
}

.mini-card-title {
    font-size: 14px;
    font-weight: 600;
}

.mini-card p {
    font-size: 13px;
    color: var(--muted);
}

/* ── CLINICAL ARC ── */
.clinical-arc {
    margin: 40px 0 0;
    padding: 20px 0 8px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── TASKS ── */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
    align-items: stretch;
}

.task-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
    cursor: default;
    display: flex;
    flex-direction: column;
}

.task-card:hover {
    transform: translateY(-4px);
}

.task-card-1:hover {
    border-color: rgba(0, 201, 167, 0.4);
}

.task-card-2:hover {
    border-color: rgba(79, 142, 255, 0.4);
}

.task-card-3:hover {
    border-color: rgba(255, 107, 107, 0.4);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.task-card-1::before {
    background: var(--accent);
}

.task-card-2::before {
    background: var(--accent2);
}

.task-card-3::before {
    background: var(--accent3);
}

.task-num {
    font-family: var(--heading-font);
    font-size: 64px;
    line-height: 1;
    opacity: 0.08;
    position: absolute;
    top: 20px;
    right: 24px;
}

.task-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.icon-green {
    background: rgba(0, 201, 167, 0.1);
}

.icon-blue {
    background: rgba(79, 142, 255, 0.1);
}

.icon-red {
    background: rgba(255, 107, 107, 0.1);
}

.task-title {
    font-family: var(--heading-font);
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.task-desc {
    flex: 1;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.task-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.metric-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.task-award {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.award-label {
    font-size: 12px;
    color: var(--muted);
}

.award-value {
    font-family: var(--mono-font);
    font-weight: 600;
    font-size: 14px;
}

.award-green {
    color: var(--accent);
}

.award-blue {
    color: var(--accent2);
}

.award-red {
    color: var(--accent3);
}

/* ── TASK EVAL BLOCKS ── */
.eval-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    font-family: var(--body-font);
}

.eval-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.eval-title svg {
    opacity: 0.7;
}

.eval-row {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.eval-row:last-child {
    margin-bottom: 0;
}

.eval-label {
    font-weight: 600;
    width: 130px;
    flex-shrink: 0;
}

.eval-value {
    color: rgba(255, 255, 255, 0.8);
}

.eval-teal .eval-label {
    color: var(--accent);
}

.eval-blue .eval-label {
    color: var(--accent2);
}

.eval-pink .eval-label {
    color: #f472b6;
}

/* ── DATASET ── */
.dataset-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 64px;
}

.data-vis {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
}

.data-vis-title {
    font-family: var(--mono-font);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 24px;
}

.split-bar {
    display: flex;
    height: 12px;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 12px;
}

.split-train {
    background: var(--accent);
    flex: 56;
}

.split-val {
    background: var(--accent2);
    flex: 14;
}

.split-test {
    background: var(--accent3);
    flex: 30;
}

.split-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.site-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px;
}

.site-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
}

.site-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.site-loc {
    color: var(--muted);
    font-size: 11px;
}

.data-features {
    list-style: none;
}

.data-features li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--muted);
}

.data-features li:last-child {
    border-bottom: none;
}

.data-features li::before {
    content: '→';
    color: var(--accent);
    flex-shrink: 0;
    font-family: var(--mono-font);
}

.data-features strong {
    color: var(--text);
}

/* ── DUA ── */
#dua p, #dua li, #dua blockquote {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ── TIMELINE ── */
.timeline-track {
    position: relative;
    padding-left: 32px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent2), var(--accent3));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.tl-date {
    font-family: var(--mono-font);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.tl-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.tl-desc {
    font-size: 14px;
    color: var(--muted);
}

/* ── ORGANISERS ── */
.org-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 64px;
}

.org-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.org-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.org-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--heading-font);
    font-size: 18px;
    color: #000;
    font-weight: bold;
}

.org-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.org-role {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 4px;
    font-family: var(--mono-font);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.org-inst {
    font-size: 12px;
    color: var(--muted);
}

.committee-heading {
    font-family: var(--heading-font);
    font-size: 22px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin: 56px 0 24px;
}

.org-grid.org-grid--2 {
    grid-template-columns:repeat(2, 1fr);
    margin-top: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.org-grid.org-grid--3 {
    grid-template-columns:repeat(3, 1fr);
    margin-top: 0;
}

.org-grid.org-grid--4 {
    grid-template-columns:repeat(4, 1fr);
    margin-top: 0;
}

.org-grid.org-grid--5 {
    grid-template-columns:repeat(5, 1fr);
    margin-top: 0;
}

.org-grid.org-grid--6 {
    grid-template-columns:repeat(6, 1fr);
    margin-top: 0;
}

.org-grid.org-grid--7 {
    grid-template-columns:repeat(7, 1fr);
    margin-top: 0;
}

.org-hover-teal:hover {
    border-color: rgba(0, 201, 167, 0.35);
    box-shadow: 0 8px 20px rgba(0, 201, 167, 0.07);
}

.org-hover-blue:hover {
    border-color: rgba(79, 142, 255, 0.35);
    box-shadow: 0 8px 20px rgba(79, 142, 255, 0.07);
}

.org-hover-pink:hover {
    border-color: rgba(244, 114, 182, 0.35);
    box-shadow: 0 8px 20px rgba(244, 114, 182, 0.07);
}

.org-hover-coral:hover {
    border-color: rgba(255, 107, 107, 0.35);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.07);
}

.org-hover-purple:hover {
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 8px 20px rgba(129, 140, 248, 0.07);
}

.org-hover-green:hover {
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: 0 8px 20px rgba(52, 211, 153, 0.07);
}

/* ── AWARDS ── */
.awards-table {
    margin-top: 48px;
    width: 100%;
    border-collapse: collapse;
}

.awards-table th {
    text-align: left;
    padding: 12px 20px;
    font-family: var(--mono-font);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.awards-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.place-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 700;
    font-size: 13px;
    margin-right: 8px;
}

.place-1 {
    background: #ffd700;
    color: #000;
}

.place-2 {
    background: #c0c0c0;
    color: #000;
}

.place-3 {
    background: #cd7f32;
    color: #000;
}

.check {
    color: var(--accent);
}

/* ── FAQ ── */
.faq-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.faq-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s;
}

.faq-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
    font-family: var(--heading-font);
    font-size: 16px;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.75;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.faq-answer strong {
    color: var(--text);
}

.faq-answer em {
    color: var(--text);
}

.faq-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 8px);
}

/* ── RULES ── */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.rule-item {
    display: flex;
    gap: 20px;
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, transform 0.2s;
}

.rule-item:hover {
    transform: translateY(-3px);
    border-color: rgba(0,201,167,0.35);
}

.rule-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: rgba(0,201,167,0.1);
    color: var(--accent);
    font-family: var(--mono-font);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.rule-item:hover .rule-number {
    background: var(--accent);
    color: #04080f;
}

.rule-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

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

/* ── CTA ── */
.cta-section {
    text-align: center;
    padding: 120px 48px;
    background: linear-gradient(to bottom, var(--bg), rgba(0, 201, 167, 0.04), var(--bg));
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--heading-font);
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 16px;
}

.cta-sub {
    color: var(--muted);
    font-size: 18px;
    max-width: 480px;
    margin: 0 auto 48px;
}

.synapse-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono-font);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    margin-top: 24px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.synapse-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

/* ── FOOTER ── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 48px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand-text {
    color: var(--muted);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* ── PARTNER LOGOS ── */
.partner-logos-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin: 64px auto 80px;
    max-width: 1200px;
    width: 100%;
    padding: 0 24px;
}

.partner-logos-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.logo-wrapper {
    position: relative;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    cursor: pointer;
    z-index: 5;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.logo-wrapper::after {
    content: attr(data-name);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 12px;
    background: var(--card);
    color: var(--accent);
    font-family: var(--mono-font);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 6px;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 201, 167, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.logo-wrapper:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.partner-logo-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    opacity: 0.85;
    transition: all 0.3s ease;
}

.logo-wrapper:hover .partner-logo-img {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px var(--accent));
}

/* ── HERO LOGO ── */
.hero-logo-container {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    animation: fadeInDown 0.8s ease-out;
}

.hero-main-logo {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 0 15px rgba(0, 201, 167, 0.25));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-main-logo:hover {
    transform: scale(1.08) rotate(-1deg);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — single consolidated block
   ═══════════════════════════════════════════════ */

/* Mid breakpoint: nav starts to stress, logos shrink */
@media (max-width: 1050px) {
    nav {
        position: relative;
        flex-direction: column !important;
        height: auto !important;
        padding: 12px 24px !important;
        gap: 12px;
    }

    nav img[alt="EchoRisk Logo"] {
        width: 64px;
        height: 64px;
    }

    nav img[alt="MICCAI 2026"] {
        height: 64px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
        width: 100%;
    }

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

    .nav-links li {
        margin-left: 0 !important;
    }

    .affiliation-bar {
        position: relative;
        top: auto;
        padding: 10px 24px;
        font-size: 11px;
        letter-spacing: 0.08em;
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }

    .hero {
        padding-top: 32px; /* no need to clear fixed bars — they're now in flow */
        margin-top: 0;
        min-height: auto;
    }

    .page-header {
        margin-top: 0;
        padding-top: 48px;
    }
}

/* Small breakpoint: single-column layout, hamburger */
@media (max-width: 900px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(4, 8, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 32px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
        z-index: 98;
    }

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

    .nav-links a {
        font-size: 16px;
        display: block;
        padding: 8px 0;
    }

    section {
        padding: 64px 24px;
    }

    .hero {
        padding: 32px 24px 48px;
        margin-top: 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(32px, 10vw, 56px);
    }

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

    .about-grid,
    .dataset-grid {
        grid-template-columns:1fr;
        gap: 40px;
    }

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

    .stats-strip {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .org-grid,
    .org-grid.org-grid--2,
    .org-grid.org-grid--3,
    .org-grid.org-grid--4,
    .org-grid.org-grid--5,
    .org-grid.org-grid--6,
    .org-grid.org-grid--7 {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .logo-wrapper {
        width: 140px;
        height: 60px;
    }

    .partner-logos-container {
        gap: 32px;
    }

    .logo-wrapper::after {
        display: none;
    }

    .rule-item {
    flex-direction: column;
    gap: 12px;
}
}

/* Very small screens */
@media (max-width: 600px) {
    nav img[alt="EchoRisk Logo"] {
        width: 48px;
        height: 48px;
    }

    nav img[alt="MICCAI 2026"] {
        display: none;
    }

    .hero h1 {
        font-size: clamp(28px, 12vw, 48px);
    }

    .hero-main-logo {
        height: 70px;
    }
}