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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background: #fff;
}

/* ─── Layout ─── */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 40px;
}

.container.narrow {
    max-width: 780px;
}

/* ─── Hero ─── */
.hero {
    text-align: center;
    padding: 120px 40px 100px;
    background: #fff;
}

.hero-overline {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
    color: #6e6e73;
    margin-bottom: 40px;
}

.hero-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.pill {
    display: inline-block;
    padding: 10px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1d1d1f;
    text-decoration: none;
    border: 1px solid #d2d2d7;
    border-radius: 980px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.pill:hover {
    background: #f5f5f7;
    border-color: #bbb;
}

.hero-authors {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6e6e73;
    margin-bottom: 4px;
}

.hero-affiliation {
    font-size: 0.8rem;
    font-weight: 400;
    color: #86868b;
}

/* ─── Sections ─── */
.section-dark {
    background: #f5f5f7;
    padding: 100px 40px;
}

.section-light {
    background: #fff;
    padding: 100px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #6e6e73;
    line-height: 1.55;
    max-width: 640px;
    margin: 0 auto;
}

.body-large {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.65;
    color: #424245;
    margin-bottom: 20px;
}

.body-large strong {
    font-weight: 600;
    color: #1d1d1f;
}

.container.narrow h2 {
    text-align: center;
    margin-bottom: 28px;
}

.container.narrow .body-large {
    text-align: center;
}

/* ─── Demo Grid ─── */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1120px;
    margin: 0 auto;
}

.demo-card {
    background: #f5f5f7;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.section-light .demo-card {
    background: #f5f5f7;
}

.demo-card:hover {
    transform: translateY(-2px);
}

.demo-card video {
    width: 100%;
    display: block;
    border-radius: 16px 16px 0 0;
}

.demo-info {
    padding: 16px 20px 20px;
}

.demo-prompt {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.45;
    margin-bottom: 6px;
    min-height: 2.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.demo-fps {
    font-size: 0.8rem;
    font-weight: 400;
    color: #86868b;
    font-variant-numeric: tabular-nums;
}

/* ─── Findings ─── */
.findings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.finding-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.3s ease;
}

.finding-card:hover {
    transform: translateY(-2px);
}

.finding-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 12px;
}

.finding-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.finding-card p {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6e6e73;
    line-height: 1.55;
}

/* ─── Citation ─── */
pre {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 24px 28px;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #424245;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ─── Footer ─── */
footer {
    text-align: center;
    padding: 48px 40px 32px;
    border-top: 1px solid #e8e8ed;
}

footer p {
    font-size: 0.8rem;
    color: #86868b;
}

/* ─── Fade-in animation ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero-tagline,
.hero-links,
.section-header,
.demo-card,
.finding-card {
    animation: fadeUp 0.7s ease both;
}

.hero-tagline     { animation-delay: 0.1s; }
.hero-links       { animation-delay: 0.2s; }

/* ─── Responsive ─── */
@media (max-width: 860px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-tagline { font-size: 1.2rem; }
    h2 { font-size: 2rem; }
    .demo-grid { grid-template-columns: 1fr; gap: 24px; }
    .findings-grid { grid-template-columns: 1fr; }
    .hero { padding: 80px 24px 64px; }
    .section-dark, .section-light { padding: 64px 24px; }
    .container { padding: 0 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-tagline { font-size: 1rem; }
    h2 { font-size: 1.6rem; }
    .pill { padding: 8px 20px; font-size: 0.8rem; }
}
