:root {
    --bg: #000000;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.045);
    --surface-3: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --soft: rgba(255, 255, 255, 0.44);
    --max-width: 1380px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    overscroll-behavior: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ═══════════════════════════════════════
   ASCII canvas & ambient background
   ═══════════════════════════════════════ */

/* ASCII canvas styles moved to ambient.css */

.ambient-bg {
    display: none !important;
}

@keyframes ambientShift {
    0% { transform: translate3d(-2%,0,0) scale(1); background-position: 0% 0%, 100% 0%; }
    50% { transform: translate3d(2%,-2%,0) scale(1.05); background-position: 18% 12%, 82% 18%; }
    100% { transform: translate3d(0,2%,0) scale(1.03); background-position: 10% 20%, 90% 8%; }
}

.page-noise {
    display: none !important;
}

/* ═══════════════════════════════════════
   Layout
   ═══════════════════════════════════════ */

.shell {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

/* ═══════════════════════════════════════
   Top bar
   ═══════════════════════════════════════ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: none;
    overflow: visible;
    isolation: isolate;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.topbar::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 120px;
    background: rgba(0, 0, 0, 0.46);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.96) 50%, rgba(0,0,0,0.58) 75%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.96) 50%, rgba(0,0,0,0.58) 75%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.topbar::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -28px;
    width: min(980px, 92vw);
    height: 42px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018), transparent);
    filter: blur(18px);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}

.topbar-inner {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.brand-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--muted);
}

.brand-line strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.brand-sep {
    color: rgba(255, 255, 255, 0.28);
}

.topnav {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

.topnav a {
    transition: color 0.18s;
    cursor: pointer;
}

.topnav a:hover {
    color: #fff;
}

/* ═══════════════════════════════════════
   Shared button / link styles
   ═══════════════════════════════════════ */

.top-link,
.hero-link,
.hero-primary,
.news-link,
.tag-chip,
.toolbar-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    transition: 0.22s ease;
}

.top-link,
.news-link,
.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
}

.top-link:hover,
.hero-link:hover,
.hero-primary:hover,
.news-link:hover,
.tag-chip:hover,
.toolbar-btn:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.065);
}

/* ═══════════════════════════════════════
   Hero section (models grid)
   ═══════════════════════════════════════ */

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 56px 0 32px;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(560px, 1.12fr) 1px minmax(0, 0.88fr);
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-v-sep {
    width: 1px;
    height: 100%;
    min-height: 480px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0.15) 80%, transparent);
    position: relative;
}

.hero-copy {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 34px 20px 0;
    transform: translate3d(0, -12px, 0);
    backface-visibility: hidden;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin: 0;
    max-width: 520px;
    font-size: clamp(52px, 5.5vw, 78px);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.hero-title .hl {
    display: block;
    color: #fff;
    white-space: nowrap;
}

.hero-title .hl-sub {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

#dynamic-model {
    color: #ffffff;
    position: relative;
    display: inline-block;
    min-height: 1em;
    vertical-align: bottom;
    white-space: nowrap;
}

#dynamic-model::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 15%;
    height: 70%;
    width: 3px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0.6;
}


.hero-bottom {
    margin-top: 42px;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 620px;
}

.hero-links {
    display: grid;
    grid-template-columns: auto;
    gap: 12px;
    justify-content: start;
}

.hero-link,
.hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.hero-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    font-weight: 600;
    align-self: center;
}

.hero-primary:hover {
    background: #f0f0f0;
}

/* ═══════════════════════════════════════
   Landing hero
   ═══════════════════════════════════════ */

.landing-hero {
    min-height: calc(100vh - 72px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 0 8px;
    overflow: visible;
}

.landing-hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 56%;
    width: min(2600px, 230vw);
    height: min(1700px, 170vh);
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08), transparent 20%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06), transparent 62%);
    filter: blur(320px);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

.landing-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 61%;
    width: min(1660px, 146vw);
    height: min(900px, 94vw);
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.68) 28%, rgba(0, 0, 0, 0.38) 56%, transparent 82%);
    filter: blur(92px);
    opacity: 1;
    pointer-events: none;
}

.landing-dark-plate {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 66%;
    width: min(1820px, 158vw);
    height: min(650px, 66vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.58) 34%, rgba(0, 0, 0, 0.24) 62%, transparent 86%);
    filter: blur(88px);
    pointer-events: none;
}

.landing-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: calc(100vh - 82px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
    transform: translateY(20px);
}

