@import url('/fonts/inter.css');

:root {
  color-scheme: light;
  --canvas: #f7f8fb;
  --paper: #fff;
  --ink: #191d2a;
  --muted: #575f71;
  --border: #dfe3ec;
  --indigo: #354adb;
  --indigo-deep: #2636af;
  --tint: #edf0ff;
  --radius: 18px;
  font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
:where(button, a, input, textarea):focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { display: inline-block; width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.skip { position: fixed; z-index: 10; top: .5rem; left: 1rem; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: .65rem 1rem; color: white; background: var(--ink); border-radius: .5rem; }
.top { background: var(--paper); border-bottom: 1px solid var(--border); }
.top-inner, .shell { width: min(1200px, calc(100% - clamp(44px, 10vw, 144px))); margin-inline: auto; }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.brand { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: #151929; }
.brand img { width: 39px; height: 39px; }
.brand span { font-weight: 850; font-size: 1.49rem; line-height: 1; letter-spacing: -.07em; }
nav { display: flex; align-items: center; gap: .18rem; }
nav a { display: inline-flex; align-items: center; gap: .45rem; padding: .58rem .84rem; border-radius: .66rem; text-decoration: none; color: #50576a; font-size: .91rem; font-weight: 540; white-space: nowrap; }
nav .ico { width: 17px; height: 17px; }
nav a:hover { background: #f3f4f8; color: var(--ink); }
nav a[aria-current="page"] { background: var(--tint); color: var(--indigo-deep); }
.session, .primary, .outline, .quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 42px; padding: .63rem 1.03rem; border-radius: 10px; border: 1px solid transparent;
  font-size: .93rem; line-height: 1.35; font-weight: 600; text-decoration: none;
}
.session { color: #fff; background: #202435; white-space: nowrap; }
.session:hover { background: #353a50; }
.session .ico { width: 17px; height: 17px; }
.mobile-session { display: none; }
.primary { color: #fff; background: var(--indigo); }
.primary:hover:not(:disabled) { background: var(--indigo-deep); }
.outline { background: var(--paper); color: var(--ink); border-color: #cdd2de; }
.outline:hover { background: #f5f6fc; border-color: #acb3c5; }
.quiet, .text-link { color: var(--indigo-deep); }
.quiet { background: transparent; }
.quiet:hover { background: var(--tint); }
.text-link { align-self: flex-start; display: inline-flex; align-items: center; gap: .42rem; font-size: .9rem; font-weight: 620; text-decoration: none; }
.text-link:hover, .api-example a:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link .ico { width: 14px; height: 14px; }
.page { scroll-margin-top: 9rem; }
.shell { padding: clamp(2rem, 3.15vw, 3rem) 0 clamp(3rem, 6vw, 6rem); }
main { min-width: 0; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.lead { margin-bottom: 1.65rem; }
.lead h1 { font-size: clamp(2.15rem, 3.6vw, 3.2rem); letter-spacing: -.052em; line-height: 1.1; font-weight: 670; }
.lead p { margin-top: .5rem; color: var(--muted); font-size: 1rem; }
.status-card { isolation: isolate; position: relative; overflow: hidden; display: grid; align-items: center; min-height: 286px; border: 1px solid #d8ddf7; border-radius: 21px; background: #e9edfd; }
.hero-copy { z-index: 1; position: relative; width: 55%; max-width: 580px; padding: 2rem clamp(1.5rem, 3.3vw, 3.1rem); }
.model-status { display: inline-flex; align-items: center; gap: .43rem; color: #434a64; background: #fafbffeb; border: 1px solid #d7dced; padding: .26rem .67rem; border-radius: 60px; font-size: .785rem; line-height: 1.4; font-weight: 560; }
.model-status i { width: 7px; height: 7px; border-radius: 50%; background: #b66c0d; }
.model-status[data-state="online"] i { background: #277e60; }
.model-status[data-state="loading"] i { background: #747b91; }
.hero-copy h2 { font-size: clamp(2.4rem, 3.85vw, 3.65rem); line-height: 1.02; font-weight: 660; letter-spacing: -.052em; margin: .9rem 0 .65rem; }
.hero-copy p { max-width: 37ch; color: #4d5773; }
.hero-button { margin-top: 1.15rem; padding-inline: 1.2rem; }
.hero-button .ico { width: 17px; height: 17px; }
.hero-art { position: absolute; z-index: 0; inset: 0 0 0 auto; width: 53%; display: flex; align-items: center; justify-content: center; pointer-events: none; background: linear-gradient(90deg, #e9edfd, #e3e6fc 75%); }
.hero-art img { width: auto; max-width: 100%; height: 100%; object-fit: contain; display: block; mask-image: linear-gradient(90deg, transparent, black 11%, black 88%, transparent), linear-gradient(180deg, transparent, black 8%, black 92%, transparent); mask-composite: intersect; }

.section-head { display: flex; align-items: center; margin: 1.85rem 0 .9rem; }
.section-head h2, .list-title { font-size: 1.4rem; font-weight: 650; letter-spacing: -.045em; line-height: 1.25; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.summary-card, .panel, .plan, .tool-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); }
.summary-card { padding: 1.25rem 1.45rem 1.22rem; display: flex; align-items: flex-start; flex-direction: column; min-width: 0; }
.card-label { display: flex; align-items: center; gap: .65rem; }
.card-label h3 { color: #434a5a; font-weight: 600; font-size: .94rem; letter-spacing: -.015em; }
.tile-icon, .tool-icon, .dialog-icon { display: inline-grid; place-items: center; flex: none; border-radius: 11px; }
.tile-icon { width: 35px; height: 35px; color: #4753b4; background: #eef0fe; }
.plan-card .tile-icon { color: #695697; background: #f1eef8; }
.bot-card .tile-icon { color: #327497; background: #eaf4fa; }
.metric { margin: .85rem 0 .3rem; line-height: 1.2; letter-spacing: -.052em; font-size: clamp(1.2rem, 2.2vw, 1.85rem); font-weight: 640; overflow-wrap: anywhere; }
.metric strong { font-variant-numeric: tabular-nums; font-weight: 660; }
.metric #trial-unit { font-size: 1.12rem; font-weight: 500; letter-spacing: -.035em; }
.summary-card small, .tool-card small, .plan small, .key-row small { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.summary-card .text-link { margin-top: auto; padding-top: .9rem; }
.trial-track { width: 100%; max-width: 15rem; margin: .12rem 0 .45rem; line-height: 0; }
.trial-track progress { display: block; appearance: none; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 8px; color: var(--indigo); background: #e7eaf4; }
.trial-track progress::-webkit-progress-bar { background: #e7eaf4; }
.trial-track progress::-webkit-progress-value { border-radius: 8px; background: var(--indigo); }
.trial-track progress::-moz-progress-bar { border-radius: 8px; background: var(--indigo); }
.tool-grid, .plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.tool-card { display: flex; gap: .95rem; align-items: center; padding: 1.05rem 1.3rem; text-decoration: none; }
.tool-card:hover { border-color: #b6bee8; background: #fdfdff; }
.tool-card strong, .tool-card small { display: block; }
.tool-card strong { font-size: 1.01rem; letter-spacing: -.025em; }
.tool-card > .ico { width: 16px; height: 16px; color: #7a8191; margin-left: auto; }
.tool-icon, .dialog-icon { width: 42px; height: 42px; background: #f0f2fa; color: #46527b; }
.panel, .plan { padding: clamp(1.15rem, 2.7vw, 2rem); }
.panel h2, .plan h2, dialog h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.22; letter-spacing: -.045em; font-weight: 650; margin: 0 0 .55rem; }
.panel h3, .chat-turn h3 { font-size: 1rem; line-height: 1.3; }
.panel p, .page > p, .plan p, dialog p { color: var(--muted); max-width: 77ch; }
.panel + .panel, .panel p + .controls, .secret .controls, .api-example, #chat-form { margin-top: 1rem; }
.panel p + .outline, .panel h2 + [data-login] { margin-top: .5rem; }
.studio-panel .tool-icon, .dialog-icon { margin-bottom: .85rem; color: var(--indigo); background: var(--tint); }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.panel label { display: block; font-weight: 600; margin-bottom: .55rem; }
input, textarea { min-width: 0; max-width: 100%; background: #fafbfe; border: 1px solid #bac3d4; color: var(--ink); padding: .67rem .8rem; border-radius: 9px; }
textarea { display: block; width: 100%; min-height: 100px; resize: vertical; margin: .4rem 0 1rem; }
.controls input { flex: 1; }
.secret input { width: 100%; margin-top: .55rem; font-family: ui-monospace,monospace; }
.list-title { margin: 1.6rem 0 .75rem; }
.key-row { padding: .85rem 0; border-block-start: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.key-row b, .key-row small { display: block; overflow-wrap: anywhere; }
.api-example pre { max-width: 100%; overflow: auto; padding: 1rem; border-radius: 9px; background: #f1f3f8; font-size: .85rem; }
.api-example a { color: var(--indigo-deep); }
.inline-status, #notice { padding: .82rem 1rem; background: #edf1fb; border: 1px solid #dbe2f3; color: #3d4965; border-radius: 10px; }
#notice, .plan-grid { margin-bottom: 1rem; }
.plan-grid { margin-top: 1rem; }
.plan { border-top: 3px solid #b4bcef; }
.plan .price { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.055em; color: var(--ink); margin: .6rem 0; }
.plan small { display: block; margin-block: .3rem; }
.chat-turn { background: white; border: 1px solid var(--border); border-radius: 14px; padding: .9rem 1.1rem; margin-top: 1rem; }
.chat-turn p { margin-top: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
#chat-form .controls { justify-content: space-between; }
dialog { width: min(29rem, calc(100% - 2rem)); padding: 1.55rem; border-radius: 18px; background: white; color: var(--ink); border: 1px solid var(--border); box-shadow: 0 18px 90px #1c264337; }
dialog::backdrop { background: #1e253e61; backdrop-filter: blur(3px); }
dialog .inline-status { margin-top: .8rem; }
dialog .controls { margin-top: 1.1rem; }
@media (max-width: 1030px) {
  .top-inner, .shell { width: calc(100% - 48px); }
  nav a { padding-inline: .64rem; }
  nav .ico { display: none; }
  .hero-copy { width: 57%; }
  .metrics, .tool-grid { gap: .7rem; }
  .summary-card { padding: 1.1rem; }
}
@media (max-width: 860px) {
  .top-inner, .shell { width: calc(100% - 36px); }
  .top-inner { min-height: 61px; }
  .brand img { width: 33px; height: 33px; }
  .brand span { font-size: 1.33rem; }
  .shell { padding-top: 1.6rem; padding-bottom: calc(6rem + env(safe-area-inset-bottom,0px)); }
  nav { position: fixed; z-index: 4; inset: auto 0 0; justify-content: center; align-items: stretch; gap: 0; padding: .32rem .15rem calc(.36rem + env(safe-area-inset-bottom,0px)); background: #fff; border-top: 1px solid var(--border); }
  nav a { flex: 1; max-width: 100px; display: flex; flex-direction: column; justify-content: center; gap: .14rem; min-width: 0; min-height: 46px; font-size: .75rem; padding: .15rem .04rem; border-radius: 8px; }
  nav .ico { display: block; width: 19px; height: 19px; }
  .session { min-height: 38px; padding: .45rem .78rem; }
  .session #session-label { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
  .mobile-session { display: inline; }
  .lead { margin-bottom: 1.15rem; }
  .lead h1 { font-size: clamp(1.9rem, 6.4vw, 2.7rem); }
  .lead p { line-height: 1.45; }
  .status-card { min-height: 244px; border-radius: 17px; }
  .hero-copy { padding: 1.3rem; width: 59%; }
  .hero-copy h2 { font-size: clamp(1.9rem,6.7vw,2.8rem); }
  .hero-copy p { font-size: .92rem; }
  .hero-art { width: 49%; }
  .hero-button { margin-top: 1rem; }
  .section-head { margin: 1.45rem 0 .75rem; }
  .section-head h2 { font-size: 1.24rem; }
  .tools-head { margin-top: 1.45rem; }
  .summary-card { border-radius: 14px; }
  .metric { font-size: 1.35rem; }
  .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .hero-art { width: 55%; right: -5%; top: 14%; height: 76%; background: transparent; }
  .hero-art img { width: 100%; height: auto; }
  .hero-copy { width: 64%; padding: 1.1rem; }
  .hero-copy h2 { font-size: clamp(1.6rem, 6.3vw, 2.1rem); margin-block: .76rem .55rem; }
  .model-status { font-size: .76rem; padding: .23rem .53rem; }
  .hero-button { font-size: .875rem; padding: .56rem .8rem; }
  .metrics, .plan-grid { grid-template-columns: 1fr; }
  .summary-card { padding: 1rem 1.08rem; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .5rem; row-gap: .32rem; }
  .card-label { grid-column: 1; }
  .metric { grid-column: 2; grid-row: 1; margin: 0; text-align: right; }
  .trial-track { grid-column: 1/-1; max-width: none; margin-top: .44rem; }
  .summary-card small { align-self: center; }
  .trial-card small { grid-column: 1/-1; }
  .summary-card .text-link { margin: 0; padding: .2rem 0; align-self: center; justify-self: end; }
  .tool-card { padding: .95rem; }
}
@media (max-width: 370px) {
  nav a { font-size: .69rem; }
  .top-inner, .shell { width: calc(100% - 28px); }
  .hero-copy { width: 65%; padding: .95rem; }
  .hero-art { right: -9%; }
  .summary-card small { font-size: .8rem; }
  .summary-card .text-link { font-size: .81rem; }
  .controls input { flex-basis: 100%; }
}
