/* ========================================
   MiMo-V2.5-ASR Release Page
   ======================================== */

@font-face {
    font-family: 'MiSans-Semibold';
    src: url('/font/MiSans-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

:root {
    --bg: #F9F6F3;
    --bg-block: #F3EEE8;
    --text: #1D0601;
    --text-body: #1D0601B2;
    --text-muted: #888;
    --accent: #FF6700;
    --font-serif: "PT Serif", Georgia, serif;
    --font-title: "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

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

/* ---- Site Nav ---- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 40px;
    background: rgba(250, 247, 245, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.site-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-nav-logo-img {
    width: 141px;
    height: 18px;
}

.site-nav-back {
    font-family: "MiSans-Semibold", "MiSans-Bold", "MiSans-Regular", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
}

.site-nav-back::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.5px;
    background: #000;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.site-nav-back:hover::after {
    transform: scaleX(1);
}

/* Article Container */
.article {
    max-width: 820px;
    margin: 0 auto;
    padding: 1.5rem 2rem 6rem;
}

/* ---- Hero ---- */
.hero {
    margin-bottom: 4rem;
}

.hero-date {
    display: block;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text);
    margin-bottom: 1rem;
}

.asr-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    display: inline-block;
    animation: text-entrance 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.3s both;
}

@keyframes text-entrance {
    from {
        opacity: 0;
        transform: translateY(8px);
        letter-spacing: 0.08em;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: -0.02em;
    }
}

.hero-subtitle {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-tagline {
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-title);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: all 0.2s;
}

.btn-chevron {
    font-size: 1.1em;
    line-height: 1;
}

.btn-filled {
    background: #1D0601;
    color: #fff;
    border: 1px solid #1D0601;
}

.btn-filled:hover {
    background: #3a1a10;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid #ccc;
}

.btn-outline:hover {
    border-color: #999;
}

/* ---- Section Divider ---- */
hr {
    border: none;
    border-top: 1px solid #e0d9d0;
    margin: 3rem 0;
}

strong {
    color: var(--text);
    font-weight: 700;
}

/* ---- Sections ---- */
.section {
    margin-bottom: 3.5rem;
}

h2 {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

h3:first-child {
    margin-top: 0;
}

h4 {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--accent);
}

ul, ol {
    margin: 0 0 1rem 1.5rem;
}

li {
    margin-bottom: 0.35rem;
}

li ul {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

/* ---- Feature List ---- */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-list li {
    background: var(--bg-block);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.feature-list li .feature-emoji {
    margin-right: 0.5rem;
}

.feature-list li strong {
    font-weight: 700;
}

/* ---- Benchmark Tables ---- */
.bench-table-wrap {
    margin: 1.5rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bench-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-block);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.5;
}

.bench-table th {
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.7rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e0d9d0;
    white-space: nowrap;
}

.bench-table th:first-child {
    text-align: left;
    min-width: 130px;
}

.bench-table td {
    padding: 0.6rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid rgba(224, 217, 208, 0.5);
    color: var(--text-body);
    font-variant-numeric: tabular-nums;
}

.bench-table td:first-child {
    text-align: left;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text);
    white-space: nowrap;
}

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

.bench-table tr.mimo-row {
    background: rgba(255, 103, 0, 0.06);
}

.bench-table tr.mimo-row td:first-child {
    color: var(--accent);
    font-weight: 700;
}

.bench-table td.best {
    color: var(--accent);
    font-weight: 700;
}

.bench-table td.na {
    color: var(--text-muted);
    font-style: italic;
}

/* ---- Scenario Demo Table ---- */
.scenario-table-wrap {
    margin: 1.25rem 0;
    overflow-x: auto;
}

.scenario-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-block);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.85rem;
}

.scenario-table th {
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e0d9d0;
}

.scenario-table td {
    padding: 0.85rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(224, 217, 208, 0.5);
    line-height: 1.65;
}

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

.scenario-table .col-scenario {
    width: 15%;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text);
    white-space: nowrap;
}

.scenario-table .col-audio {
    width: 20%;
    vertical-align: middle;
}

.scenario-table .col-result {
    width: 65%;
    color: var(--text-body);
    font-size: 0.85rem;
}

/* ---- Audio Demo (for inline demos) ---- */
.audio-demo-block {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.audio-demo {
    background: var(--bg-block);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.audio-demo-label {
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.audio-demo-text {
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.audio-demo .demo-audio {
    display: none;
}

/* ---- Mini Player ---- */
.mini-player {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.mini-player-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.mini-player-btn:hover {
    background: var(--accent);
    transform: scale(1.08);
}

.mini-player-btn:active {
    transform: scale(0.94);
}

.mini-player-btn svg {
    width: 12px;
    height: 12px;
}

.mini-player-btn .play-icon {
    margin-left: 1.5px;
}

.mini-player-track {
    flex: 1;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.15s ease;
}

.mini-player:hover .mini-player-track {
    height: 5px;
}

.mini-player-progress {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.mini-player-time {
    flex-shrink: 0;
    font-family: var(--font-title);
    font-size: 0.68rem;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ---- Next Steps ---- */
.next-steps {
    counter-reset: step;
}

.next-step {
    padding: 1.25rem 1.5rem;
    background: var(--bg-block);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.next-step-title {
    font-family: var(--font-title);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.next-step p {
    font-size: 0.88rem;
}

/* ---- Footer ---- */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    font-family: var(--font-title);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .site-nav {
        height: 56px;
        padding: 0 20px;
    }

    .article {
        padding: 1rem 1.25rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .bench-table {
        font-size: 0.75rem;
    }

    .bench-table th, .bench-table td {
        padding: 0.5rem 0.5rem;
    }

    .scenario-table .col-scenario {
        width: 20%;
    }
}
