/* ===== Google DeepMind Research Publication Style ===== */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Google+Sans+Text:wght@400;500;700&family=Roboto+Mono:wght@400;500&display=swap');

:root {
    /* DeepMind signature palette */
    --dm-navy: #0a0e27;
    --dm-navy-mid: #131740;
    --dm-blue: #4285f4;
    --dm-blue-dark: #1a73e8;
    --dm-blue-light: #e8f0fe;
    --dm-blue-subtle: #d2e3fc;
    --dm-teal: #00bcd4;
    --dm-teal-dark: #0097a7;
    --dm-green: #34a853;
    --dm-purple: #7c4dff;
    --dm-purple-soft: #b388ff;
    --dm-coral: #ff6f61;

    /* UI palette */
    --dm-text: #202124;
    --dm-text-secondary: #5f6368;
    --dm-text-tertiary: #9aa0a6;
    --dm-bg: #ffffff;
    --dm-bg-alt: #f8f9fa;
    --dm-bg-elevated: #ffffff;
    --dm-border: #dadce0;
    --dm-border-light: #e8eaed;
    --dm-surface: #f1f3f4;

    /* Shadows – Google Material 3 */
    --dm-shadow-sm: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    --dm-shadow-md: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
    --dm-shadow-lg: 0 4px 6px rgba(60,64,67,.3), 0 12px 24px 6px rgba(60,64,67,.15);

    /* Sizing */
    --dm-container: 1200px;
    --dm-content: 820px;
    --dm-radius: 12px;
    --dm-radius-lg: 20px;
    --dm-radius-xl: 28px;
    --dm-radius-pill: 100px;

    /* Motion – Material 3 easing */
    --dm-ease: cubic-bezier(0.2, 0, 0, 1);
    --dm-ease-out: cubic-bezier(0, 0, 0, 1);
    --dm-duration: 250ms;
    --dm-duration-long: 500ms;
}

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

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

body {
    font-family: 'Google Sans Text', 'Google Sans', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dm-text);
    background: var(--dm-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--dm-ease), transform 0.7s var(--dm-ease);
}

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

/* ===== Layout ===== */
.container {
    max-width: var(--dm-container);
    margin: 0 auto;
    padding: 0 48px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--dm-bg-alt);
}

.section-title {
    font-family: 'Google Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--dm-text);
    text-align: left;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--dm-blue), var(--dm-teal));
    border-radius: 2px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--dm-duration) var(--dm-ease),
                box-shadow var(--dm-duration) var(--dm-ease),
                backdrop-filter var(--dm-duration) var(--dm-ease);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.nav-container {
    max-width: var(--dm-container);
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color var(--dm-duration) var(--dm-ease);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--dm-blue), var(--dm-teal));
    border-radius: 5px;
    flex-shrink: 0;
}

.navbar.scrolled .nav-logo {
    color: var(--dm-text);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Google Sans Text', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--dm-radius-pill);
    transition: all var(--dm-duration) var(--dm-ease);
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .nav-links a {
    color: var(--dm-text-secondary);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--dm-blue-dark);
    background: var(--dm-blue-light);
}

/* ===== Hero – DeepMind Mesh Gradient ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 130px 0 110px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--dm-navy);
    z-index: -3;
}

/* Animated gradient orbs – signature DeepMind look */
.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.25) 0%, rgba(66, 133, 244, 0.05) 40%, transparent 70%);
    z-index: -1;
    animation: orbFloat1 20s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.2) 0%, rgba(0, 188, 212, 0.03) 40%, transparent 70%);
    z-index: -1;
    animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.15) 0%, transparent 70%);
    top: 30%;
    left: 50%;
    animation: orbFloat3 18s ease-in-out infinite;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.12) 0%, transparent 70%);
    top: 10%;
    right: 20%;
    animation: orbFloat1 22s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 111, 97, 0.08) 0%, transparent 70%);
    bottom: 20%;
    right: 10%;
    animation: orbFloat2 15s ease-in-out infinite;
}

/* Grid pattern overlay – subtle tech feel */
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(25px, -25px) scale(0.92); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
    text-align: center;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
}

/* Venue badge */
.venue-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(66, 133, 244, 0.14);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(66, 133, 244, 0.32);
    padding: 10px 28px;
    border-radius: var(--dm-radius-pill);
    font-family: 'Google Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: -16px;
    margin-bottom: 36px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.venue-badge i {
    color: var(--dm-teal);
    font-size: 0.95rem;
}

