:root {
    color-scheme: light;
    --page: #f5f7fc; --surface: #fff; --surface-soft: #f7f8fd; --text: #12172d; --muted: #46516d;
    --border: #e5e9f4; --input-border: #bfc9df; --brand: #651cf2; --brand-strong: #5321cb;
    --tint: #f0eafe; --shadow: 0 7px 20px #342e7109, 0 1px 3px #312c7208;
    --radius: 15px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #131526; --surface: #1c2035; --surface-soft: #242842; --text: #f4f3fc; --muted: #c0c6de;
    --border: #353a56; --input-border: #565e7b; --brand: #c2aaff; --brand-strong: #d3bfff;
    --tint: #30254c; --shadow: 0 6px 20px #08091543;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
[hidden] { display: none !important }
body { margin: 0; background: radial-gradient(ellipse at 68% 32%, #8171f008, transparent 64%), var(--page); color: var(--text); font: 15px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif }
.shell { width: min(100% - 52px, 1184px); margin-inline: auto }
a { color: var(--brand-strong); text-underline-offset: .22em; text-decoration-thickness: .08em }
button, select, input { font: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid #9255fb; outline-offset: 3px }
section[id], details[id], #providers { scroll-margin-top: 20px }
h1, h2, p { margin: 0 } h2 { font-size: clamp(1.13rem, 2vw, 1.42rem); line-height: 1.2; letter-spacing: -.025em }
small { font-size: .79rem }
.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; display: inline-block; vertical-align: middle }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; clip-path: inset(50%) }
.skip:focus { position: fixed; top: .65rem; left: .65rem; z-index: 3; background: var(--surface); padding: .6rem }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow) }
.header-layout { min-height: 80px; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand tagline actions" "nav nav actions"; gap: 5px 16px; align-items: center; padding: 9px 10px 10px }
.brand { color: var(--text); text-decoration: none; font-size: 1.43rem; font-weight: 850; letter-spacing: -.047em; display: inline-flex; gap: .55rem; align-items: center; width: fit-content }
.header-layout > .brand { grid-area: brand }
.tagline { grid-area: tagline; width: fit-content; padding-left: 16px; border-left: 1px solid var(--input-border); color: var(--muted); font-weight: 570; font-size: .8rem }
.radar-mark { width: 30px; aspect-ratio: 1; position: relative; border: 2px dashed var(--brand); border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--surface) }
.radar-mark::before, .radar-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--brand); border-radius: 50% }
.radar-mark::after { inset: 11px -3px; border-width: 1px 0; border-radius: 0; transform: rotate(-37deg) }
.radar-mark i { width: 8px; height: 8px; background: var(--brand); border-radius: 50% }
.navigation { grid-area: nav; display: flex; justify-content: center; align-items: center; gap: clamp(.2rem, 1.2vw, 1.3rem); overflow: auto; scrollbar-width: thin }
.navigation a, .navigation button { text-decoration: none; color: var(--text); padding: .31rem .62rem; font-size: .83rem; white-space: nowrap; border: 0; border-radius: 7px; background: transparent; font-weight: 620 }
.navigation [aria-current], .navigation a:hover, .navigation button:hover { color: var(--brand-strong); background: var(--tint) }
.header-actions { grid-area: actions; align-self: start; display: flex; gap: .55rem }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 40px; height: 40px; color: var(--muted); border: 1px solid var(--border); border-radius: 9px; background: var(--surface-soft); font-size: 1.13rem }
.icon-button:hover, .icon-button[aria-pressed="true"] { color: var(--brand); background: var(--tint) }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow) }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(0, 1fr); align-items: center; min-height: 258px; margin-top: 17px; padding: clamp(22px, 3.2vw, 38px); overflow: hidden; background: radial-gradient(ellipse at 80% 75%, #a28df323, transparent 55%), var(--surface) }
.hero h1 { font-size: clamp(2.05rem, 3.8vw, 3.05rem); letter-spacing: -.055em; line-height: 1.02; font-weight: 830 }
.hero p { margin: .65rem 0 1rem; color: var(--muted); max-width: 57ch; line-height: 1.36; font-size: clamp(1rem, 1.5vw, 1.12rem) }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap }
.hero-art { position: absolute; right: 1%; top: -8%; bottom: -6%; width: 44%; display: grid; place-items: center; z-index: -1 }
.hero-art img { width: 100%; height: 100%; object-fit: contain; position: relative; grid-area: 1 / 1 }
.chip-fallback { grid-area: 1 / 1; width: 138px; aspect-ratio: 1; transform: rotate(-31deg) skew(22deg); position: relative }
.chip-fallback i, .chip-fallback span { position: absolute; inset: 0; border-radius: 22px; background: #d9c8ff; box-shadow: 0 10px #a18bef, 0 20px 20px #6033e33b }
.chip-fallback i:nth-child(2) { inset: 12px; transform: translate(15px,-15px); background: #9c64ff; box-shadow: 0 10px #6125df }
.chip-fallback span { inset: 29px; transform: translate(24px,-24px); color: #6225d9; display: grid; place-items: center; font-size: 2.4rem; font-weight: 900; box-shadow: 0 6px #b79cfb }
.hero-art:has(img) .chip-fallback { visibility: hidden }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .48rem; min-height: 40px; padding: .58rem .96rem; border: 1px solid transparent; border-radius: 9px; text-decoration: none; text-align: center; font-weight: 730; line-height: 1.2; white-space: normal }
.button:hover { filter: brightness(1.06) }
.primary { color: #fff; background: linear-gradient(112deg, #842cf1, #5a20d6); box-shadow: 0 3px 8px #6625dc2d }
.secondary { color: var(--text); border-color: var(--input-border); background: var(--surface-soft); box-shadow: var(--shadow) }
.outline { color: var(--brand-strong); border-color: #9b64ff; background: var(--tint) }
.full { width: 100% }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; list-style: none; padding: 0 1.2rem; margin: 18px 0 24px }
.benefits li, .section-heading { display: flex; align-items: flex-start; gap: .75rem }
.benefits li > .icon, .section-heading > .icon { width: 2rem; height: 2rem; color: var(--brand); stroke-width: 1.7 }
.benefits strong, .benefits small { display: block }
.benefits strong { font-size: .9rem; line-height: 1.18 }
.benefits small, .section-heading p { color: var(--muted) }
.section-heading p { margin-top: .24rem; font-size: .9rem; line-height: 1.35 }
.quick, .tool-card, .model-card, .result, .method { padding: clamp(14px, 2vw, 23px) }
.picker { display: grid; grid-template-columns: 1fr minmax(180px, 24%); gap: 12px; margin: 14px 0 8px }
.picker-field { display: flex; align-items: center; position: relative }
.picker-field > .icon { position: absolute; z-index: 1; left: 13px; pointer-events: none; font-size: 1.1rem }
.picker-field select { min-height: 40px; padding-left: 44px; margin: 0 }
.chips { display: flex; gap: .48rem; flex-wrap: wrap }
.chip { min-height: 30px; border: 1px solid var(--border); background: var(--surface-soft); border-radius: 8px; padding: .3rem .66rem; display: inline-flex; gap: .36rem; align-items: center; justify-content: center; color: var(--text); font-size: .79rem; font-weight: 650; white-space: nowrap }
.chip:hover, .chip[aria-pressed="true"] { color: var(--brand-strong); border-color: #a77afa; background: var(--tint) }
.chip.active { background: linear-gradient(110deg, #842cf1, #5a20d6); border-color: transparent; color: white }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0 }
.tool-card { display: flex; flex-direction: column; min-width: 0 }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px .72rem; margin: 9px 0 }
label { display: block; min-width: 0; font-size: .78rem; font-weight: 650 }
input:not([type="checkbox"]), select { display: block; width: 100%; min-width: 0; min-height: 34px; margin-top: 3px; border: 1px solid var(--input-border); border-radius: 7px; padding: .34rem .53rem; background: var(--surface-soft); color: var(--text); font-size: .9rem }
.model-select { margin-bottom: .6rem; width: 100% }
.own-rates { font-size: .78rem; color: var(--muted); margin: .28rem 0 .58rem }
summary { cursor: pointer; font-weight: 650 }
.rates, .deployment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .62rem; margin-block: .5rem }
fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; padding: .5rem; border: 1px solid var(--border); border-radius: 8px; min-width: 0; margin: 0 }
.estimate { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: .6rem; background: var(--surface-soft); padding: .55rem .77rem; border: 1px solid var(--border); border-radius: 10px; margin: 7px 0 10px }
.estimate strong { font-size: .79rem }.estimate small { color: var(--muted) }
#budget-preview { font-size: clamp(1.15rem, 2.45vw, 1.78rem); font-weight: 840; letter-spacing: -.047em; white-space: nowrap }
.estimate .icon { color: var(--brand); opacity: .58; width: 1.8rem; height: 1.8rem }
.budget-actions > a { display: inline-block; margin-top: .32rem; font-size: .75rem }
.local .full { margin-top: auto }
.deployment-body { display: grid; grid-template-columns: 1fr 126px; align-items: center; gap: .35rem; margin: .85rem 0 1.15rem }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; font-size: .82rem }
.checks li { display: flex; gap: .53rem; align-items: center }
.checks .icon { padding: .23rem; width: 1.55rem; height: 1.55rem; background: var(--tint); color: var(--brand); border-radius: 50%; stroke-width: 2 }
.gpu-art { position: relative; isolation: isolate; width: 120px; height: 103px; margin: .2rem .2rem .2rem auto }
.gpu-art i { position: absolute; width: 80px; height: 45px; left: 15px; border-radius: 12px; background: linear-gradient(145deg,#eeebff,#a79af9); transform: rotate(-28deg) skew(29deg); box-shadow: 0 10px #8b75ed, 0 12px 9px #5752af42 }
.gpu-art i:first-child { top: 42px }.gpu-art i:nth-child(2) { top: 27px }.gpu-art i:nth-child(3) { top: 12px }
.gpu-art strong { display: grid; place-items: center; position: absolute; right: 1px; bottom: 1px; width: 57px; height: 48px; color: white; background: linear-gradient(140deg,#51479d,#211b68); border: 4px solid #dfd7ff; box-shadow: 0 4px #a498f3; border-radius: 11px }
.result { margin-bottom: 14px }.result p { margin-top: .6rem }.result td strong { color: var(--brand-strong) }
.inline-notice { margin: .5rem 0; padding: .58rem .7rem; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); background: var(--surface-soft); font-size: .82rem }
.error { color: #c44368; display: block; margin-top: .18rem }.muted { color: var(--muted) }
.models-toolbar { display: flex; gap: .7rem; justify-content: space-between; align-items: flex-start; margin: .75rem 0 }
.text-button { border: 0; padding: .38rem 0; background: transparent; color: var(--brand-strong); font-size: .83rem; font-weight: 720; white-space: nowrap }
.model-scroll, .table-wrap { position: relative; overflow: auto; scrollbar-width: thin }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-variant-numeric: tabular-nums }
th, td { padding: .54rem .63rem; border-bottom: 1px solid var(--border); white-space: nowrap }
thead th { background: var(--surface-soft); color: var(--muted); font-size: .79rem; font-weight: 680 }
thead th:first-child { border-radius: 8px 0 0 0 } thead th:last-child { border-radius: 0 8px 0 0 }
tbody tr:last-child > * { border-bottom: 0 }
tbody tr:hover > * { background: var(--surface-soft) }
.model-table { font-size: .86rem }
table small { display: block; color: var(--muted); font-weight: 500; line-height: 1.2 }
.model-identity, .row-actions, .features { display: flex; align-items: center; gap: .5rem }
.model-symbol { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--brand-strong) }
.features { color: var(--muted); font-size: 1rem }
.row-actions { justify-content: flex-end }
.compare-chip { background: var(--tint); color: var(--brand-strong); border-color: transparent; font-size: .76rem }
.save-button { width: 28px; height: 28px; border-color: transparent; background: transparent; font-size: .94rem }
.provider-summary { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem .45rem 0; color: var(--muted); font-size: .76rem }
.compare-tray { border-top: 1px solid var(--border); margin-top: .7rem; padding-top: .7rem; display: flex; align-items: center; gap: .8rem; flex-wrap: wrap }
.updates { isolation: isolate; position: relative; overflow: hidden; border-radius: var(--radius); margin-top: 18px; min-height: 166px; display: flex; align-items: center; padding: 1.4rem clamp(18px, 4vw, 50px); background: radial-gradient(ellipse at 70% 20%, #5e3a9d, transparent 69%), linear-gradient(116deg,#29244d,#26214f 46%,#443073); color: #fff }
.updates-content { z-index: 1 }.updates h2 { font-size: clamp(1.4rem,3vw,2rem) }.updates p { max-width: 33ch; margin: .36rem 0 .75rem; color: #eeebff }
.market-chart { position: absolute; z-index: -1; inset: 0 0 0 35% }
.market-chart canvas { position: absolute; inset: 0; width: 100%; height: 100% }
.chart-grid { position: absolute; inset: 29% 0 0; background: repeating-linear-gradient(90deg, transparent 0 8%, #a776e433 8% 8.15%), repeating-linear-gradient(0deg, transparent 0 25%, #a776e42b 25% 25.6%); mask-image: linear-gradient(90deg,transparent,#000 45%) }
.graph-tag { position: absolute; display: inline-flex; align-items: center; gap: .42rem; background: #6f54b086; color: white; border: 1px solid #b695fa95; border-radius: 8px; font-size: .76rem; padding: .38rem .63rem; white-space: nowrap }
.graph-new { top: 12%; left: 48%; background: #4a817788 }.graph-price { top: 46%; left: 25% }.graph-api { top: 54%; right: 5%; background: #a374bc72 }
.method { margin: 17px 0 0; padding-block: .8rem; font-size: .85rem }.method p { margin-top: .55rem; color: var(--muted) }
.footer { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--muted) }.footer .brand { font-size: 1rem }.footer > a:last-child { font-size: .82rem }
dialog { padding: 0; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); color: var(--text); width: min(100% - 2rem, 35rem); max-height: 85vh; box-shadow: 0 14px 70px #17133160 }
dialog::backdrop { background: #16122a88 }
.dialog-body { padding: 1rem 1.15rem 1.25rem }.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .65rem }.dialog-heading .icon-button { width: 32px; height: 32px }
.search-results { margin: .65rem 0 0; padding-left: 1rem; display: grid; gap: .55rem; font-size: .91rem }
.deployment-form button { grid-column: 1 / -1 }.dialog-body .muted { font-size: .82rem; margin-top: .55rem }
.compare-body { overflow: auto }.subscribe-form { display: grid; gap: .8rem }.checkbox { display: flex; gap: .45rem; align-items: center }
@media (min-width: 1250px) { .hero { min-height: 285px }.tool-card { min-height: 345px } }
@media (max-width: 950px) { .hero h1 { font-size: clamp(2rem,4.4vw,3rem) }.desktop-break { display: none }.header-layout { padding-inline: 0 }.navigation { justify-content: flex-start }.graph-tag { font-size: .68rem }.deployment-body { grid-template-columns: 1fr 98px }.gpu-art { scale: .8; transform-origin: right center } }
@media (max-width: 720px) {
    .shell { width: calc(100% - 26px) }.tagline { display: none }.header-layout { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "nav nav"; gap: 8px }.navigation a,.navigation button { padding-inline: .5rem }
    .hero { grid-template-columns: 1fr; min-height: unset; padding: 1.1rem; margin-top: 12px }.hero-art { position: relative; inset: auto; height: 150px; width: 100%; margin-top: .3rem; z-index: 0 }
    .benefits { grid-template-columns: repeat(2, minmax(0,1fr)); padding: 0 .3rem; margin-bottom: 16px }
    .picker { grid-template-columns: 1fr }.picker .button { justify-self: stretch }
    .tool-grid { grid-template-columns: 1fr }.deployment-body { grid-template-columns: 1fr 110px }
    .models-toolbar { flex-wrap: wrap }.model-table { min-width: 565px }
    .market-chart { inset-inline-start: 24%; opacity: .52 }.graph-price,.graph-api { display: none }.graph-new { left: auto; right: 2% }
}
@media (max-width: 420px) {
    .hero-actions .button { flex: 1; min-width: 100%; justify-content: center }
    .benefits li > .icon { width: 1.45rem; height: 1.45rem }.benefits li { gap: .38rem }.benefits small { line-height: 1.2; margin-top: .15rem }
    .fields { grid-template-columns: repeat(2,minmax(0,1fr)) }.fields > label:first-child { grid-column: 1 / -1 }
    .deployment-body { grid-template-columns: 1fr 70px }.gpu-art { scale: .62; margin-inline-start: -49px }
    .estimate { grid-template-columns: 1fr auto }.estimate > .icon { display: none }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
