* {
    font-family: 'Avenir Next Cyr', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

a {
    color: #7073aa;
    text-decoration: none;
}

body {
    background: black;
    position: relative;
    margin: 0;
    padding: 0;
    color: #ffffffbf;
}

p {
    position: relative;
    margin: 16px;
    font-size: 16px;
    font-weight: 300;
    text-align: justify;
}

p span {
    font-weight: 500;
}

.x-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.x-section-title {
    text-align: center;
    margin: 120px 0 32px;
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
}

.x-small-header {
    text-align: center;
    margin-top: 64px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #999;
}

.x-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 300;
}

#main {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 200px;
}

/* ── Links ─────────────────────────────── */
#links {
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#links div {
    margin: 4px 8px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#links a {
    height: 20px;
    padding: 8px 16px;
    color: #ffffffef;
    font-size: 16px;
    font-weight: 300;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#links a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

#links a::before {
    font-family: 'icomoon' !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-right: 8px;
}

#links #paper::before { content: "\e000"; font-size: 18px; }
#links #arxiv::before { content: "\e001"; font-size: 20px; }
#links #code::before  { content: "\e002"; font-size: 20px; }
#links #demo::before  { content: "\e005"; font-size: 20px; }

/* ── Feature Tabs ─────────────────────── */
.feature-container {
    max-width: 1000px;
    margin: 32px auto;
}

.feature-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-tab {
    aspect-ratio: 1 / 1;
    background-color: #1f1f1f;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #9f9f9f;
    padding: 10px;
    text-align: center;
}

.feature-tab:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
}

.feature-tab.active-blue   { border-color: #60a5fa; color: #60a5fa; background-color: rgba(96, 165, 250, 0.1); }
.feature-tab.active-green  { border-color: #4ade80; color: #4ade80; background-color: rgba(74, 222, 128, 0.1); }
.feature-tab.active-purple { border-color: #b7a5ff; color: #b7a5ff; background-color: rgba(167, 139, 250, 0.1); }

.feature-tab svg {
    width: 56px;
    height: 56px;
    margin-bottom: 8px;
    fill: currentColor;
}

.feature-tab span {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
    font-weight: bold;
}

.feature-panel {
    display: none;
    padding: 32px;
    animation: fadeIn 0.4s ease;
}

.feature-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Authors ──────────────────────────── */
.author-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 8px;
}

.author-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.author-link:hover {
    text-decoration: underline;
}

.affiliation-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* ── BibTeX ───────────────────────────── */
.bibtex-entry {
    margin: 32px auto;
    max-width: 900px;
    padding: 0 24px;
    color: #ffffffbf;
    font-family: consolas, monospace;
    white-space: pre;
    text-wrap: wrap;
    font-size: 15px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
}

.line {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0;
}

.key {
    font-family: consolas, monospace;
    text-align: right;
}

.value {
    font-family: consolas, monospace;
    word-break: break-word;
}

/* ── Image Slideshow ──────────────────── */
.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 24px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
}

.slideshow-container img {
    width: 100%;
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease;
}

.slideshow-container img.active {
    opacity: 1;
    position: relative;
}

.slideshow-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s;
}

