/* ==============================================================
   MobileFetalCLIP — Premium Dark Glassmorphism Design System
   ============================================================== */

/* ─── Design Tokens ─── */
:root {
    /* Background */
    --bg-base: #080e1a;
    --bg-dark: #0c1422;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);

    /* Accents */
    --accent-teal: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;
    --accent-green: #10b981;
    --accent-orange: #f97316;

    /* Glassmorphism */
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-h: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    --glass-shadow-h: 0 16px 60px rgba(0, 0, 0, 0.55);
    --blur: 20px;

    /* Text */
    --text-main: #f0f6ff;
    --text-sub: #c8d8f0;
    --text-muted: #6b84a8;
    --text-accent: #06b6d4;

    /* Typography */
    --font-body: 'Inter', system-ui, sans-serif;
    --font-head: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s var(--ease);
    --transition-slow: all 0.5s var(--ease);

    /* Spacing */
    --section-gap: 9rem;
    --card-padding: 2.25rem;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Max width */
    --max-w: 1120px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    line-height: 1.2;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

sup {
    font-size: 0.7em;
    vertical-align: super;
}

/* ─── Ambient Background ─── */
.ambient-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation: orbFloat 22s ease-in-out infinite alternate;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation: orbFloat 28s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 35s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 60px) scale(1.08);
    }
}

/* ─── Navigation ─── */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 14, 26, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(8, 14, 26, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-icon {
    color: var(--accent-teal);
    -webkit-text-fill-color: initial;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent-teal);
}

.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    border-top: 1px solid var(--glass-border);
    gap: 0.25rem;
}

.nav-mobile-menu.open {
    display: flex;
}

/* ─── Main Layout ─── */
main {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* ─── HERO ─── */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-visual {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img-wrapper {
    position: relative;
}

.hero-phone-img {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 80px rgba(6, 182, 212, 0.18),
        0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Badge Row */
.badge-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-head);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-venue {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-teal);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.badge-new {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.7rem;
}

/* Hero Title */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 2rem;
}

.title-line {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.title-accent {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-blue) 60%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.title-sub {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-sub);
}

/* Authors */
.authors {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    color: var(--text-sub);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.author {
    font-weight: 500;
}

.author-link {
    color: var(--accent-teal);
    transition: var(--transition);
}

.author-link:hover {
    color: var(--accent-blue);
}

.author-sep {
    color: var(--text-muted);
    margin: 0 0.2rem;
}

.affiliations {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.affiliations svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.925rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-teal);
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.btn-secondary:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-sub);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* ─── Glass Card ─── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: var(--card-padding);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: var(--glass-border-h);
    background: var(--bg-card-hover);
    box-shadow: var(--glass-shadow-h);
}

/* ─── METRICS ─── */
.metrics-section {
    margin-bottom: var(--section-gap);
}

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

.metric-card {
    text-align: center;
    padding: 2rem 1.25rem;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: var(--transition);
}

.metric-card:nth-child(1)::before {
    background: var(--accent-teal);
}

.metric-card:nth-child(2)::before {
    background: var(--accent-blue);
}

.metric-card:nth-child(3)::before {
    background: var(--accent-violet);
}

.metric-card:nth-child(4)::before {
    background: var(--accent-green);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.metric-icon-teal {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-teal);
}

.metric-icon-blue {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
}

.metric-icon-violet {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-violet);
}

.metric-icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}

.metric-value {
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.metric-delta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
}

/* ─── Content Sections ─── */
.content-section {
    margin-bottom: var(--section-gap);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-teal);
    border: 1px solid rgba(6, 182, 212, 0.18);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── ABSTRACT ─── */
.abstract-card p {
    color: var(--text-sub);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.abstract-card p:last-child {
    margin-bottom: 0;
}

.abstract-card strong {
    color: var(--text-main);
}

.abstract-card em {
    color: var(--accent-teal);
    font-style: normal;
}

.abstract-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.abs-icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
}

/* ─── CONTRIBUTIONS ─── */
.contrib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contrib-card {
    position: relative;
    overflow: hidden;
}

