/* ========================================
   MiMo-V2-Pro 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 (aligned with main site) ---- */
.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;
}

.pro-text,
.pro-text-inline {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
}

.pro-text {
    opacity: 0;
    display: inline-block;
}

.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 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;
}

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

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

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

p {
    margin-bottom: 1rem;
}

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

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

/* ---- Highlight Benchmark Cards ---- */
.highlight-benchmarks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.highlight-card {
    background: var(--bg-block);
    border-radius: 12px;
    padding: 1.5rem;
}

.highlight-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #bbb;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: color 0.15s;
}

.highlight-label:hover {
    color: #999;
}

.highlight-score {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.highlight-rank {
    font-family: var(--font-title);
    font-size: 0.72rem;
    color: #999;
    margin-bottom: 1rem;
}

.highlight-bar-track {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.highlight-bar-best,
.highlight-bar-mimo,
.highlight-bar-beaten {
    height: 18px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 6px;
}

.highlight-bar-best span,
.highlight-bar-mimo span,
.highlight-bar-beaten span {
    font-family: var(--font-title);
    font-size: 0.6rem;
    font-weight: 500;
    white-space: nowrap;
}

.highlight-bar-best {
    background: #e0d9d0;
}

.highlight-bar-best span {
    color: #999;
}

.highlight-bar-mimo {
    background: var(--accent);
}

.highlight-bar-mimo span {
    color: #fff;
}

.highlight-bar-beaten {
    background: #ece7e1;
}

.highlight-bar-beaten span {
    color: #bbb;
}

@media (max-width: 700px) {
    .highlight-benchmarks {
        grid-template-columns: 1fr;
    }
}

/* ---- Feedback Scroll ---- */
.feedback-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0 1rem;
    margin: 1rem 0;
}

.feedback-scroll img {
    flex-shrink: 0;
    height: 500px;
    width: auto;
    border-radius: 10px;
    border: 1.5px solid #e8e2db;
    scroll-snap-align: start;
}

.feedback-scroll::-webkit-scrollbar {
    height: 4px;
}

.feedback-scroll::-webkit-scrollbar-track {
    background: var(--bg-block);
    border-radius: 2px;
}

.feedback-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ---- Video ---- */
.section-video {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #e8e2db;
    display: block;
    background: var(--bg-block);
    position: relative;
    z-index: 1;
}

.video-wrap {
    position: relative;
    min-height: 200px;
    margin: 1.5rem 0 0.5rem;
}

.video-wrap::before {
    content: 'Loading...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: #bbb;
    pointer-events: none;
    z-index: 0;
}

.video-wrap.playing::before {
    display: none;
}

.video-caption {
    font-family: var(--font-title);
    font-size: 0.7rem;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ---- Images ---- */
.section > img {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid #e8e2db;
    margin: 1.5rem 0;
    display: block;
}

/* ---- Image Placeholders ---- */
.img-placeholder {
    background: var(--bg-block);
    border-radius: 12px;
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.8rem;
    color: #bbb;
    margin: 1.5rem 0;
}

/* ---- Pricing Table ---- */
.pricing-table {
    font-family: var(--font-title);
    font-size: 0.85rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e2db;
}

.pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 0.75rem 1.25rem;
}

.pricing-row + .pricing-row {
    border-top: 1px solid #e8e2db;
}

.pricing-header {
    background: var(--bg-block);
    font-weight: 600;
    color: var(--text);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pricing-table-sm {
    font-size: 0.78rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-table-sm .pricing-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

.pricing-table-sm .pricing-row span + span {
    border-left: 1px solid #e8e2db;
    padding-left: 1rem;
}

.pricing-row-highlight {
    color: var(--accent);
    font-weight: 500;
}

.pricing-note {
    font-family: var(--font-title);
    font-size: 0.65rem;
    color: #bbb;
    margin-top: -0.75rem;
}

.links-block {
    margin-top: 1.5rem;
    font-family: var(--font-title);
    font-size: 0.8rem;
    line-height: 2;
}

.links-block a {
    color: var(--accent);
    text-decoration: none;
}

.links-block a:hover {
    text-decoration: underline;
}

/* ---- Benchmark Block ---- */
.bench-block {
    background: var(--bg-block);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    font-family: var(--font-title);
    margin: 1.5rem 0;
}

.bench-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.62rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.bench-legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.bench-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.bench-legend-item.mimo .bench-legend-label {
    color: var(--accent);
    font-weight: 600;
}

.bench-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    grid-auto-flow: dense;
}

.bench-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bbb;
    padding: 0 0.5rem 0.5rem;
    border-bottom: 1px solid #e0d9d0;
}

.bench-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.5rem 0;
    min-width: 0;
}

.bench-bars-wrap {
    position: relative;
    width: 100%;
}

.bench-bars-wrap::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    border-bottom: 1px solid #e0d9d0;
}

.bench-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 140px;
    width: 100%;
    justify-content: center;
}

.bench-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 22px;
    height: 100%;
    justify-content: flex-end;
}

.bench-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    position: relative;
    cursor: pointer;
    transition: opacity 0.15s;
}

.bench-bar:hover {
    opacity: 0.8;
}

.bench-bar-logo {
    width: 12px;
    height: 12px;
    margin-top: 4px;
}

.bench-bar-logo.mimo-logo {
    filter: brightness(0) saturate(100%) invert(44%) sepia(89%) saturate(2000%) hue-rotate(4deg) brightness(102%) contrast(104%);
}

.bench-bar-score {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 500;
    color: inherit;
    margin-bottom: 2px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bench-bar-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #fff;
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}

.bench-bar:hover .bench-bar-tooltip {
    display: block;
}

.bench-cell-title {
    font-size: 0.72rem;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* ---- 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;
    }

    /* Benchmark: horizontal scroll on mobile */
    .bench-block {
        padding: 1.5rem 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bench-grid {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        min-width: 560px;
    }

    .bench-bars {
        height: 110px;
    }

    .bench-bar-score {
        font-size: 0.5rem;
    }

    .bench-cell-title {
        font-size: 0.62rem;
    }

    .bench-section-label {
        font-size: 0.6rem;
    }

    /* Highlight cards stack */
    .highlight-benchmarks {
        grid-template-columns: 1fr;
    }

    .highlight-score {
        font-size: 2rem;
    }

    /* Pricing table */
    .pricing-table-sm {
        max-width: 100%;
        font-size: 0.72rem;
    }

    .pricing-table-sm .pricing-row {
        padding: 0.6rem 0.75rem;
    }

    /* Feedback scroll */
    .feedback-scroll img {
        height: 360px;
    }
}
