/* KnitOS AI — public site. All colours / fonts / sizes come from CSS variables written by the admin theme. */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base, 17px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-weight: var(--w-body, 400); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--w-head, 700); letter-spacing: -.02em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, calc(4.5vw * var(--heading-scale, 1)), calc(4.1rem * var(--heading-scale, 1))); line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, calc(3.6vw * var(--heading-scale, 1)), calc(3rem * var(--heading-scale, 1))); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.25; }
code, pre { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--primary) 40%, transparent); }
.container { width: min(var(--container, 1200px), 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--primary); color: var(--primary-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ic-sm { width: 1em; height: 1em; margin-right: .5em; }
.hl { font-style: normal; background: linear-gradient(100deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: .82rem; color: var(--muted); max-width: 780px; }
.fine.center { text-align: center; margin-top: 28px; }
.eyebrow { font: 500 .78rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin: 0 0 1.1rem; }
.eyebrow.chip { display: inline-flex; align-items: center; gap: .65em; padding: .5em 1em; border: 1px solid var(--border); border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent); letter-spacing: .06em; text-transform: none; font-size: .8rem; color: var(--text); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Chinese typography: no negative tracking, a little more air ---------- */
:lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3, :lang(zh-Hans) .brand, :lang(zh-Hans) .hero-stats b, :lang(zh-Hans) .cmp-big { letter-spacing: 0; }
:lang(zh-Hans) body { line-height: 1.75; }
:lang(zh-Hans) h1 { line-height: 1.12; }
:lang(zh-Hans) .eyebrow, :lang(zh-Hans) .cmp-tag { letter-spacing: .04em; text-transform: none; }
:lang(zh-Hans) .lede { max-width: 40em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.45em; border-radius: var(--btn-radius, 999px); font: 600 .95rem/1.1 var(--font-body); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s; }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 75%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px color-mix(in srgb, var(--primary) 85%, transparent); }
.btn-ghost { border-color: var(--border); color: var(--text); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: .6em 1.15em; font-size: .86rem; }
.ic-after { transition: transform .2s; }
.btn:hover .ic-after { transform: translateX(3px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { flex: none; }
.nav-tools { flex: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: var(--w-head, 700) 1.3rem/1 var(--font-head); letter-spacing: -.02em; color: var(--text); }
.mark { background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 27.5%; flex: none; }
.brand .mark { width: 34px; height: 34px; }
.brand-img { height: 34px; width: auto; }
.brand-name em { font-style: normal; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a { text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--muted); padding: .5em .6em; white-space: nowrap; border-radius: 99px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 99px; padding: 2px; }
.lang a { font: 600 .72rem var(--font-mono); text-decoration: none; padding: .38em .7em; border-radius: 99px; color: var(--muted); }
.lang a.on { background: var(--primary); color: var(--primary-ink); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .ic { width: 18px; height: 18px; }
.t-sun { display: none; } .t-moon { display: grid; }
:root[data-theme="light"] .t-sun { display: grid; } :root[data-theme="light"] .t-moon { display: none; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .t-sun { display: grid; } :root[data-theme="auto"] .t-moon { display: none; } }
.nav-burger { display: none; }
/* set by site.js when the menu does not fit (any language / label length) */
.nav.nocta .nav-tools .btn { display: none; }
.nav.compact .nav-burger { display: grid; }
.nav.compact .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 14px 20px 22px; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
.nav.compact .nav-links a { padding: .85em 1em; font-size: 1rem; }
.nav.compact.open .nav-links { display: flex; }
.nav.compact .nav-tools { margin-left: auto; }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section-pad, 112px) 0; scroll-margin-top: 68px; }
.st-alt { background: var(--bg-alt); }
.section:not(.s-hero).st-default + .section.st-default { padding-top: calc(var(--section-pad, 112px) * .35); }
.st-glow { background: radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 72%); }
html[data-glow="off"] .st-glow { background: none; }
.sec-head { max-width: 780px; margin: 0 auto 3.4rem; }
.sec-head.center { text-align: center; }
.sec-head.center .lede { margin-inline: auto; }
.sec-head.left { margin-left: 0; text-align: left; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev .split-img { order: -1; }
.split-img img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }

/* ---------- hero ---------- */
.s-hero { padding: 56px 0 calc(var(--section-pad, 112px) * .7); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: radial-gradient(75% 80% at 62% 28%, #000 25%, transparent 85%); mask-image: radial-gradient(75% 80% at 62% 28%, #000 25%, transparent 85%); }
.stitches { position: absolute; inset: -30px; background: var(--primary); opacity: .12;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='18'><path d='M4 3.5l9 10.5 9-10.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") 0 0 / 26px 18px;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='18'><path d='M4 3.5l9 10.5 9-10.5' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") 0 0 / 26px 18px;
  animation: drift 5s linear infinite; }
@keyframes drift { to { transform: translateY(18px); } }
html[data-stitch="off"] .stitches { display: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; }
.o1 { width: 440px; height: 440px; background: var(--primary); top: -140px; right: -90px; }
.o2 { width: 360px; height: 360px; background: var(--accent); bottom: -160px; left: 8%; opacity: .2; }
html[data-glow="off"] .orb { display: none; }
:root[data-theme="light"] .orb { opacity: .16; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lede { margin-top: 1.4rem; font-size: 1.18rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 18px 28px; list-style: none; padding: 0; margin: 2.6rem 0 0; }
.hero-stats li { display: grid; gap: 2px; max-width: 152px; }
.hero-stats b { font: var(--w-head, 700) 1.7rem/1.1 var(--font-head); color: var(--highlight); letter-spacing: -.02em; }
.hero-stats span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.trust { margin-top: 2rem; font-size: .84rem; color: var(--muted); display: flex; align-items: center; }

.hero-flow { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1.08fr); align-items: center; position: relative; }
.flow-in { display: grid; gap: 18px; }
.flow-card { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .55); }
.flow-card img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; }
.flow-card.in1 img { object-position: 50% 22%; }
.flow-card figcaption { position: absolute; left: 10px; bottom: 10px; padding: 4px 11px; border-radius: 99px; font: 500 .7rem var(--font-mono); color: var(--text); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); box-shadow: 0 0 22px 5px color-mix(in srgb, var(--primary) 55%, transparent); animation: scan 3.6s ease-in-out infinite; }
.in2 .scan { animation-delay: 1.4s; }
html[data-scan="off"] .scan { display: none; }
@keyframes scan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
.corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--primary); opacity: .9; }
.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.corner.br { top: 10px; right: 10px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.flow-mid { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines path { fill: none; stroke: var(--primary); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .8; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.core { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 50%, var(--border)); box-shadow: 0 0 46px color-mix(in srgb, var(--primary) 40%, transparent); }
.core .mark { width: 40px; height: 40px; }
.core b { position: absolute; top: calc(100% + 8px); font: 600 .72rem var(--font-mono); letter-spacing: .08em; color: var(--text); white-space: nowrap; }
.core-ring { position: absolute; inset: -9px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: var(--primary); border-right-color: var(--accent); animation: spin 3.4s linear infinite; }
.core-ring.r2 { inset: -18px; opacity: .45; animation-duration: 6s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.file-card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: var(--radius); padding: 14px; box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--primary) 50%, transparent); }
.file-head { display: flex; align-items: center; gap: 9px; font-size: .8rem; color: var(--muted); padding: 2px 4px 12px; }
.file-head .ic { color: var(--primary); }
.file-head code { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.file-img { width: 100%; border-radius: calc(var(--radius) * .55); background: color-mix(in srgb, var(--bg) 70%, var(--surface)); padding: 10px; }
.file-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-checks span { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem var(--font-mono); padding: .45em .85em; border-radius: 99px; color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent); }