.contrib-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.contrib-icon {
    width: 52px;
    height: 52px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent-teal);
    transition: var(--transition);
}

.contrib-card:nth-child(2) .contrib-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.contrib-card:nth-child(3) .contrib-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-violet);
}

.contrib-card:hover .contrib-icon {
    background: rgba(6, 182, 212, 0.18);
    transform: scale(1.05);
}

.contrib-card:nth-child(2):hover .contrib-icon {
    background: rgba(59, 130, 246, 0.2);
}

.contrib-card:nth-child(3):hover .contrib-icon {
    background: rgba(139, 92, 246, 0.2);
}

.contrib-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.contrib-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.contrib-card p strong {
    color: var(--accent-green);
}

.contrib-card p em {
    color: var(--accent-teal);
    font-style: normal;
}

/* ─── METHOD ─── */
.method-problem-solution {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.method-ps-card {
    flex: 1;
}

.ps-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.problem-icon {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-orange);
}

.solution-icon {
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
}

.problem-card {
    border-color: rgba(249, 115, 22, 0.15);
}

.solution-card {
    border-color: rgba(16, 185, 129, 0.15);
}

.method-ps-card h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.method-ps-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.method-ps-card p strong {
    color: var(--text-main);
}

.method-ps-card p em {
    color: var(--accent-teal);
    font-style: normal;
}

.ps-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
}

/* Three Phases */
.phases-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.phase-card {
    flex: 1;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--glass-border);
    transition: var(--transition);
}

.phase-card:last-child {
    border-right: none;
}

.phase-card:hover {
    background: rgba(255, 255, 255, 0.025);
}

.phase-arrow {
    display: none;
    /* hide in row layout, border handles the visual sep */
}

.phase-num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.phase-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.phase-attract .phase-icon {
    color: var(--accent-teal);
}

.phase-repel .phase-icon {
    color: var(--accent-orange);
}

.phase-title {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.phase-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.phase-desc em {
    color: var(--text-sub);
    font-style: normal;
}

.phase-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.phase-badge-teal {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-teal);
}

.phase-badge-gray {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.phase-badge-orange {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-orange);
}

/* Method Figures */
.method-figure {
    margin-bottom: 3rem;
}

.figure-caption-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-sub);
    text-align: center;
    margin-bottom: 1.25rem;
}

.figure-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.figure-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.figure-caption {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.65;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.figure-caption strong {
    color: var(--text-sub);
}

/* ─── RESULTS ─── */
.results-comparison {
    margin-bottom: 2rem;
}

.comparison-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-wrapper {
    position: relative;
    padding-top: 1.5rem;
}

.teacher-baseline {
    position: absolute;
    top: 0;
    bottom: -1rem;
    width: 2px;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

.baseline-line {
    flex-grow: 1;
    border-left: 2px dashed rgba(8, 145, 178, 0.4);
    margin-top: 0.25rem;
}

.baseline-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--bg-card);
    padding: 0 4px;
}

.bar-comparison-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bar-model-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-sub);
}

.model-ours {
    color: var(--accent-teal) !important;
}

.model-teacher {
    color: var(--text-main) !important;
}

.bar-model-params {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.bar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    height: 36px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding-right: 0.75rem;
    justify-content: flex-end;
    width: 0%;
    transition: width 1.2s cubic-bezier(.25, .8, .25, 1);
    position: relative;
}

.bar-fill-ours {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.5) 0%, var(--accent-teal) 100%);
}

.bar-fill-teacher {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4) 0%, var(--accent-blue) 100%);
}

.bar-fill-base {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.6) 100%);
}

.bar-fill-other {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.12) 100%);
}

.bar-value {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* Results Tables */
.table-container {
    padding: var(--card-padding);
}

.table-scroll {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.results-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--glass-border);
    text-align: left;
    white-space: nowrap;
}

.results-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-sub);
    vertical-align: middle;
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.row-section td {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.5rem 1rem 0.3rem;
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid var(--glass-border);
}

.teacher-row td {
    color: var(--text-muted);
}

