/* AI Starter Hub · Local AI Lab
   A single, intentional design system. Keep the model/chat behavior in lab.js. */
:root{
  color-scheme:dark;
  --bg:#061120;--bg-2:#08182a;--panel:#0a1b2e;--panel-2:#0c2137;
  --line:#243b54;--line-bright:#315773;--ink:#f1f7ff;--muted:#9db1c8;
  --soft:#718aa6;--teal:#73f0dc;--cyan:#63dfff;--blue:#77a8ff;
  --violet:#a99aff;--shadow:0 22px 70px #0005;
  --radius:20px;--page:min(1480px,calc(100% - 48px));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{margin:0;background:radial-gradient(ellipse at 76% 0%,#10284a 0,transparent 35%),var(--bg);color:var(--ink);font:14px/1.65 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a{color:inherit}
button{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Header */
.topbar{height:76px;position:sticky;top:0;z-index:30;background:#061120e8;border-bottom:1px solid #b4d9ff12;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.topbar-inner{width:var(--page);height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:22px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}
.brand img{display:block;flex:none;filter:drop-shadow(0 0 12px #a5dcff26)}
.brand>span{display:flex;flex-direction:column;line-height:1.25}
.brand strong{font-size:14px;letter-spacing:.105em;font-weight:900}
.brand small{font-size:10px;color:#8fa4bd;margin-top:5px;letter-spacing:.03em}
.top-links{display:flex;align-items:center;gap:clamp(14px,2.1vw,30px);font-size:12px;color:#c2d1e2}
.top-links a{text-decoration:none;transition:color .2s}
.top-links a:hover{color:var(--teal)}
.top-links .back-link{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border:1px solid #8fa9c52b;border-radius:12px;background:#e5f0ff0d;color:#f5f8ff;font-weight:700}

/* Hero: background art is a separate asset; brand cards remain real HTML. */
.page-shell{width:var(--page);margin:0 auto}
.hero{position:relative;isolation:isolate;min-height:clamp(390px,35vw,500px);margin:14px 0 18px;padding:clamp(34px,4vw,58px) clamp(26px,3.4vw,52px);overflow:hidden;border:1px solid #2a4c681f;border-radius:26px;background:radial-gradient(ellipse at 78% 45%,#0b4876a0 0%,transparent 47%),radial-gradient(ellipse at 94% 10%,#45338d60 0%,transparent 39%),linear-gradient(112deg,#061120 0%,#07172a 52%,#08192e 100%)}
.hero:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#061120 0%,#061120f2 19%,#061120c9 38%,#06112050 55%,transparent 75%),linear-gradient(0deg,#06112070 0%,transparent 35%)}
.hero:after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px #d2f6ff08,inset 0 -50px 100px #06112030}
.hero-copy{position:relative;z-index:4;width:min(46%,620px);max-width:620px}
.eyebrow{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:10px;font-weight:850;letter-spacing:.12em;color:#9df6e8}
.eyebrow-dot{width:8px;height:8px;border-radius:50%;background:var(--teal);box-shadow:0 0 14px #67ffe4}
.eyebrow-cn{font-size:11px;letter-spacing:0;color:#b4c5d9;font-weight:550}
.hero h1{margin:22px 0 15px;font-size:clamp(34px,4.15vw,58px);line-height:1.12;letter-spacing:-.045em;font-weight:900;text-wrap:balance}
.hero h1 span{color:#7ff1dc;text-shadow:0 0 32px #49dcc51b}
.hero-lede{max-width:510px;margin:0;color:#c0d0e0;font-size:clamp(13px,1.25vw,17px);line-height:1.8}
.hero-points{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 13px}
.hero-points>span{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:8px 13px;border:1px solid #7196b42b;border-radius:13px;background:linear-gradient(135deg,#16283dce,#0c1a2dce);color:#e6f1ff;font-size:12px;font-weight:750;box-shadow:inset 0 1px #ffffff08}
.point-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;font-style:normal;font-size:14px;background:#2fdbc31c;color:var(--teal)}
.point-key{background:#609dff1c;color:#9bc4ff}.point-open{background:#b18aff1c;color:#cbb0ff}
.hero-caveat{margin:0;color:#7f96b0;font-size:10px;line-height:1.6}
.hero-art{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}
.hero-nebula-image{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:73% center;opacity:.96;mix-blend-mode:screen;filter:saturate(1.12) contrast(1.06);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#0000001a 17%,#0000009c 38%,#000 55%);mask-image:linear-gradient(90deg,transparent 0%,#0000001a 17%,#0000009c 38%,#000 55%)}
.hero-brand-cloud{position:absolute;inset:0;z-index:2;pointer-events:none}
.hero-brand-tile{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:clamp(68px,6.1vw,94px);height:clamp(70px,6.3vw,96px);padding:9px 5px 7px;overflow:hidden;border:1px solid #b7eaff8c;border-radius:19px;background:linear-gradient(145deg,#172d47f0,#07172beF);box-shadow:0 12px 28px #0005,0 0 22px #28cfff20,inset 0 1px #e6ffff2d;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#eff8ff;text-align:center}
.hero-brand-tile:before{content:"";position:absolute;inset:1px;border-radius:17px;background:linear-gradient(140deg,#ffffff10,transparent 45%);pointer-events:none}
.hero-brand-tile img{position:relative;z-index:1;display:block;width:clamp(28px,2.6vw,39px);height:clamp(28px,2.6vw,39px);max-width:none;max-height:none;object-fit:contain;filter:drop-shadow(0 0 8px #6bcaff3c)}
.hero-brand-tile b{position:relative;z-index:1;display:block;width:100%;font-size:clamp(8px,.72vw,11px);line-height:1.1;font-weight:850;letter-spacing:.01em;white-space:nowrap;text-shadow:0 1px 5px #0009}
.hero-brand-chatgpt{left:49%;top:12%;transform:rotate(-8deg);border-color:#66e8d9a6}
.hero-brand-gemini{left:40%;top:35%;transform:rotate(9deg);border-color:#9e90ffad}
.hero-brand-qwen{left:65%;top:7%;transform:rotate(7deg);border-color:#9c8bffad}
.hero-brand-deepseek{right:4.5%;top:22%;transform:rotate(8deg);border-color:#59caffb5}
.hero-brand-claude{left:73%;top:49%;transform:rotate(-8deg);border-color:#ffb18db0}
.hero-brand-mistral{right:4%;top:66%;transform:rotate(7deg);border-color:#ffbd91a6}
.hero-brand-meta{left:66%;top:77%;transform:rotate(-6deg);border-color:#73a9ffad}
.hero-brand-perplexity{left:47%;top:59%;transform:rotate(5deg);border-color:#66e5e7ad}
.hero-brand-hf{left:53%;top:78%;transform:rotate(6deg);border-color:#ffd47db0}

/* Local inference note */
.privacy-strip{display:flex;align-items:center;gap:17px;margin:0 0 24px;padding:18px 22px;border:1px solid #5eead42d;border-radius:16px;background:linear-gradient(100deg,#0b2a3cdd,#0b1d30e8);box-shadow:inset 0 1px #ffffff07}
.privacy-mark{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:15px;background:#47d9c51c;border:1px solid #60f0da2d;color:var(--teal);font-size:28px;line-height:1}
.privacy-strip>div{min-width:0;flex:1}
.privacy-strip strong{font-size:13px;color:#effbff}
.privacy-strip p{margin:4px 0 0;color:#8da8bd;font-size:11px;line-height:1.65}
.privacy-strip>a{flex:none;text-decoration:none;color:var(--teal);font-size:12px;font-weight:800;white-space:nowrap}
.privacy-strip>a span{margin-left:6px}

/* Model library + local chat */
.lab-layout{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(330px,.92fr);align-items:start;gap:24px}
.model-side{min-width:0}
.section-topline{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 9px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;min-width:0}
.section-kicker{display:block;color:#7e99b6;font-size:9px;line-height:1.5;font-weight:850;letter-spacing:.17em}
.section-heading h2,.chat-heading h2{margin:4px 0 0;color:#f2f7ff;font-size:clamp(21px,2vw,27px);line-height:1.2;letter-spacing:-.025em}
.model-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.model-count{padding:7px 9px;border:1px solid #29425c;border-radius:9px;background:#10243a;color:#a7bdd4;font-size:9px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
.model-search,.model-sort{display:flex;align-items:center;gap:8px;height:40px;padding:0 11px;border:1px solid #263c54;border-radius:11px;background:#0b1b2d;color:#a9bfd6}
.model-search svg{width:17px;height:17px;flex:none}
.model-search input{width:120px;min-width:70px;max-width:170px;border:0;outline:0;background:transparent;color:#eef7ff;font-size:11px}
.model-search input::placeholder{color:#7890aa}
.model-sort select{max-width:140px;border:0;outline:0;background:transparent;color:#d8e6f6;font-size:11px;cursor:pointer}
.model-sort option{background:#0a1b2e;color:#f3f8ff}
.section-intro{margin:0 0 13px;color:#8ca2b9;font-size:11px;line-height:1.7}
.model-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.model-filter{display:inline-flex;align-items:center;gap:5px;min-height:31px;padding:5px 12px;border:1px solid #263b53;border-radius:999px;background:#0b1b2c;color:#a9bdd2;font-size:10px;font-weight:750;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s}
.model-filter:hover{border-color:#4a7994;color:#e9f7ff}
.model-filter.is-active{border-color:#7bdfff;background:linear-gradient(110deg,#c6f7ff,#82d9ff);color:#06203b;box-shadow:0 0 20px #5acfff22}
.model-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.model-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:208px;overflow:hidden;border:1px solid #243c55;border-radius:16px;background:linear-gradient(145deg,#0e2135,#091828 90%);box-shadow:inset 0 1px #ffffff06;transition:transform .2s,border-color .2s,box-shadow .2s}
.model-card:hover{transform:translateY(-2px);border-color:#456c88;box-shadow:0 12px 30px #0002,inset 0 1px #ffffff0b}
.model-card-featured{border-color:#3bcbb2a1;background:radial-gradient(ellipse at 0 0,#1d776d22,transparent 58%),linear-gradient(145deg,#0e2938,#091828 90%)}
.model-card.is-active{border-color:#6ee8d4;box-shadow:0 0 0 1px #6ee8d41c,0 0 26px #26cdb41b,inset 0 1px #ffffff0b}
.model-card-select{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:0;width:100%;min-width:0;padding:13px 13px 8px;border:0;background:transparent;text-align:left;cursor:pointer}
.model-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.model-logo{display:grid;place-items:center;flex:none;width:35px;height:35px;border-radius:11px;background:#172c47;border:1px solid #37577b55}
.model-logo img{display:block;width:25px;height:25px;object-fit:contain}
.model-logo.logo-fallback{color:#b3c9ff;font-size:10px;font-weight:900}
.recommend-tag,.heavy-tag,.type-tag{max-width:110px;padding:4px 7px;border-radius:7px;background:#1a334b;color:#9db7d2;font-size:8px;line-height:1.2;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.recommend-tag{background:#0f5b51;color:#83f7dc}.heavy-tag{background:#30294e;color:#c6b5ff}
.model-name{display:block;color:#f1f7ff;font-size:13px;line-height:1.3;font-weight:850;overflow-wrap:anywhere}
.model-name small{display:block;margin-top:3px;color:#8da5bd;font-size:10px;font-weight:550;letter-spacing:.02em}
.model-type{display:block;margin-top:8px;color:#b5c9dc;font-size:10px;font-weight:800}
.model-desc{display:-webkit-box;min-height:34px;margin-top:4px;overflow:hidden;color:#8da4bb;font-size:10px;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.model-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:auto;padding-top:12px}
.model-meta span{display:inline-flex;align-items:center;min-height:20px;padding:3px 6px;border:1px solid #293f58;border-radius:6px;background:#12263b;color:#89a5c0;font-size:8px;line-height:1.2}
.model-card-actions{display:flex;justify-content:flex-end;padding:0 12px 12px}
.model-download{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:5px 10px;border:1px solid #3a617d;border-radius:9px;background:#10283a;color:#c9f9f0;font-size:10px;font-weight:850;cursor:pointer;transition:background .18s,border-color .18s}
.model-download:hover{border-color:var(--teal);background:#123b43}
.model-download:disabled{opacity:.5;cursor:not-allowed}
.model-empty-state{grid-column:1/-1;padding:28px 18px;border:1px dashed #2e4963;border-radius:15px;color:#93a9c0;text-align:center}
.model-footnote{display:flex;align-items:flex-start;gap:9px;margin:15px 0 0;color:#6f89a3;font-size:10px;line-height:1.6}
.model-footnote p{margin:0}
.footnote-icon{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1px solid #3b5a76;border-radius:50%;font-size:10px}

/* Chat panel */
.chat-panel{position:sticky;top:94px;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #2b435b;border-radius:21px;background:linear-gradient(160deg,#0d2034,#081726 82%);box-shadow:var(--shadow),inset 0 1px #ffffff08}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 17px 13px;border-bottom:1px solid #d2e8ff0b}
.chat-heading{display:flex;align-items:center;gap:11px;min-width:0}
.chat-heading h2{font-size:21px}
.chat-mark{display:grid;place-items:center;flex:none;width:43px;height:43px;border:1px solid #5268a666;border-radius:14px;background:linear-gradient(145deg,#202f62,#142a42);box-shadow:0 0 20px #6e6bff17}
.chat-mark img{width:28px;height:28px;object-fit:contain}
.selected-model-logo-image{width:28px;height:28px;object-fit:contain}
.quiet-button{flex:none;padding:8px 10px;border:1px solid #2d455d;border-radius:10px;background:#102238;color:#b2c5d9;font-size:10px;font-weight:750;cursor:pointer}
.quiet-button:hover{border-color:#54758f;color:#f0f8ff}
.runtime-status{display:flex;align-items:center;gap:8px;min-height:35px;padding:8px 17px;color:#93a9c0;font-size:10px;border-bottom:1px solid #d2e8ff08}
.status-light{width:6px;height:6px;border-radius:50%;background:#7388a1;box-shadow:0 0 8px #7388a14a}
.runtime-status.is-ready .status-light{background:#69ebc9;box-shadow:0 0 10px #69ebc9}
.runtime-status.is-loading .status-light{background:#ffd17a;box-shadow:0 0 10px #ffd17a}
.runtime-status.is-error .status-light{background:#ff8f9b;box-shadow:0 0 10px #ff8f9b}
.status-spacer{flex:1}
#gpuBadge{color:#75e5ce;font-size:9px;white-space:nowrap}
.progress-wrap{padding:12px 17px;border-bottom:1px solid #d2e8ff0a}
.progress-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px;color:#a7bed4;font-size:10px}
.progress-label strong{color:#8df2dc}
.progress-track{height:5px;overflow:hidden;border-radius:99px;background:#1d3449}
.progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#55d8ca,#79bfff);box-shadow:0 0 12px #4be4dc80;transition:width .2s}
.chat-messages{display:flex;flex-direction:column;gap:12px;min-height:220px;max-height:min(56vh,520px);overflow:auto;padding:15px 16px 12px;scrollbar-color:#35506b transparent;scrollbar-width:thin}
.message{display:flex;align-items:flex-start;gap:9px;max-width:100%;min-width:0}
.message-avatar{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:9px;border:1px solid #334b6a;background:#172a43;color:#b7d3ff}
.message-avatar img{width:19px;height:19px;object-fit:contain}
.avatar-user{background:#164d4b;border-color:#2b9286;color:#c6fff4;font-size:11px}
.message-content{flex:1;min-width:0}
.message-label{margin:0 0 5px;color:#8fa9c3;font-size:9px;font-weight:850;letter-spacing:.07em}
.message-label span{margin-left:5px;color:#6d89a4;font-weight:550;letter-spacing:0}
.message-body{padding:11px 12px;border:1px solid #2b4157;border-radius:4px 13px 13px 13px;background:linear-gradient(145deg,#12273d,#0d2033);color:#d5e4f2;font-size:11px;line-height:1.75;overflow-wrap:anywhere;white-space:pre-wrap}
.message-user{flex-direction:row-reverse}
.message-user .message-body{border-color:#236a69;background:linear-gradient(145deg,#10433f,#0e3038);border-radius:13px 4px 13px 13px}
.message-user .message-label{text-align:right}
.message-body pre{max-width:100%;overflow:auto;padding:11px;border:1px solid #2a4057;border-radius:9px;background:#06111f;font-size:10px}
.message-body code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em}
.sleeping-bot{display:flex;flex-direction:column;align-items:center;gap:3px;padding:2px 8px 8px;text-align:center}
.sleeping-bot img{display:block;width:min(78%,280px);height:auto;max-height:220px;object-fit:contain;filter:drop-shadow(0 12px 25px #0003);animation:bot-float 5s ease-in-out infinite}
.sleeping-bot strong{margin-top:0;color:#c8f8ef;font-size:11px;font-weight:850}
.sleeping-bot span{color:#7e99b2;font-size:9px}
@keyframes bot-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.starter-prompts{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 13px}
.starter-prompts button{display:inline-flex;align-items:center;gap:7px;min-height:29px;padding:5px 9px;border:1px solid #2c4962;border-radius:9px;background:#0d2033;color:#b5cce0;font-size:9px;cursor:pointer;transition:border-color .18s,color .18s,background .18s}
.starter-prompts button:hover{border-color:#53c9c3;background:#10303a;color:#dffff9}
.starter-prompts button span{color:#72e5d6}
.composer{margin:0 12px 12px;padding:10px 11px 9px;border:1px solid #34546e;border-radius:15px;background:#071625;box-shadow:inset 0 1px #ffffff05;transition:border-color .18s,box-shadow .18s}
.composer:focus-within{border-color:#4fb8b2;box-shadow:0 0 0 3px #3be0ce0b}
.composer textarea{display:block;width:100%;min-height:52px;max-height:150px;resize:vertical;padding:3px 2px 9px;border:0;outline:0;background:transparent;color:#eef8ff;font-size:12px;line-height:1.6}
.composer textarea::placeholder{color:#6f89a3}
.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#6f89a3;font-size:9px}
.send-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:7px 13px;border:1px solid #92fff1;border-radius:11px;background:linear-gradient(120deg,#9bf7e9,#7edaff);color:#05253b;font-size:11px;font-weight:900;box-shadow:0 0 20px #6ce9db22;cursor:pointer;transition:transform .18s,filter .18s}
.send-button:hover{transform:translateY(-1px);filter:brightness(1.06)}
.send-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.send-button svg{width:15px;height:15px}
.chat-disclaimer{padding:0 15px 13px;color:#657f99;font-size:9px;line-height:1.6}

/* Explanation section + footer */
.how-section{margin:46px 0 36px;padding:26px;border:1px solid #243b53;border-radius:20px;background:linear-gradient(145deg,#0b1d30,#081625)}
.how-section .section-heading h2{margin-top:5px}
.how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:20px}
.how-grid article{padding:18px;border:1px solid #273f57;border-radius:14px;background:#0b1b2c}
.how-number{color:#67e6d3;font-size:10px;font-weight:900;letter-spacing:.13em}
.how-grid h3{margin:8px 0 6px;color:#e6f1fc;font-size:13px}
.how-grid p{margin:0;color:#8ca4bc;font-size:11px;line-height:1.75}
.support-note{margin:17px 0 0;color:#8da6be;font-size:10px}
.site-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;width:var(--page);margin:0 auto;padding:20px 0 28px;border-top:1px solid #1e344a;color:#6f89a3;font-size:10px}
.footer-brand{display:flex;align-items:center;gap:8px;color:#c5d5e6;text-decoration:none;font-weight:850;white-space:nowrap}
.footer-brand img{display:block}
.site-footer p{max-width:470px;margin:0}
.site-footer>div{display:flex;gap:14px;white-space:nowrap}
.site-footer>div a{text-decoration:none}
.site-footer>div a:hover{color:var(--teal)}

/* Laptop */
@media(max-width:1180px){
  :root{--page:min(calc(100% - 36px),1480px)}
  .lab-layout{grid-template-columns:minmax(0,1.3fr) minmax(310px,.9fr);gap:16px}
  .model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .model-tools{gap:6px}
  .model-search input{width:100px}
  .hero-copy{width:49%}
  .hero-brand-tile{width:70px;height:73px;border-radius:15px}
  .hero-brand-tile img{width:29px;height:29px}
  .hero-brand-tile b{font-size:8px}
}
@media(max-width:920px){
  :root{--page:calc(100% - 32px)}
  .topbar{height:68px}
  .top-links{gap:13px}
  .top-links a:not(.back-link){font-size:11px}
  .hero{min-height:390px;padding:32px 24px}
  .hero-copy{width:54%}
  .hero-nebula-image{object-position:70% center}
  .hero-brand-chatgpt{left:53%;top:10%}
  .hero-brand-gemini{left:48%;top:37%}
  .hero-brand-qwen{left:68%;top:6%}
  .hero-brand-deepseek{right:3%;top:24%}
  .hero-brand-claude{left:73%;top:49%}
  .hero-brand-mistral{right:3%;top:67%}
  .hero-brand-meta{left:67%;top:78%}
  .hero-brand-perplexity{left:52%;top:60%}
  .hero-brand-hf{left:58%;top:78%}
  .lab-layout{grid-template-columns:minmax(0,1fr)}
  .chat-panel{position:relative;top:auto;max-width:none}
  .chat-messages{max-height:440px}
  .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
  :root{--page:calc(100% - 24px)}
  body{font-size:13px}
  .topbar{height:62px}
  .topbar-inner{gap:10px}
  .brand{gap:8px}
  .brand img{width:31px;height:31px}
  .brand strong{font-size:11px;letter-spacing:.08em}
  .brand small{font-size:9px;margin-top:3px}
  .top-links{gap:0}
  .top-links a:not(.back-link){display:none}
  .top-links .back-link{padding:9px 10px;font-size:10px}
  .hero{min-height:385px;margin:10px 0 14px;padding:27px 17px 22px;border-radius:20px}
  .hero:before{background:linear-gradient(90deg,#061120f8 0%,#061120ed 30%,#061120a8 55%,#0611201f 100%),linear-gradient(0deg,#0611207d,transparent 40%)}
  .hero-copy{width:72%;max-width:360px}
  .eyebrow{font-size:8px;gap:6px;letter-spacing:.08em}
  .eyebrow-dot{width:6px;height:6px}
  .eyebrow-cn{font-size:9px}
  .hero h1{font-size:clamp(27px,7.3vw,38px);line-height:1.13;margin:19px 0 13px}
  .hero-lede{font-size:12px;line-height:1.75}
  .hero-points{gap:6px;margin:16px 0 11px}
  .hero-points>span{min-height:35px;gap:6px;padding:5px 7px;border-radius:9px;font-size:9px}
  .point-icon{width:21px;height:21px;border-radius:7px;font-size:11px}
  .hero-caveat{max-width:250px;font-size:8px;line-height:1.55}
  .hero-nebula-image{object-position:73% center;opacity:.83;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#00000020 15%,#000000c7 44%,#000 60%);mask-image:linear-gradient(90deg,transparent 0%,#00000020 15%,#000000c7 44%,#000 60%)}
  .hero-brand-tile{width:49px;height:51px;padding:4px 2px 3px;gap:3px;border-radius:10px}
  .hero-brand-tile:before{border-radius:9px}
  .hero-brand-tile img{width:22px;height:22px}
  .hero-brand-tile b{font-size:6px;letter-spacing:-.03em}
  .hero-brand-chatgpt,.hero-brand-gemini,.hero-brand-perplexity,.hero-brand-hf{display:none}
  .hero-brand-qwen{left:auto;right:3%;top:5%;transform:rotate(7deg)}
  .hero-brand-deepseek{left:auto;right:3%;top:27%;transform:rotate(8deg)}
  .hero-brand-claude{left:auto;right:3%;top:49%;transform:rotate(-8deg)}
  .hero-brand-mistral{left:auto;right:3%;top:70%;transform:rotate(7deg)}
  .hero-brand-meta{left:auto;right:19%;top:78%;transform:rotate(-6deg)}
  .privacy-strip{align-items:flex-start;gap:11px;padding:14px;border-radius:14px;margin-bottom:23px}
  .privacy-mark{width:36px;height:36px;border-radius:11px;font-size:22px}
  .privacy-strip strong{font-size:11px}
  .privacy-strip p{font-size:9px;line-height:1.6}
  .privacy-strip>a{font-size:10px;margin-top:3px}
  .section-topline{align-items:flex-start;flex-direction:column;gap:11px}
  .section-heading h2{font-size:22px}
  .model-tools{width:100%;justify-content:flex-start}
  .model-count{font-size:8px}
  .model-search{flex:1;min-width:0}
  .model-search input{width:100%;max-width:none}
  .model-sort select{max-width:112px}
  .section-intro{font-size:10px}
  .model-filters{gap:6px;margin-bottom:12px}
  .model-filter{min-height:29px;padding:5px 10px;font-size:9px}
  .model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .model-card{min-height:205px;border-radius:13px}
  .model-card-select{padding:10px 10px 7px}
  .model-card-top{gap:5px;margin-bottom:7px}
  .model-logo{width:30px;height:30px;border-radius:9px}
  .model-logo img{width:22px;height:22px}
  .recommend-tag,.heavy-tag,.type-tag{max-width:82px;padding:4px 5px;font-size:7px}
  .model-name{font-size:11px}
  .model-name small{font-size:9px}
  .model-type{font-size:9px;margin-top:7px}
  .model-desc{font-size:9px;min-height:41px;line-height:1.5;-webkit-line-clamp:3}
  .model-meta{gap:4px;padding-top:9px}
  .model-meta span{font-size:7px;padding:3px 4px;min-height:18px}
  .model-card-actions{padding:0 9px 9px}
  .model-download{min-height:27px;padding:4px 8px;font-size:9px}
  .model-footnote{font-size:9px}
  .chat-panel{border-radius:17px}
  .chat-head{padding:14px 13px 11px}
  .chat-heading{gap:9px}
  .chat-heading h2{font-size:19px}
  .chat-mark{width:37px;height:37px;border-radius:12px}
  .chat-mark img,.selected-model-logo-image{width:24px;height:24px}
  .quiet-button{font-size:9px;padding:7px 8px}
  .runtime-status{padding:8px 13px;font-size:9px;gap:6px}
  #gpuBadge{font-size:8px}
  .chat-messages{min-height:190px;max-height:390px;padding:13px 12px 9px}
  .message-body{font-size:10px}
  .sleeping-bot img{width:min(76%,250px);max-height:200px}
  .starter-prompts{padding:0 12px 11px;gap:5px}
  .starter-prompts button{font-size:8px;padding:5px 7px}
  .composer{margin:0 10px 10px;padding:9px}
  .composer textarea{font-size:11px;min-height:50px}
  .composer-bottom{font-size:8px}
  .send-button{min-height:34px;padding:6px 10px;font-size:10px}
  .chat-disclaimer{padding:0 12px 12px;font-size:8px}
  .how-section{margin:30px 0 24px;padding:17px;border-radius:16px}
  .how-grid{grid-template-columns:1fr;gap:9px;margin-top:15px}
  .how-grid article{padding:14px}
  .how-grid h3{font-size:12px}
  .how-grid p{font-size:10px}
  .site-footer{align-items:flex-start;flex-direction:column;gap:10px;padding:17px 0 22px}
  .site-footer p{font-size:9px}
}
@media(max-width:390px){
  :root{--page:calc(100% - 20px)}
  .hero{min-height:370px;padding:23px 13px 19px}
  .hero-copy{width:74%}
  .hero h1{font-size:27px}
  .hero-points>span{font-size:8px;padding:5px 6px}
  .hero-brand-tile{width:43px;height:45px}
  .hero-brand-tile img{width:19px;height:19px}
  .hero-brand-tile b{font-size:5.5px}
  .model-grid{gap:7px}
  .model-card-select{padding:9px 8px 7px}
  .model-name{font-size:10px}
  .model-meta span{font-size:6.5px}
  .model-sort{padding:0 7px}
  .model-sort select{max-width:94px;font-size:10px}
  .chat-heading h2{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Runtime controls are inserted by lab.js after the chat header mounts. */
.load-model-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-height:40px;padding:8px 14px;border:1px solid #63ead9;border-radius:11px;background:linear-gradient(120deg,#8af3e2,#6fe2f4);color:#06283b;font-size:11px;font-weight:900;box-shadow:0 0 22px #4ce5d31f;cursor:pointer;transition:filter .18s,transform .18s,border-color .18s}
.load-model-button:hover{filter:brightness(1.07);transform:translateY(-1px)}
.load-model-button:disabled{opacity:.48;filter:none;transform:none;cursor:not-allowed}
.head-load-button{margin-left:0}
.message-assistant{align-self:stretch}
.welcome-message{margin-bottom:1px}
.model-card-heavy .model-logo{background:linear-gradient(145deg,#30284d,#17243d)}
@media(max-width:680px){
 .load-model-button{min-height:34px;padding:6px 10px;font-size:9px;border-radius:9px}
}

/* Subtle independent drift makes the brand constellation feel suspended in space. */
.hero-brand-tile{animation:brand-drift 6.8s ease-in-out infinite;will-change:translate}
.hero-brand-gemini{animation-delay:-2.2s}
.hero-brand-qwen{animation-delay:-4.1s}
.hero-brand-deepseek{animation-delay:-1.3s}
.hero-brand-claude{animation-delay:-3.3s}
.hero-brand-mistral{animation-delay:-5.2s}
.hero-brand-meta{animation-delay:-2.8s}
.hero-brand-perplexity{animation-delay:-4.8s}
.hero-brand-hf{animation-delay:-.8s}
@keyframes brand-drift{0%,100%{translate:0 0}50%{translate:0 -6px}}
@media(max-width:680px){.hero-brand-tile{animation-duration:7.8s}}
@media(prefers-reduced-motion:reduce){.hero-brand-tile{animation:none;will-change:auto}}

/* Consolidated responsive layer. Desktop is the baseline; phone rules are isolated below. */
body { -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility; }
.brand strong { font-size:15px; letter-spacing:.095em; }
.brand small { font-size:11px; color:#a4b8ce; }
.top-links { font-size:13px; }
.top-links .back-link { padding:12px 18px; border-radius:14px; }

.hero {
  min-height:clamp(470px,36vw,555px);
  border-color:#2e5c79a1;
  box-shadow:inset 0 1px #d7ffff13,0 24px 70px #0005;
  background:radial-gradient(ellipse at 70% 48%,#0b639b80 0%,transparent 40%),
    radial-gradient(ellipse at 91% 8%,#5b35ac70 0%,transparent 36%),
    linear-gradient(112deg,#061120 0%,#07172a 48%,#091a32 100%);
}
.hero:before { background:linear-gradient(90deg,#061120 0%,#061120f7 15%,#061120d9 32%,#06112075 48%,#06112010 71%),
  linear-gradient(0deg,#06112082 0%,transparent 31%); }
.hero:after { box-shadow:inset 0 0 0 1px #d2ffff10,inset 0 -50px 100px #06112030; }
.hero-copy { width:min(44%,620px); }
.eyebrow { font-size:11px; letter-spacing:.115em; }
.eyebrow-cn { font-size:12px; }
.hero h1 { font-size:clamp(38px,4.05vw,61px); letter-spacing:-.035em; text-shadow:0 2px 24px #0005; }
.hero h1 span { text-shadow:none; }
.hero-lede { max-width:490px; color:#d0deed; font-size:clamp(14px,1.12vw,16.5px); line-height:1.82; }
.hero-points { gap:9px; margin-top:23px; }
.hero-points>span { min-height:50px; padding:9px 14px; font-size:12px; border-color:#759ab72f; background:linear-gradient(135deg,#172d43e8,#0b1b2eef); }
.hero-caveat { max-width:470px; color:#9bb1c8; font-size:11px; line-height:1.65; }
.hero-art { position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; }
.hero-nebula-image {
  display:block; position:absolute; inset:0; width:100%; height:100%; max-width:none; max-height:none;
  object-fit:cover; object-position:73% center; opacity:1; mix-blend-mode:screen;
  filter:saturate(1.2) contrast(1.08) brightness(1.04);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#00000025 14%,#000000c2 34%,#000 48%);
  mask-image:linear-gradient(90deg,transparent 0%,#00000025 14%,#000000c2 34%,#000 48%);
}
.hero-brand-cloud { position:absolute; inset:0; z-index:2; pointer-events:none; }
.hero-brand-tile {
  position:absolute; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:7px; width:clamp(72px,6.25vw,100px); height:clamp(74px,6.4vw,104px); padding:10px 6px 8px;
  overflow:hidden; border:1.25px solid #b9efffb5; border-radius:21px;
  background:linear-gradient(145deg,#14263d,#071323);
  box-shadow:0 15px 32px #0007,0 4px 14px #0004,inset 0 1px #ffffff36;
  color:#eff8ff; text-align:center; transform-origin:center;
}
.hero-brand-tile:before {
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:linear-gradient(145deg,#ffffff22 0%,#ffffff04 38%,transparent 65%); pointer-events:none;
}
.hero-brand-tile:after {
  content:""; position:absolute; z-index:0; left:16%; right:16%; bottom:1px; height:1px;
  background:linear-gradient(90deg,transparent,#9ef8ffdd,transparent); box-shadow:0 0 12px #52e8ff8c;
}
.hero-brand-tile img {
  position:relative; z-index:1; display:block; width:clamp(30px,2.8vw,42px); height:clamp(30px,2.8vw,42px);
  max-width:none; max-height:none; object-fit:contain; filter:none; flex:none;
}
.hero-brand-tile b {
  position:relative; z-index:1; display:block; width:100%; font-size:clamp(9px,.74vw,11.5px);
  line-height:1.1; font-weight:850; letter-spacing:-.01em; white-space:nowrap; text-shadow:none;
}

/* Coordinates live on the art canvas, not the page shell. */
.hero-brand-chatgpt { left:54.1%; top:8.2%; transform:rotate(-2deg); }
.hero-brand-gemini { left:44.2%; top:25.7%; transform:rotate(2deg); }
.hero-brand-qwen { left:66.5%; top:8.2%; transform:rotate(2deg); }
.hero-brand-deepseek { left:83.8%; right:auto; top:18.3%; transform:rotate(2deg); }
.hero-brand-claude { left:76%; top:40%; transform:rotate(-2deg); }
.hero-brand-mistral { left:84.6%; right:auto; top:47.7%; transform:rotate(2deg); }
.hero-brand-perplexity { left:50.8%; top:41.1%; transform:rotate(1deg); }
.hero-brand-meta { left:66.4%; top:69.5%; transform:rotate(-1deg); }
.hero-brand-hf { left:54.4%; top:69.5%; transform:rotate(1deg); }

/* One card treatment per brand, no global dark-glass override over these colors. */
.hero-brand-chatgpt { background:linear-gradient(145deg,#fff,#f0f2f5); border-color:#fff; box-shadow:0 12px 30px #0007,0 0 22px #ffffff20,inset 0 1px #fff; }
.hero-brand-chatgpt:before { background:linear-gradient(145deg,#ffffffb8,#ffffff00 65%); }
.hero-brand-chatgpt b { color:#101318; }
.hero-brand-gemini { background:linear-gradient(145deg,#fff,#eff2ff 60%,#d9e3ff); border-color:#b8caff; box-shadow:0 14px 30px #536ed94a,inset 0 1px #fff; }
.hero-brand-gemini b { color:#1b2746; }
.hero-brand-qwen { background:linear-gradient(145deg,#fbf9ff,#e8e0ff 56%,#c9b8ff); border-color:#c3b4ff; box-shadow:0 14px 30px #7653ff42,inset 0 1px #fff; }
.hero-brand-qwen b { color:#2b205b; }
.hero-brand-deepseek { background:linear-gradient(145deg,#fff,#edf7ff 56%,#c5e2ff); border-color:#a7d0ff; box-shadow:0 14px 30px #238bff3b,inset 0 1px #fff; }
.hero-brand-deepseek b { color:#0c315e; }
.hero-brand-claude { background:linear-gradient(145deg,#fffdfb,#fff1e9 58%,#f4d7ca); border-color:#f0bba7; box-shadow:0 14px 30px #d9775733,inset 0 1px #fff; }
.hero-brand-claude b { color:#542d20; }
.hero-brand-mistral { background:linear-gradient(145deg,#27222f,#121522 65%,#351b2d); border-color:#a76cbb; box-shadow:0 14px 34px #0009,0 0 22px #ef61951c,inset 0 1px #ffffff4a; }
.hero-brand-mistral b { color:#fff7fb; }
.hero-brand-meta { background:linear-gradient(145deg,#fff,#eef3ff 52%,#cddcff); border-color:#a7c4ff; box-shadow:0 14px 30px #3979ff3b,inset 0 1px #fff; }
.hero-brand-meta b { color:#17346d; }
.hero-brand-perplexity { background:linear-gradient(145deg,#fff,#edfcff 58%,#c8f0f4); border-color:#99e4ed; box-shadow:0 14px 30px #16a9c533,inset 0 1px #fff; }
.hero-brand-perplexity b { color:#123a48; }
.hero-brand-hf { background:linear-gradient(145deg,#fffbe9,#ffe98c 61%,#ffd21e); border-color:#ffe05d; box-shadow:0 14px 30px #d19c2048,inset 0 1px #fff8; }
.hero-brand-hf b { color:#4a2d0b; }

.privacy-strip { border-color:#58e2ddb0; background:radial-gradient(ellipse at 0% 50%,#0f6c6a3a,transparent 42%),linear-gradient(100deg,#0b2a3cfa,#10263cf5); box-shadow:inset 0 1px #e1ffff18,0 8px 28px #0002; }
.privacy-strip p { color:#a5bbcf; font-size:12px; }
.section-intro { color:#a8bdd2; }
.model-footnote p,.chat-disclaimer { color:#91a8bf; }
.site-footer { color:#829ab3; }
.lab-layout { grid-template-columns:minmax(0,1.62fr) minmax(340px,.9fr); gap:27px; }
.model-card { background:radial-gradient(ellipse at 100% 0%,#17345a26,transparent 50%),linear-gradient(145deg,#10263c,#081827 90%); }
.model-card:hover { border-color:#5a90b2; box-shadow:0 15px 34px #0004,inset 0 1px #ffffff10; }
.chat-panel { border-color:#2b4562; background:radial-gradient(ellipse at 0% 0%,#203a6331,transparent 42%),linear-gradient(160deg,#0d1e32,#091625 85%); box-shadow:0 20px 55px #0003,inset 0 1px #ffffff0a; }
.chat-head { border-bottom-color:#293f57; }
.load-model-button { box-shadow:0 0 24px #4ce5d340,inset 0 1px #ffffff80; }
.model-filter.is-active { box-shadow:0 0 25px #5acfff35; }
.model-card-heavy .model-logo { background:linear-gradient(145deg,#30284d,#17243d); }

/* Wide desktop: preserve the intended hero + chat two-column design. */
@media (min-width:1181px) {
  .hero { padding:clamp(46px,4.2vw,66px) clamp(36px,4vw,64px); }
  .hero-copy { width:min(43%,640px); }
  .hero h1 { font-size:clamp(48px,4.25vw,65px); line-height:1.12; }
  .hero-lede { max-width:510px; font-size:clamp(15px,1.15vw,17px); }
  .hero-brand-tile { width:clamp(96px,7.45vw,128px); height:clamp(99px,7.7vw,132px); border-radius:25px; gap:9px; padding:12px 8px 9px; }
  .hero-brand-tile:before { border-radius:23px; }
  .hero-brand-tile img { width:clamp(38px,3.25vw,54px); height:clamp(38px,3.25vw,54px); }
  .hero-brand-tile b { font-size:clamp(11px,.9vw,14px); }
}
@media (max-width:1180px) {
  :root { --page:min(calc(100% - 36px),1480px); }
  .hero { min-height:clamp(430px,42vw,520px); }
  .hero-copy { width:47%; }
  .hero h1 { font-size:clamp(35px,4.55vw,54px); }
  .hero-brand-tile { width:78px; height:82px; border-radius:16px; gap:5px; padding:7px 4px 6px; }
  .hero-brand-tile:before { border-radius:14px; }
  .hero-brand-tile img { width:31px; height:31px; }
  .hero-brand-tile b { font-size:9px; }
  .lab-layout { grid-template-columns:minmax(0,1.3fr) minmax(300px,.9fr); gap:16px; }
  .model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .model-tools { gap:6px; }
  .model-search input { width:100px; }
  .hero-brand-chatgpt { left:50.1%; top:9.3%; }
  .hero-brand-gemini { left:36.7%; top:26.8%; }
  .hero-brand-qwen { left:66.6%; top:9.3%; }
  .hero-brand-deepseek { left:90.1%; right:auto; top:19.5%; }
  .hero-brand-claude { left:79.2%; top:41%; }
  .hero-brand-mistral { left:90.8%; right:auto; top:48.7%; }
  .hero-brand-perplexity { left:45.8%; top:42.2%; }
  .hero-brand-meta { left:70.4%; top:70%; }
  .hero-brand-hf { left:51.2%; top:70%; }
}
@media (max-width:920px) and (min-width:681px) {
  :root { --page:calc(100% - 32px); }
  .topbar { height:68px; }
  .hero { min-height:430px; padding:32px 24px; }
  .hero-copy { width:49%; }
  .hero h1 { font-size:clamp(34px,5.15vw,47px); }
  .hero-lede { font-size:13px; }
  .hero-caveat { max-width:300px; }
  .lab-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
  .chat-panel { position:relative; top:auto; max-width:none; }
  .chat-messages { max-height:440px; }
  .model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-brand-tile { width:72px; height:75px; border-radius:14px; gap:4px; padding:6px 3px 5px; }
  .hero-brand-tile:before { border-radius:12px; }
  .hero-brand-tile img { width:29px; height:29px; }
  .hero-brand-tile b { font-size:8px; }
  .hero-brand-chatgpt { left:44.3%; top:9.5%; }
  .hero-brand-gemini { left:29%; top:27.1%; }
  .hero-brand-qwen { left:63.2%; top:9.5%; }
  .hero-brand-deepseek { left:90.8%; right:auto; top:19.8%; }
  .hero-brand-claude { left:78.1%; top:41.3%; }
  .hero-brand-mistral { left:91.5%; right:auto; top:48.9%; }
  .hero-brand-perplexity { left:39.3%; top:42.3%; }
  .hero-brand-meta { left:63.9%; top:70%; }
  .hero-brand-hf { left:45.6%; top:70%; }
}

/* Phone portrait, including Android browsers that pretend the layout viewport is desktop width. */
@media (max-device-width:720px) and (orientation:portrait),
       (max-width:680px) and (orientation:portrait) and (pointer:coarse) {
  :root { --page:calc(100% - 24px); }
  html,body { overflow-x:clip; }
  html { scroll-padding-top:72px; }
  .topbar { height:66px; }
  .topbar-inner { width:var(--page); gap:10px; }
  .brand { gap:8px; }
  .brand img { width:31px; height:31px; }
  .brand strong { font-size:11px; letter-spacing:.08em; }
  .brand small { font-size:9px; margin-top:3px; }
  .top-links { gap:0; font-size:10px; }
  .top-links a:not(.back-link) { display:none; }
  .top-links .back-link { padding:9px 10px; border-radius:12px; font-size:10px; }
  .page-shell { width:var(--page); }

  .hero {
    display:flex; flex-direction:column; align-items:stretch;
    min-height:0; height:auto; margin:12px 0 16px; padding:20px; gap:0;
    border-radius:21px; overflow:hidden;
  }
  .hero:before { background:radial-gradient(ellipse at 96% 0%,#4c348b45 0,transparent 44%),linear-gradient(135deg,#061120 0%,#07162a 68%,#0b1730 100%); }
  .hero:after { box-shadow:inset 0 0 0 1px #d2f6ff10; }
  .hero-copy { position:relative; z-index:4; width:100%; max-width:none; flex:none; }
  .eyebrow { gap:7px; font-size:9px; letter-spacing:.085em; }
  .eyebrow-dot { width:7px; height:7px; flex:none; }
  .eyebrow-cn { font-size:10px; }
  .hero h1 { margin:15px 0 11px; font-size:clamp(30px,6vw,43px); line-height:1.12; letter-spacing:-.04em; }
  .hero-lede { max-width:none; font-size:13px; line-height:1.72; color:#cedbeb; }
  .hero-points { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:16px 0 10px; }
  .hero-points>span { min-width:0; min-height:45px; justify-content:center; gap:5px; padding:7px 5px; border-radius:11px; font-size:10px; white-space:nowrap; }
  .point-icon { width:23px; height:23px; border-radius:7px; font-size:12px; flex:none; }
  .hero-caveat { max-width:none; margin:0; font-size:10px; line-height:1.55; color:#91a6bd; }

  .hero-art {
    position:relative; inset:auto; z-index:1; display:block;
    width:calc(100% + 40px); height:auto; min-height:0; aspect-ratio:16 / 10;
    flex:none; margin:18px -20px 0; overflow:hidden; border-radius:0; background:#07172b;
  }
  .hero-nebula-image {
    position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; max-height:none;
    transform:none; object-fit:cover; object-position:65% center; opacity:1; mix-blend-mode:normal;
    filter:saturate(1.08) contrast(1.04); -webkit-mask-image:none; mask-image:none;
  }
  .hero-brand-cloud {
    position:relative; inset:auto; z-index:2; display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px;
    width:calc(100% + 40px); margin:0 -20px -20px; padding:14px 16px 18px;
    border-top:1px solid #b8dfff18;
    background:linear-gradient(180deg,#08182af7,#071426);
  }
  .hero-brand-tile {
    position:relative; inset:auto; left:auto; right:auto; top:auto;
    width:100%; height:58px; padding:6px 2px 5px; gap:4px;
    border-radius:11px; transform:none!important; animation:none!important;
    box-shadow:0 4px 12px #0003,inset 0 1px #ffffff14;
  }
  .hero-brand-tile:before { border-radius:10px; }
  .hero-brand-tile img { width:25px; height:25px; max-height:25px; }
  .hero-brand-tile b { font-size:clamp(5px,1.8vw,8px); letter-spacing:-.035em; line-height:1.05; white-space:nowrap; }

  .privacy-strip { align-items:flex-start; gap:11px; margin-bottom:20px; padding:13px; border-radius:15px; }
  .privacy-mark { width:38px; height:38px; border-radius:12px; font-size:23px; }
  .privacy-strip>div { flex:1; min-width:0; }
  .privacy-strip strong { font-size:12px; }
  .privacy-strip p { font-size:10px; line-height:1.6; }
  .privacy-strip>a { margin-left:0; font-size:10px; white-space:nowrap; }

  .lab-layout { grid-template-columns:minmax(0,1fr); gap:18px; }
  .model-side { min-width:0; }
  .section-topline { display:flex; flex-direction:column; align-items:stretch; gap:10px; }
  .section-heading h2 { font-size:21px; }
  .model-tools { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:7px; width:100%; min-width:0; }
  .model-count { font-size:8px; white-space:nowrap; }
  .model-search { min-width:0; width:100%; }
  .model-search input { width:100%; min-width:0; max-width:none; }
  .model-sort { min-width:0; }
  .model-sort select { width:100%; max-width:120px; }
  .section-intro { font-size:10px; }
  .model-filters { display:flex; gap:6px; overflow-x:auto; padding:2px 0 7px; margin-bottom:12px; scrollbar-width:none; }
  .model-filters::-webkit-scrollbar { display:none; }
  .model-filter { flex:0 0 auto; min-height:34px; padding:6px 10px; font-size:10px; }
  .model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .model-card { min-width:0; min-height:0; border-radius:13px; }
  .model-card-select { padding:11px 10px 9px; }
  .model-card-top { gap:5px; margin-bottom:7px; }
  .model-logo { width:30px; height:30px; border-radius:9px; }
  .model-logo img { width:22px; height:22px; }
  .recommend-tag,.heavy-tag,.type-tag { max-width:82px; padding:4px 5px; font-size:7px; }
  .model-name { font-size:11px; overflow-wrap:anywhere; }
  .model-name small { font-size:9px; }
  .model-type { font-size:9px; margin-top:7px; }
  .model-desc { min-height:38px; font-size:9px; line-height:1.5; -webkit-line-clamp:3; }
  .model-meta { gap:4px; padding-top:9px; }
  .model-meta span { min-height:18px; padding:3px 4px; font-size:7px; }
  .model-card-actions { padding:0 9px 9px; }
  .model-download { min-height:34px; padding:5px 8px; font-size:9px; }
  .model-footnote { font-size:9px; }
  .load-model-button { min-height:36px; padding:6px 10px; font-size:9px; border-radius:9px; }
  .chat-panel { position:relative; top:auto; max-width:none; min-width:0; border-radius:17px; }
  .chat-head { gap:8px; padding:14px 13px 11px; }
  .chat-heading { gap:9px; }
  .chat-heading h2 { font-size:19px; }
  .chat-mark { width:37px; height:37px; border-radius:12px; }
  .chat-mark img,.selected-model-logo-image { width:24px; height:24px; }
  .quiet-button { font-size:9px; padding:7px 8px; }
  .runtime-status { padding:8px 13px; gap:6px; font-size:9px; }
  #gpuBadge { font-size:8px; }
  .chat-messages { min-height:190px; max-height:380px; padding:13px 12px 9px; }
  .message-body { font-size:10px; }
  .sleeping-bot img { width:min(76%,250px); max-height:200px; }
  .starter-prompts { padding:0 12px 11px; gap:6px; }
  .starter-prompts button { min-height:34px; padding:5px 7px; font-size:9px; }
  .composer { margin:0 10px 10px; padding:9px; }
  .composer textarea { min-height:58px; font-size:11px; }
  .composer-bottom { font-size:8px; }
  .send-button { min-height:36px; padding:6px 10px; font-size:10px; }
  .chat-disclaimer { padding:0 12px 12px; font-size:8px; }
  .how-section { margin:30px 0 24px; padding:17px; border-radius:16px; }
  .how-grid { grid-template-columns:1fr; gap:9px; margin-top:15px; }
  .how-grid article { padding:14px; }
  .how-grid h3 { font-size:12px; }
  .how-grid p { font-size:10px; }
  .site-footer { align-items:flex-start; flex-direction:column; gap:10px; padding:17px 0 22px; }
  .site-footer p { font-size:9px; }
}
@media (max-width:430px) and (orientation:portrait) {
  :root { --page:calc(100% - 20px); }
  .hero { padding:17px; }
  .hero h1 { font-size:clamp(28px,7.8vw,35px); }
  .hero-points { gap:5px; }
  .hero-points>span { gap:4px; padding:6px 4px; font-size:9px; }
  .point-icon { width:20px; height:20px; }
  .hero-art { width:calc(100% + 34px); margin:18px -17px -17px; }
  .model-grid { grid-template-columns:minmax(0,1fr); }
  .model-tools { grid-template-columns:auto minmax(0,1fr); }
  .model-sort { grid-column:1/-1; }
  .model-sort select { max-width:none; }
  .hero-brand-tile { width:48px; height:50px; }
  .hero-brand-tile img { width:24px; height:24px; }
}
@media (prefers-reduced-motion: reduce) { .hero-brand-tile { animation:none; will-change:auto; } }

/* Cinematic hero: one strong image, copy on the left, no duplicate floating logo cards. */
.hero {
  position:relative; isolation:isolate;
  min-height:clamp(410px,36vw,530px);
  padding:clamp(34px,4vw,58px) clamp(26px,3.4vw,52px);
  background:#061120;
}
.hero:before {
  z-index:2; pointer-events:none;
  background:
    linear-gradient(90deg,#04101e 0%,#04101ef2 20%,#04101ecc 36%,#04101e66 48%,#04101e05 68%,transparent 100%),
    linear-gradient(0deg,#04101e40 0%,transparent 36%);
}
.hero:after { z-index:3; pointer-events:none; }
.hero-copy { position:relative; z-index:4; width:min(48%,640px); max-width:640px; }
.hero-art {
  position:absolute; inset:0; z-index:1; display:block;
  width:100%; height:100%; margin:0; overflow:hidden;
  border-radius:inherit; background:#061120; pointer-events:none;
}
.hero-main-visual {
  display:block; position:absolute; inset:0;
  width:100%; height:100%; max-width:none; max-height:none;
  object-fit:cover; object-position:center center;
  opacity:1; filter:saturate(1.06) contrast(1.04);
  -webkit-mask-image:none; mask-image:none;
}
.hero-brand-cloud { display:none !important; }

@media (max-device-width:720px) and (orientation:portrait),
       (max-width:680px) and (orientation:portrait) and (pointer:coarse) {
  :root { --page:calc(100% - 24px); }
  html,body { overflow-x:clip; }
  .hero {
    display:flex; flex-direction:column; align-items:stretch;
    min-height:0; height:auto; padding:18px 17px 0;
    margin:12px 0 16px; gap:0; border-radius:21px; overflow:hidden;
    background:linear-gradient(145deg,#061120,#07172b);
  }
  .hero:before {
    z-index:0;
    background:
      radial-gradient(ellipse at 100% 0%,#4c348b30 0%,transparent 44%),
      linear-gradient(135deg,#061120 0%,#07162a 68%,#0b1730 100%);
  }
  .hero:after { z-index:3; box-shadow:inset 0 0 0 1px #d2f6ff10; }
  .hero-copy { position:relative; z-index:4; width:100%; max-width:none; flex:none; }
  .hero-art {
    position:relative; inset:auto; z-index:1; display:block; flex:none;
    width:calc(100% + 34px); height:auto; min-height:0; aspect-ratio:16 / 9;
    margin:18px -17px 0; overflow:hidden; border-radius:0;
  }
  .hero-main-visual {
    position:absolute; inset:0; width:100%; height:100%;
    transform:none; object-fit:cover; object-position:78% center;
    opacity:1; -webkit-mask-image:none; mask-image:none;
  }
}

/* Mobile correction: the artwork is the hero's background board, not a separate image section. */
@media (max-device-width:720px) and (orientation:portrait),
       (max-width:680px) and (orientation:portrait) and (pointer:coarse) {
  .hero {
    position:relative; display:block; isolation:isolate;
    width:100%; min-height:0; height:auto; aspect-ratio:1.72;
    padding:15px 14px; margin:12px 0 16px;
    overflow:hidden; border-radius:20px;
    background:#061120;
  }
  .hero:before {
    z-index:2; pointer-events:none;
    background:
      linear-gradient(90deg,#04101ef7 0%,#04101ee8 28%,#04101ebd 42%,#04101e70 55%,#04101e18 75%,transparent 100%),
      linear-gradient(0deg,#04101e70 0%,transparent 38%);
  }
  .hero:after { z-index:3; pointer-events:none; }
  .hero-copy {
    position:relative; z-index:4; display:block;
    width:54%; max-width:none; margin:0; padding:0;
  }
  .hero-art {
    position:absolute; inset:0; z-index:1; display:block;
    width:100%; height:100%; min-height:0; margin:0;
    aspect-ratio:auto; overflow:hidden; border-radius:inherit;
    background:#061120; pointer-events:none;
  }
  .hero-main-visual {
    position:absolute; inset:0; display:block;
    width:100%; height:100%; max-width:none; max-height:none;
    transform:none; object-fit:cover; object-position:50% center;
    opacity:1; filter:saturate(1.06) contrast(1.04);
    -webkit-mask-image:none; mask-image:none;
  }
  .hero .eyebrow {
    display:flex; flex-wrap:wrap; align-items:center; gap:4px;
    margin-bottom:8px; font-size:7px; letter-spacing:.08em; line-height:1.35;
  }
  .hero .eyebrow-cn { font-size:7px; letter-spacing:0; }
  .hero h1 {
    max-width:none; margin:0 0 8px;
    font-size:clamp(23px,6.2vw,29px); line-height:1.12; letter-spacing:-.055em;
  }
  .hero-lede { margin:0 0 8px; max-width:100%; font-size:8px; line-height:1.55; }
  .hero-points { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:8px 0 0; }
  .hero-points>span {
    display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
    min-width:0; min-height:34px; gap:3px; padding:5px 4px;
    border-radius:7px; font-size:7px; line-height:1.2;
    white-space:normal; background:#0b1d30d9; border:1px solid #c7f6ff18;
  }
  .point-icon { width:15px; height:15px; font-size:8px; }
  .hero-caveat { margin:7px 0 0; max-width:100%; font-size:6.5px; line-height:1.35; }
}
@media (max-width:430px) and (orientation:portrait) {
  .hero { aspect-ratio:1.68; padding:13px 12px; }
  .hero-copy { width:55%; }
  .hero h1 { font-size:clamp(22px,6vw,26px); }
  .hero-lede { font-size:7.5px; }
  .hero-points>span { font-size:6.5px; }
  .hero-caveat { font-size:6px; }
}

/* Final visual balance: smaller hero, readable text, the artwork remains the background board. */
.hero {
  min-height:clamp(360px,30vw,455px);
  padding:clamp(32px,3.5vw,50px) clamp(26px,3.2vw,48px);
}
.hero-copy { width:min(46%,640px); }
.hero h1 { font-size:clamp(34px,3.65vw,54px); }
.hero-lede { font-size:clamp(13px,1.05vw,15.5px); }

@media (max-device-width:720px) and (orientation:portrait),
       (max-width:680px) and (orientation:portrait) and (pointer:coarse) {
  .hero {
    display:block;
    position:relative;
    width:100%;
    min-height:0;
    height:clamp(195px,50vw,225px);
    aspect-ratio:auto;
    padding:14px 13px;
    overflow:hidden;
  }
  .hero-copy { width:58%; max-width:none; margin:0; padding:0; }
  .hero:before {
    z-index:2;
    background:
      linear-gradient(90deg,#04101efb 0%,#04101ef0 30%,#04101ecc 46%,#04101e75 61%,#04101e12 84%,transparent 100%),
      linear-gradient(0deg,#04101e55 0%,transparent 42%);
  }
  .hero:after { z-index:3; pointer-events:none; }
  .hero-art { position:absolute; inset:0; z-index:1; width:100%; height:100%; margin:0; }
  .hero-main-visual {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:68% center;
  }
  .hero .eyebrow { gap:4px; margin-bottom:8px; font-size:8px; line-height:1.35; letter-spacing:.07em; }
  .hero .eyebrow-cn { font-size:8px; }
  .hero h1 { margin:0 0 8px; font-size:clamp(23px,6.4vw,27px); line-height:1.13; letter-spacing:-.045em; }
  .hero-lede { margin:0 0 8px; max-width:100%; font-size:9.5px; line-height:1.5; }
  .hero-points { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; margin:8px 0 0; }
  .hero-points>span {
    display:flex; flex-direction:row; align-items:center; justify-content:center;
    gap:3px; min-width:0; min-height:31px; padding:4px 3px;
    border-radius:7px; font-size:7.8px; line-height:1.2; white-space:nowrap;
    background:#0b1d30e8; border:1px solid #c7f6ff22;
  }
  .point-icon { width:12px; height:12px; border-radius:4px; font-size:7px; }
  .hero-caveat { margin:7px 0 0; max-width:100%; font-size:7.5px; line-height:1.35; }
}
@media (max-width:430px) and (orientation:portrait) {
  .hero { height:clamp(195px,50vw,215px); padding:13px 12px; }
  .hero-copy { width:59%; }
  .hero h1 { font-size:clamp(22px,6.2vw,25px); }
  .hero-lede { font-size:9px; }
  .hero-points>span { font-size:7.3px; }
  .hero-caveat { font-size:7px; }
}