.landing-slide {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing-title {
    margin: -40px 0 0;
    width: min(1120px, 96vw);
    min-height: 1.82em;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.038em;
    font-weight: 800;
    color: #ffffff;
    transform: translate3d(0, -14px, 0);
    backface-visibility: hidden;
    contain: paint;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.landing-title span {
    color: #ffffff;
    font-weight: 800;
}

.landing-title .title-line {
    display: block;
    white-space: nowrap;
}

.landing-title .title-break {
    display: block;
    white-space: nowrap;
}

.landing-subtitle {
    position: relative;
    z-index: 12;
    max-width: 720px;
    margin: 26px auto 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.landing-cta {
    position: relative;
    z-index: 12;
    margin-top: 22px;
    min-height: 52px;
    padding: 0 34px;
    border-radius: 10px;
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 18px 54px rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.landing-cta:hover {
    background: #f2f2f2;
    transform: translateY(-2px);
    box-shadow: 0 22px 70px rgba(255, 255, 255, 0.2);
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ═══════════════════════════════════════
   Device showcase (macbook + iphone)
   ═══════════════════════════════════════ */

.devices-showcase {
    position: relative;
    width: min(1180px, 98vw);
    margin-top: -12px;
    margin-bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(8px, 1.1vw, 18px);
    isolation: isolate;
    transform: translateX(-5%);
}

.macbook-showcase {
    position: relative;
    width: min(860px, 70vw);
    flex: 0 0 auto;
    transform: translateY(-18px);
    filter:
        drop-shadow(0 18px 34px rgba(0, 0, 0, 0.92))
        drop-shadow(0 54px 120px rgba(0, 0, 0, 0.92))
        drop-shadow(0 0 54px rgba(0, 0, 0, 0.72));
}

.macbook-showcase::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: -1%;
    right: -27%;
    top: 2%;
    bottom: -7%;
    border-radius: 42px;
    background:
        radial-gradient(ellipse at 78% 18%, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.5) 34%, transparent 68%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 38%, transparent 72%),
        radial-gradient(ellipse at 50% 86%, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.64) 34%, transparent 68%);
    filter: blur(38px);
    opacity: 1;
    pointer-events: none;
    transform: translateX(3%);
}

.macbook-showcase::after {
    content: "";
    position: absolute;
    z-index: 5;
    left: 2.5%;
    right: 2.5%;
    bottom: 2.2%;
    height: 12%;
    background:
        radial-gradient(ellipse at 12% 100%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.34) 34%, transparent 68%),
        radial-gradient(ellipse at 88% 100%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.34) 34%, transparent 68%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.62) 100%);
    border-radius: 0 0 28px 28px;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.macbook-img {
    position: relative;
    z-index: 3;
    width: 100%;
    display: block;
    pointer-events: none;
    filter: brightness(0.58) saturate(0.62) contrast(1.18) hue-rotate(-4deg);
}

.macbook-screen-link {
    position: absolute;
    z-index: 2;
    left: 10.1%;
    top: 10.6%;
    width: 79.8%;
    height: 79.5%;
    overflow: hidden;
    border-radius: 6px 6px 2px 2px;
    background: #030303;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.75),
        inset 0 0 34px rgba(0, 0, 0, 0.7);
    transform: translateZ(0);
}

.chat-preview-frame {
    width: 250%;
    height: 250%;
    border: 0;
    display: block;
    background: #030303;
    transform: scale(0.4);
    transform-origin: top left;
    pointer-events: none;
}

.macbook-screen-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
    background: #030303;
}

.macbook-screen-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
    transform: scaleX(0.99);
}

.macbook-screen-video video.active {
    opacity: 1;
}

.iphone-showcase {
    position: relative;
    z-index: 6;
    width: min(285px, 22vw);
    aspect-ratio: 301 / 590;
    flex: 0 0 auto;
    transform: translateY(0);
    transform-origin: center;
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.78));
}

.iphone-screen-link {
    position: absolute;
    z-index: 1;
    left: 7.6%;
    top: 4.2%;
    width: 84.8%;
    height: 91.8%;
    overflow: hidden;
    border-radius: 12.5% / 6.5%;
    background: #050505;
    transform: translateZ(0);
    clip-path: inset(0 round 12.5% 12.5% 12.5% 12.5%);
}

.iphone-chat-preview {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #050505;
    pointer-events: none;
    border-radius: inherit;
}

.iphone-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    object-fit: contain;
    filter: brightness(0.28) saturate(0.44) contrast(1.36) hue-rotate(-5deg);
}

/* ═══════════════════════════════════════
   Models panel
   ═══════════════════════════════════════ */