.slideshow-dot.active {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

/* ── SVG Gallery ─────────────────────── */
.svg-gallery {
    position: relative;
    margin: 8px 0;
    padding: 0 40px;
}
.gallery-row { margin-bottom: 18px; }
.gallery-row-label {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-left: 44px;
    margin-bottom: 4px;
}
.gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-card {
    flex: 0 0 170px;
    background: #f5f5f0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.gallery-card-link {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    cursor: pointer;
}
.gallery-card-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.gallery-card-prompt {
    padding: 5px 8px 7px;
    font-size: 11px;
    color: #777;
    line-height: 1.35;
    text-align: center;
    background: #eeeee8;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-card-pair {
    flex: 0 0 400px;
    height: 200px;
    display: flex;
    gap: 0;
    background: none;
    box-shadow: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-card-pair:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.gallery-pair-item {
    flex: 1;
    position: relative;
    background: #f5f5f0;
    display: flex;
    flex-direction: column;
}
.gallery-pair-item:first-child {
    border-radius: 10px 0 0 10px;
    border-right: 2px solid rgba(255,255,255,0.15);
}
.gallery-pair-item:last-child {
    border-radius: 0 10px 10px 0;
}
.gallery-pair-label {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1;
}
.gallery-pair-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.gallery-pair-item a {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(20,20,20,0.85);
    color: #ddd;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}
.gallery-btn:hover {
    background: rgba(60,60,60,0.95);
    border-color: rgba(255,255,255,0.45);
    color: #fff;
}
.gallery-btn-prev { left: 2px; }
.gallery-btn-next { right: 2px; }

/* ── Token Compression Animation ──────── */
#compress-demo {
    max-width: 960px;
    margin: 16px auto 0;
}
.cd-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.cd-card {
    background: #111;
    border-radius: 12px;
    padding: 14px 16px;
    opacity: 0;
    animation: cdFadeIn 0.5s forwards;
}
@keyframes cdFadeIn { to { opacity: 1; } }
.cd-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.cd-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: #f5f5f0;
    object-fit: contain;
    flex-shrink: 0;
}
.cd-card-info { flex: 1; min-width: 0; }
.cd-name {
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cd-ratio {
    font-size: 24px;
    font-weight: 700;
    color: #b7a5ff;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 0.4s;
}
.cd-ratio.visible { opacity: 1; }
.cd-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.cd-col-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #666;
    margin-bottom: 4px;
}
.cd-bar-wrap {
    height: 5px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.cd-bar {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.2s cubic-bezier(.22,.61,.36,1);
}
.cd-bar-raw { background: #555; }
.cd-bar-hivg { background: linear-gradient(90deg, #818cf8, #c084fc); }
.cd-count {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.cd-count span { color: #ddd; font-weight: 600; font-size: 14px; }
.cd-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}
.cd-tok {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'SF Mono', Consolas, monospace;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(3px);
    animation: cdTokIn 0.12s forwards;
}
@keyframes cdTokIn {
    to { opacity: 1; transform: translateY(0); }
}
.cd-tok-tag   { background: #1a2744; color: #7dd3fc; }
.cd-tok-attr  { background: #1f1a2e; color: #c4b5fd; }
.cd-tok-val   { background: #1a2e1a; color: #86efac; }
.cd-tok-punct { background: #222;    color: #888; }
.cd-tok-space { background: #1a1a1a; color: #444; min-width: 6px; padding: 1px 2px !important; font-size: 0; }
.cd-tok-cmd   { background: #312e81; color: #a78bfa; }
.cd-tok-coord { background: #1e3a5f; color: #93c5fd; }
.cd-tok-seg   { background: #3b1764; color: #d8b4fe; }
@media (max-width: 768px) {
    .cd-pair { grid-template-columns: 1fr; }
}

/* ── Bottom bar ───────────────────────── */
#bottombar {
    position: absolute;
    bottom: 0;
    height: 80px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#bottombar .row {
    width: 90%;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#bottombar div {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

#bottombar div a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
}

#bottombar div a:hover {
    color: white;
}

#bottombar div span {
    font-weight: 700;
}

/* ── Scroll indicator ─────────────────── */
.scroll-indicator {
    position: fixed;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: #a1a1aa;
    cursor: pointer;
    z-index: 1000;
    animation: scroll-bounce 2s infinite;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ── Tokenizer Demo (dark theme) ─────── */
.tok-pipe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 32px auto 28px;
    max-width: 800px;
}

.tok-pipe-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 130px;
    transition: transform 0.2s;
}

.tok-pipe-step:hover { transform: translateY(-2px); }

.tok-pipe-node {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2.5px solid #333;
    background: #0c0c14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #71717a;
    transition: all 0.35s ease;
}

.tok-pipe-step.active .tok-pipe-node {
    border-color: var(--step-color, #60a5fa);
    color: var(--step-color, #60a5fa);
    box-shadow: 0 0 16px var(--step-color, #60a5fa)44;
}

.tok-pipe-lbl {
    margin-top: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    line-height: 1.2;
    transition: color 0.35s;
}

.tok-pipe-step.active .tok-pipe-lbl {
    color: var(--step-color, #60a5fa);
}

.tok-pipe-sub {
    font-size: 0.82rem;
    font-weight: 400;
    color: #555;
    margin-top: 2px;
    transition: color 0.35s;
}

.tok-pipe-step.active .tok-pipe-sub {
    color: var(--step-color, #60a5fa);
}

.tok-pipe-conn {
    width: 80px;
    height: 2.5px;
    background: #222;
    border-radius: 2px;
    flex-shrink: 0;
    transition: background 0.5s;
}

.tok-panel {
    background: #0c0c14;
    border: 1px solid #1e1e2e;
    border-radius: 12px;
    padding: 16px;
}

.tok-panel-title {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 12px;
}

.tok-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.tok-bar-lbl {
    width: 62px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    text-align: right;
}

.tok-bar-track {
    flex: 1;
    height: 8px;
    background: #18181b;
    border-radius: 4px;
    overflow: hidden;
}

.tok-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.tok-bar-num {
    width: 34px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #bbb;
    text-align: right;
}

.tok-bar-note {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #666;
    text-align: center;
}

/* Token stream card */
.tok-stream {
    background: #0c0c14;
    border: 1px solid #1e1e2e;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 340px;
}

.tok-stream-head {
    padding: 14px 18px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e1e2e;
}

.tok-stream-title {
    font-size: 1.08rem;
    font-weight: 600;
    color: #ddd;
}

.tok-stream-sub {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.tok-count-chip {
    min-width: 36px;
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s;
}

.tok-stream-info {
    padding: 12px 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #a1a1aa;
    background: #0a0a12;
    border-bottom: 1px solid #1e1e2e;
}

.tok-stream-info strong { color: #e4e4e7; }
.tok-stream-info code   { background: #1e1e2e; color: #d4d4d8; padding: 1px 5px; border-radius: 3px; font-size: 0.9rem; }

.tok-stream-body {
    flex: 1;
    padding: 52px 16px 14px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 5px;
}

.tok-stream-foot {
    padding: 10px 18px;
    font-size: 0.85rem;
    color: #71717a;
    border-top: 1px solid #1e1e2e;
    min-height: 18px;
    transition: color 0.3s;
}

.tok-sep {
    display: block;
    width: 100%;
    height: 0;
}

/* ── Token chips ──────────────────────── */
.dtok {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.6;
}

.dtok-anim {
    animation: chipIn 0.25s ease both;
}

@keyframes chipIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dtok-struct    { background: #172554; color: #93c5fd; border: 1px solid #1e3a5f; }
.dtok-attr      { background: #431407; color: #fdba74; border: 1px solid #5c2d0e; }
.dtok-cmd       { background: #2e1065; color: #c4b5fd; border: 1px solid #3b1a7e; }
.dtok-coord_abs { background: #052e16; color: #86efac; border: 1px solid #14532d; }
.dtok-coord_rel { background: #042f2e; color: #5eead4; border: 1px solid #134e4a; }
.dtok-bpe       { background: #1c1c1c; color: #a1a1aa; border: 1px solid #333; }
.dtok-bpe-frag  { background: #450a0a; color: #fca5a5; border: 1px dashed #7f1d1d; }

.dtok-segment {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 5px;
    font-family: 'SF Mono', 'Menlo', 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.6;
    background: #431407;
    color: #fdba74;
    border: 1px solid #7c2d12;
    position: relative;
    cursor: default;
}

.seg-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: #fb923c;
    color: #1c1917;
    padding: 0 5px;
    border-radius: 4px;
    line-height: 1.5;
}

.seg-tip {
    display: none;
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #18181b;
    padding: 4px 6px;
    border-radius: 5px;
    border: 1px solid #333;
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
}
.seg-tip .dtok {
    margin: 1px;
}

.dtok-segment:hover .seg-tip {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Token legend */
.tok-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 16px;
    margin-top: 16px;
    border-top: 1px solid #1e1e2e;
}

.tok-legend-lbl {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
    margin-right: 4px;
}

/* ── Tech Innovations ─────────────────── */
.ti-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 40px auto 32px;
    max-width: 820px;
    flex-wrap: wrap;
}

.ti-pipe-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
}

.ti-pipe-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.ti-pipe-icon svg {
    width: 26px;
    height: 26px;
}

.ti-pipe-label {
    font-size: 15px;
    font-weight: 500;
    color: #a1a1aa;
    text-align: center;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ti-pipe-arrow {
    font-size: 20px;
    color: #52525b;
    margin: 18px 6px 0;
}

.ti-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin: 24px 0;
    padding: 32px;
    background: #0c0c14;
    border: 1px solid #1e1e2e;
    border-radius: 16px;
}

.ti-card-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    min-height: 120px;
}

.ti-card-img img {
    max-height: 200px;
    object-fit: contain;
}

.ti-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ti-card-tag {
    display: inline-block;
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
}

.ti-card-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.ti-card-desc {
    font-size: 16px;
    font-weight: 300;
    color: #a1a1aa;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.ti-card-metrics {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.ti-metric {
    background: #111118;
    border-radius: 8px;
    padding: 12px 18px;
    text-align: center;
    flex: 1;
    border: 1px solid #1e1e2e;
}

.ti-metric-val {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.ti-metric-lbl {
    font-size: 13px;
    text-transform: uppercase;
    color: #71717a;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ── Responsive ───────────────────────── */
@media (max-width: 768px) {
    .feature-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
    .feature-panel {
        padding: 16px;
    }
    .tok-pipe { gap: 0; }
    .tok-pipe-conn { width: 40px; }
    .ti-card { grid-template-columns: 1fr; padding: 20px; }
    .ti-pipeline { gap: 4px; }
    .ti-pipe-arrow { margin: 0 4px; }
}

@media (max-width: 480px) {
    .feature-tabs {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
    }
    .feature-tab { aspect-ratio: auto; padding: 12px 8px; }
    .feature-tab svg { width: 36px; height: 36px; }
}