.highlight-row td {
    background: rgba(6, 182, 212, 0.05);
    color: var(--accent-teal);
}

.highlight-row td strong {
    color: var(--accent-teal);
}

.model-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.tag-teacher {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.tag-ours {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-teal);
}

.retention-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--accent-green);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.3rem;
}

.red-text {
    color: rgba(239, 68, 68, 0.8) !important;
}

/* ─── EFFICIENCY ─── */
.efficiency-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.efficiency-visual {
    display: flex;
    flex-direction: column;
    flex: 0 0 300px;
}

.device-card {
    padding: 1.75rem;
}

.device-header {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.device-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.device-stat {
    text-align: center;
}

.device-stat-val {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 800;
}

.device-stat-val.teal {
    color: var(--accent-teal);
}

.device-stat-val.muted {
    color: var(--text-muted);
}

.device-stat-key {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.device-stat-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.device-speedbar {
    margin-bottom: 1rem;
}

.device-speedbar-label {
    font-size: 0.75rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.speed-track {
    height: 22px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.speed-fill {
    height: 100%;
    border-radius: 100px;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.speed-ours {
    width: 4.3%;
    background: var(--accent-teal);
    color: var(--bg-base);
    min-width: fit-content;
}

.speed-teacher {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
}

.device-fps-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    line-height: 1.5;
}

.efficiency-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.eff-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-teal);
    border: 1px solid rgba(6, 182, 212, 0.18);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
}

/* ─── CITATION ─── */
.bibtex-card {
    padding: 0;
}

.bibtex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.bibtex-header-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.copy-btn.success {
    color: var(--accent-green);
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
}

.bibtex-wrapper {
    padding: 1.75rem;
    overflow-x: auto;
}

pre {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.7;
}

/* ─── FADE-UP ANIMATION ─── */
.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}


/* ─── FOOTER ─── */
footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-w);
    margin: 0 auto;
}

.footer-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.footer-logo svg {
    color: var(--accent-teal);
    -webkit-text-fill-color: initial;
}