.models-panel,
.news-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.models-panel-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.models-panel {
    width: 100%;
    max-width: 640px;
    border-radius: 10px;
    overflow: hidden;
}

.models-window-titlebar {
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.models-window-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: 0.18s ease;
}

.models-window-title:hover {
    color: var(--text);
}

.models-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px 14px;
    gap: 16px;
}

.models-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 240px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: 0.2s;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.tag-row {
    display: flex;
    gap: 8px;
    padding: 0 18px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tag-row::-webkit-scrollbar {
    display: none;
}

.models-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text);
    margin: 0;
}

.models-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-chip {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--muted);
    font-family: var(--font-mono);
    cursor: pointer;
    transition: 0.2s;
}

.tag-chip.active {
    background: var(--surface-3);
    color: var(--text);
    border-color: var(--border-strong);
}

.models-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.models-list::-webkit-scrollbar { width: 6px; }
.models-list::-webkit-scrollbar-track { background: transparent; }
.models-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.models-list::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* ═══════════════════════════════════════
   Explorer cards (model list items)
   ═══════════════════════════════════════ */

.explorer-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border);
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    opacity: 1;
}

.explorer-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border-strong);
}

.explorer-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.explorer-info-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.explorer-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    padding: 5px;
}

.brand-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: .9;
}

img[src*="zhipu-white.svg"],
img[src*="gemma.svg"] {
    transform: scale(1.3);
}

.explorer-name-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    justify-content: center;
}

.model-title-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.2;
}

