/* GamePay API Hub: DeepSeek-style, light, multicolour boxes */
:root {
  --blue: #4d6bfe; --blue-deep: #3a54d8; --sky: #8aa0ff; --mist: #eef2ff; --page: #f7f8fc; --surface: #fff;
  --border: #e3e9fb; --ink: #0f1a3a; --muted: #6c7896; --ok: #16a34a; --warn: #d97706; --bad: #dc2626;
  --shadow: 0 8px 28px rgba(77, 107, 254, .10);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } /* no grey/blue box flashing behind a tapped button on phones */
body[data-tab="chat"] #keyCard, body[data-tab="chat"] #error, body[data-tab="chat"] #debug, body[data-tab="start"] #keyCard, body[data-tab="start"] #error, body[data-tab="start"] #debug { display: none; } /* Chat sits at the top; the key box lives on My key */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); min-height: 100vh; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Myanmar", "Myanmar Text", Padauk, sans-serif;
  background:
    radial-gradient(720px 380px at 100% -5%, rgba(167, 139, 250, .22), transparent 60%),
    radial-gradient(640px 360px at -5% 8%, rgba(77, 107, 254, .16), transparent 60%),
    radial-gradient(700px 420px at 50% 115%, rgba(45, 212, 191, .16), transparent 60%), var(--page);
}
svg.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; shape-rendering: geometricPrecision; }
svg.ic .f { fill: currentColor; fill-opacity: .14; stroke: none; } .tile .ti svg.ic .f { fill-opacity: .26; } .primary svg.ic .f { fill-opacity: .22; }
.keybar label svg.ic { width: 1.45em; height: 1.45em; color: var(--blue); stroke-width: 2; }
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; align-content: start; }
.side { padding: 12px 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; } .brand b { display: block; font-size: 17px; }
.brand-logo { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 20px rgba(14, 116, 224, .25); flex: none; }
.muted { color: var(--muted); font-size: 14px; }
.main { padding: 12px 14px 112px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; max-width: 760px; width: 100%; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 30px rgba(31, 41, 90, .07); }
p { margin: 0; }
h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; } h3 { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
label { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.row { display: flex; gap: 8px; align-items: center; }
input, textarea { font: inherit; color: var(--ink); }
input[type=password], input[type=text] { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.masked { -webkit-text-security: disc; text-security: disc; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(77, 107, 254, .35); outline-offset: 2px; }
button { font: inherit; cursor: pointer; border-radius: 999px; padding: 11px 18px; border: 0; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.primary { background: var(--blue); color: #fff !important; font-weight: 700; border-radius: 14px; box-shadow: 0 1px 2px rgba(31, 41, 90, .18), inset 0 1px 0 rgba(255, 255, 255, .18); transition: background .15s ease, transform .12s ease; }
.primary:hover { background: var(--blue-deep); } .primary[disabled] { opacity: .6; cursor: progress; }
.icon-btn { background: var(--mist); color: var(--blue-deep) !important; border: 1px solid var(--border); padding: 11px; flex: none; border-radius: 14px; }
.round { padding: 12px; flex: none; }
.small { padding: 7px 14px; font-size: 13.5px; background: var(--mist); color: var(--blue-deep) !important; border: 1px solid var(--border); font-weight: 600; }
.keyacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; } .keyacts button { height: 46px; padding: 0 10px; border-radius: 14px; font-weight: 700; }
.soft { background: var(--mist); color: var(--blue-deep) !important; border: 1px solid var(--border); border-radius: 14px; font-weight: 700; }
.soft.danger { color: #b42318 !important; border-color: #f4d4d4; }
/* Tactile buttons: matte, soft-touch. A faint top light, a thin darker bottom edge and a soft shadow; pressed buttons sink in. No glossy shine. */
button { transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.primary { background: linear-gradient(180deg, #5873ff 0%, #4d6bfe 55%, #4560f0 100%); border: 1px solid #3a54d8;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -2px 0 rgba(20, 35, 120, .16) inset, 0 1px 2px rgba(31, 41, 90, .2), 0 6px 14px rgba(77, 107, 254, .24); }
.primary:hover { background: linear-gradient(180deg, #4f6bf8 0%, #4160ec 55%, #3a54d8 100%); }
.icon-btn, .soft, .small, .mpick { background: linear-gradient(180deg, #ffffff 0%, #f0f3ff 100%); border: 1px solid var(--border);
  box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(77, 107, 254, .07) inset, 0 1px 2px rgba(31, 41, 90, .07), 0 4px 10px rgba(77, 107, 254, .08); }
.soft.danger { background: linear-gradient(180deg, #ffffff 0%, #fff1f1 100%); border-color: #f4d4d4; box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgba(220, 38, 38, .06) inset, 0 1px 2px rgba(31, 41, 90, .07), 0 4px 10px rgba(220, 38, 38, .07); }
.icon-btn:hover, .soft:hover, .small:hover, .mpick:hover { background: linear-gradient(180deg, #ffffff 0%, #e8edff 100%); border-color: #d3dcfb; }
.soft.danger:hover { background: linear-gradient(180deg, #ffffff 0%, #ffe8e8 100%); border-color: #efc2c2; }
.primary:not([disabled]):active { transform: translateY(1px) scale(.985); background: #4560f0; box-shadow: 0 2px 6px rgba(20, 35, 120, .35) inset, 0 1px 1px rgba(77, 107, 254, .2); }
.icon-btn:not([disabled]):active, .soft:not([disabled]):active, .small:not([disabled]):active, .mpick:not([disabled]):active { transform: translateY(1px) scale(.985); background: #e6ebff; box-shadow: 0 2px 5px rgba(31, 41, 90, .16) inset; }
.nav button:not(.on):active { background: #f3f5ff; }
.thumbx { background: linear-gradient(180deg, #24305a 0%, #0f1a3a 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .15) inset, 0 2px 5px rgba(15, 26, 58, .35); }
.opt:active { background: #e6ebff; }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (max-width: 360px) { .keyacts { gap: 6px; } .keyacts button { padding: 0 6px; gap: 5px; font-size: 14px; } }
button:not([disabled]):active { transform: scale(.97); }
.hint { margin: 0; font-size: 12.5px; color: var(--muted); } .hint.center { text-align: center; }
.notice { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff7e0; color: #7a5b00; font-size: 13px; }
.error { margin: 0; padding: 12px 14px; border-radius: 14px; background: #fee2e2; color: #991b1b; }
.warn { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff3dc; color: #8a5200; font-size: 13px; display: flex; gap: 8px; align-items: center; }
pre.debug { margin: 0; padding: 12px; border-radius: 14px; background: #0f1b36; color: #cfe0ff; font-size: 12px; overflow: auto; white-space: pre-wrap; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.right { display: flex; align-items: center; gap: 8px; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #dcfce7; color: #166534; white-space: nowrap; }
.chip.off, .chip.bad { background: #fee2e2; color: #991b1b; } .chip.idle { background: var(--mist); color: var(--muted); } .chip.warn { background: #fff0d4; color: #9a5b00; }
.panel { display: none; gap: 14px; } .panel.on { display: grid; grid-template-columns: minmax(0, 1fr); animation: fadeUp .35s ease both; }
.empty { text-align: center; justify-items: center; padding: 32px 18px; } .empty .big { width: 40px; height: 40px; color: var(--blue); }
.livedot { width: 10px; height: 10px; border-radius: 50%; background: #c5cbe0; display: inline-block; }
.livedot.on { background: #22c55e; animation: ping 3.6s ease-out infinite; --glow: rgba(34, 197, 94, .5); } .livedot.off { background: #ef4444; }
/* brand */
.headrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.powered { display: grid; justify-items: end; gap: 4px; flex: none; }
.plabel { font-size: 10.5px; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.pchips { display: grid; justify-items: end; gap: 6px; }
.pbadge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(77, 107, 254, .12); }
.pbadge b { font-size: 14px; } .plg { width: 24px; height: 24px; display: grid; place-items: center; }
.plg img { height: 22px; width: auto; filter: drop-shadow(0 2px 4px rgba(77, 107, 254, .3)); } .plg .glyph { font-size: 14px; color: var(--blue-deep); }
/* key tab */
.hero { position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -18px; top: -14px; width: 190px; height: 140px; background: url(assets/deepseek.png) no-repeat center / contain; opacity: .07; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: flex; gap: 18px; align-items: center; } .hero-grid > div:last-child { display: grid; gap: 2px; }
.big-num { font-size: 38px; line-height: 1.1; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.donut { width: 112px; height: 112px; flex: none; position: relative; } .donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .bg { stroke: var(--mist); } .donut .fg { stroke: url(#ring); transition: stroke-dashoffset 2s cubic-bezier(.45, .05, .3, 1); } .donut.low .fg { stroke: var(--warn); }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; animation: fadeUp 1.1s ease .45s both; }
.herobar { height: 10px; border-radius: 999px; background: #eceffd; overflow: hidden; }
.herobar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 2.2s cubic-bezier(.45, .05, .3, 1); background: linear-gradient(90deg, #4d6bfe, #a78bfa, #4d6bfe); background-size: 200% 100%; animation: sweep 5s linear infinite; }
.herobar.low i { background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b); background-size: 200% 100%; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 620px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { --a1: #818cf8; --a2: #4f46e5; --glow: rgba(79, 70, 229, .32); position: relative; aspect-ratio: 1 / 1; min-width: 0; padding: 14px; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, #fff, #fbfbff); border: 1px solid #e7eaf6; box-shadow: 0 1px 0 #fff inset, 0 8px 22px rgba(31, 41, 90, .07); }
.tile::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.tile::after { content: ""; position: absolute; right: -26px; bottom: -26px; width: 96px; height: 96px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); opacity: .35; pointer-events: none; }
.tile .ti { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; position: relative; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: 0 8px 16px var(--glow), 0 1px 0 rgba(255, 255, 255, .45) inset; }
.tile .ti svg.ic { width: 22px; height: 22px; stroke-width: 2; } .tile .tb { position: relative; z-index: 1; }
.tile .tl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; }
.tile .tv { font-size: clamp(20px, 5.6vw, 28px); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .ts { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tile.ok .tv { color: #15803d; } .tile.warn .tv { color: #b45309; } .tile.bad .tv { color: #b91c1c; }
.tile.bad { --a1: #fb7185; --a2: #e11d48; --glow: rgba(225, 29, 72, .32); } .tile.warn { --a1: #fbbf24; --a2: #f97316; --glow: rgba(249, 115, 22, .32); }
.tile:hover { transform: translateY(-2px); transition: transform .2s ease; }
.tile.enter { animation: rise 1.1s cubic-bezier(.22, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 160ms); }
.tile.live .ti::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ping 4s ease-out infinite; }
.a-green { --a1: #34d399; --a2: #059669; --glow: rgba(5, 150, 105, .32); } .a-amber { --a1: #fbbf24; --a2: #f59e0b; --glow: rgba(245, 158, 11, .34); }
.a-sky { --a1: #38bdf8; --a2: #0284c7; --glow: rgba(2, 132, 199, .32); } .a-teal { --a1: #2dd4bf; --a2: #0d9488; --glow: rgba(13, 148, 136, .32); }
.a-indigo { --a1: #818cf8; --a2: #4f46e5; --glow: rgba(79, 70, 229, .32); } .a-rose { --a1: #fb7185; --a2: #e11d48; --glow: rgba(225, 29, 72, .3); }
.a-orange { --a1: #fb923c; --a2: #ea580c; --glow: rgba(234, 88, 12, .32); } .a-violet { --a1: #a78bfa; --a2: #7c3aed; --glow: rgba(124, 58, 237, .32); }
code { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; background: var(--mist); font-size: 13px; overflow-wrap: anywhere; }
code.inline { padding: 2px 8px; display: inline-block; flex: none; }
pre.snip { flex: 1; min-width: 0; margin: 0; padding: 12px; border-radius: 14px; background: #0f1b36; color: #dbe6ff; font-size: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.list { display: grid; gap: 10px; }
/* model cards (compact) */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mbox { --a1: #38bdf8; --a2: #0284c7; --glow: rgba(2, 132, 199, .3); position: relative; overflow: hidden; padding: 14px 12px 11px; border-radius: 16px;
  display: grid; align-content: start; gap: 7px; background: linear-gradient(180deg, #fff, #fafbff); border: 1px solid #e7eaf6;
  box-shadow: 0 1px 0 #fff inset, 0 8px 20px rgba(31, 41, 90, .07); transition: transform .2s ease; }
.mbox:hover { transform: translateY(-1px); }
.mbox::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.mbox > * { position: relative; z-index: 1; }
.mhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mlogo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #fff, #f9f9ff); border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 4px 12px var(--glow); flex: none; }
.mlogo img, .olg img { width: auto; max-width: 75%; max-height: 75%; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(31, 41, 90, .08)); }
.mname { font-size: 15px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; } .mtag { font-size: 12px; color: var(--muted); margin-top: -3px; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.io > div { display: grid; gap: 0; padding: 6px 9px; border-radius: 11px; background: #f4f5fc; border: 1px solid #eceefa; min-width: 0; }
.iol { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; } .iov { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mused { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 32px; }
.livecard { gap: 10px; }
.lstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lstats > div { display: grid; gap: 1px; padding: 7px 10px; border-radius: 12px; background: #f4f5fc; border: 1px solid #eceefa; min-width: 0; } .lstats b { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip { display: flex; gap: 2px; height: 26px; } .strip i { flex: 1; min-width: 0; border-radius: 2px; background: #e6e9f5; } .strip i.s-ok { background: #22c55e; } .strip i.s-warn { background: #f59e0b; } .strip i.s-bad { background: #ef4444; }
.ms.ok { color: var(--ok); font-weight: 700; } .ms.bad { color: var(--bad); font-weight: 700; }
.pchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #eef0f8; color: #5b6685; white-space: nowrap; }
.pchip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pchip.ok { background: #dcfce7; color: #166534; } .pchip.warn { background: #fff0d4; color: #9a5b00; } .pchip.bad { background: #fee2e2; color: #991b1b; }
.glyph { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; color: var(--a2, #4d6bfe); line-height: 1; }
/* chat */
.chatcard { gap: 10px; }
.msgs { display: grid; gap: 10px; align-content: start; min-height: 40vh; padding: 2px 0; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg.user { justify-self: end; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { justify-self: start; background: var(--mist); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.err { justify-self: start; background: #fee2e2; color: #991b1b; }
.msg small { display: block; margin-top: 6px; font-size: 11.5px; opacity: .7; } .msg .dots { color: var(--muted); } .imgnote { font-size: 12px; opacity: .8; margin-bottom: 4px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; } .thumbs img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; background: #fff; }
.attach-row { display: flex; gap: 8px; flex-wrap: wrap; } .thumb { position: relative; } .thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); display: block; }
.thumbx { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #0f1a3a; color: #fff !important; } .thumbx svg.ic { width: 12px; height: 12px; stroke-width: 3; }
.composer { position: sticky; bottom: 92px; display: flex; gap: 8px; align-items: flex-end; padding: 8px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 6px 18px rgba(77, 107, 254, .12); }
.composer textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; border: 0; outline: 0; background: transparent; padding: 10px 6px; }
.dots::after { content: "..."; animation: dots 1s steps(4) infinite; }
/* small model menu under the button */
.pickwrap { position: relative; }
.mpick { color: var(--ink) !important; padding: 7px 12px 7px 10px; font-weight: 600; font-size: 14px; max-width: 200px; }
.mpick > span:not(.mpl) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpl { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #f1f3ff; overflow: hidden; flex: none; } .mpl img { width: auto; max-width: 100%; }
.pop { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: min(300px, 82vw); padding: 6px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 40px rgba(31, 41, 90, .22); animation: popIn .16s ease both; transform-origin: top right; }
.opt { --a1: #38bdf8; --a2: #0284c7; width: 100%; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: transparent; color: var(--ink) !important; }
.opt:hover, .opt:focus-visible { background: var(--mist); } .opt.on { background: #f3f5ff; }
.olg { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); }
.otx { display: grid; min-width: 0; line-height: 1.25; } .otx b { font-size: 14px; overflow-wrap: anywhere; } .otag { font-size: 11.5px; color: var(--muted); }
.ort { display: grid; justify-items: end; gap: 4px; } .ort .pchip { font-size: 11px; padding: 2px 8px; }
.ock { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--blue); } .ock svg.ic { width: 11px; height: 11px; stroke-width: 3.2; }
/* nav: bottom floating on phones, left sidebar on wide screens */
.nav { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; gap: 4px; padding: 6px; max-width: 520px; margin: 0 auto;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 10px 30px rgba(77, 107, 254, .18); }
.nav button { flex: 1; flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 12px; border-radius: 16px; background: transparent; color: var(--muted) !important; font-weight: 600; }
.nav button.on { background: linear-gradient(180deg, #f7f9ff 0%, var(--mist) 100%); color: var(--blue-deep) !important; box-shadow: 0 1px 0 #fff inset, 0 2px 8px rgba(77, 107, 254, .16); } .nav svg.ic { width: 22px; height: 22px; }
.foot { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
@media (min-width: 900px) {
  .app { grid-template-columns: 250px minmax(0, 1fr); align-content: stretch; }
  .side { padding: 24px 16px; border-right: 1px solid var(--border); background: rgba(255, 255, 255, .6); position: sticky; top: 0; height: 100vh; }
  .nav { position: static; display: grid; gap: 6px; margin: 24px 0 0; padding: 0; max-width: none; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .nav button { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 11px 14px; font-size: 15px; border-radius: 14px; } .nav svg.ic { width: 20px; height: 20px; }
  .main { padding: 28px 28px 40px; } .composer { bottom: 16px; }
}
@media (max-width: 430px) { .hero-grid { gap: 12px; } .donut { width: 96px; height: 96px; } .big-num { font-size: 32px; } .tile .ti { width: 38px; height: 38px; } }
/* motion (all of it is switched off for people who ask for reduced motion) */
.blob { position: fixed; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.blob.b1 { width: 340px; height: 340px; right: -90px; top: -60px; background: rgba(167, 139, 250, .45); animation: floaty 16s ease-in-out infinite alternate; }
.blob.b2 { width: 320px; height: 320px; left: -100px; top: 40vh; background: rgba(77, 107, 254, .30); animation: floaty 20s ease-in-out infinite alternate-reverse; }
.skel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sk { border-radius: 20px; background: linear-gradient(100deg, #eef0fb 30%, #f9faff 50%, #eef0fb 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border: 1px solid #e7eaf6; } .sk-sq { aspect-ratio: 1 / 1; }
@keyframes floaty { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 50px) scale(1.15); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--glow); } 80%, 100% { box-shadow: 0 0 0 12px rgba(0, 0, 0, 0); } }
@keyframes sweep { to { background-position: -200% 0; } } @keyframes shimmer { to { background-position: -200% 0; } }
@keyframes dots { 0% { content: ""; } 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .blob, .tile.enter, .panel.on, .tile.live .ti::after, .livedot.on, .herobar i, .donut b, .sk, .dots::after, .pop { animation: none !important; }
  .herobar i, .mbox, .tile, .donut .fg { transition: none !important; }
}

/* ---- phones: tight header, cards lifted up, two model boxes side by side ---- */
@media (min-width: 900px) { .headrow { display: grid; gap: 12px; justify-content: stretch; } .powered { justify-items: start; } .pchips { justify-items: start; } }
@media (max-width: 480px) {
  .brand { gap: 10px; min-width: 0; } .brand b { font-size: 15.5px; } .brand .muted { display: none; }
  .brand-logo { width: 46px; height: 46px; border-radius: 13px; }
  .card { padding: 14px; border-radius: 18px; gap: 10px; } .keybar .hint { display: none; }
  input[type=password], input[type=text] { padding: 11px 14px; }
  #toggleKey { width: 46px; height: 46px; padding: 0; }
  .pchip { font-size: 10.5px; padding: 3px 7px; gap: 4px; } .pchip .dot { width: 6px; height: 6px; }
  .small { padding: 6px 11px; font-size: 12.5px; } .mbox { padding: 13px 10px 10px; } .iov { font-size: 12.5px; } .lstats b { font-size: 14.5px; } .lstats > div { padding: 6px 8px; }
  .tile { padding: 12px; } .hero-grid { gap: 12px; }
}
@media (max-width: 340px) { .powered .plabel { display: none; } .pbadge b { font-size: 12.5px; } .brand b { font-size: 14px; } }
#keyData { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Chat intro: slow 3D gyroscope of gradient lines + the providers Chat supports */
.chatintro { display: flex; flex-direction: row; align-items: center; gap: 16px; padding: 12px 18px; position: relative; overflow: hidden; }
.chatintro::before { content: ""; position: absolute; inset: -40% -10%; pointer-events: none; opacity: .9; background: repeating-linear-gradient(115deg, rgba(77, 107, 254, .07) 0 1px, transparent 1px 15px); animation: lines 40s linear infinite; }
.chatintro > * { position: relative; }
.orbit { position: relative; width: 84px; height: 84px; flex: none; perspective: 420px; }
.orbit .ring { position: absolute; border-radius: 50%; background: conic-gradient(from 20deg, #4d6bfe, #a78bfa, #2dd4bf, #4d6bfe);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px)); }
.orbit .r1 { inset: 0; animation: gyroY 15s linear infinite; }
.orbit .r2 { inset: 9px; animation: gyroX 19s linear infinite; }
.orbit .r3 { inset: 18px; animation: gyroD 24s linear infinite reverse; }
.orbit .core { position: absolute; inset: 35px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #a78bfa 45%, #4d6bfe); box-shadow: 0 0 16px rgba(77, 107, 254, .55); animation: breathe 5s ease-in-out infinite; }
.cintro-tx { display: grid; gap: 7px; min-width: 0; flex: 1; } .cintro-tx b { font-size: 15px; }
.sups { display: flex; flex-wrap: wrap; gap: 8px; }
.sup { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; font-weight: 700; box-shadow: 0 1px 0 #fff inset, 0 4px 10px rgba(77, 107, 254, .08); } .sup img { height: 18px; width: auto; }
.glline { display: block; height: 3px; width: 100%; max-width: 240px; border-radius: 3px; background: linear-gradient(90deg, #4d6bfe, #a78bfa, #2dd4bf, #4d6bfe); background-size: 300% 100%; animation: lineflow 7s linear infinite; }
.needkey { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@keyframes gyroY { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes gyroX { from { transform: rotateX(0deg); } to { transform: rotateX(360deg); } }
@keyframes gyroD { from { transform: rotate3d(1, 1, 0, 0deg); } to { transform: rotate3d(1, 1, 0, 360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.88); } 50% { transform: scale(1.08); } }
@keyframes lineflow { to { background-position: -300% 0; } }
@keyframes lines { to { transform: translate(60px, 0); } }
@media (max-width: 480px) { .orbit { width: 72px; height: 72px; } .orbit .r2 { inset: 8px; } .orbit .r3 { inset: 16px; } .orbit .core { inset: 30px; } .chatintro { gap: 12px; padding: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .orbit .ring, .orbit .core, .glline, .chatintro::before { animation: none !important; } }

/* Start page */
body.noscroll { overflow: hidden; }
.landing { position: relative; overflow: hidden; min-height: 300px; padding: 26px 20px; align-content: center; background: linear-gradient(135deg, #0f1a3a 0%, #1c2a6e 55%, #3a2a7c 100%); border-color: #243070; color: #fff; }
.codebg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.codebg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 26, 58, .92) 0%, rgba(15, 26, 58, .6) 60%, rgba(15, 26, 58, .25) 100%); }
.codeslide { animation: codeup 70s linear infinite; will-change: transform; }
.codeslide pre { margin: 0; padding: 10px 16px; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8aa0ff; opacity: .55; white-space: pre; }
.ltx { position: relative; z-index: 2; display: grid; gap: 12px; justify-items: start; }
.eyebrow { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #5eead4; font-weight: 700; }
.ltx h1 { margin: 0; font-size: clamp(26px, 7.4vw, 38px); line-height: 1.15; }
.grad { background: linear-gradient(90deg, #8aa0ff, #c4b5fd, #5eead4, #8aa0ff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: lineflow 9s linear infinite; }
.ltx p { margin: 0; color: #cdd6ff; max-width: 34ch; }
.lbtns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; } .lbtns .primary { height: 46px; padding: 0 20px; border-radius: 14px; }
.ghostbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 700; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); transition: background .15s ease, transform .12s ease; }
.ghostbtn:hover { background: rgba(255, 255, 255, .16); } .ghostbtn:active { transform: translateY(1px) scale(.985); }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; } .sechead h2 { font-size: 19px; } .sechead .muted { font-size: 13px; text-align: right; }
.pgrid, .plgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pbx { --a1: #38bdf8; --a2: #0284c7; position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; text-align: left; padding: 18px 14px 14px; border-radius: 18px; background: #fff; color: var(--ink) !important; border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 10px 24px rgba(31, 41, 90, .08); }
.pbx::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--a1), var(--a2)); }
.pbl { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 14px rgba(77, 107, 254, .12); } .pbl img { height: 30px; width: auto; max-width: 70%; object-fit: contain; }
.pbt { display: grid; min-width: 0; line-height: 1.25; } .pbt b { font-size: 17px; } .pbt .muted { font-size: 12.5px; }
.pbg { color: var(--muted); } .pbx:active { transform: translateY(1px) scale(.985); }
.plb { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-content: stretch; gap: 10px; text-align: left; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f4f6ff); color: var(--ink) !important; border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 6px 16px rgba(31, 41, 90, .06); }
.pli { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-deep); background: var(--mist); border: 1px solid var(--border); } .pli svg.ic { width: 20px; height: 20px; }
.plt { display: grid; min-width: 0; line-height: 1.25; } .plt b { font-size: 15px; } .plt .muted { font-size: 12px; }
.plb:active { transform: translateY(1px) scale(.985); }
.stepsc { gap: 8px; } .steps3 { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps3 li { counter-increment: s; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: start; }
.steps3 li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--sky), var(--blue)); }
.steps3 b { font-size: 15px; } .steps3 span { font-size: 13.5px; color: var(--muted); }
/* pop-up sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; background: rgba(15, 26, 58, .5); backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
.sheet { width: min(560px, 100%); max-height: 86vh; overflow-x: hidden; overflow-y: auto; grid-template-columns: minmax(0, 1fr); background: #fff; border-radius: 24px 24px 0 0; padding: 16px 16px 22px; display: grid; gap: 12px; box-shadow: 0 -18px 50px rgba(15, 26, 58, .3); animation: sheetUp .32s cubic-bezier(.22, .7, .2, 1) both; }
.sheet-head { display: flex; align-items: center; gap: 10px; } .sheet-head h2 { flex: 1; font-size: 19px; } .sheet-logo { display: grid; place-items: center; } .sheet-logo:empty { display: none; }
.sheet-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; } .sheet-body > * { min-width: 0; }
.mrow, .crow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f5f7ff; border: 1px solid #e9edfb; }
.mtx, .ctx { display: grid; min-width: 0; line-height: 1.3; } .mtx b { font-size: 15px; overflow-wrap: anywhere; } .mtx .muted, .ctx .muted { font-size: 12.5px; } .ctx code { overflow-wrap: anywhere; font-size: 13px; }
.crow { min-width: 0; } .crow .snip { margin: 0; flex: 1; min-width: 0; max-width: 100%; overflow-x: auto; font-size: 12px; white-space: pre; }
.sheet-body .primary { height: 46px; border-radius: 14px; }
@media (min-width: 700px) { .sheet-bg { place-items: center; } .sheet { border-radius: 24px; } }
@keyframes codeup { to { transform: translateY(-50%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 480px) { .landing { padding: 22px 16px; min-height: 280px; } .pbx { grid-template-columns: auto minmax(0, 1fr); } .pbg { display: none; } .pbl { width: 40px; height: 40px; } .pbt b { font-size: 16px; } .plb { padding: 10px; gap: 8px; } .nav button { font-size: 11.5px; } }
@media (prefers-reduced-motion: reduce) { .codeslide, .grad, .sheet-bg, .sheet { animation: none !important; } }

/* Picture mode inside Chat */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--mist); border: 1px solid var(--border); justify-self: start; }
.seg button { padding: 7px 14px; border-radius: 12px; background: transparent; color: var(--muted) !important; font-weight: 700; font-size: 14px; transition: background .15s ease, color .15s ease; }
.seg button.on { background: #fff; color: var(--blue-deep) !important; box-shadow: 0 1px 0 #fff inset, 0 2px 8px rgba(77, 107, 254, .16); }
.imgpane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; border-radius: 18px; background: linear-gradient(135deg, rgba(143, 114, 251, .04), rgba(77, 107, 254, .04)); border: 1px solid #f0ebff; animation: fadeUp .25s ease both; }
.imgrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.sel { display: grid; gap: 3px; font-weight: 600; } .sel select { font: inherit; color: var(--ink); padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: #fff; max-width: 100%; }
.imgpane textarea { width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: #fff; resize: vertical; min-height: 84px; }
.imgpane .primary { height: 46px; border-radius: 14px; padding: 0 18px; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 14px; text-decoration: none; }
.imgout { min-height: 120px; display: grid; place-items: center; text-align: center; border-radius: 18px; background: #f5f7ff; border: 1px dashed #d6defb; padding: 10px; }
.imgout img { width: auto; max-width: 100%; height: auto; max-height: min(58vh, 480px); object-fit: contain; border-radius: 14px; border: 1px solid var(--border); display: block; box-shadow: 0 6px 18px rgba(98, 49, 200, .12); }
.imgout .error { width: 100%; text-align: left; }
.chatcard[data-mode="image"] .msgs, .chatcard[data-mode="image"] .composer, .chatcard[data-mode="image"] .attach-row, .chatcard[data-mode="image"] #imgNote, .chatcard[data-mode="image"] .top .right { display: none; }
@media (max-width: 360px) { .iov { font-size: 11.5px; } .mname { font-size: 14px; } .iol { font-size: 9.5px; } }

/* copy button on chat messages */
.msg { position: relative; } .msg.hascopy { padding-right: 44px; }
.mcopy { position: absolute; top: 7px; right: 7px; width: 28px; height: 28px; padding: 0; border-radius: 9px; background: rgba(255, 255, 255, .75); color: var(--blue-deep) !important; border: 1px solid var(--border); box-shadow: none; }
.mcopy svg.ic { width: 15px; height: 15px; }
.msg.user .mcopy { background: rgba(255, 255, 255, .18); color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.mcopy:not([disabled]):active { transform: scale(.94); }

/* Pretty pop-up sheet: grab handle, colour strip, logo rows that slide in one by one */
.sheet { position: relative; padding-top: 22px; border: 1px solid #e3d9f6; background: linear-gradient(180deg, #fff 0%, #faf8ff 100%); }
.sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: #d9d2ee; }
.sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #4d6bfe, #a78bfa, #2dd4bf); }
.sheet-head { padding-bottom: 8px; border-bottom: 1px solid #efeafa; }
.sheet-logo { width: 42px; height: 42px; border-radius: 13px; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 14px rgba(98, 49, 200, .14); } .sheet-logo img { height: 26px; width: auto; }
.sheet-head h2 { font-size: 20px; color: #2a1a55; }
.mrow { --a1: #38bdf8; --a2: #0284c7; position: relative; overflow: hidden; background: #fff; border: 1px solid #ebe5f8; box-shadow: 0 6px 16px rgba(98, 49, 200, .07); animation: rowIn .38s cubic-bezier(.22, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 120ms); }
.mrow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--a1), var(--a2)); }
.mrl { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 10px rgba(98, 49, 200, .12); margin-left: 4px; } .mrl img { width: auto; max-width: 72%; max-height: 72%; object-fit: contain; }
.mrow .mtx { flex: 1; } .mmeta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; }
.mtagp, .mprice { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; line-height: 1.4; } .mtagp { background: #efeaff; color: #5b34c9; font-weight: 700; } .mprice { background: #f1f4ff; color: var(--muted); }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mrow { animation: none !important; } }

/* Picture pane: compact controls so the finished picture is visible without scrolling */
.imgpane .imgrow:first-child .sel { flex: 1 1 140px; min-width: 0; } .imgpane .sel select { width: 100%; }
.imgpane .imgrow .primary, .imgpane .imgrow .soft { flex: 1 1 auto; height: 46px; white-space: nowrap; padding: 0 14px; }
.imgpane textarea { min-height: 64px; }

/* Logo dropdowns in the Picture pane */
.fs-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sel { position: relative; } .fsel { position: relative; }
.fsel .mpick { width: 100%; max-width: none; justify-content: flex-start; height: 46px; border-radius: 14px; } .fsel .mpick > span:not(.mpl) { flex: 1; text-align: left; } .fsel .mpl { width: 28px; height: 28px; }
.fsel .pop { z-index: 40; right: auto; left: 0; width: min(320px, 86vw); max-height: 52vh; overflow-y: auto; transform-origin: top left; }
.szi { display: grid; place-items: center; width: 100%; height: 100%; color: var(--blue-deep); } .szi svg.ic { width: 18px; height: 18px; }
.opt .olg { width: 38px; height: 38px; } .opt .olg .szi svg.ic { width: 20px; height: 20px; }
.imgpane .imgrow:first-child .sel:first-child { flex: 2 1 190px; } .imgpane .imgrow:first-child .sel:nth-child(2) { flex: 1 1 150px; }

/* Start page: Telegram button is a soft filled button, no outline */
.ghostbtn { border: 0; background: rgba(255, 255, 255, .16); box-shadow: none; }
.ghostbtn:hover { background: rgba(255, 255, 255, .26); }

/* 3 steps: bordered boxes joined by a line, shown one by one, then lit in turn */
.steps3 { gap: 18px; counter-reset: none; }
.steps3 li { counter-increment: none; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 14px; border: 1.5px solid #d9ccf3; border-radius: 18px; background: linear-gradient(180deg, #fff, #faf7ff); opacity: 0; transform: translateY(16px); }
.steps3 li::before { content: none; }
.steps3 .st { display: grid; gap: 2px; min-width: 0; } .steps3 .st b { font-size: 15.5px; color: #2a1a55; } .steps3 .st span { font-size: 13.5px; }
.steps3 .sn { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4d6bfe, #a78bfa); box-shadow: 0 8px 18px rgba(98, 49, 200, .28); }
.steps3 .sn svg.ic { width: 22px; height: 22px; stroke-width: 2; }
.steps3 .sn em { position: absolute; right: -5px; top: -5px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 inherit; font-style: normal; color: #6231c8; background: #fff; border: 1.5px solid #d9ccf3; }
.steps3 li:not(:last-child)::after { content: ""; position: absolute; left: 37px; top: 100%; width: 3px; height: 18px; margin-left: -1px; border-radius: 3px; transform-origin: top; transform: scaleY(0); background: linear-gradient(180deg, #4d6bfe, #a78bfa, #4d6bfe); background-size: 100% 300%; }
.steps3.in li { animation: stepIn .7s cubic-bezier(.22, .7, .2, 1) both, stepLit 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * .55s), calc(var(--i) * 2.4s + 2s); }
.steps3.in li:not(:last-child)::after { animation: lineDraw .5s ease both, lineFlow 2.6s linear infinite; animation-delay: calc(var(--i) * .55s + .45s), calc(var(--i) * .55s + .95s); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lineDraw { to { transform: scaleY(1); } }
@keyframes lineFlow { to { background-position: 0 -300%; } }
@keyframes stepLit { 0%, 30%, 100% { border-color: #d9ccf3; box-shadow: none; } 8%, 20% { border-color: #8b6cf0; box-shadow: 0 0 0 4px rgba(139, 108, 240, .16), 0 10px 22px rgba(98, 49, 200, .14); } }
@media (prefers-reduced-motion: reduce) { .steps3 li { opacity: 1; transform: none; animation: none !important; } .steps3 li:not(:last-child)::after { transform: none; animation: none !important; } }

/* ===== Main page redesign: glass, light, soft blue; wide layout with a top bar from 700px ===== */
.card { background: rgba(255, 255, 255, .8); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.ctabtn { display: none; }
.hero2 { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 18px 10px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .95);
  background: radial-gradient(520px 320px at 85% 20%, rgba(77, 107, 254, .16), transparent 70%), radial-gradient(420px 300px at 5% 95%, rgba(45, 212, 191, .14), transparent 70%), linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(236, 242, 255, .78));
  box-shadow: 0 1px 0 #fff inset, 0 18px 50px rgba(77, 107, 254, .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero2::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(115deg, rgba(77, 107, 254, .05) 0 1px, transparent 1px 18px); }
.hero2 > * { position: relative; }
.h2tx { display: grid; gap: 12px; justify-items: start; align-content: center; }
.eyebrow2 { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--blue-deep); font-weight: 800; padding: 4px 12px; border-radius: 999px; background: rgba(77, 107, 254, .1); border: 1px solid rgba(77, 107, 254, .2); }
.h2tx h1 { margin: 0; font-size: clamp(30px, 8vw, 52px); line-height: 1.08; letter-spacing: -.5px; color: #0f1a3a; }
.grad2 { background: linear-gradient(90deg, #4d6bfe, #8b6cf0, #14b8a6, #4d6bfe); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: lineflow 9s linear infinite; }
.h2tx p { margin: 0; color: #4a5778; max-width: 46ch; font-size: 16px; }
.h2tx .lbtns .primary { height: 48px; padding: 0 22px; border-radius: 14px; }
.hero2 .ghostbtn { color: var(--blue-deep); background: rgba(255, 255, 255, .75); border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 4px 12px rgba(77, 107, 254, .1); height: 48px; }
.hero2 .ghostbtn:hover { background: #fff; }
.h2chips { display: flex; flex-wrap: wrap; gap: 8px; } .h2chips span { font-size: 12.5px; font-weight: 700; color: #3b4a78; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--border); }
.net { position: relative; height: 320px; min-width: 0; }
.net canvas, .netnodes { position: absolute; inset: 0; width: 100%; height: 100%; }
.netnodes { pointer-events: none; }
.nn, .nd { position: absolute; left: 50%; top: 50%; border-radius: 50%; will-change: transform; }
.nn { width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); border: 1px solid #dbe5ff; box-shadow: 0 10px 24px rgba(77, 107, 254, .22), 0 1px 0 #fff inset; }
.nn img { width: auto; max-width: 62%; max-height: 62%; object-fit: contain; }
.nd { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: radial-gradient(circle at 35% 30%, #fff, #bcd0ff 60%, #8aa0ff); border: 1px solid #cfdcff; box-shadow: 0 4px 10px rgba(77, 107, 254, .25); }
.netcore { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; display: grid; place-items: center; z-index: 200; background: radial-gradient(circle at 35% 28%, #fff, #e6edff 70%); border: 1px solid #cfdcff; box-shadow: 0 14px 34px rgba(77, 107, 254, .35), 0 1px 0 #fff inset; }
.netcore img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; position: relative; z-index: 2; }
.coreglow, .corering { position: absolute; inset: -14px; border-radius: 50%; pointer-events: none; }
.coreglow { background: radial-gradient(circle, rgba(77, 107, 254, .35), transparent 68%); animation: breathe 5s ease-in-out infinite; }
.corering { inset: -6px; border: 1.5px solid transparent; background: conic-gradient(from 0deg, #4d6bfe, #a78bfa, #2dd4bf, #4d6bfe) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 14s linear infinite; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stats2 > div { display: grid; gap: 2px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: 20px; background: rgba(255, 255, 255, .8); border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 8px 24px rgba(77, 107, 254, .08); }
.stats2 b { font-size: clamp(28px, 7vw, 40px); line-height: 1.1; color: #0f1a3a; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #1c2a6e, #4d6bfe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats2 span { font-size: 13px; color: var(--muted); }
.feat2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fcard { display: grid; gap: 6px; align-content: start; padding: 18px 16px; border-radius: 20px; background: rgba(255, 255, 255, .82); border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 10px 28px rgba(77, 107, 254, .09); transition: transform .2s ease, box-shadow .2s ease; }
.fcard:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 16px 34px rgba(77, 107, 254, .16); }
.fcard b { font-size: 16px; color: #0f1a3a; } .fcard p { margin: 0; font-size: 13.5px; color: var(--muted); }
.fi { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6f87ff, #4d6bfe); box-shadow: 0 8px 18px rgba(77, 107, 254, .3); margin-bottom: 4px; } .fi svg.ic { width: 22px; height: 22px; stroke-width: 2; }
.linkmore { background: transparent; color: var(--blue-deep) !important; padding: 4px 6px; font-weight: 700; font-size: 14px; border-radius: 10px; } .linkmore:hover { background: var(--mist); }
.featrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.feat { text-align: left; display: grid; gap: 10px; align-content: start; justify-items: stretch; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, .85); color: var(--ink) !important; border: 1px solid var(--border); box-shadow: 0 1px 0 #fff inset, 0 10px 28px rgba(77, 107, 254, .1); transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 18px 36px rgba(77, 107, 254, .18); } .feat:active { transform: scale(.985); }
.fhead { display: flex; align-items: center; gap: 12px; } .ftx { display: grid; line-height: 1.25; min-width: 0; } .ftx b { font-size: 16px; overflow-wrap: anywhere; }
.flogo { width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); box-shadow: 0 6px 14px rgba(77, 107, 254, .14); font-weight: 800; color: var(--blue-deep); } .flogo img { width: auto; max-width: 68%; max-height: 68%; object-fit: contain; }
.ftag { justify-self: start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e9efff; color: #3a54d8; }
.fio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid #edf0fb; }
.fio > div { display: grid; gap: 1px; min-width: 0; } .fio b { font-size: 14px; font-variant-numeric: tabular-nums; }
.hero2 .net, .stats2, .feat2, .featrow { animation: fadeUp .5s ease both; }
@media (prefers-reduced-motion: reduce) { .grad2, .coreglow, .corering, .hero2 .net, .stats2, .feat2, .featrow { animation: none !important; } }

@media (min-width: 700px) {
  /* top bar replaces the bottom bar and the left sidebar */
  .app { display: block; min-height: 0; }
  .side { position: sticky; top: 0; z-index: 40; height: auto; display: flex; align-items: center; gap: 14px; padding: 10px max(20px, calc((100vw - 1180px) / 2 + 20px)); border-right: 0; border-bottom: 1px solid rgba(227, 233, 251, .9);
    background: rgba(255, 255, 255, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
  .headrow { display: contents; }
  .brand { order: 1; } .brand-logo { width: 42px; height: 42px; border-radius: 12px; } .brand .muted { display: none; } .brand b { font-size: 16px; white-space: nowrap; }
  .nav { order: 2; position: static; display: flex; gap: 2px; margin: 0 0 0 10px; padding: 0; max-width: none; border: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav button { flex: none; flex-direction: row; gap: 7px; padding: 9px 14px; font-size: 14.5px; border-radius: 999px; }
  .nav svg.ic { width: 18px; height: 18px; }
  .powered { order: 4; margin-left: auto; justify-items: end; } .plabel { display: none; } .pchips { display: flex; gap: 6px; }
  .ctabtn { order: 5; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; color: #fff; background: linear-gradient(180deg, #5873ff, #4560f0); border: 1px solid #3a54d8; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 14px rgba(77, 107, 254, .28); margin-left: 6px; }
  .ctabtn[hidden] { display: none !important; } .ctabtn:hover { background: #4160ec; }
  .nav:not(:last-child) { margin-right: auto; }
  .main { max-width: 1180px; padding: 24px 20px 56px; gap: 18px; }
  .composer { bottom: 16px; }
  #tab-chat, #tab-key, #tab-guide { max-width: 900px; width: 100%; margin: 0 auto; }
  #keyCard, #error, #debug { max-width: 900px; width: 100%; margin-left: auto; margin-right: auto; }
  .mgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  /* Start page goes horizontal */
  .hero2 { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 20px; padding: 34px 36px; border-radius: 30px; min-height: 430px; }
  .net { height: 400px; }
  .stats2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .feat2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .featrow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .plgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepsc { padding: 22px; }
  .steps3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
  .steps3 li:not(:last-child)::after { left: 100%; top: 50%; width: 22px; height: 3px; margin: -1px 0 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #4d6bfe, #a78bfa, #4d6bfe); background-size: 300% 100%; }
  .steps3.in li:not(:last-child)::after { animation: lineDrawX .5s ease both, lineFlowX 2.6s linear infinite; animation-delay: calc(var(--i) * .55s + .45s), calc(var(--i) * .55s + .95s); }
  .steps3 .st { align-self: center; }
  .sheet-bg { place-items: center; }
}
@media (min-width: 1000px) { .main { padding: 28px 24px 64px; } .plgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .plb { grid-template-columns: 1fr; text-align: left; justify-items: start; } }
@keyframes lineDrawX { to { transform: scaleX(1); } }
@keyframes lineFlowX { to { background-position: -300% 0; } }
@media (prefers-reduced-motion: reduce) { .steps3 li:not(:last-child)::after { transform: none; animation: none !important; } }
.feat { grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; text-align: left; }
.ctabtn { white-space: nowrap; }
@media (min-width: 700px) and (max-width: 979px) { .brand b { display: none; } .nav button { padding: 9px 11px; } }
/* logos that already come as a square tile fill the node (rounded square instead of a circle) */
.nn.sq { border-radius: 15px; overflow: hidden; background: #fff; border-color: rgba(219, 229, 255, .9); }
.nn.sq img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.netcore { display: none; }

/* ---- evenness pass: identical logo tiles, and every left/right edge lines up (top bar = page column) ---- */
.nn, .nn.sq { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(206, 218, 255, .95); box-shadow: 0 10px 26px rgba(77, 107, 254, .22), 0 1px 0 #fff inset; }
.nn img, .nn.sq img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.linkmore { margin-right: -6px; }
@media (max-width: 480px) { .nn, .nn.sq { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 13px; } }
@media (min-width: 700px) {
  .side { padding-block: 10px; padding-inline: max(20px, calc((100% - 1180px) / 2 + 20px)); }
  .nav { margin-right: auto; }
}
@media (min-width: 1000px) { .side { padding-inline: max(24px, calc((100% - 1180px) / 2 + 24px)); } }

/* ===== How it works: tools -> gateway -> models ===== */
.flow { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 22px 16px; border-radius: 26px; border: 1px solid rgba(255, 255, 255, .95);
  background: radial-gradient(480px 300px at 50% 50%, rgba(77, 107, 254, .1), transparent 70%), linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(238, 243, 255, .74)); box-shadow: 0 1px 0 #fff inset, 0 18px 50px rgba(77, 107, 254, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.flow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: radial-gradient(rgba(77, 107, 254, .16) 1px, transparent 1.4px); background-size: 20px 20px; -webkit-mask: radial-gradient(ellipse at center, #000 30%, transparent 80%); mask: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.flowsvg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .9s ease .7s; }
.flow.in .flowsvg { opacity: 1; }
.flowp { stroke-dasharray: 3 13; animation: dashmove 1.5s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -32; } }
.fgrp, .fgw { position: relative; z-index: 1; opacity: 0; transform: translateY(16px); }
.flow.in .fgrp, .flow.in .fgw { animation: stepIn .7s cubic-bezier(.22, .7, .2, 1) both; }
.flow.in .ftools { animation-delay: 0s; } .flow.in .fgw { animation-delay: .25s; } .flow.in .fmodels { animation-delay: .5s; }
.fgrp { padding: 30px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, .82); border: 1.5px solid #cfdcff; box-shadow: 0 1px 0 #fff inset, 0 12px 30px rgba(77, 107, 254, .12); }
.fglabel, .fgsub { position: absolute; left: 16px; top: 10px; font: 700 10.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1.6px; text-transform: uppercase; color: var(--blue-deep); opacity: .8; }
.ftiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ft { display: grid; justify-items: center; gap: 7px; padding: 12px 6px 10px; border-radius: 16px; background: #fff; border: 1px solid #e3e9fb; color: var(--ink) !important; box-shadow: 0 1px 0 #fff inset, 0 6px 14px rgba(77, 107, 254, .08); transition: transform .18s ease, box-shadow .18s ease; }
.ft:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(77, 107, 254, .18); } .ft:active { transform: scale(.97); }
.ft b { font-size: 12.5px; text-align: center; line-height: 1.2; }
.fti { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 16px rgba(31, 41, 90, .18), 0 1px 0 rgba(255, 255, 255, .35) inset; background: linear-gradient(135deg, #6f87ff, #4d6bfe); }
.fti svg.ic { width: 22px; height: 22px; stroke-width: 2; } .fti svg.ic .f { fill-opacity: .28; }
.t0 .fti { background: linear-gradient(135deg, #3b9cff, #1f6fe0); } .t1 .fti { background: linear-gradient(135deg, #3a4770, #0f1a3a); } .t2 .fti { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.t3 .fti { background: linear-gradient(135deg, #a78bfa, #7c3aed); } .t4 .fti { background: linear-gradient(135deg, #2dd4bf, #0d9488); } .t5 .fti { background: linear-gradient(135deg, #8aa0ff, #4f46e5); }
.fgw { display: grid; gap: 9px; justify-items: center; padding: 34px 18px 18px; border-radius: 26px; background: linear-gradient(180deg, #fff, #f1f5ff); border: 1.5px solid #b4c4ff; box-shadow: 0 1px 0 #fff inset, 0 18px 44px rgba(77, 107, 254, .22); }
.fgsub { left: 0; right: 0; top: 12px; text-align: center; }
.fgpill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid #dbe5ff; box-shadow: 0 6px 16px rgba(77, 107, 254, .16); }
.fgpill img { border-radius: 8px; display: block; } .fgpill b { font-size: 15px; color: #0f1a3a; }
.fgrow { width: 100%; text-align: center; padding: 10px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #3b4a78; background: rgba(255, 255, 255, .85); border: 1.5px solid #cdd9ff; position: relative; overflow: hidden; }
.fgrow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(77, 107, 254, .16) 50%, transparent 70%); background-size: 250% 100%; background-position: 150% 0; animation: rowSweep 5.6s ease-in-out infinite; animation-delay: calc(var(--i) * .7s + 1s); }
@keyframes rowSweep { 0% { background-position: 150% 0; } 35%, 100% { background-position: -80% 0; } }
.fmlist { display: grid; gap: 10px; }
.fm { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid #e3e9fb; color: var(--ink) !important; box-shadow: 0 1px 0 #fff inset, 0 6px 14px rgba(77, 107, 254, .08); transition: transform .18s ease, box-shadow .18s ease; justify-content: flex-start; }
button.fm:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(77, 107, 254, .18); } button.fm:active { transform: scale(.98); }
.fm img { width: 44px; height: 44px; border-radius: 13px; flex: none; object-fit: cover; box-shadow: 0 6px 14px rgba(77, 107, 254, .16); border: 1px solid #e3e9fb; }
.fmt { display: grid; line-height: 1.25; min-width: 0; } .fmt b { font-size: 15px; } .fmt span { font-size: 12.5px; color: var(--muted); }
.fm.more { border: 1.5px dashed #c3d1ff; background: rgba(255, 255, 255, .5); box-shadow: none; }
.fplus { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; font-size: 24px; font-weight: 300; color: var(--blue-deep); background: #eef2ff; }
@media (prefers-reduced-motion: reduce) { .fgrp, .fgw { opacity: 1; transform: none; animation: none !important; } .flowsvg { opacity: 1; transition: none; } .fgrow::after { animation: none; } }
@media (min-width: 700px) { .flow { padding: 34px 30px; } .ftiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fmlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .flow { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .85fr); gap: 70px; padding: 36px 34px; align-items: center; }
  .fmlist { grid-template-columns: minmax(0, 1fr); }
}

.fm.soon { background: rgba(255, 255, 255, .6); border-style: dashed; border-color: #cfdaff; box-shadow: none; }
.fm.soon img { filter: grayscale(.6); opacity: .7; }
.fm.soon .fmt b { color: #5b6685; }
.fsoon { margin-left: auto; flex: none; font-size: 11px; font-weight: 800; letter-spacing: .4px; padding: 3px 9px; border-radius: 999px; color: var(--blue-deep); background: #e9efff; }


/* ===== smoothness pass: no live blur layers, no endless animations, calmer background ===== */
.blob { display: none; }
.card, .hero2, .flow, .side, .stats2 > div, .fcard, .feat, .nav, .composer, .sheet-bg, .ghostbtn, .hero2 .ghostbtn { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.card { background: rgba(255, 255, 255, .92); }
.side { background: rgba(255, 255, 255, .95); }
.nav { background: rgba(255, 255, 255, .97); }
.composer { background: rgba(255, 255, 255, .97); }
.sheet-bg { background: rgba(15, 26, 58, .55); }
.hero2 { background: radial-gradient(520px 320px at 85% 20%, rgba(77, 107, 254, .12), transparent 70%), linear-gradient(135deg, #fff, #edf2ff); }
.flow { background: radial-gradient(480px 300px at 50% 50%, rgba(77, 107, 254, .08), transparent 70%), linear-gradient(135deg, #fff, #eef3ff); }
.grad, .grad2 { animation: none !important; }
.steps3.in li, .steps3.in li:not(:last-child)::after { animation-iteration-count: 1 !important; }
.fgrow::after { display: none; }
.flow:not(.live) .flowp { animation-play-state: paused; }

/* ===== How it works: always left to right from 600px, compact so it fits a tablet held upright ===== */
@media (min-width: 600px) {
  .flow { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, .9fr); gap: clamp(34px, 5vw, 70px); padding: 30px 22px; align-items: center; }
  .ftiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .fmlist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fgrp { padding: 28px 10px 10px; } .fglabel, .fgsub { font-size: 9.5px; letter-spacing: 1.3px; }
  .fti { width: 38px; height: 38px; border-radius: 11px; } .fti svg.ic { width: 19px; height: 19px; } .ft { padding: 10px 4px 8px; gap: 6px; } .ft b { font-size: 11.5px; }
  .fgw { padding: 30px 12px 12px; gap: 8px; } .fgrow { font-size: 12.5px; padding: 8px 8px; } .fgpill b { font-size: 13.5px; } .fgpill { padding: 6px 12px 6px 7px; gap: 7px; } .fgpill img { width: 22px; height: 22px; }
  .fm { padding: 8px 10px; gap: 10px; } .fm img, .fplus { width: 36px; height: 36px; border-radius: 11px; font-size: 20px; } .fmt b { font-size: 14px; } .fmt span { font-size: 11.5px; }
  .fsoon { font-size: 10px; padding: 2px 7px; }
}
@media (min-width: 980px) {
  .flow { padding: 36px 34px; }
  .ftiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } .fmlist { gap: 10px; }
  .fgrp { padding: 30px 14px 14px; } .fglabel, .fgsub { font-size: 10.5px; letter-spacing: 1.6px; }
  .fti { width: 44px; height: 44px; border-radius: 13px; } .fti svg.ic { width: 22px; height: 22px; } .ft { padding: 12px 6px 10px; gap: 7px; } .ft b { font-size: 12.5px; }
  .fgw { padding: 34px 18px 18px; gap: 9px; } .fgrow { font-size: 13.5px; padding: 10px 14px; } .fgpill b { font-size: 15px; } .fgpill { padding: 7px 16px 7px 8px; gap: 9px; } .fgpill img { width: 24px; height: 24px; }
  .fm { padding: 10px 12px; gap: 12px; } .fm img, .fplus { width: 44px; height: 44px; border-radius: 13px; font-size: 24px; } .fmt b { font-size: 15px; } .fmt span { font-size: 12.5px; }
  .fsoon { font-size: 11px; padding: 3px 9px; }
}


/* ===== brain cell "screen": the cell and its orbiting logos sit under a pane of glass ===== */
.net { border-radius: 30px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .95);
  background: radial-gradient(ellipse at 50% 52%, rgba(255, 255, 255, .72), rgba(205, 219, 255, .42) 72%), linear-gradient(135deg, rgba(255, 255, 255, .6), rgba(222, 232, 255, .4));
  box-shadow: inset 0 1px 0 #fff, inset 0 -46px 80px rgba(77, 107, 254, .10), 0 14px 36px rgba(77, 107, 254, .14); }
.netglass { position: absolute; inset: 0; z-index: 400; pointer-events: none; border-radius: inherit; overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 64%, rgba(255, 255, 255, .16) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 14px 34px rgba(255, 255, 255, .4); }
.netglass::after { content: ""; position: absolute; top: -25%; bottom: -25%; left: -45%; width: 26%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent); transform: translateX(0) skewX(-18deg); animation: glare 10s ease-in-out infinite; }
@keyframes glare { 0%, 52% { transform: translateX(0) skewX(-18deg); } 100% { transform: translateX(620%) skewX(-18deg); } }
.nn, .nn.sq { width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 13px; background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 6px 16px rgba(77, 107, 254, .16), 0 1px 0 #fff inset; }
.nn img, .nn.sq img { opacity: .9; }
@media (max-width: 480px) { .nn, .nn.sq { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 11px; } }
@media (prefers-reduced-motion: reduce) { .netglass::after { animation: none; } }

/* ===== GamePay box in "How it works" ===== */
.fgw { align-items: stretch; justify-items: stretch; gap: 10px; padding: 18px 14px 14px; border-radius: 28px; border: 2px solid transparent;
  background: linear-gradient(180deg, #ffffff, #f2f6ff) padding-box, linear-gradient(135deg, #4d6bfe, #a78bfa 55%, #14b8a6) border-box;
  box-shadow: 0 1px 0 #fff inset, 0 22px 54px rgba(77, 107, 254, .3), 0 0 0 7px rgba(77, 107, 254, .07); }
.fgtop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fglogo { width: 44px; height: 44px; border-radius: 14px; overflow: hidden; flex: none; box-shadow: 0 8px 18px rgba(77, 107, 254, .3); border: 1px solid #dbe5ff; background: #fff; display: block; }
.fglogo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fgttl { display: grid; line-height: 1.15; min-width: 0; } .fgttl b { font-size: 18px; color: #0f1a3a; letter-spacing: -.2px; } .fgttl span { font-size: 11.5px; color: var(--muted); }
.fglive { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; color: #166534; background: #dcfce7; padding: 4px 9px; border-radius: 999px; }
.fgdot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: dotblink 2.4s ease-in-out infinite; }
@keyframes dotblink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fgdiv { display: block; height: 1px; background: linear-gradient(90deg, transparent, #c9d7ff, transparent); }
.fgr { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 15px; background: rgba(255, 255, 255, .9); border: 1px solid #dfe8ff; font-weight: 700; font-size: 13.5px; color: #2a3a6e; box-shadow: 0 1px 0 #fff inset, 0 5px 12px rgba(77, 107, 254, .07); }
.fgi { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: 0 6px 12px rgba(31, 41, 90, .16); }
.fgi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.g0 .fgi { background: linear-gradient(135deg, #6f87ff, #4d6bfe); } .g1 .fgi { background: linear-gradient(135deg, #a78bfa, #7c3aed); } .g2 .fgi { background: linear-gradient(135deg, #2dd4bf, #0d9488); } .g3 .fgi { background: linear-gradient(135deg, #38bdf8, #0284c7); }
@media (prefers-reduced-motion: reduce) { .fgdot { animation: none; } }
@media (min-width: 600px) and (max-width: 979px) {
  .fgw { padding: 14px 10px 10px; gap: 8px; } .fglogo { width: 36px; height: 36px; border-radius: 11px; } .fgttl b { font-size: 15px; } .fgttl span { font-size: 10.5px; }
  .fglive { font-size: 0; gap: 0; padding: 6px; } .fgr { padding: 6px 8px; font-size: 12.5px; gap: 8px; } .fgi { width: 26px; height: 26px; border-radius: 9px; } .fgi svg { width: 14px; height: 14px; }
}

/* the big glass panel is gone: the neuron sits straight on the hero (owner did not like the framed screen) */
.net { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.netglass { display: none; }

/* tool tiles that show a real logo: white tile, logo inside */
.fti.logo { background: #fff !important; border: 1px solid #e3e9fb; box-shadow: 0 6px 14px rgba(77, 107, 254, .14); }
.fti.logo img { width: 66%; height: 66%; object-fit: contain; display: block; }


/* ===== Works with: drifting tool chips (our own style) ===== */
.marq { display: grid; gap: 12px; padding: 6px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.mrow2 { overflow: hidden; }
.mtrack { display: flex; gap: 12px; width: max-content; will-change: transform; animation: drift 70s linear infinite; }
.mrow2.r1 .mtrack { animation-direction: reverse; animation-duration: 82s; margin-left: -90px; }
@keyframes drift { to { transform: translateX(-25%); } }
.marq:not(.live) .mtrack, .marq:hover .mtrack { animation-play-state: paused; }
.chip2 { display: inline-flex; align-items: center; gap: 10px; flex: none; padding: 7px 18px 7px 7px; border-radius: 18px; background: #fff; border: 1px solid #e3e9fb; color: var(--ink) !important; font: inherit; box-shadow: 0 1px 0 #fff inset, 0 6px 16px rgba(77, 107, 254, .09); }
.chip2 b { font-size: 14.5px; white-space: nowrap; }
.chip2.tap { cursor: pointer; } .chip2.tap:hover { box-shadow: 0 10px 22px rgba(77, 107, 254, .2); border-color: #cfdcff; }
.c2l { position: relative; width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(180deg, #fff, #f2f5ff); border: 1px solid #e6ebfb; }
.c2l img { width: 22px; height: 22px; object-fit: contain; display: block; }
.chip2.ok { border-color: #86efac; box-shadow: 0 1px 0 #fff inset, 0 6px 16px rgba(34, 197, 94, .14); }
.c2ok { position: absolute; right: -5px; top: -5px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 inherit; font-style: normal; color: #fff; background: #22c55e; border: 2px solid #fff; }
.marqnote { text-align: center; margin-top: -4px; } .okdot { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #22c55e; color: #fff; font-size: 9.5px; font-weight: 800; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .mtrack { animation: none; flex-wrap: wrap; width: auto; } .mrow2.r1 .mtrack { margin-left: 0; } .mtrack .chip2[aria-hidden="true"] { display: none; } .marq { -webkit-mask-image: none; mask-image: none; } }

.sechead h2 { white-space: nowrap; flex: none; }

/* ===== 3D-style icons (hand drawn in the sprite at the top of index.html) ===== */
svg.i3 { display: block; width: 100%; height: 100%; overflow: visible; }
.fi { width: 58px; height: 58px; border-radius: 0; background: none; box-shadow: none; margin: -4px 0 0 -3px; }
.fi svg.i3 { filter: drop-shadow(0 7px 7px rgba(31, 41, 90, .2)); }
.fgi { width: 38px; height: 38px; border-radius: 0; background: none !important; box-shadow: none; margin: -3px 0 -3px -2px; }
.fgi svg.i3 { filter: drop-shadow(0 4px 4px rgba(31, 41, 90, .2)); }
@media (min-width: 600px) and (max-width: 979px) { .fgi { width: 32px; height: 32px; } }

.fgi svg.i3, .fi svg.i3 { stroke: none; }


/* ===== Try it like this: a chat window per model family + the request/response ===== */
.demo { display: grid; gap: 12px; }
.dtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.dtab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3e9fb; color: #3b4a78 !important; font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px rgba(77, 107, 254, .07); }
.dtab img { width: 20px; height: 20px; border-radius: 6px; object-fit: contain; }
.dtab.on { background: #fff; border-color: #4d6bfe; color: #2a3a8e !important; box-shadow: 0 0 0 3px rgba(77, 107, 254, .14), 0 8px 18px rgba(77, 107, 254, .16); }
.dpane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dpane[hidden] { display: none; }
.dchat, .dcode { border-radius: 22px; overflow: hidden; min-width: 0; }
.dchat { display: grid; grid-template-rows: auto 1fr auto; border: 1px solid #e5e7eb; background: #fff; box-shadow: 0 12px 30px rgba(31, 41, 90, .09); min-height: 300px; }
.dch { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #f0f1f4; font-size: 15px; }
.dcm { display: grid; align-content: start; gap: 14px; padding: 16px; }
.dcu { justify-self: end; max-width: 86%; padding: 10px 15px; border-radius: 20px; font-size: 14.5px; }
.dca { display: flex; gap: 10px; align-items: flex-start; } .dcab { min-width: 0; font-size: 14.5px; line-height: 1.55; display: grid; gap: 8px; }
.dcav { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.typed { position: relative; display: inline-block; } .typed .ghost { visibility: hidden; } .typed .live { position: absolute; left: 0; top: 0; right: 0; }
.typed .live.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.dcc { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 14px; border-radius: 26px; }
.dcph { flex: 1; font-size: 14px; color: #8a90a2; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dcsend { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
/* ChatGPT-like: white, gray bubble, black send button */
.dc-openai .dch b { font-weight: 600; color: #202123; } .dcaret { color: #8e8ea0; transform: translateY(-3px); }
.dc-openai .dcu { background: #f4f4f4; color: #202123; }
.dc-openai .dcav { background: #fff; border: 1px solid #e5e5e5; } .dc-openai .dcav img { width: 18px; height: 18px; object-fit: contain; }
.dc-openai .dcab { color: #202123; }
.dc-openai .dcc { border: 1px solid #e5e5e5; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); } .dcplus { color: #6b6c7b; font-size: 20px; line-height: 1; }
.dc-openai .dcsend { background: #0d0d0d; }
/* DeepSeek-like: soft blue, whale avatar, DeepThink chip, blue send button */
.dc-deepseek { background: #f8faff; border-color: #dbe5ff; } .dc-deepseek .dch { border-bottom-color: #e6ecff; }
.dclogo { width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 1px solid #dbe5ff; display: grid; place-items: center; } .dclogo img { width: 20px; height: 20px; object-fit: contain; }
.dchip { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eaf0ff; color: #3a54d8; border: 1px solid #cdd9ff; } .dchip.on { background: #dfe8ff; }
.dc-deepseek .dch .dchip { margin-left: auto; }
.dc-deepseek .dcu { background: #e4ebff; color: #1e2a63; }
.dc-deepseek .dcav { background: #fff; border: 1px solid #dbe5ff; } .dc-deepseek .dcav img { width: 20px; height: 20px; object-fit: contain; }
.dcthink { justify-self: start; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; color: #5b6aa8; background: #eef2ff; }
.dc-deepseek .dcab { color: #1b2347; }
.dc-deepseek .dcc { background: #fff; border: 1px solid #d3deff; } .dc-deepseek .dcsend { background: #4d6bfe; }
/* the request / response block */
.dcode { background: #0f1b36; color: #dbe6ff; padding: 14px 16px; display: grid; align-content: start; gap: 8px; box-shadow: 0 12px 30px rgba(15, 27, 54, .25); }
.dcb { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .dcb .small { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #dbe6ff !important; box-shadow: none; }
.dcl { font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1.2px; text-transform: uppercase; color: #8aa0ff; } .dres { margin-top: 6px; }
.dpre { margin: 0; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: #cfe0ff; }
.rwrap { position: relative; } .ghost2 { visibility: hidden; } .live2 { position: absolute; left: 0; top: 0; right: 0; }
.dfoot { margin-top: 4px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #8aa0ff; }
@media (min-width: 820px) { .dpane { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .typed .live.caret::after { animation: none; } }


/* ===== Endpoint check card (My key tab) ===== */
.epcheck { gap: 10px; }
.eprow { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; } .eprow .sel { flex: 1 1 200px; min-width: 0; } .eprow .sel select { width: 100%; }
.eprow button { height: 46px; padding: 0 18px; border-radius: 14px; font-weight: 700; }
.epout { display: grid; gap: 8px; }
.epres { padding: 10px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; background: #f4f6ff; border: 1px solid #e3e9fb; } .epres b { font-weight: 800; white-space: pre-wrap; }
.epres.ok { background: #effbf3; border-color: #bfe9cd; color: #14532d; } .epres.bad { background: #fff3f2; border-color: #f5c9c4; color: #7f1d1d; } .epres.run { color: var(--muted); }
.epraw { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: rgba(15, 27, 54, .06); font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; color: #3b4a78; }

/* ---- Prices / FAQ / quick key check: Store look (lavender, violet) ---- */
.sinfo { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sinfo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .sinfo .sx-key, .sinfo .sx-faq { grid-column: 1 / -1; } }
.sx { background: #f6f3fd; border: 1px solid #e3d9f6; border-radius: 20px; padding: 18px; box-shadow: 0 10px 26px rgba(98, 49, 200, .08); display: grid; gap: 12px; min-width: 0; }
.sxt h2 { margin: 0; color: #2a1a55; font-size: 19px; }
.sxt p { margin: 4px 0 0; color: #6b5d94; font-size: 14px; }
.kform { display: flex; gap: 8px; }
.kin { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid #e3d9f6; background: #fff; color: #2a1a55; font-size: 16px; }
.kin:focus { outline: 2px solid #6231c8; outline-offset: 1px; }
.kgo { padding: 0 22px; border-radius: 14px; background: #6231c8; color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(98, 49, 200, .28); }
.plist { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid #e3d9f6; border-radius: 16px; }
.prow b { color: #2a1a55; font-size: 15px; overflow-wrap: anywhere; }
.prow .pr { display: flex; gap: 6px; }
.prow .pr i { font-style: normal; font-weight: 700; font-size: 13px; color: #6231c8; background: #efe8fc; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.prow em { grid-column: 1 / -1; font-style: normal; color: #6b5d94; font-size: 13px; }
.pnote { margin: 0; color: #6b5d94; font-size: 13px; }
.qa { background: #fff; border: 1px solid #e3d9f6; border-radius: 16px; padding: 0 14px; }
.qa summary { cursor: pointer; list-style: none; padding: 14px 24px 14px 0; font-weight: 700; color: #2a1a55; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); color: #6231c8; font-size: 22px; font-weight: 400; }
.qa[open] summary::after { content: "\2212"; }
.qa p { margin: 0 0 14px; color: #5a4d80; font-size: 14.5px; line-height: 1.55; }
.sx > form, .kform { min-width: 0; max-width: 100%; }
.kin { width: 0; }
.kgo { flex: none; padding: 0 18px; min-height: 46px; }
