/* Vantrex LLM — night violet theme */
.lx.llm {
  --bg: #09080f; --bg2: #0d0b16; --card: #12101d; --card2: #0c0a15;
  --ink: #f1effa; --ink2: #c9c6dd; --mut: #8f8ba8; --line: rgba(255, 255, 255, .09); --line2: rgba(255, 255, 255, .05);
  --ac: #a78bfa; --ac-ink: #0b0914; --ac-soft: rgba(167, 139, 250, .14); --ac2: #5eead4;
  --head-bg: rgba(9, 8, 15, .78);
}
.llm .lx-mark { background: #7c5cff; color: #fff; }
.llm .lx-hero { background: radial-gradient(70% 60% at 78% 30%, rgba(124, 92, 255, .22), transparent 70%), radial-gradient(50% 50% at 10% 90%, rgba(94, 234, 212, .08), transparent 70%); }
.llm .lx-h1 .dot, .llm .lx-h2 .dot { color: var(--ac2); }
.llm .lx-cta { background: linear-gradient(135deg, #1a1530, #120f22); color: var(--ink); border: 1px solid var(--line); }
.llm .lx-cta .lx-btn.ghost { color: var(--ink) !important; border-color: var(--line); }

/* ---------- Token tax ---------- */
.tk { border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; }
.tk-in { padding: 26px 28px; border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.tk-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-presets button { padding: 9px 14px; border: 1px solid var(--line); background: transparent; color: var(--ink2); font: 500 13.5px/1 var(--font-sans); border-radius: 999px; transition: background .2s, border-color .2s, color .2s; }
.tk-presets button:hover { border-color: var(--ac); }
.tk-presets button[aria-selected="true"] { background: var(--ac); border-color: var(--ac); color: var(--ac-ink); }
.tk-box textarea { width: 100%; resize: none; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink); font: 500 clamp(18px, 1.6vw, 22px)/1.5 var(--font-sans), "Nirmala UI", "Noto Sans Bengali", sans-serif; }
.tk-box textarea:focus { outline: none; border-color: var(--ac); }
.tk-tr { font-size: 14px; color: var(--mut); min-height: 1.4em; }
.tk-tr::before { content: "Means: "; color: var(--ink2); font-weight: 600; }
.tk-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tk-col { padding: 22px 28px 26px; min-width: 0; }
.tk-col + .tk-col { border-left: 1px solid var(--line); }
.tk-ch { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tk-ch b { font: 500 17px/1.2 var(--font-display); }
.tk-ch span { font-size: 13.5px; color: var(--mut); }
.tk-ch em { font: 500 28px/1 var(--font-display); font-style: normal; color: var(--ink); margin-right: 4px; }
.tk-col.gen .tk-ch em { color: #f59e8b; }
.tk-col.our .tk-ch em { color: var(--ac2); }
.tk-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 120px; align-content: flex-start; }
.tk-chips i { font-style: normal; padding: 5px 8px; border-radius: 6px; font: 500 15px/1.25 var(--font-sans), "Nirmala UI", "Noto Sans Bengali", sans-serif; white-space: pre; animation: tkIn .4s var(--ease) both; animation-delay: calc(var(--k) * 14ms); }
.tk-chips i.sp { padding-inline: 3px; opacity: .45; }
.gen .tk-chips i { background: rgba(245, 158, 139, calc(.10 + var(--a, 0) * .14)); color: #fbd5cc; box-shadow: inset 0 0 0 1px rgba(245, 158, 139, .22); }
.our .tk-chips i { background: rgba(94, 234, 212, calc(.10 + var(--a, 0) * .12)); color: #c9fbf1; box-shadow: inset 0 0 0 1px rgba(94, 234, 212, .25); }
@keyframes tkIn { from { opacity: 0; transform: translateY(6px) scale(.96); } }
.tk-out { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 28px; align-items: center; padding: 24px 28px; border-top: 1px solid var(--line); background: var(--card2); }
.tk-x b { display: block; font: 500 clamp(48px, 5vw, 76px)/.95 var(--font-display); letter-spacing: -.02em; color: #f59e8b; }
.tk-x span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink2); max-width: 30ch; }
.tk-bars { display: grid; gap: 14px; }
.tk-bars li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: center; font-size: 13.5px; color: var(--ink2); }
.tk-bars i { display: grid; gap: 6px; padding-right: 56px; }
.tk-bars s { position: relative; display: block; height: 10px; border-radius: 5px; width: 0; transition: width 1s var(--ease); }
.tk-bars s em { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); font: 600 11.5px/1 var(--font-sans); font-style: normal; color: var(--ink2); white-space: nowrap; }
.tk-bars s.g { background: linear-gradient(90deg, #f59e8b, #f97362); }
.tk-bars s.o { background: linear-gradient(90deg, #5eead4, #2dd4bf); }
.tk-legend { grid-column: 2; display: flex; gap: 18px; font-size: 12.5px; color: var(--mut); }
.tk-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.tk-legend i.g { background: #f59e8b; } .tk-legend i.o { background: #5eead4; }
.tk-note { padding: 14px 28px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }

/* ---------- Build stages ---------- */
.fun { display: grid; gap: 10px; }
.fun li { display: grid; grid-template-columns: 170px 1fr 48px; gap: 14px; align-items: center; font-size: 13.5px; color: var(--ink2); }
.fun i { height: 22px; border-radius: 6px; background: var(--line2); position: relative; overflow: hidden; }
.fun i::after { content: ""; position: absolute; inset: 0; width: calc(var(--v) * 1%); border-radius: 6px; background: linear-gradient(90deg, #7c5cff, #a78bfa); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1s var(--ease); }
.fun li:last-child i::after { background: linear-gradient(90deg, #2dd4bf, #5eead4); }
.fun b { font: 600 14px/1 var(--font-sans); text-align: right; color: var(--ink); }
.on .fun i::after { --p: 1; }
.fun li:nth-child(2) i::after { transition-delay: .1s; } .fun li:nth-child(3) i::after { transition-delay: .2s; } .fun li:nth-child(4) i::after { transition-delay: .3s; } .fun li:nth-child(5) i::after { transition-delay: .4s; } .fun li:nth-child(6) i::after { transition-delay: .5s; }
.src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.src li { font-size: 12.5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink2); }

.voc-bar { display: flex; height: 64px; border-radius: 10px; overflow: hidden; gap: 3px; }
.voc-bar i { flex: var(--v) 1 0; background: var(--c); color: #0b0914; font: 600 13px/1.2 var(--font-sans); font-style: normal; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); min-width: 0; overflow: hidden; }
.voc-bar i b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on .voc-bar i { transform: none; }
.voc-bar i:nth-child(2) { transition-delay: .1s; } .voc-bar i:nth-child(3) { transition-delay: .2s; } .voc-bar i:nth-child(4) { transition-delay: .3s; }
.voc-ex { margin-top: 22px; display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 12px; }
.voc-ex > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.voc-ex small { font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.voc-ex .bn { font: 600 26px/1.2 "Nirmala UI", "Noto Sans Bengali", sans-serif; }
.voc-ex span { font-size: 12.5px; color: var(--mut); }
.voc-ex .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.voc-ex .chips i { font-style: normal; padding: 4px 7px; border-radius: 5px; font: 500 16px/1.2 "Nirmala UI", "Noto Sans Bengali", sans-serif; }
.voc-ex .chips.g i { background: rgba(245, 158, 139, .16); color: #fbd5cc; }
.voc-ex .chips.o i { background: rgba(94, 234, 212, .16); color: #c9fbf1; }

.loss .grid path { stroke: var(--line); stroke-width: 1; }
.loss .ax text { fill: var(--mut); font-size: 11.5px; }
.loss .trn, .loss .val { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2s var(--ease); }
.loss .trn { stroke: #a78bfa; } .loss .val { stroke: #5eead4; stroke-width: 2; }
.on .loss .trn, .on .loss .val { stroke-dashoffset: 0; }
.loss .cks circle { fill: #f1effa; opacity: 0; transition: opacity .4s 1.2s; }
.on .loss .cks circle { opacity: 1; }
.loss .now path { stroke: #a78bfa; stroke-dasharray: 4 5; }
.loss .now rect { fill: #1d1838; stroke: rgba(167, 139, 250, .5); }
.loss .now text { fill: #f1effa; font-size: 12.5px; font-weight: 600; } .loss .now text.s { fill: #a9a4c9; font-weight: 400; font-size: 11.5px; }
.loss .now { opacity: 0; transition: opacity .5s 1.6s; } .on .loss .now { opacity: 1; }

.ift { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ift article { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--card); display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.on .ift article { opacity: 1; transform: none; }
.ift article:nth-child(2) { transition-delay: .1s; } .ift article:nth-child(3) { transition-delay: .2s; } .ift article:nth-child(4) { transition-delay: .3s; }
.ift small { font: 600 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ac2); }
.ift b { font: 500 15px/1.4 var(--font-sans); color: var(--ink); }
.ift p { font-size: 13.5px; line-height: 1.55; color: var(--ink2); padding-left: 12px; border-left: 2px solid var(--ac); }

.gate { display: grid; grid-template-columns: 110px 1fr 170px; gap: 16px; align-items: center; }
.gate-ck, .gate-out { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--card); }
.gate small { font: 600 11px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.gate-ck b { font: 500 30px/1 var(--font-display); color: var(--ac); }
.gate-out b { font: 500 17px/1.3 var(--font-display); }
.gate-out span { font-size: 12.5px; color: var(--mut); line-height: 1.45; }
.gate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gate-grid li { position: relative; padding: 12px 10px 12px 30px; border-radius: 8px; border: 1px solid var(--line); font-size: 12.5px; line-height: 1.3; color: var(--ink2); background: var(--card); transition: border-color .3s, background .3s, color .3s; }
.gate-grid li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--mut); transition: background .3s, border-color .3s; }
.gate-grid li.s::after { content: "Safety"; position: absolute; right: 6px; top: 5px; font: 600 8.5px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #f5c66b; }
.gate-grid li.run { border-color: var(--ac); color: var(--ink); }
.gate-grid li.run::before { border-color: var(--ac); border-top-color: transparent; animation: spin .7s linear infinite; }
.gate-grid li.ok { border-color: rgba(94, 234, 212, .4); background: rgba(94, 234, 212, .06); color: var(--ink); }
.gate-grid li.ok::before { background: #5eead4; border-color: #5eead4; }
@keyframes spin { to { transform: rotate(360deg); } }

.arch .nd rect { fill: var(--card); stroke: var(--line); stroke-width: 1.2; }
.arch .nd.ac rect { fill: rgba(124, 92, 255, .14); stroke: rgba(167, 139, 250, .55); }
.arch text { fill: var(--ink2); font-size: 12.5px; }
.arch text.h { fill: var(--ink); font-size: 14px; font-weight: 600; }
.arch text.s { fill: var(--mut); font-size: 11px; }
.arch .ln path { fill: none; stroke: #8f8ba8; stroke-width: 1.4; stroke-dasharray: 4 4; }
.arch .pk circle { fill: #5eead4; }

/* ---------- Data mix ---------- */
.dm { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dm-rules { margin-top: 32px; display: grid; gap: 14px; }
.dm-rules li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.dm-rules .ico { color: var(--ac2); width: 20px; height: 20px; margin-top: 2px; }
.dm-rules b { color: var(--ink); }
.dm-b { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.donut { max-width: 300px; margin-inline: auto; }
.donut .seg { fill: none; stroke-width: 30; transition: stroke-width .3s var(--ease), opacity .3s; cursor: pointer; }
.donut .seg.dim { opacity: .3; }
.donut .seg.hi { stroke-width: 38; }
.donut .c1 { fill: var(--ink); font: 500 42px/1 var(--font-display); }
.donut .c2 { fill: var(--mut); font-size: 12px; }
.dm-leg { display: grid; gap: 4px; }
.dm-leg li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink2); cursor: default; transition: background .2s; }
.dm-leg li:hover, .dm-leg li.hi { background: var(--line2); color: var(--ink); }
.dm-leg i { width: 12px; height: 12px; border-radius: 3px; }
.dm-leg b { font: 600 15px/1 var(--font-sans); color: var(--ink); }

/* ---------- Evaluation table ---------- */
.ev-wrap { overflow-x: auto; padding: 0; }
.ev { width: 100%; border-collapse: collapse; min-width: 760px; }
.ev th, .ev td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.ev thead th { font: 600 11.5px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--mut); background: var(--card2); }
.ev th:nth-child(n+3), .ev td:nth-child(n+3) { text-align: center; }
.ev tbody th { font: 600 14.5px/1.3 var(--font-sans); color: var(--ink); white-space: nowrap; }
.ev td:nth-child(2) { color: var(--ink2); }
.ev tr.grp td { padding: 18px 18px 8px; font: 600 11.5px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ac); border-bottom: 0; text-align: left; }
.ev tbody tr:not(.grp):hover { background: var(--line2); }
.em { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; }
.em.full { background: var(--ac); }
.em.part { background: linear-gradient(90deg, var(--ac) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--ac); }
.em.none { width: 12px; height: 2px; border-radius: 1px; background: var(--mut); opacity: .6; }
.lx-legend .em { margin-right: 7px; vertical-align: -2px; }
.ev .gt { display: inline-block; padding: 5px 9px; border-radius: 999px; font: 600 11px/1 var(--font-sans); letter-spacing: .04em; white-space: nowrap; background: var(--ac-soft); color: var(--ac); }
.ev .gt.s { background: rgba(245, 198, 107, .14); color: #f5c66b; }

/* ---------- Routing ---------- */
.rt .lx-fig-h { justify-content: space-between; }
.rt-sw { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; gap: 2px; }
.rt-sw button { border: 0; background: transparent; color: var(--mut); padding: 8px 14px; border-radius: 999px; font: 500 13px/1 var(--font-sans); transition: background .25s, color .25s; }
.rt-sw button[aria-selected="true"] { background: var(--ac); color: var(--ac-ink); }
#route .box { fill: var(--card); stroke: var(--line); stroke-width: 1.2; }
#route .box.ac { fill: rgba(124, 92, 255, .14); stroke: rgba(167, 139, 250, .6); }
#route .box.tp { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .22); }
#route text { fill: var(--ink2); font-size: 13px; }
#route text.h { fill: var(--ink); font-size: 16px; font-weight: 500; font-family: var(--font-display); }
#route text.s { fill: var(--mut); font-size: 11.5px; }
#route .wire { fill: none; stroke: var(--line); stroke-width: 2; }
#route .flow { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 14; animation: rtFlow 1.1s linear infinite; transition: opacity .6s, stroke .6s; }
@keyframes rtFlow { to { stroke-dashoffset: -16; } }
#route .chip rect { transition: fill .5s, stroke .5s; }
#route .chip text { font-size: 11px; font-weight: 600; transition: fill .5s; }
.dep { margin-top: 16px; }
.dep .lx-tag { align-self: flex-start; margin-top: auto; }

@media (max-width: 1100px) {
  .lx-steps-p { min-height: 0; }
  .gate { grid-template-columns: minmax(0, 1fr); }
  .dm { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .tk-cols { grid-template-columns: minmax(0, 1fr); }
  .tk-col + .tk-col { border-left: 0; border-top: 1px solid var(--line); }
  .tk-out { grid-template-columns: minmax(0, 1fr); }
  .tk-legend { grid-column: 1; }
  .ift { grid-template-columns: minmax(0, 1fr); }
  .voc-ex { grid-template-columns: minmax(0, 1fr); }
  .fun li { grid-template-columns: 120px 1fr 40px; }
  .dm-b { grid-template-columns: minmax(0, 1fr); }
  .gate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .rt .lx-fig-b { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #route { min-width: 720px; }
  .arch { min-width: 560px; }
  .lx-steps-p .pv:has(.arch) { overflow-x: auto; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .tk-in, .tk-col, .tk-out, .tk-note { padding-inline: 18px; }
  .tk-bars li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .voc-bar i b { display: none; }
}