/* ---------- video ---------- */
.video-wrap { max-width: 980px; margin-inline: auto; position: relative; }
.video-wrap::before { content: ""; position: absolute; inset: 8% 4% -6%; background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--primary) 38%, transparent), transparent 75%); filter: blur(40px); z-index: 0; pointer-events: none; }
html[data-glow="off"] .video-wrap::before { display: none; }
.video { position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .75); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.video-play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); pointer-events: none; }
.video-play:hover img { opacity: 1; transform: scale(1.025); }
.video-btn { position: absolute; z-index: 1; left: 50%; top: 50%; width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent), 0 20px 50px -10px rgba(0, 0, 0, .6); animation: ring 2.4s infinite; transition: transform .25s; }
.video-btn .ic { width: 46%; height: 46%; fill: currentColor; stroke: none; margin-left: 5%; }
.video-play:hover .video-btn { transform: translate(-50%, -50%) scale(1.08); }
@keyframes ring { 70% { box-shadow: 0 0 0 22px transparent, 0 20px 50px -10px rgba(0, 0, 0, .6); } 100% { box-shadow: 0 0 0 0 transparent, 0 20px 50px -10px rgba(0, 0, 0, .6); } }
.video-cap { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; align-items: center; margin: 16px 4px 0; font-size: .9rem; color: var(--muted); }
.video-cap a { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--primary); font-weight: 600; }
.video-cap a:hover { text-decoration: underline; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.step { position: relative; padding: 30px 26px; }
.step:hover, .feat:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--primary) 50%, transparent); }
.step-no { position: absolute; top: 20px; right: 22px; font: 500 .78rem var(--font-mono); color: var(--muted); }
.step-ic, .feat-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); margin-bottom: 20px; flex: none; }
.step-ic .ic, .feat-ic .ic { width: 24px; height: 24px; }
.step p, .feat p, .pillar p { color: var(--muted); font-size: .95rem; margin: 0; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 54px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }

/* ---------- terminal demo ---------- */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.term { --t-bg: #06130d; --t-text: #cfe6da; background: var(--t-bg); border: 1px solid #1c3a2e; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-title { margin-left: 10px; font: 500 .75rem var(--font-mono); color: #7f9a8d; }
.term-replay { margin-left: auto; background: none; border: 0; color: #7f9a8d; cursor: pointer; padding: 4px; border-radius: 6px; }
.term-replay:hover { color: var(--primary); }
.term-body { margin: 0; padding: 22px 22px 26px; font-size: .8rem; line-height: 1.85; color: var(--t-text); overflow-x: auto; white-space: pre; min-height: 220px; }
.tl { display: block; }
.tl.pending { display: none; }
.tl-prompt { color: var(--primary); }
.tl-cmd { color: #fff; font-weight: 500; }
.tl-step { color: #6f9482; }
.tl-dots { color: #34584a; }
.tl-ok { color: #34e0a1; font-weight: 700; }
.tl-done { color: #34e0a1; font-weight: 600; margin-top: .25em; }
.tl.typing::after { content: "▍"; color: var(--primary); animation: blink 1s steps(2) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.shot { margin: 0; }
.shot .zoomable { border-radius: var(--radius); }
.shot figcaption, .g-item figcaption { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.tile { text-align: center; padding: 14px 6px; border: 1px solid var(--border); border-radius: calc(var(--radius) * .7); background: var(--surface); }
.tile b { display: block; font: var(--w-head, 700) 1.45rem/1.1 var(--font-head); color: var(--primary); }
.tile span { font-size: .72rem; color: var(--muted); line-height: 1.25; display: block; margin-top: 3px; }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat h3 { margin-bottom: .45em; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; }
.cmp { padding: 38px; }
.cmp-tag { font: 500 .8rem var(--font-mono); letter-spacing: .08em; color: var(--muted); margin: 0; }
.cmp-big { font: var(--w-head, 700) clamp(2.6rem, 5.4vw, 4rem)/1 var(--font-head); letter-spacing: -.03em; margin: .15em 0 .5em; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cmp li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.cmp li .ic { margin-top: .22em; }
.cmp-old .cmp-big { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: color-mix(in srgb, #ff6b6b 75%, transparent); }
.cmp-old li .ic { color: #ff6b6b; }
.cmp-new { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--primary), var(--accent)) border-box; box-shadow: 0 40px 90px -40px color-mix(in srgb, var(--primary) 55%, transparent); }
.cmp-new .cmp-tag { color: var(--primary); }
.cmp-new .cmp-big { color: var(--highlight); }
.cmp-new li { color: var(--text); }
.cmp-new li .ic { color: var(--primary); }
.cmp-arrow { display: grid; place-items: center; color: var(--primary); }
.cmp-arrow .ic { width: 30px; height: 30px; }
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chips li { display: inline-flex; align-items: center; gap: 9px; padding: .65em 1.15em; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: .9rem; font-weight: 500; }
.chips .ic { color: var(--primary); }

/* ---------- platform / orbit ---------- */
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ic { color: var(--primary); margin-top: .25em; }
.orbit-box { container-type: inline-size; }
.orbit { --nw: clamp(96px, 26cqw, 144px); --r: clamp(96px, calc(50cqw - var(--nw) / 2 - 6px), 196px); position: relative; width: min(540px, 100%); aspect-ratio: 1; margin-inline: auto; }
.orbit-ring { position: absolute; inset: calc(50% - var(--r)); border: 1.5px dashed color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 50%; animation: spin 90s linear infinite; }
.orbit-ring.r2 { inset: calc(50% - var(--r) * .58); border-style: solid; border-color: color-mix(in srgb, var(--accent) 22%, transparent); animation-direction: reverse; animation-duration: 140s; }
.orbit-core { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 0 70px color-mix(in srgb, var(--primary) 45%, transparent); }
.orbit-core .mark { width: 38px; height: 38px; }
.orbit-core b { font: 600 .8rem var(--font-mono); letter-spacing: .1em; }
.orbit-node { position: absolute; top: 50%; left: 50%; width: var(--nw);
  transform: translate(-50%, -50%) rotate(calc(var(--i) * 360deg / var(--n) - 90deg)) translateX(var(--r)) rotate(calc(var(--i) * -360deg / var(--n) + 90deg)); }
.node-in { text-align: center; padding: 11px 10px; border-radius: calc(var(--radius) * .7); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 2px; }
.node-in b { font: var(--w-head, 700) .95rem/1.15 var(--font-head); }
.node-in small { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.node-in em { font: 600 .6rem var(--font-mono); letter-spacing: .12em; font-style: normal; color: var(--muted); margin-top: 3px; }
.orbit-node.live .node-in { border-color: var(--primary); box-shadow: 0 0 40px color-mix(in srgb, var(--primary) 35%, transparent); }
.orbit-node.live em { color: var(--primary); }

/* ---------- values / collab / gallery / faq / contact ---------- */
.quote { margin: 2rem 0 0; padding: .2em 0 .2em 22px; border-left: 3px solid var(--highlight); font: var(--w-head, 700) clamp(1.2rem, 2.3vw, 1.65rem)/1.3 var(--font-head); letter-spacing: -.015em; }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; padding: 22px; }
.pillar .feat-ic { margin: 0; }
.pillar h3 { margin-bottom: .25em; }
.values-img img { border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 14px; }
.countries { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 7vw, 90px); list-style: none; padding: 0; margin: 0; }
.countries li { display: grid; justify-items: center; gap: 12px; position: relative; }
.countries li:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: calc(100% + clamp(8px, 2.2vw, 30px)); width: clamp(12px, 3vw, 38px); border-top: 2px dotted var(--border); }
.countries b { font: var(--w-head, 700) 1.1rem var(--font-head); }
.countries small { color: var(--muted); font-size: .82rem; margin-top: -8px; }
.flag { width: 90px; height: 60px; border-radius: 9px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.gallery { columns: 4 230px; column-gap: 18px; }
.g-item { break-inside: avoid; margin: 0 0 18px; }
.zoomable { display: block; width: 100%; padding: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) * .75); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.zoomable img { width: 100%; transition: transform .5s; }
.zoomable:hover img { transform: scale(1.035); }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; font: 600 1.05rem/1.35 var(--font-head); }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { width: 10px; height: 10px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg); transition: transform .25s; flex: none; margin-right: 4px; }
.faq-item[open] .chev { transform: rotate(-135deg); }
.faq-a { padding: 0 24px 6px; color: var(--muted); }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; }
.contact-lines .ic { color: var(--primary); margin-top: .2em; }
.contact-lines a { text-decoration: none; border-bottom: 1px solid var(--border); }
.contact-lines a:hover { border-color: var(--primary); }
.form { padding: 30px; display: grid; gap: 16px; }
.form:hover { transform: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; }
.form label > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.form input, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: calc(var(--radius) * .55); padding: .8em 1em; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.form textarea { resize: vertical; min-height: 110px; }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: .9rem; }
.form-status.ok { color: var(--primary); } .form-status.err { color: #ff7a7a; }
.form [aria-invalid="true"] { border-color: #ff7a7a; }

/* ---------- footer / lightbox ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 36px; background: var(--bg-alt); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-bottom: 22px; }
.foot-top p { margin: 0; color: var(--muted); font-size: .9rem; }
.foot-links { display: flex; gap: 18px; margin-left: auto; }
.foot-link { font-size: .88rem; color: var(--muted); text-decoration: none; }
.foot-link:hover { color: var(--primary); }
.footer .fine { margin: 0 0 8px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(2, 8, 5, .92); display: grid; place-items: center; padding: 28px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(94vw, 1500px); max-height: 82vh; margin-inline: auto; border-radius: 12px; }
.lightbox figcaption { color: #cfe6da; font-size: .9rem; margin-top: 14px; }
.lb-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-close .ic { width: 22px; height: 22px; }

/* ---------- technical flow: platform, edge, skill pipeline ---------- */
.tf { display: grid; gap: 38px; }
.tf-band { min-width: 0; }
.tf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.tf-head .eyebrow { margin: 0; white-space: nowrap; }
.tf-head i { flex: 1; height: 1px; background: var(--border); }
.tf-head span { font: 500 .74rem var(--font-mono); letter-spacing: .04em; color: var(--muted); text-align: right; }
.tf-kick { font: 500 .68rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin: 0; }
.tf-desc { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: .5em 0 0; }
.tf-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.tf-ic .ic { width: 18px; height: 18px; }
.tf-tag { font: 700 .58rem/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: .15em .6em; border-radius: 7px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, transparent); }

.tf-plat { padding: 14px; }
.tf-plat:hover { border-color: var(--border); }
.tf-hosts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tf-hosts li { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border: 1px solid var(--border); border-radius: calc(var(--radius) * .75); background: var(--bg-alt); min-width: 0; }
.tf-hosts .tf-tag { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 12px; font-size: .62rem; color: var(--primary-ink); background: linear-gradient(135deg, var(--primary), var(--accent)); flex: none; }
.tf-hosts code { display: block; font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; }
.tf-hosts code b { color: var(--primary); }
.tf-hosts small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.35; margin-top: 2px; }
.tf-split { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: 12px; }
.tf-box { border: 1px solid; border-radius: calc(var(--radius) * .9); padding: 22px; min-width: 0; }
.tf-box h3 { font-size: 1.8rem; line-height: 1.05; letter-spacing: -.02em; margin: .2em 0 0; }
.tf-agent { display: flex; flex-direction: column; background: color-mix(in srgb, var(--primary) 7%, var(--bg-alt)); border-color: color-mix(in srgb, var(--primary) 42%, var(--border)); }
.tf-agent h3 em { font-style: normal; color: var(--primary); }
.tf-backbone { background: color-mix(in srgb, var(--accent) 6%, var(--bg-alt)); border-color: color-mix(in srgb, var(--accent) 38%, var(--border)); }
.tf-backbone .tf-kick { color: var(--accent); }
.tf-bb-top { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: end; }
.tf-bb-top .tf-desc { margin: 0 0 .15em; }
.tf-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.tf-points li { display: flex; gap: 12px; align-items: center; }
.tf-points b, .tf-points small { display: block; }
.tf-points b { font-size: .92rem; line-height: 1.25; }
.tf-points small { color: var(--muted); font-size: .8rem; line-height: 1.3; }
.tf-link { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: auto 0 0; padding-top: 16px; font: 500 .68rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.tf-svcs { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tf-svcs li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) * .7); padding: 14px; min-width: 0; }
.tf-svcs .tf-tag { position: absolute; top: 12px; right: 12px; }
.tf-svc-top { display: flex; align-items: center; gap: 10px; padding-right: 40px; }
.tf-svc-top b { font-size: .92rem; line-height: 1.2; }
.tf-svcs .tf-ic { width: 30px; height: 30px; border-radius: 9px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tf-svcs p { margin: 9px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.tf-svcs p strong { color: var(--text); font-weight: 600; }

.tf-edge { position: relative; list-style: none; padding: 0; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.tf-edge::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 13px); opacity: .75; animation: tf-wire 1s linear infinite; }
@keyframes tf-wire { to { background-position: 13px 0; } }
.tf-node { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: 10px 22px 10px 16px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); min-width: 0; }
.tf-node + .tf-node::before { content: ""; position: absolute; left: -15px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: rotate(45deg); }
.tf-node > .ic { width: 22px; height: 22px; color: var(--primary); }
.tf-node b, .tf-node small { display: block; white-space: nowrap; }
.tf-node b { font-size: .9rem; line-height: 1.2; }
.tf-node small { color: var(--muted); font-size: .74rem; line-height: 1.3; }
.tf-node.main { background: linear-gradient(120deg, var(--primary), var(--accent)); border-color: transparent; color: var(--primary-ink); box-shadow: 0 18px 44px -20px color-mix(in srgb, var(--primary) 75%, transparent); }
.tf-node.main > .ic { color: inherit; }
.tf-node.main b { font: var(--w-head, 700) 1.12rem/1.1 var(--font-head); letter-spacing: -.01em; }
.tf-node.main small { color: inherit; opacity: .8; font-weight: 500; }

.tf-skills { display: flex; align-items: stretch; }
.tf-skill { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 12px 13px; padding: 20px 20px 16px; text-align: left; font: inherit; color: var(--text); cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: transform .3s, border-color .3s, box-shadow .3s, background .3s; }
.tf-skill:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.tf-skill[aria-selected="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); box-shadow: 0 26px 50px -30px color-mix(in srgb, var(--primary) 65%, transparent); }
.tf-num { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font: var(--w-head, 700) 1.25rem/1 var(--font-head); color: var(--primary-ink); background: linear-gradient(135deg, var(--primary), var(--accent)); }
.tf-skill-t { align-self: center; min-width: 0; }
.tf-skill-t small { display: block; font: 500 .64rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); }
.tf-skill-t b { display: block; font: var(--w-head, 700) 1.25rem/1.15 var(--font-head); letter-spacing: -.015em; overflow-wrap: anywhere; }
.tf-skill-d { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.tf-skill-o { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--highlight) 45%, var(--border)); }
.tf-skill-o .ic { width: .95em; height: .95em; color: var(--highlight); align-self: center; }
.tf-skill-o em { font: 500 .62rem var(--font-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tf-skill-o b { font: var(--w-head, 700) 1rem/1.2 var(--font-head); color: var(--highlight); }
.tf-next { flex: none; width: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--primary); }
.tf-next .ic { width: 20px; height: 20px; }
.tf-next small { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 .6rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; max-height: 150px; overflow: hidden; }
.tf-loop { position: relative; height: 30px; margin: 0 calc((100% - (var(--n, 4) - 1) * 42px) / (2 * var(--n, 4))); border: 2px dashed color-mix(in srgb, var(--primary) 70%, transparent); border-top: 0; border-radius: 0 0 18px 18px; display: flex; justify-content: center; align-items: flex-end; }
.tf-loop::before { content: ""; position: absolute; left: -7px; top: 1px; width: 10px; height: 10px; border-left: 2px solid var(--primary); border-top: 2px solid var(--primary); transform: rotate(45deg); }
.tf-loop span { display: inline-flex; align-items: center; gap: 8px; transform: translateY(50%); padding: 0 14px; background: var(--bg); font: 500 .66rem var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--primary); white-space: nowrap; }
.st-alt .tf-loop span { background: var(--bg-alt); }

.tf-rails { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tf-rails li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: calc(var(--radius) * .75); background: var(--surface); }
.tf-rails .ic { width: 20px; height: 20px; flex: none; margin-top: .1em; color: var(--primary); }
.tf-rails b { display: block; font-size: .9rem; line-height: 1.3; }
.tf-rails span { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.4; color: var(--muted); }

/* the stage under the pipeline: detail of the selected skill + the end user's chat window */
.tf-stage { margin-top: 34px; scroll-margin-top: 82px; }
.tf-skills { scroll-margin-top: 84px; }
.js .tf-panel:not(.on) { display: none; }
.tf-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: stretch; }
.tf-panel + .tf-panel { margin-top: 20px; }
.tf-detail { padding: 26px; display: flex; flex-direction: column; gap: 15px; }
.tf-detail:hover { border-color: var(--border); }
.tf-detail-h { display: flex; align-items: center; gap: 14px; }
.tf-detail-h .feat-ic { margin: 0; }
.tf-detail-h h3 { margin: .1em 0 0; font-size: 1.45rem; }
.tf-detail .tf-desc { margin: 0; }
.tf-uses { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.tf-uses em { font: 500 .62rem var(--font-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.tf-uses span { font: 500 .7rem var(--font-mono); padding: .2em .75em; border-radius: 99px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border)); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.tf-detail-b { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.tf-lbl { font: 500 .64rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.tf-lbl:first-child { margin-top: 0; }
.tf-chips, .tf-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.tf-chips span, .tf-chain span { font-size: .8rem; font-weight: 500; padding: .3em .85em; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-alt); }
.tf-chain span { font: 500 .74rem var(--font-mono); }
.tf-chain .gate { font-weight: 600; color: var(--highlight); border-color: color-mix(in srgb, var(--highlight) 55%, var(--border)); background: color-mix(in srgb, var(--highlight) 10%, transparent); }
.tf-sep { width: 7px; height: 7px; margin-right: 3px; flex: none; border-top: 2px solid var(--primary); border-right: 2px solid var(--primary); transform: rotate(45deg); }
.tf-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: baseline; }
.tf-rows code { font-weight: 600; font-size: .78rem; color: var(--highlight); white-space: nowrap; }
.tf-rows span { font-size: .86rem; line-height: 1.4; }
.tf-note { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.tf-note strong { color: var(--text); }
.tf-out { margin-top: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline; padding: 14px 16px; border-radius: calc(var(--radius) * .7); border: 1px dashed color-mix(in srgb, var(--highlight) 50%, var(--border)); background: color-mix(in srgb, var(--highlight) 7%, transparent); }
.tf-out em { font: 500 .62rem var(--font-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tf-out b { font: var(--w-head, 700) 1.2rem/1.1 var(--font-head); color: var(--highlight); }
.tf-out p { grid-column: 1 / -1; margin: 4px 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.tf-live-btn { justify-content: center; }
.tf-live-btn .ic { width: 1.3em; height: 1.3em; }

/* chat window (same parts as the real app: header, messages, message box) */
.tf-chatcol { min-width: 0; display: flex; flex-direction: column; }
.tf-chat { position: relative; flex: 1; min-height: 580px; display: flex; overflow: hidden; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); border-radius: var(--radius); background: var(--bg); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6); }
.tf-chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; transition: margin-right .3s ease; }
.tf-chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--border); background: var(--surface); flex: none; }
.tf-ghost { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); background: none; }
.tf-ghost .ic { width: 18px; height: 18px; }
button.tf-ghost { cursor: pointer; color: var(--primary); transition: background .2s; }
button.tf-ghost:hover { background: color-mix(in srgb, var(--primary) 16%, transparent); }
.tf-avatar, .cm-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 2px solid var(--primary); box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 40%, transparent); }
.tf-avatar .mark, .cm-av .mark { width: 58%; height: 58%; }
.cm-av { width: 30px; height: 30px; border-width: 1.5px; box-shadow: none; align-self: flex-end; }
.tf-chat-id { flex: 1; min-width: 0; }
.tf-chat-id b { display: block; font-size: .95rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-chat-id small { display: block; font-size: .72rem; color: var(--primary); }
.tf-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.cm { display: flex; gap: 10px; max-width: 88%; min-width: 0; }
.cm.pending { display: none; }
.js .cm { animation: cm-in .28s ease; }
@keyframes cm-in { from { opacity: 0; transform: translateY(8px); } }
.cm-user { align-self: flex-end; }
.cm-ai { align-self: flex-start; }
.cm-b { display: grid; gap: 9px; min-width: 0; padding: 10px 14px; border-radius: 16px; font-size: .88rem; line-height: 1.55; }
.cm-b p { margin: 0; }
.cm-user .cm-b { background: linear-gradient(135deg, #087a56, #0b8f65); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 10px 26px -14px rgba(11, 143, 101, .7); }
.cm-ai .cm-b { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.cm-skill { justify-self: start; display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 8px; border-radius: 99px; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .32); border: 1px solid rgba(255, 255, 255, .26); }
.cm-skill .ic { width: .95em; height: .95em; }
.cm-files { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-file { margin: 0; width: 118px; border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .24); }
.cm-file img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cm-file figcaption { padding: 5px 8px; font-size: .66rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-file-plain { width: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: .74rem; }
.cm-card { padding: 10px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.cm-card b { display: block; margin-bottom: 6px; font: 600 .74rem var(--font-mono); color: var(--primary); }
.cm-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font: 500 .76rem/1.5 var(--font-mono); overflow-wrap: anywhere; }
.cm-oks { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-ok { display: inline-flex; align-items: center; gap: 6px; padding: .4em .8em; border-radius: 99px; font: 600 .7rem var(--font-mono); color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent); }
.cm-art { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); }
.cm-art > .ic { width: 22px; height: 22px; flex: none; color: var(--highlight); }
.cm-art span { flex: 1; min-width: 0; }
.cm-art b { display: block; font: 600 .8rem var(--font-mono); overflow-wrap: anywhere; }
.cm-art small { display: block; font-size: .72rem; color: var(--muted); }
.cm-art .cm-dl { width: 18px; height: 18px; color: var(--primary); }
.cm-img { margin: 0; max-width: 280px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.cm-img img { width: 100%; padding: 8px; }
.cm-img figcaption { padding: 0 10px 8px; font-size: .7rem; color: var(--muted); }
.cm-live { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 13px; border-radius: 11px; cursor: pointer; font: 600 .82rem var(--font-body); color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); transition: background .2s; }
.cm-live:hover { background: color-mix(in srgb, var(--primary) 20%, transparent); }
.cm-live span { flex: 1; text-align: left; }
.cm-typing .cm-b { grid-auto-flow: column; gap: 5px; padding: 14px 16px; }
.cm-typing i, .tf-live-h i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: cm-dot 1.1s ease-in-out infinite; }
.cm-typing i:nth-child(2) { animation-delay: .18s; }
.cm-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes cm-dot { 0%, 80%, 100% { transform: scale(.7); opacity: .35; } 40% { transform: scale(1); opacity: 1; } }
.tf-chat-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); flex: none; }
.tf-input { flex: 1; min-width: 0; padding: .7em 1.1em; border-radius: 99px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-send { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--primary); color: var(--primary-ink); }
.tf-send .ic { width: 18px; height: 18px; }
.tf-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 12px 4px 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.tf-replay { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 0; border: 0; background: none; font: 600 .8rem/1.5 var(--font-body); color: var(--primary); cursor: pointer; white-space: nowrap; }
.tf-replay:hover span { text-decoration: underline; }