/* Title */
.hero-title {
    color: white;
    margin-bottom: 24px;
}

.title-accent {
    font-family: 'Google Sans', sans-serif;
    font-size: 3.75rem;
    font-weight: 500;
    display: block;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.08;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #b0bec5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    font-family: 'Google Sans Text', sans-serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Authors */
.authors {
    margin-bottom: 48px;
}

.author-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 16px;
    margin-bottom: 14px;
}

.author a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Google Sans Text', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: color var(--dm-duration) var(--dm-ease);
}

.author a:hover {
    color: var(--dm-teal);
}

.author sup {
    color: var(--dm-teal);
    font-weight: 500;
    font-size: 0.7rem;
    margin-left: 1px;
}

.affiliations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 24px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
    font-family: 'Google Sans Text', sans-serif;
}

.affiliations sup {
    color: rgba(0, 188, 212, 0.5);
    font-weight: 500;
}

.author-notes {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 28px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-family: 'Google Sans Text', sans-serif;
    line-height: 1.6;
}

.author-notes sup {
    color: rgba(0, 188, 212, 0.55);
    font-weight: 500;
    margin-right: 2px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--dm-radius-pill);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--dm-duration) var(--dm-ease);
    cursor: pointer;
    border: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--dm-blue);
    color: white;
}

.btn-primary:hover {
    background: #5a95f5;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ===== Highlights ===== */
.highlights {
    background: var(--dm-bg);
    padding: 80px 0;
    border-bottom: 1px solid var(--dm-border-light);
    position: relative;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.highlight-card {
    text-align: center;
    padding: 40px 28px;
    position: relative;
    transition: background var(--dm-duration) var(--dm-ease);
    border-radius: var(--dm-radius);
}

.highlight-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--dm-border-light);
}

.highlight-card:hover {
    background: var(--dm-bg-alt);
}

.highlight-icon {
    font-size: 1.25rem;
    margin-bottom: 16px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--dm-blue-light), #e0f7fa);
    color: var(--dm-blue-dark);
}

.highlight-number {
    font-family: 'Google Sans', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--dm-text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.highlight-text {
    font-size: 0.875rem;
    color: var(--dm-text-secondary);
    line-height: 1.55;
    max-width: 220px;
    margin: 0 auto;
}

/* ===== Abstract ===== */
.abstract-box {
    max-width: var(--dm-content);
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--dm-text-secondary);
}

.abstract-box p + p {
    margin-top: 24px;
}

.abstract-box strong {
    color: var(--dm-text);
    font-weight: 500;
}

/* Keywords */
.keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: var(--dm-content);
    margin: 40px auto 0;
}

.keyword {
    background: var(--dm-bg-alt);
    color: var(--dm-text-secondary);
    padding: 6px 18px;
    border-radius: var(--dm-radius-pill);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--dm-border-light);
    transition: all var(--dm-duration) var(--dm-ease);
    cursor: default;
}

.keyword:hover {
    background: var(--dm-blue-light);
    color: var(--dm-blue-dark);
    border-color: var(--dm-blue-subtle);
}

/* ===== Comparison / Motivation ===== */
.comparison-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}

.comparison-table {
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    overflow: hidden;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--dm-border-light);
}

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

.comparison-table thead th {
    background: var(--dm-bg-alt);
    color: var(--dm-text-secondary);
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.comparison-table thead th.ours {
    background: linear-gradient(135deg, var(--dm-blue), var(--dm-teal-dark));
    color: white;
}

.comparison-table td.ours {
    color: var(--dm-blue-dark);
    font-weight: 500;
}

.motivation-text {
    font-size: 1.0625rem;
    line-height: 1.85;
    color: var(--dm-text-secondary);
}

.motivation-text p + p {
    margin-top: 20px;
}

.motivation-text strong {
    color: var(--dm-text);
    font-weight: 500;
}

.motivation-text em {
    color: var(--dm-text);
    font-style: italic;
}

/* ===== Method ===== */
.method-figure {
    margin-bottom: 72px;
}

.method-figure img {
    width: 100%;
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: box-shadow var(--dm-duration) var(--dm-ease);
}

.method-figure img:hover {
    box-shadow: var(--dm-shadow-md);
}

.figure-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--dm-text-secondary);
    margin-top: 16px;
    line-height: 1.6;
}

.figure-caption strong {
    color: var(--dm-text);
    font-weight: 500;
}

/* Method steps */
.method-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 72px;
}