.footer-inst {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: rgba(107, 132, 168, 0.6);
    font-size: 0.8rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .section-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-visual {
        flex: none;
        order: -1;
    }

    .hero-phone-img {
        max-width: 320px;
    }

    .authors {
        justify-content: center;
    }

    .affiliations {
        justify-content: center;
    }

    .button-group {
        justify-content: center;
    }

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

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

@media (max-width: 768px) {
    :root {
        --section-gap: 6rem;
    }

    .nav-links {
        display: none;
    }

    .nav-mobile-btn {
        display: flex;
    }

    .title-line {
        font-size: 2.8rem;
    }

    .title-accent {
        font-size: 1.8rem;
    }

    .title-sub {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .method-problem-solution {
        flex-direction: column;
        gap: 1rem;
    }

    .ps-arrow {
        transform: rotate(90deg);
        align-self: center;
    }

    .phases-row {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }

    .phase-card {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .phase-card:last-child {
        border-bottom: none;
    }

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

    .efficiency-layout {
        flex-direction: column;
    }

    .efficiency-visual {
        flex: none;
    }
}

@media (max-width: 480px) {
    .title-line {
        font-size: 2.2rem;
    }

    .title-accent {
        font-size: 1.5rem;
    }

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

    .badge-row {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .glow-orb {
        animation: none;
    }

    .metric-value {
        transition: none;
    }
}

/* ==============================================================
   Clinical Theme Refresh
   ============================================================== */

:root {
    --bg-base: #f4faf8;
    --bg-dark: #e7f2ef;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --accent-teal: #0f8a8d;
    --accent-blue: #1e6fa8;
    --accent-violet: #5d8ea8;
    --accent-green: #239764;
    --accent-orange: #d97706;
    --glass-border: rgba(19, 78, 74, 0.08);
    --glass-border-h: rgba(15, 138, 141, 0.16);
    --glass-shadow: 0 18px 42px rgba(13, 49, 60, 0.08);
    --glass-shadow-h: 0 24px 54px rgba(13, 49, 60, 0.12);
    --blur: 10px;
    --text-main: #173a44;
    --text-sub: #355a63;
    --text-muted: #4d6a73;
    --text-accent: #0f8a8d;
    --font-body: 'Noto Sans', system-ui, sans-serif;
    --font-head: 'Figtree', 'Noto Sans', sans-serif;
    --section-gap: 6rem;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --max-w: 1160px;
}

html {
    background: var(--bg-base);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 24%),
        radial-gradient(circle at 92% 18%, rgba(34, 197, 94, 0.08), transparent 20%),
        linear-gradient(180deg, #f8fcfb 0%, #f3faf7 36%, #edf6f3 100%);
    color: var(--text-main);
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body::before {
    background-image:
        linear-gradient(rgba(15, 138, 141, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 138, 141, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
}

body::after {
    background:
        radial-gradient(circle at 18% 12%, rgba(15, 138, 141, 0.10), transparent 22%),
        radial-gradient(circle at 82% 72%, rgba(30, 111, 168, 0.08), transparent 20%);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(15, 138, 141, 0.25);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid rgba(19, 78, 74, 0.12);
    box-shadow: 0 14px 28px rgba(13, 49, 60, 0.16);
    transform: translateY(-140%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.ambient-background {
    opacity: 0.8;
}

#particle-canvas {
    opacity: 0.06;
    mix-blend-mode: multiply;
}

.glow-orb {
    filter: blur(96px);
    opacity: 0.6;
}

.orb-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.24) 0%, transparent 68%);
    top: 5rem;
    left: -5rem;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, transparent 70%);
    bottom: 8%;
    right: -4rem;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 111, 168, 0.12) 0%, transparent 72%);
    top: 46%;
    left: 52%;
}

.glass-nav {
    background: rgba(248, 252, 251, 0.86);
    border-bottom: 1px solid rgba(19, 78, 74, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-nav.scrolled {
    background: rgba(248, 252, 251, 0.96);
    box-shadow: 0 12px 30px rgba(13, 49, 60, 0.08);
}

.nav-content {
    height: 72px;
}

.logo {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    color: var(--accent-blue);
    letter-spacing: -0.01em;
}

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

.nav-link {
    color: var(--text-sub);
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent-blue);
    background: rgba(8, 145, 178, 0.08);
    border-color: rgba(8, 145, 178, 0.12);
}

.nav-link.active {
    color: var(--accent-blue);
    background: rgba(8, 145, 178, 0.10);
}

.nav-mobile-btn {
    color: var(--text-sub);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(19, 78, 74, 0.10);
    border-radius: 12px;
}

.nav-mobile-menu {
    background: rgba(248, 252, 251, 0.98);
    padding-bottom: 1.1rem;
}

main {
    padding: 0 1.5rem 5rem;
}

.section-hero {
    position: relative;
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 2rem;
    padding-top: 7.75rem;
    padding-bottom: 4rem;
}

.section-hero::before {
    content: '';
    position: absolute;
    inset: 1rem 0 0;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(236, 246, 243, 0.76));
    border: 1px solid rgba(19, 78, 74, 0.08);
    box-shadow: 0 30px 80px rgba(13, 49, 60, 0.08);
    z-index: -1;
}

.hero-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 248, 0.90));
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: 30px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: 0 24px 60px rgba(13, 49, 60, 0.08);
}

.hero-title {
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.title-line {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 0.95;
    color: var(--text-main);
}

.title-accent {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--accent-blue);
}

.title-sub {
    font-size: clamp(1.05rem, 2.1vw, 1.55rem);
    color: var(--text-sub);
    max-width: 22ch;
}

.badge {
    background: #ffffff;
    color: var(--text-sub);
    border: 1px solid rgba(19, 78, 74, 0.10);
    box-shadow: 0 8px 20px rgba(13, 49, 60, 0.06);
}

.badge-venue {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-blue);
    border-color: rgba(8, 145, 178, 0.14);
}

.badge-new {
    background: rgba(34, 197, 94, 0.10);
    color: var(--accent-green);
    border-color: rgba(34, 197, 94, 0.16);
    font-size: 0.72rem;
}

