:root {
  color-scheme: dark;
  --bg: #1d212b;
  --surface: #252b36;
  --surface-strong: #323a48;
  --text: #f0f2f5;
  --muted: #98a3b3;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .2);
  --accent: #47d19f;
  --accent-soft: rgba(71, 209, 159, .13);
  --black: #090b0e;
  --danger: #f0b86e;
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.site-header { height: 56px; padding: 0 clamp(20px, 4.8vw, 76px); display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); border-bottom: 1px solid rgba(255,255,255,.05); background: rgba(0,0,0,.62); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.03em; white-space: nowrap; }
.brand b { color: var(--accent); }
.brand-mark { width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.17); border-radius: 8px; display: grid; place-items: center; color: #10251e; background: var(--accent); font-size: 13px; font-weight: 900; }
.site-header nav { display: flex; gap: clamp(17px, 1.8vw, 28px); align-items: center; }
.site-header nav a { color: #aab3c0; text-decoration: none; font-size: 13px; font-weight: 610; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a.active { color: var(--text); }
.header-cta { margin-left: auto; min-height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 720; }
.header-cta:hover { color: #10251e; border-color: var(--accent); background: var(--accent); }
.header-cta span { color: var(--accent); }
.header-cta:hover span { color: inherit; }

.page { min-height: calc(100vh - 56px); }
.hero { max-width: 1504px; min-height: 640px; margin: 0 auto; padding: 132px clamp(28px, 5.1vw, 76px) 78px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; background-image: linear-gradient(90deg, rgba(11,14,18,.93) 0%, rgba(14,18,23,.78) 31%, rgba(16,21,27,.24) 67%, rgba(16,21,27,.08) 100%), linear-gradient(0deg, rgba(29,33,43,.34), rgba(29,33,43,.05)), url("/site/assets/hero-multimodal.webp"); background-position: center; background-size: cover; }
.model-count-label, .section-kicker, .eyebrow { margin: 0 0 20px; color: var(--muted); font-size: 11px; font-weight: 760; letter-spacing: .15em; }
.model-count-label { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.model-count-label strong { color: var(--accent); }
.hero h1 { margin: 0; max-width: 950px; font-size: clamp(54px, 5vw, 72px); line-height: 1.04; letter-spacing: -.052em; font-weight: 800; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 710px; margin: 27px 0 0; color: #d4d9df; font-size: 17px; line-height: 1.75; text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 49px; padding: 0 26px; border: 1px solid var(--line-strong); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; font-weight: 740; font-size: 14px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #10251e; border-color: var(--accent); background: var(--accent); box-shadow: 0 7px 0 rgba(0,0,0,.3), 0 12px 28px rgba(71,209,159,.11); }
.button.primary:hover { background: #60e4b3; }
.button.secondary { background: rgba(0,0,0,.2); }
.button.secondary:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); }
.workflow { padding: 78px max(28px, calc((100vw - 1400px) / 2)) 94px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background-color: #202630; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 40px 40px; }
.workflow h2, .section-heading h2, .faq-shell > h2 { margin: 0; font-size: clamp(36px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; }
.workflow ol { list-style: none; margin: 43px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.workflow li { min-height: 240px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); box-shadow: 0 16px 36px rgba(0,0,0,.12); }
.workflow li b { color: var(--accent); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow li strong { display: block; margin-top: 58px; font-size: 18px; }
.workflow li p { margin: 11px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.section-shell { max-width: 1400px; margin: 0 auto; padding: 108px 28px; }
.section-heading { margin-bottom: 34px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading > a { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 700; }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.model-card { min-width: 0; min-height: 232px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); text-decoration: none; box-shadow: 0 12px 34px rgba(0,0,0,.1); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.model-card:hover { transform: translateY(-3px); border-color: rgba(71,209,159,.55); background: #37404f; }
.model-card-top { display: flex; justify-content: space-between; gap: 14px; }
.model-icon { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid rgba(71,209,159,.24); border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.status { align-self: flex-start; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 850; }
.status.offline { color: var(--danger); background: rgba(240,184,110,.12); }
.model-card h3 { margin: 19px 0 5px; font-size: 17px; letter-spacing: -.025em; }
.model-id { overflow: hidden; color: #7f8a99; text-overflow: ellipsis; white-space: nowrap; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.model-card p { min-height: 42px; margin: 14px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.model-price { padding-top: 15px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.model-price strong { color: var(--text); font-size: 11px; text-align: right; }
.loading-grid { grid-template-columns: 1fr; color: var(--muted); text-align: center; }
.loading-grid > p, .empty { width: 100%; margin: 0; padding: 66px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); background: rgba(0,0,0,.08); text-align: center; }

.modality-shell { max-width: 1400px; margin: 0 auto; padding: 12px 28px 110px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.modality-shell article { min-height: 290px; padding: 42px 0; border-top: 1px solid var(--line); }
.modality-shell article:nth-child(odd) { padding-right: 52px; }
.modality-shell article:nth-child(even) { padding-left: 52px; border-left: 1px solid var(--line); }
.modality-shell span { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.modality-shell h2 { margin: 44px 0 13px; font-size: 32px; letter-spacing: -.035em; }
.modality-shell p { max-width: 490px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.modality-shell a { display: inline-block; margin-top: 27px; color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 720; }

.faq-shell { max-width: 1400px; margin: 0 auto; padding: 35px 28px 120px; }
.faq-shell > h2 { margin-bottom: 40px; }
.faq-shell details { border-top: 1px solid var(--line); }
.faq-shell details:last-child { border-bottom: 1px solid var(--line); }
.faq-shell summary { padding: 24px 2px; cursor: pointer; font-size: 16px; font-weight: 670; }
.faq-shell details p { max-width: 800px; margin: -6px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.75; }

.page-hero { max-width: 1400px; margin: 0 auto; padding: 98px 28px 66px; }
.page-hero.compact { padding-bottom: 58px; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { margin: 0; max-width: 900px; font-size: clamp(48px, 5vw, 68px); letter-spacing: -.055em; line-height: 1.02; }
.page-hero > p:last-child { max-width: 680px; margin: 23px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.catalog-tools { max-width: 1400px; margin: 12px auto 0; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-row button { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 720; }
.filter-row button:hover { border-color: var(--line-strong); }
.filter-row button.active { color: #10251e; border-color: var(--accent); background: var(--accent); }
.search-box { min-width: 290px; padding: 0 13px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.search-box input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; }
.catalog-summary { max-width: 1400px; margin: 30px auto 18px; padding: 0 28px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.catalog-summary span { color: var(--text); font-weight: 760; }
.catalog-page > .model-grid { max-width: 1400px; margin: 0 auto; padding: 0 28px 105px; }

.pricing-principles { max-width: 1400px; margin: 10px auto 18px; padding: 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing-principles article { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.pricing-principles span { color: var(--accent); font: 11px ui-monospace, monospace; }
.pricing-principles h3 { margin: 48px 0 8px; }
.pricing-principles p { margin: 0; color: var(--muted); font-size: 12px; }
.price-table-wrap { max-width: 1400px; margin: 24px auto 105px; padding: 0 28px; overflow-x: auto; }
table { min-width: 760px; width: 100%; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); font-size: 12px; }
th, td { padding: 17px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: var(--surface-strong); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border: 0; }

.detail-page { max-width: 1400px; margin: 0 auto; padding: 55px 28px 105px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 12px; }
.detail-hero { margin-top: 35px; padding: clamp(30px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-strong); }
.detail-hero h1 { margin: 30px 0 8px; font-size: clamp(42px, 6vw, 70px); letter-spacing: -.055em; }
.detail-hero .model-id { color: var(--muted); }
.detail-hero p { max-width: 700px; color: var(--muted); line-height: 1.7; }
.detail-badges { display: flex; gap: 8px; }
.detail-badges span { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 10px; }
.detail-grid { margin-top: 18px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.detail-panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.detail-panel h2 { margin: 0 0 22px; font-size: 19px; }
.detail-panel dl { margin: 0; display: grid; gap: 17px; }
.detail-panel dl div { display: flex; justify-content: space-between; gap: 15px; }
.detail-panel dt { color: var(--muted); }
.detail-panel dd { margin: 0; text-align: right; font-weight: 700; }
.code-panel pre { min-height: 210px; margin: 0; padding: 20px; overflow: auto; border-radius: 12px; color: #d5eee5; background: #0b0e12; font: 11px/1.75 ui-monospace, monospace; }
.detail-actions { display: flex; gap: 10px; margin-top: 17px; }

.playground-grid { max-width: 1400px; margin: 10px auto 105px; padding: 0 28px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 18px; }
.playground-form, .playground-output { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.playground-form { display: grid; gap: 18px; }
.playground-form label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 720; }
.playground-form input, .playground-form select, .playground-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 10px; outline: none; resize: vertical; background: #181c24; }
.playground-form input:focus, .playground-form select:focus, .playground-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.privacy-note { margin: -7px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.playground-output { min-width: 0; color: #d5eee5; background: #0b0e12; border-color: #0b0e12; }
.output-head { display: flex; justify-content: space-between; color: #719a8b; font-size: 10px; letter-spacing: .12em; }
.output-head button { border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 10px; }
.playground-output pre { min-height: 365px; margin: 20px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.75 ui-monospace, monospace; }
.output-meta { padding-top: 14px; display: flex; gap: 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

footer { min-height: 270px; padding: 62px max(28px, calc((100vw - 1400px) / 2)); display: flex; align-items: flex-start; gap: 28px; border-top: 1px solid var(--line); background: var(--black); }
footer p { margin: 9px 0 0; color: #707985; font-size: 11px; }
footer > div { margin-left: auto; display: flex; gap: 28px; }
footer > div a { color: var(--muted); text-decoration: none; font-size: 11px; }
footer > div a:hover { color: var(--text); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; padding: 13px 17px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: var(--surface-strong); box-shadow: 0 20px 60px rgba(0,0,0,.28); transform: translateY(100px); opacity: 0; transition: .2s; font-size: 12px; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .site-header nav a:nth-child(n+5) { display: none; }
  .model-grid, .workflow ol { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pricing-principles { grid-template-columns: 1fr; }
  .detail-grid, .playground-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header { padding: 0 16px; }
  .site-header nav { display: none; }
  .header-cta { font-size: 11px; }
  .hero { min-height: 590px; padding: 94px 20px 72px; background-position: 58% center; }
  .hero h1 { font-size: clamp(46px, 14vw, 62px); }
  .hero-lead { font-size: 15px; }
  .workflow { padding: 72px 18px; }
  .workflow ol, .model-grid, .modality-shell { grid-template-columns: 1fr; }
  .workflow li { min-height: 205px; }
  .section-shell { padding: 82px 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .modality-shell { padding: 0 18px 80px; }
  .modality-shell article, .modality-shell article:nth-child(odd), .modality-shell article:nth-child(even) { min-height: auto; padding: 42px 0; border-left: 0; }
  .modality-shell h2 { margin-top: 28px; }
  .faq-shell { padding: 22px 18px 85px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .catalog-summary { gap: 15px; flex-direction: column; }
  .page-hero { padding: 72px 18px 45px; }
  .catalog-page > .model-grid, .pricing-principles, .price-table-wrap, .playground-grid { padding-left: 18px; padding-right: 18px; }
  .detail-page { padding: 35px 18px 75px; }
  footer { min-height: 250px; padding: 48px 20px; align-items: flex-start; flex-direction: column; }
  footer > div { margin-left: 0; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