.step-card {
    display: flex;
    gap: 28px;
    padding: 36px;
    background: var(--dm-bg);
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: all var(--dm-duration) var(--dm-ease);
}

.step-card:hover {
    border-color: var(--dm-blue-subtle);
    box-shadow: var(--dm-shadow-sm);
    transform: translateY(-2px);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--dm-blue), var(--dm-teal));
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-content h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dm-text);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--dm-text-secondary);
    margin-bottom: 20px;
    line-height: 1.75;
}

/* Code blocks */
.code-block {
    background: #0f111a;
    border-radius: var(--dm-radius);
    padding: 24px;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
}

.code-block pre { margin: 0; }

.code-block code {
    font-family: 'Roboto Mono', 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #89ddff;
    line-height: 1.7;
}

/* Hypothesis box */
.hypothesis-box {
    background: linear-gradient(135deg, #fef7e0, #fff8e1);
    border-left: 3px solid #f9ab00;
    padding: 20px 24px;
    border-radius: 0 var(--dm-radius) var(--dm-radius) 0;
    font-size: 0.9375rem;
    color: #5d4037;
    line-height: 1.75;
}

/* Memory section */
.memory-section {
    margin-top: 72px;
}

.memory-section > h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 28px;
    color: var(--dm-text);
}

.memory-section > h3 i {
    color: var(--dm-blue);
    margin-right: 10px;
}

.memory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.attribution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.attribution-card {
    padding: 28px;
    background: var(--dm-bg);
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: box-shadow var(--dm-duration) var(--dm-ease);
}

.attribution-card:hover {
    box-shadow: var(--dm-shadow-sm);
}

.attribution-card h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.0625rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--dm-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.attribution-card h3 i {
    color: var(--dm-blue);
    font-size: 0.95rem;
}

.attribution-card .results-table {
    margin: 0;
    min-width: 0;
    width: 100%;
    table-layout: fixed;
    font-size: 0.875rem;
}

.attribution-card .results-table th,
.attribution-card .results-table td {
    padding: 10px 14px;
    word-break: break-word;
}

.attribution-card .results-table th:last-child,
.attribution-card .results-table td:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    width: 40%;
}

.attribution-card .results-table th:first-child,
.attribution-card .results-table td:first-child {
    text-align: left;
}

.memory-card {
    padding: 32px;
    background: var(--dm-bg);
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: all var(--dm-duration) var(--dm-ease);
}

.memory-card:hover {
    border-color: var(--dm-blue-subtle);
    box-shadow: var(--dm-shadow-sm);
    transform: translateY(-2px);
}

.memory-card h4 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--dm-text);
}

.memory-card p {
    font-size: 0.9375rem;
    color: var(--dm-text-secondary);
    line-height: 1.75;
}

/* ===== Results ===== */
.results-intro {
    text-align: left;
    max-width: var(--dm-content);
    margin: 0 0 60px 0;
    font-size: 1.0625rem;
    color: var(--dm-text-secondary);
    line-height: 1.85;
}

.results-figures {
    margin-bottom: 80px;
}

.result-fig-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 20px;
}

.result-fig img {
    width: 100%;
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: box-shadow var(--dm-duration) var(--dm-ease);
}

.result-fig img:hover {
    box-shadow: var(--dm-shadow-md);
}

.figure-caption-main {
    text-align: center;
    font-size: 0.875rem;
    color: var(--dm-text-secondary);
    max-width: 800px;
    margin: 12px auto 0;
    line-height: 1.65;
}

.figure-caption-main strong {
    color: var(--dm-text);
    font-weight: 500;
}

/* Results table */
.results-table-wrapper {
    margin-bottom: 80px;
}

.results-table-wrapper h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 24px;
    color: var(--dm-text);
}

.table-scroll {
    overflow-x: auto;
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    min-width: 700px;
}

.results-table th,
.results-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--dm-border-light);
}

.results-table thead th {
    background: var(--dm-bg-alt);
    color: var(--dm-text-secondary);
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--dm-border);
}

.mode-cell {
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    background: var(--dm-bg-alt);
    text-align: left !important;
    padding-left: 24px !important;
    color: var(--dm-text);
}

.method-default { color: var(--dm-text-tertiary); }
.method-bo { color: var(--dm-coral); font-weight: 500; }
.method-oss { color: var(--dm-purple); font-weight: 500; }
.method-ours { color: var(--dm-blue-dark); font-weight: 500; }