.authors {
    color: var(--text-sub);
    gap: 0.35rem;
}

.author {
    color: var(--text-main);
}

.author-link {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-color: rgba(30, 111, 168, 0.28);
    text-underline-offset: 0.18em;
}

.author-link:hover {
    color: var(--accent-teal);
}

.author-sep {
    color: var(--text-muted);
}

.affiliations {
    color: var(--text-muted);
    max-width: 58ch;
}

.hero-intro {
    margin-top: 1.15rem;
    max-width: 60ch;
    font-size: 1rem;
    color: var(--text-sub);
}

.button-group {
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.btn {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0.88rem 1.2rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(13, 49, 60, 0.08);
}

.btn-primary {
    background: linear-gradient(135deg, #22a06b 0%, #0f8a8d 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1c8d5d 0%, #117b87 100%);
    box-shadow: 0 16px 30px rgba(15, 138, 141, 0.20);
}

.btn-secondary {
    background: #ffffff;
    color: var(--accent-blue);
    border-color: rgba(8, 145, 178, 0.16);
}

.btn-secondary:hover {
    background: rgba(8, 145, 178, 0.05);
    border-color: rgba(8, 145, 178, 0.22);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-sub);
    border-color: rgba(19, 78, 74, 0.12);
}

.btn-outline:hover {
    background: rgba(236, 246, 243, 0.95);
    border-color: rgba(19, 78, 74, 0.18);
    color: var(--text-main);
}

.btn-hf {
    background: linear-gradient(135deg, #fff7d6 0%, #ffecb4 100%);
    color: #5e4600;
    border-color: rgba(191, 142, 24, 0.26);
    box-shadow: 0 12px 26px rgba(191, 142, 24, 0.16);
}

.btn-hf:hover {
    background: linear-gradient(135deg, #fff0bf 0%, #ffe29a 100%);
    border-color: rgba(191, 142, 24, 0.34);
    color: #3f2f00;
    box-shadow: 0 16px 30px rgba(191, 142, 24, 0.20);
}

.btn-hf svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.btn-emoji {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transform: translateY(-0.02em);
}

.app-store-teaser {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 246, 0.98));
    border: 1px solid rgba(19, 78, 74, 0.1);
    box-shadow: 0 16px 34px rgba(13, 49, 60, 0.08);
}

.app-store-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}

.app-store-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.app-store-copy {
    min-width: 0;
}

.app-store-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.28rem;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--accent-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-store-copy strong {
    display: block;
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.app-store-copy p {
    margin-top: 0.22rem;
    color: #49627f;
    font-size: 0.9rem;
    line-height: 1.55;
}

.app-store-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.hero-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.hero-trust-card {
    min-height: 128px;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(19, 78, 74, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 249, 246, 0.96));
    box-shadow: 0 10px 24px rgba(13, 49, 60, 0.06);
}

.trust-card-icon {
    color: var(--accent-blue);
    margin-bottom: 0.75rem;
}

.hero-trust-label {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-teal);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-trust-card strong {
    display: block;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--text-main);
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-img-wrapper {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 92, 100, 0.06), rgba(30, 111, 168, 0.10));
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: 34px;
    padding: 1.25rem;
    box-shadow: 0 28px 70px rgba(13, 49, 60, 0.12);
    overflow: hidden;
}

.hero-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.18), transparent 36%),
        radial-gradient(circle at 82% 78%, rgba(34, 197, 94, 0.10), transparent 30%);
    pointer-events: none;
}

.hero-phone-img {
    max-width: 440px;
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(13, 49, 60, 0.18);
    position: relative;
    z-index: 1;
}

.hero-visual-caption {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(19, 78, 74, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text-sub);
    box-shadow: 0 12px 30px rgba(13, 49, 60, 0.08);
}

.hero-visual-caption p {
    font-size: 0.95rem;
}