/* Inception window: slides in beside the chat and shows the run (plan, live view of the M1plus PC, log, result file) */
.tf-panel.live { grid-template-columns: minmax(0, 1fr); }
.tf-panel.live .tf-detail { display: none; }
.tf-panel.live .tf-chat { min-height: 660px; }
.tf-panel.live .tf-chat-main { margin-right: 62%; }
.tf-iw { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 62%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--border); box-shadow: -8px 0 30px rgba(0, 0, 0, .28); transform: translateX(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.tf-iw[hidden] { display: none; }
.tf-iw.open { transform: none; opacity: 1; }
.tf-iw-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); flex: none; }
.tf-iw-head > .ic { width: 20px; height: 20px; color: var(--primary); }
.tf-iw-head b { font-size: .95rem; }
.tf-iw-count { margin-right: auto; min-width: 20px; padding: 1px 7px; border-radius: 20px; text-align: center; font-size: .68rem; font-weight: 700; background: var(--primary); color: var(--primary-ink); }
.tf-iw-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.tf-art { flex: none; background: var(--surface-2); border: 1px solid var(--border); border-radius: calc(var(--radius) * .7); overflow: hidden; }
.tf-art.pending { display: none; }
.js .tf-art { animation: cm-in .3s ease; }
.tf-art-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px 9px; }
.tf-art-h b { flex: 1; min-width: 0; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf-badge { flex: none; padding: 2px 7px; border-radius: 8px; font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tf-badge i { font-style: normal; }
.tf-badge.run { color: var(--primary); background: color-mix(in srgb, var(--primary) 18%, transparent); }
.tf-badge.run i:first-child, .is-running .tf-badge.run i:last-child { display: none; }
.is-running .tf-badge.run i:first-child { display: inline; }
.tf-badge.file { color: var(--highlight); background: color-mix(in srgb, var(--highlight) 16%, transparent); }
.tf-cbadge { flex: none; max-width: 130px; padding: 2px 7px; border-radius: 8px; font-size: .62rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); background: color-mix(in srgb, var(--text) 8%, transparent); }
.tf-clock { flex: none; font: 500 .68rem var(--font-mono); color: var(--muted); }
.tf-art-b { display: grid; gap: 10px; padding: 0 12px 12px; }
.tf-run { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: start; }
.tf-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tf-plan li { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 6px; font-size: .76rem; line-height: 1.3; color: var(--muted); transition: background .2s, color .2s; }
.tf-plan li i { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; }
.tf-plan li.active { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--primary) 10%, transparent); }
.tf-plan li.active i { opacity: 1; border-color: color-mix(in srgb, var(--primary) 30%, transparent); border-top-color: var(--primary); animation: spin .7s linear infinite; }
.tf-plan li.done { color: var(--primary); }
.tf-plan li.done i { opacity: 1; width: 11px; height: 6px; margin: 0 1px 3px 0; border: 0; border-radius: 0; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.tf-live { border-radius: 9px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border)); }
.tf-live-h { display: flex; align-items: center; gap: 7px; padding: 5px 10px; font-size: .7rem; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.tf-live-h i { background: #f87171; animation-duration: 1.4s; }
.tf-log { display: grid; gap: 4px; }
.tf-log p { margin: 0; padding: 4px 8px; border-left: 2px solid var(--primary); border-radius: 0 4px 4px 0; font: 400 .7rem/1.45 var(--font-mono); color: var(--muted); background: color-mix(in srgb, var(--primary) 6%, transparent); overflow-wrap: anywhere; }
.tf-log p.pending { display: none; }
.js .tf-log p { animation: cm-in .2s ease; }
.tf-file { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; background: color-mix(in srgb, var(--bg) 65%, transparent); }
.tf-file > .ic { width: 24px; height: 24px; flex: none; color: var(--highlight); }
.tf-file b { display: block; font: 600 .82rem var(--font-mono); overflow-wrap: anywhere; }
.tf-file small { display: block; font-size: .72rem; color: var(--muted); }
.tf-fbtns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tf-fbtns span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: .74rem; color: var(--muted); border: 1px solid var(--border); }
.tf-fbtns span:first-child { color: var(--primary); background: color-mix(in srgb, var(--primary) 15%, transparent); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }

/* the M1plus screen inside the live view: a Windows program, so its colours are fixed and do not follow the site theme */
.m1 { container-type: inline-size; background: #f0f0f0; color: #111; font-family: "Segoe UI", system-ui, sans-serif; line-height: 1.2; -webkit-user-select: none; user-select: none; }
.m1-bar { display: flex; align-items: center; gap: 1.4cqw; padding: 1cqw 1.6cqw; background: #fff; font-size: clamp(6px, 2.05cqw, 12px); }
.m1-app { width: 2.6cqw; height: 2.6cqw; flex: none; background: conic-gradient(#222 25%, #e8c400 0 50%, #222 0 75%, #7a1f7a 0); }
.m1-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m1-win { display: flex; align-items: center; gap: 2.6cqw; }
.m1-win i { width: 1.8cqw; height: 1.8cqw; border: 1px solid #444; }
.m1-win i:first-child { height: 0; border-width: 1px 0 0; }
.m1-win i:last-child { border: 0; background: linear-gradient(45deg, transparent 44%, #444 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #444 44% 56%, transparent 56%); }
.m1-menu { display: flex; gap: 2.4cqw; padding: .8cqw 1.8cqw; font-size: clamp(6px, 1.95cqw, 11.5px); white-space: nowrap; overflow: hidden; }
.m1-tools { display: flex; gap: 1.1cqw; padding: 1cqw 1.8cqw; border-top: 1px solid #d9d9d9; border-bottom: 1px solid #c2c2c2; overflow: hidden; }
.m1-tools i { width: 2.4cqw; height: 2.4cqw; flex: none; border-radius: .4cqw; background: #c9d3e6; }
.m1-tools i:nth-child(3n) { background: #e6b8b8; }
.m1-tools i:nth-child(5n) { background: #bfe0c4; }
.m1-work { display: grid; grid-template-columns: 9cqw minmax(0, 1fr) 13cqw; }
.m1-left { display: grid; align-content: start; gap: 1.4cqw; padding: 1.6cqw 1.2cqw; border-right: 1px solid #c2c2c2; }
.m1-left i { aspect-ratio: 1; background: #f6d98b; border: 1px solid #b9a36a; }
.m1-canvas { position: relative; aspect-ratio: 480 / 250; overflow: hidden; background: #000; }
.m1-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m1-area { fill: #6e6e6e; }
.m1-right { display: grid; grid-template-columns: repeat(4, 1fr); align-content: start; gap: .9cqw; padding: 1.4cqw 1.1cqw; border-left: 1px solid #c2c2c2; }
.m1-right i { aspect-ratio: 1; border-radius: .3cqw; background: #d5dbe8; }
.m1-right i:nth-child(4n + 2) { background: #e9c1c1; }
.m1-right i:nth-child(7n) { background: #c2e3c6; }
.m1-right i:nth-child(9n) { background: #f1e3a3; }
.m1-status { height: 3.4cqw; display: flex; align-items: center; justify-content: flex-end; padding: 0 1.8cqw; border-top: 1px solid #c2c2c2; }
.m1-prog { width: 30cqw; height: 1.3cqw; background: #dcdcdc; border: 1px solid #b5b5b5; opacity: 0; transition: opacity .3s; }
.m1-prog i { display: block; width: 0; height: 100%; background: #2a8f4f; }
.m1-full, .m1-cut, .m1-outline, .m1-rows, .m1-marks { opacity: 0; transition: opacity .5s ease; }
.m1-cut { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .5s ease, transform .9s ease; }
.m1-outline { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 1.1 .8; }
.m1-rows { fill: none; stroke: rgba(0, 0, 0, .3); stroke-width: .7; }
.m1-marks circle { fill: #d0021b; }
.m1:is([data-vis="pattern"], [data-vis="position"]) .m1-full,
.m1:is([data-vis="shape"], [data-vis="position"]) .m1-outline,
.m1:is([data-vis="cutout"], [data-vis="expand"], [data-vis="process"], [data-vis="mc"], [data-vis="check"]) .m1-cut,
.m1:is([data-vis="expand"], [data-vis="process"], [data-vis="mc"], [data-vis="check"]) .m1-rows,
.m1:is([data-vis="process"], [data-vis="mc"], [data-vis="check"]) .m1-marks { opacity: 1; }
.m1:is([data-vis="expand"], [data-vis="process"], [data-vis="mc"], [data-vis="check"]) .m1-cut { transform: scaleY(1.07); }
.m1[data-vis="shape"] .m1-outline { stroke-dasharray: 100; animation: m1-draw 2s ease both; }
.m1[data-vis="pattern"] .m1-full { animation: m1-wipe 1.7s ease both; }
.m1:is([data-vis="expand"], [data-vis="process"]) .m1-prog { opacity: 1; }
.m1:is([data-vis="expand"], [data-vis="process"]) .m1-prog i { animation: m1-prog 2.2s linear both; }
@keyframes m1-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes m1-wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes m1-prog { to { width: 100%; } }
.m1-dlg { position: absolute; min-width: 32cqw; padding-bottom: 1.4cqw; font-size: clamp(6px, 1.9cqw, 11.5px); color: #111; background: #f0f0f0; border: 1px solid #6b6b6b; box-shadow: 0 1.2cqw 3cqw rgba(0, 0, 0, .55); opacity: 0; transform: scale(.94); transition: opacity .3s, transform .3s; pointer-events: none; }
.m1-dlg b { display: block; margin-bottom: 1.1cqw; padding: .9cqw 1.6cqw; font-weight: 600; background: #fff; border-bottom: 1px solid #d0d0d0; }
.m1-dlg p { display: flex; justify-content: space-between; gap: 3cqw; margin: 0; padding: .35cqw 1.6cqw; }
.m1-dlg em { font-style: normal; font-weight: 600; }
.m1-dlg .g { font-weight: 700; color: #0a7a2f; }
.m1-btn { display: inline-block; margin: 1.1cqw 1.6cqw 0; padding: .5cqw 3cqw; border: 1px solid #2f6fd0; background: #e5f0ff; }
.m1-dlg-shape { left: 5%; top: 9%; }
.m1-dlg-mc { left: 50%; top: 50%; margin: -8cqw 0 0 -18cqw; }
.m1-dlg-check { right: 5%; bottom: 8%; }
.m1[data-vis="shape"] .m1-dlg-shape, .m1[data-vis="mc"] .m1-dlg-mc, .m1[data-vis="check"] .m1-dlg-check { opacity: 1; transform: none; }
.m1[data-vis="check"] .m1-dlg-check .g { animation: cm-in .3s .9s both; }
.m1[data-vis="check"] .m1-dlg-check .g:last-child { animation-delay: 1.7s; }
.m1-cursor { position: absolute; left: 78%; top: 72%; width: 2.6cqw; height: 3.9cqw; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'><path d='M1 1v13.2l3.2-3 2.3 5.4 2-.9-2.3-5.2h4.4z' fill='white' stroke='black' stroke-width='1' stroke-linejoin='round'/></svg>") no-repeat 0 0 / contain; transition: left .8s cubic-bezier(.4, 0, .2, 1), top .8s cubic-bezier(.4, 0, .2, 1); }
.m1[data-vis="shape"] .m1-cursor { left: 16%; top: 43%; }
.m1[data-vis="pattern"] .m1-cursor { left: 40%; top: 20%; }
.m1[data-vis="position"] .m1-cursor { left: 52%; top: 40%; }
.m1[data-vis="cutout"] .m1-cursor { left: 63%; top: 32%; }
.m1[data-vis="expand"] .m1-cursor { left: 30%; top: 58%; }
.m1[data-vis="process"] .m1-cursor { left: 72%; top: 64%; }
.m1[data-vis="mc"] .m1-cursor { left: 40%; top: 60%; }

:lang(zh-Hans) :is(.tf-kick, .tf-lbl, .tf-link, .tf-loop span, .tf-next small, .tf-skill-t small, .tf-skill-o em, .tf-uses em, .tf-out em) { letter-spacing: .04em; }
:lang(zh-Hans) .tf-box h3, :lang(zh-Hans) .tf-skill-t b { letter-spacing: 0; }
:lang(zh-Hans) .tf-next small { writing-mode: vertical-rl; transform: none; }

@media (max-width: 1080px) {
  .tf-split, .tf-panel { grid-template-columns: minmax(0, 1fr); }
  .tf-chatcol { order: -1; }   /* one column: the chat comes first, the detail under it */
  .tf-skills { flex-wrap: wrap; gap: 14px; }
  .tf-skill { flex: 1 1 calc(50% - 7px); }
  .tf-next { display: none; }
  .tf-loop { height: auto; margin: 14px 0 0; border: 0; }
  .tf-loop::before { display: none; }
  .tf-loop span { transform: none; padding: 0; background: none; }
  .tf-panel.live .tf-chat-main { margin-right: 0; }
  .tf-iw { width: 100%; }
}
@media (max-width: 900px) {
  .tf-edge { flex-direction: column; align-items: stretch; gap: 20px; }
  .tf-edge::before { left: 26px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; margin: 0; background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 13px); animation: none; }
  .tf-node + .tf-node::before { left: 22px; top: -14px; margin: 0; transform: rotate(135deg); }
  .tf-node b, .tf-node small { white-space: normal; }
}
@media (max-width: 760px) {
  .tf-hosts { grid-template-columns: minmax(0, 1fr); }
  .tf-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-bb-top { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tf-head span { display: none; }
  .tf-run { grid-template-columns: minmax(0, 1fr); }
  .tf-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tf { gap: 30px; }
  .tf-skills { gap: 10px; }
  .tf-skill { flex-basis: calc(50% - 5px); grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 10px; padding: 16px 14px 14px; }
  .tf-skill-d, .tf-chat-id ~ span.tf-ghost { display: none; }
  .tf-skill-t b { font-size: 1.08rem; }
  .tf-svcs { grid-template-columns: minmax(0, 1fr); }
  .tf-box, .tf-detail { padding: 18px; }
  .tf-chat { min-height: 540px; }
  .tf-panel.live .tf-chat { min-height: 620px; }
  .cm { max-width: 96%; }
  .tf-cap { flex-direction: column; gap: 6px; }
}

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
html[data-motion="off"] [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-tools .btn { display: none; }
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 940px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.rev .split-img { order: 0; }
  .hero-flow { max-width: 620px; width: 100%; margin-inline: auto; }
  .nav-burger { display: grid; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 14px 20px 22px; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--border); display: none; }
  .nav-links a { padding: .85em 1em; font-size: 1rem; }
  .nav.open .nav-links { display: flex; }
  .nav-tools { margin-left: auto; }
  .compare { grid-template-columns: 1fr; gap: 14px; }
  .cmp-arrow { transform: rotate(90deg); padding: 4px 0; }
}
@media (max-width: 640px) {
  :root { --section-pad: 72px; }
  .s-hero { padding-top: 36px; }
  .steps, .cards, .grid2 { grid-template-columns: 1fr; }
  .nav-tools .btn { display: none; }
  .hero-flow { grid-template-columns: 1fr; gap: 0; }
  .flow-in { grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-mid { height: 120px; }
  .flow-lines { transform: rotate(90deg) scale(.4, 1); }
  .core { width: 70px; height: 70px; } .core .mark { width: 32px; height: 32px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .countries li::after { display: none; }
  .form { padding: 22px; }
  .cmp { padding: 28px 24px; }
  .gallery { columns: 2 140px; column-gap: 12px; }
  .term-body { font-size: .72rem; padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
  .tl-dots { font-size: 0; }
  .tl-dots::after { content: " → "; font-size: .72rem; color: #4b7664; }
  .brand-name { display: none; }
}