.best-row {
    background: linear-gradient(90deg, var(--dm-blue-light), #e0f7fa);
}

.best-row td {
    border-bottom: 1px solid var(--dm-blue-subtle);
}

.group-start td {
    border-top: 2px solid var(--dm-border);
}

/* C-rate */
.crate-section {
    margin-bottom: 80px;
}

.crate-section h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 24px;
    color: var(--dm-text);
}

.crate-figures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 16px;
}

.crate-fig img {
    width: 100%;
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: box-shadow var(--dm-duration) var(--dm-ease);
}

.crate-fig img:hover {
    box-shadow: var(--dm-shadow-md);
}

/* Convergence */
.convergence-section h3 {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 24px;
    color: var(--dm-text);
}

.convergence-figures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 16px;
}

.conv-fig img {
    width: 100%;
    border-radius: var(--dm-radius-lg);
    border: 1px solid var(--dm-border-light);
    transition: box-shadow var(--dm-duration) var(--dm-ease);
}

.conv-fig img:hover {
    box-shadow: var(--dm-shadow-md);
}

/* ===== Citation ===== */
.citation-box {
    max-width: var(--dm-content);
    margin: 0 auto;
    background: #0f111a;
    border-radius: var(--dm-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}

.citation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.citation-header span {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: var(--dm-radius-pill);
    font-family: 'Google Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--dm-duration) var(--dm-ease);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.bibtex-code {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.bibtex-code code {
    font-family: 'Roboto Mono', 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
    color: #cdd6f4;
    line-height: 1.7;
    white-space: pre;
}

/* ===== Footer ===== */
.footer {
    background: var(--dm-navy);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 48px 0;
    font-size: 0.875rem;
}

.footer strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-family: 'Google Sans', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color var(--dm-duration) var(--dm-ease);
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .nav-container { padding: 0 24px; }

    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-card::after { display: none !important; }
    .highlight-card { border-bottom: 1px solid var(--dm-border-light); }

    .comparison-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .result-fig-pair { grid-template-columns: 1fr; }
    .crate-figures { grid-template-columns: 1fr; }
    .convergence-figures { grid-template-columns: 1fr; }
    .memory-grid { grid-template-columns: 1fr; }
    .attribution-grid { grid-template-columns: 1fr; }

    .title-accent { font-size: 2.5rem; }
    .title-sub { font-size: 1.125rem; }
    .section { padding: 72px 0; }
    .section-title { font-size: 2rem; }

    .results-table { font-size: 0.875rem; min-width: 620px; }
    .results-table th,
    .results-table td { padding: 12px 14px; }
}

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

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

    .step-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .nav-links { display: none; }

    .hero {
        min-height: auto;
        padding: 100px 0 72px;
    }

    .venue-badge {
        font-size: 0.9375rem;
        padding: 9px 22px;
        margin-top: -8px;
        margin-bottom: 28px;
    }

    .title-accent { font-size: 2rem; letter-spacing: -0.01em; }
    .title-sub { font-size: 1rem; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.625rem; }
    .section-title::after { margin-bottom: 28px; }

    .author-list { gap: 6px 14px; font-size: 0.875rem; }
    .affiliations { gap: 4px 16px; font-size: 0.75rem; }
    .author-notes { font-size: 0.7rem; gap: 4px 16px; }

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

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .abstract-box,
    .motivation-text,
    .results-intro { padding: 24px; }

    .abstract-box p { font-size: 0.95rem; }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-content h3 { font-size: 1.0625rem; }

    .code-block,
    .hypothesis-box {
        font-size: 0.8rem;
        padding: 16px;
    }

    .code-block pre { white-space: pre-wrap; word-break: break-word; }

    .memory-card,
    .attribution-card { padding: 22px; }

    .results-table { font-size: 0.8125rem; min-width: 560px; }
    .results-table th,
    .results-table td { padding: 10px 12px; }
    .mode-cell { padding-left: 14px !important; }

    .attribution-card .results-table { min-width: 0; }
    .attribution-card .results-table th,
    .attribution-card .results-table td { padding: 9px 10px; }

    .citation-header { padding: 12px 16px; }
    .bibtex-code { padding: 18px; }
    .bibtex-code code { font-size: 0.75rem; white-space: pre-wrap; word-break: break-word; }

    .figure-caption,
    .figure-caption-main { font-size: 0.8125rem; }

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

@media (max-width: 380px) {
    .title-accent { font-size: 1.75rem; }
    .title-sub { font-size: 0.9375rem; }
    .venue-badge { font-size: 0.875rem; padding: 8px 18px; }
    .section-title { font-size: 1.5rem; }
}