.glass-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 253, 251, 0.94));
    border: 1px solid rgba(19, 78, 74, 0.08);
    box-shadow: 0 18px 40px rgba(13, 49, 60, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-card:hover {
    background: linear-gradient(180deg, #ffffff, rgba(248, 252, 250, 0.98));
    border-color: rgba(8, 145, 178, 0.16);
    box-shadow: 0 24px 48px rgba(13, 49, 60, 0.12);
    transform: translateY(-4px);
}

.metrics-section {
    margin-bottom: 5.5rem;
}

.metrics-grid {
    gap: 1rem;
}

.metric-card {
    text-align: left;
    padding: 1.5rem;
    border-radius: 24px;
}

.metric-card::before {
    height: 4px;
    opacity: 1;
}

.metric-icon {
    margin: 0 0 1rem;
    border: 1px solid rgba(19, 78, 74, 0.08);
}

.metric-icon-blue {
    background: rgba(30, 111, 168, 0.10);
    color: var(--accent-blue);
}

.metric-icon-violet {
    background: rgba(30, 111, 168, 0.08);
    color: var(--accent-blue);
}

.metric-icon-green {
    background: rgba(34, 197, 94, 0.10);
    color: var(--accent-green);
}

.metric-value {
    color: var(--accent-blue);
    font-size: clamp(2.2rem, 4.2vw, 2.8rem);
}

.metric-label {
    color: var(--text-main);
    font-size: 0.82rem;
}

.metric-delta {
    background: rgba(34, 197, 94, 0.10);
    color: var(--accent-green);
}

.content-section {
    margin-bottom: 6rem;
}

.section-header {
    text-align: left;
    max-width: 760px;
    margin: 0 0 2.25rem;
}

.section-tag {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-blue);
    border-color: rgba(8, 145, 178, 0.16);
}

.section-title {
    color: var(--text-main);
    font-size: clamp(2rem, 3.4vw, 3rem);
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--text-sub);
    max-width: 62ch;
}

.abstract-card p,
.contrib-card p,
.method-ps-card p,
.figure-caption,
.footer-inst {
    color: var(--text-sub);
}

.abstract-card strong,
.contrib-card strong,
.method-ps-card strong,
.figure-caption strong {
    color: var(--text-main);
}

.abstract-card em,
.contrib-card em,
.method-ps-card em,
.phase-desc em {
    color: var(--accent-blue);
    font-style: normal;
}

.abstract-icon-row {
    gap: 0.75rem;
}

.abs-icon-chip {
    background: rgba(8, 145, 178, 0.07);
    border: 1px solid rgba(8, 145, 178, 0.14);
    color: var(--text-sub);
}

.contrib-grid {
    gap: 1rem;
}

.contrib-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.contrib-card::after {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(8, 145, 178, 0.15), transparent);
}

.contrib-number {
    color: rgba(19, 78, 74, 0.4);
}

.contrib-icon {
    border: 1px solid rgba(19, 78, 74, 0.08);
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-teal);
}

.contrib-card:nth-child(2) .contrib-icon {
    background: rgba(30, 111, 168, 0.08);
    color: var(--accent-blue);
}

.contrib-card:nth-child(3) .contrib-icon {
    background: rgba(34, 197, 94, 0.10);
    color: var(--accent-green);
}

.method-problem-solution {
    gap: 1rem;
    align-items: stretch;
}

.method-ps-card {
    border-top: 4px solid rgba(19, 78, 74, 0.12);
}

.problem-card {
    border-top-color: #d97706;
}

.solution-card {
    border-top-color: var(--accent-green);
}

.ps-icon {
    border: 1px solid rgba(19, 78, 74, 0.08);
}

.problem-icon {
    background: rgba(217, 119, 6, 0.10);
    color: #b45309;
}

.solution-icon {
    background: rgba(34, 197, 94, 0.10);
    color: var(--accent-green);
}

.ps-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-blue);
    align-self: center;
    flex: 0 0 auto;
}

.phases-row {
    border: 1px solid rgba(19, 78, 74, 0.08);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
}

.phase-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 248, 0.92));
    min-height: 100%;
}

.phase-card:hover {
    transform: none;
    background: #ffffff;
}

.phase-arrow {
    color: var(--text-muted);
}