.model-badges-row {
    display: flex;
    gap: 5px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.model-badge {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 9px;
    color: var(--soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.explorer-token-info {
    text-align: right;
    flex-shrink: 0;
}

.score-value {
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-mono);
    line-height: 1;
    margin-bottom: 2px;
}

.score-label {
    font-size: 10px;
    color: var(--soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.explorer-card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explorer-footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--soft);
    font-family: var(--font-mono);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.meta-brand {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.9;
}

.meta-sep {
    opacity: 0.2;
}

.model-meta {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--soft);
}

/* ═══════════════════════════════════════
   Content sections & news
   ═══════════════════════════════════════ */

.content-section {
    padding: 32px 0 56px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.section-label,
.news-meta {
    font-family: "JetBrains Mono", Consolas, monospace;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-label {
    font-size: 11px;
    color: var(--soft);
    margin-bottom: 4px;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.news-link {
    white-space: nowrap;
    align-self: center;
}

/* ═══════════════════════════════════════
   Featured models
   ═══════════════════════════════════════ */

.featured-models {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-models-inner {
    width: 100%;
}

.featured-models-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
}

.featured-models-title {
    margin: 0;
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1;
    letter-spacing: -0.045em;
}

.featured-models-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.featured-models-link {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.featured-models-link:hover {
    color: #ffffff;
}

.featured-models-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.featured-model-card {
    min-height: 146px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: flex-start;
    position: relative;
    transition: 0.2s;
}

.featured-model-card:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.featured-model-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.featured-model-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    flex: 0 0 auto;
}

.featured-model-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 0.9;
    display: block;
}

.featured-model-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.featured-model-provider {
    color: var(--soft);
    font-size: 13px;
}

.featured-model-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.featured-stat-label {
    color: var(--soft);
    font-size: 13px;
    margin-bottom: 3px;
}

.featured-stat-value {
    font-size: 15px;
    font-weight: 800;
}

.featured-trend {
    text-align: right;
}

.featured-trend .featured-stat-value {
    color: #8effb4;
}

/* ═══════════════════════════════════════
   Sunset divider
   ═══════════════════════════════════════ */

.sunset-divider {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 300px;
    margin-top: -100px;
    pointer-events: none;
    overflow: visible;
}

/* Large blurred ellipse — fades content into black like the hero dark plate */
.sunset-divider::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 160%;
    height: 500px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 100% 70% at 50% 100%,
        #000000 0%,
        rgba(0,0,0,0.92) 25%,
        rgba(0,0,0,0.6) 45%,
        rgba(0,0,0,0.25) 65%,
        transparent 85%
    );
    filter: blur(40px);
}

/* Second layer for extra density at the bottom */
.sunset-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 140%;
    height: 200px;
    transform: translateX(-50%);
    background: radial-gradient(
        ellipse 100% 100% at 50% 100%,
        #000000 0%,
        rgba(0,0,0,0.95) 40%,
        rgba(0,0,0,0.5) 65%,
        transparent 90%
    );
    filter: blur(20px);
}

.sunset-divider svg {
    display: none;
}

.after-sunset {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #000000;
}

/* ═══════════════════════════════════════
   Demo videos grid
   ═══════════════════════════════════════ */

.demo-videos {
    padding-top: 48px;
    padding-bottom: 28px;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin: 48px 0;
    padding: 0 6%;
}

.demo-cell {
    overflow: hidden;
    background: #0a0a0a;
}

.demo-cell-vertical {
    grid-row: span 2;
}

.demo-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-video-portrait {
    object-fit: cover;
}

.demo-promo {
    text-align: center;
    padding: 0 16px 32px;
}

.demo-promo-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.demo-promo-desc {
    margin: 0;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   Platform stats
   ═══════════════════════════════════════ */

.platform-stats {
    padding-top: 0;
    padding-bottom: 96px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
}

.stat-value {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

[data-model] {
    cursor: help;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

[data-model]:hover {
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════
   Model tooltip
   ═══════════════════════════════════════ */

.model-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    background: rgba(20, 20, 20, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 16px 20px;
    min-width: 300px;
    max-width: 380px;
    backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    display: flex;
    gap: 20px;
}

.model-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.model-tooltip-left {
    flex-shrink: 0;
    min-width: 100px;
}

.model-tooltip-name {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.15;
    margin-bottom: 3px;
}

.model-tooltip-brand {
    font-size: 12px;
    color: var(--muted);
}

.model-tooltip-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.model-tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    gap: 12px;
}

.model-tooltip-row-label {
    color: var(--soft);
}

.model-tooltip-row-value {
    font-weight: 500;
}

.model-tooltip-score {
    color: #10b981;
}

.model-tooltip-packages {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.model-tooltip-pkg {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.model-tooltip-pkg-price {
    color: var(--text);
    font-weight: 500;
}

/* ═══════════════════════════════════════
   News cards
   ═══════════════════════════════════════ */

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.news-card {
    border-radius: 24px;
    padding: 20px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 170px;
}

.news-visual {
    height: 120px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), transparent 28%),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.35), transparent 25%),
        linear-gradient(135deg, #212121 0%, #777777 50%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.news-visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-visual-icon svg {
    display: block;
}

.news-visual-icon::after {
    display: none;
}

.news-visual-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.news-visual-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    opacity: 0.9;
}

.news-visual-logo::after {
    display: none;
}

.news-title {
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}

.news-excerpt {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.news-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--soft);
}

/* ═══════════════════════════════════════
   Footer
   ═══════════════════════════════════════ */

.footer {
    padding: 24px 0 48px;
    color: var(--soft);
}

.footer-card {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 1180px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .models-panel {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .devices-showcase {
        width: min(1000px, 100vw);
        gap: clamp(6px, 1vw, 12px);
        transform: translateX(-3.4%);
    }

    .macbook-showcase {
        width: min(710px, 70vw);
    }

    .iphone-showcase {
        width: min(225px, 23vw);
        transform: translateY(0);
    }

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

    .featured-models-grid {
        grid-template-columns: 1fr;
    }

    .featured-models-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .demo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .demo-cell-vertical {
        grid-row: auto;
    }

    .demo-video-portrait {
        aspect-ratio: 16 / 9;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .news-visual {
        width: 100%;
    }

    .models-header,
    .model-top,
    .section-header,
    .footer-card {
        flex-direction: column;
    }

    .model-stats {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .shell,
    .topbar-inner {
        width: min(var(--max-width), calc(100% - 24px));
    }

    .topbar-inner {
        min-height: 68px;
    }

    .top-links {
        display: none;
    }

    .hero {
        padding: 28px 0 44px;
    }

    .landing-hero {
        padding: 40px 0 44px;
    }

    .hero-title {
        font-size: clamp(44px, 16vw, 72px);
        line-height: 1.02;
    }

    .landing-title {
        font-size: clamp(42px, 14vw, 68px);
    }

    .devices-showcase {
        width: min(760px, 110vw);
        margin-top: 2px;
        gap: clamp(4px, 1vw, 8px);
        transform: translateX(-2.4%);
    }

    .macbook-showcase {
        width: min(520px, 72vw);
        transform: translateY(-18px);
    }

    .iphone-showcase {
        width: min(145px, 30vw);
        transform: translateY(0);
    }

    .landing-cta {
        width: 100%;
        min-height: 58px;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .hero-links {
        grid-template-columns: 1fr;
    }

    .hero-primary,
    .hero-link,
    .news-link {
        width: 100%;
    }

    .models-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }
}