.phase-num {
    color: var(--accent-blue);
}

.phase-icon {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-teal);
}

.phase-attract .phase-icon {
    background: rgba(8, 145, 178, 0.08);
    color: var(--accent-teal);
}

.phase-repel .phase-icon {
    background: rgba(217, 119, 6, 0.10);
    color: #b45309;
}

.phase-title {
    color: var(--text-main);
}

.phase-desc {
    color: var(--text-sub);
}

.phase-badge {
    font-weight: 700;
    border: 1px solid transparent;
}

.phase-badge-teal {
    background: rgba(8, 145, 178, 0.10);
    color: var(--accent-teal);
    border-color: rgba(8, 145, 178, 0.14);
}

.phase-badge-gray {
    background: rgba(95, 127, 134, 0.12);
    color: var(--text-sub);
    border-color: rgba(95, 127, 134, 0.12);
}

.phase-badge-orange {
    background: rgba(217, 119, 6, 0.10);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.14);
}

.method-figure {
    margin-top: 2rem;
}

.figure-caption-title {
    color: var(--text-main);
}

.figure-container {
    background: #ffffff;
    border: 1px solid rgba(19, 78, 74, 0.08);
    box-shadow: 0 18px 40px rgba(13, 49, 60, 0.08);
}

.figure-img {
    border-radius: 20px;
}

.figure-caption {
    max-width: 72ch;
    margin-top: 1rem;
}

.results-comparison,
.table-container,
.device-card,
.bibtex-card {
    border-radius: 24px;
}

.comparison-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    font-size: 1.15rem;
}

.bar-comparison-list {
    gap: 1rem;
}

.bar-label {
    margin-bottom: 0.5rem;
}

.bar-model-name {
    color: var(--text-main);
    font-weight: 700;
}

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

.model-teacher {
    color: var(--accent-blue);
}

.bar-model-params {
    color: var(--text-muted);
}

.bar-track {
    height: 16px;
    background: rgba(19, 78, 74, 0.10);
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: none;
}

.bar-fill-ours {
    background: linear-gradient(90deg, #22a06b, #0f8a8d);
}

.bar-fill-teacher {
    background: linear-gradient(90deg, #3a7494, #6799b6);
}

.bar-fill-base {
    background: linear-gradient(90deg, #d97706, #e2a51a);
}

.bar-fill-other {
    background: linear-gradient(90deg, #89a4b0, #a6bcc5);
}

.bar-value {
    font-weight: 700;
}

.table-scroll {
    overflow-x: auto;
    border-radius: 18px;
}

.results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.results-table th {
    background: #e9f4f1;
    color: var(--text-main);
    border-bottom: 1px solid rgba(19, 78, 74, 0.12);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.results-table td {
    color: var(--text-sub);
    border-bottom: 1px solid rgba(19, 78, 74, 0.08);
}

.results-table tbody tr:hover {
    background: rgba(8, 145, 178, 0.04);
}

.row-section td {
    background: #e3f1ed;
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.76rem;
}

.teacher-row td {
    background: rgba(30, 111, 168, 0.04);
}

.highlight-row td {
    background: rgba(34, 197, 94, 0.08);
}

.highlight-row td strong {
    color: var(--text-main);
}

.model-tag {
    border-radius: 999px;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    margin-right: 0.45rem;
}

.tag-teacher {
    background: rgba(30, 111, 168, 0.10);
    color: var(--accent-blue);
}

.tag-ours {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
}

.retention-badge {
    background: rgba(8, 145, 178, 0.09);
    color: var(--accent-blue);
    border: 1px solid rgba(8, 145, 178, 0.14);
}

.efficiency-layout {
    gap: 1rem;
    align-items: stretch;
}

.efficiency-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.device-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 248, 0.92));
}

.device-header,
.device-stat-key,
.device-speedbar-label {
    color: var(--text-main);
}

.device-stat-val.teal {
    color: var(--accent-green);
}

.device-stat-val.muted,
.device-stat-divider {
    color: var(--text-muted);
}

.oom-badge {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
}

.speed-track {
    background: rgba(19, 78, 74, 0.10);
    border-radius: 999px;
}

.speed-track-teacher {
    background: rgba(30, 111, 168, 0.08);
}

.speed-fill {
    background: linear-gradient(90deg, #22a06b, #0f8a8d);
    color: #ffffff;
    border-radius: 999px;
}

.speed-teacher {
    background: linear-gradient(90deg, #69889a, #8aa6b4);
}

.device-fps-note,
.eff-chip {
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid rgba(8, 145, 178, 0.12);
    color: var(--text-sub);
    border-radius: 16px;
}

.device-fps-note {
    color: var(--accent-teal);
}

.efficiency-chips {
    gap: 0.75rem;
}

.red-text {
    color: #b45309 !important;
}

.bibtex-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 248, 0.95));
}

.bibtex-header {
    border-bottom: 1px solid rgba(19, 78, 74, 0.08);
}

.bibtex-header-info {
    color: var(--text-main);
}

.copy-btn {
    padding: 0.55rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(19, 78, 74, 0.10);
    background: #ffffff;
    color: var(--text-sub);
    box-shadow: 0 8px 18px rgba(13, 49, 60, 0.08);
}

.copy-btn:hover {
    background: #f7fbfa;
    border-color: rgba(8, 145, 178, 0.16);
    color: var(--text-main);
}

.copy-btn.success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-green);
    border-color: rgba(34, 197, 94, 0.16);
}

.bibtex-wrapper pre {
    padding: 1.25rem;
    border-radius: 18px;
    border: 1px solid rgba(19, 78, 74, 0.08);
    background: #edf7f4;
    color: #193a43;
    overflow-x: auto;
}

.bibtex-wrapper code {
    font-family: var(--font-mono);
    font-size: 0.92rem;
}

footer {
    background: linear-gradient(180deg, rgba(237, 246, 243, 0.85), rgba(230, 242, 238, 0.92));
    border-top: 1px solid rgba(19, 78, 74, 0.08);
    margin-top: 4rem;
}

.footer-logo {
    color: var(--accent-blue);
}

.footer-logo svg {
    color: var(--accent-green);
}

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

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

@media (max-width: 1100px) {
    main {
        padding: 0 1.25rem 4rem;
    }

    .section-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 3rem;
    }

    .hero-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-visual-caption {
        max-width: 540px;
    }

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

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-btn {
        display: flex;
    }

    .nav-mobile-menu.open {
        box-shadow: 0 20px 40px rgba(13, 49, 60, 0.10);
    }

    .section-hero::before {
        inset: 0.75rem 0 0;
    }

    .hero-content {
        padding: 1.35rem;
    }

    .hero-trust-grid,
    .metrics-grid,
    .contrib-grid {
        grid-template-columns: 1fr;
    }

    .hero-trust-card {
        min-height: auto;
    }

    .trust-card-icon {
        height: 24px;
        width: 24px;
        margin-bottom: 0.5rem;
    }

    .section-header {
        text-align: left;
    }

    .method-problem-solution,
    .efficiency-layout {
        flex-direction: column;
    }

    .ps-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
    }

    .phases-row {
        flex-direction: column;
    }

    .phase-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-content {
        padding: 0 1rem;
    }

    main {
        padding: 0 1rem 4rem;
    }

    .section-hero {
        padding-top: 6.5rem;
        gap: 1.25rem;
    }

    .title-line {
        font-size: 2.55rem;
    }

    .title-accent {
        font-size: 1.55rem;
    }

    .title-sub {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .app-store-teaser {
        grid-template-columns: auto 1fr;
        align-items: start;
    }

    .app-store-status {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .hero-img-wrapper {
        padding: 0.9rem;
        border-radius: 26px;
    }

    .hero-phone-img {
        border-radius: 22px;
    }

    .comparison-title {
        font-size: 1rem;
    }

    .results-table th,
    .results-table td {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {

    body::before,
    body::after,
    .glow-orb {
        animation: none !important;
    }

    .glass-card:hover,
    .btn:hover {
        transform: none;
    }
}
