/* QTech — qtech.ninja · main stylesheet (mobile first) */
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --bg: #05080F; --bg2: #070C16; --sf: #0B111C; --sf2: #101828; --card: rgba(11, 17, 28, .72);
  --ln: rgba(242, 245, 248, .08); --ln2: rgba(242, 245, 248, .15);
  --tx: #F2F5F8; --mu: #8A94A8; --mu2: #7A8598;
  --acc: #22E0FF; --acc-t: #22E0FF; --acc-ink: #05080F; --acc-soft: rgba(34, 224, 255, .12); --glow: rgba(34, 224, 255, .38);
  --ok: #34D399; --warn: #FBBF24; --bad: #F87171;
  --lq: #F2F5F8; --lc: #22E0FF;
  --f: QSora, QPlex, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fm: QMono, QPlex, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 14px; --r2: 20px;
  --gut: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --hdr: 60px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
[dir=rtl] { --f: QPlex, QSora, system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }
[data-theme=light] {
  --bg: #F4F7FA; --bg2: #E9EFF5; --sf: #FFFFFF; --sf2: #EEF2F6; --card: rgba(255, 255, 255, .82);
  --ln: rgba(11, 18, 32, .10); --ln2: rgba(11, 18, 32, .18);
  --tx: #0B1220; --mu: #475569; --mu2: #64748B;
  --acc: #0E7490; --acc-t: #0E7490; --acc-ink: #FFFFFF; --acc-soft: rgba(14, 116, 144, .10); --glow: rgba(8, 145, 178, .28);
  --ok: #047857; --warn: #B45309; --bad: #B91C1C;
  --lq: #0B1220; --lc: #0E7490;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--tx); font: 400 16px/1.65 var(--f); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
[dir=rtl] body { line-height: 1.8; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: -100px; inset-inline-start: 12px; z-index: 400; background: var(--acc); color: var(--acc-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
.ic { width: 20px; height: 20px; flex: none; }
.cur { display: inline-block; color: var(--acc); animation: blink 1.05s steps(1) infinite; margin-inline-start: 2px; }
.blink { animation: blink 1.1s steps(1) infinite; }
.sep { opacity: .4; margin: 0 .35em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; vertical-align: middle; }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .15; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }

/* ---------------------------------------------------------------- background */
.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.gl .bg { opacity: 1; }
.bg-fallback { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--acc-soft), transparent 70%),
    linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 85%); }
.gl .bg-fallback { opacity: 0; }
.scan { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(242, 245, 248, .025) 0 1px, transparent 1px 4px); }
[data-theme=light] .scan { background: repeating-linear-gradient(0deg, rgba(11, 18, 32, .02) 0 1px, transparent 1px 4px); }
main, .foot, .top { position: relative; z-index: 2; }

/* ---------------------------------------------------------------- boot */
.boot { display: none; position: fixed; inset: 0; z-index: 200; background: #05080F; color: #F2F5F8; overflow: hidden; color-scheme: dark;
  --acc: #22E0FF; --tx: #F2F5F8; --mu: #8A94A8; --ln: rgba(242, 245, 248, .08); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.js:not(.booted) .boot { display: block; }
.js:not(.booted) body { overflow: hidden; }
.boot-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot-hud { position: absolute; inset-inline: 0; display: flex; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) var(--gut) 0; font: 500 10px/1.4 var(--fm); letter-spacing: .12em; color: var(--mu); text-transform: uppercase; direction: ltr; }
.boot-hud b { color: var(--acc); font-weight: 600; }
.boot-hud-top { top: 0; }
.boot-hud-mid { display: none; }
.boot-center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 26px; padding: 0 var(--gut); }
.start { position: relative; touch-action: none; width: clamp(180px, 52vmin, 280px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; isolation: isolate; transition: transform .5s var(--spring); outline-offset: 10px; -webkit-touch-callout: none; }
.start:hover { transform: scale(1.04); }
.start:active, .start.charging { transform: scale(.94); }
.start-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(34, 224, 255, .34), rgba(34, 224, 255, .08) 45%, transparent 70%); filter: blur(6px); animation: breathe 3.2s ease-in-out infinite; z-index: -1; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.start-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.start-rings .r { fill: none; stroke: #22E0FF; transform-origin: 120px 120px; }
.start-rings .r1 { stroke-width: 1; stroke-dasharray: 2 7; opacity: .55; animation: spin 24s linear infinite; }
.start-rings .r2 { stroke-width: 3; stroke-dasharray: 60 22 6 22; opacity: .7; animation: spinr 14s linear infinite; }
.start-rings .r3 { stroke-width: 1; opacity: .3; }
.start-rings .r4 { stroke-width: 10; stroke-dasharray: 1 5; opacity: .35; animation: spin 40s linear infinite; }
.start-rings .r5 { stroke-width: 2.5; stroke-linecap: round; opacity: .9; animation: spin 6s linear infinite; }
.start-rings .r5.b { animation-duration: 9s; }
.start-rings .charge { fill: none; stroke: #F2F5F8; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 120px 120px; opacity: 0; transition: opacity .2s; }
.start.charging .charge { opacity: 1; animation: charge 1.2s linear forwards; }
@keyframes charge { to { stroke-dasharray: 100 0; } }
.start-core { width: 44%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #102033, #070C16 70%); box-shadow: inset 0 0 0 1px rgba(34, 224, 255, .35), 0 0 40px rgba(34, 224, 255, .25), inset 0 0 30px rgba(34, 224, 255, .15); transition: box-shadow .3s; }
.start:hover .start-core, .start:focus-visible .start-core { box-shadow: inset 0 0 0 1px rgba(34, 224, 255, .7), 0 0 60px rgba(34, 224, 255, .5), inset 0 0 40px rgba(34, 224, 255, .3); }
.start-core .qmark { width: 58%; }
.qm-q { fill: #F2F5F8; } .qm-c, .qm-t { fill: #22E0FF; }
.start-txt { position: absolute; bottom: 17%; font: 700 10px/1 var(--fm); letter-spacing: .5em; color: #22E0FF; padding-inline-start: .5em; text-shadow: 0 0 12px rgba(34, 224, 255, .8); }
.boot-hint { font: 500 15px/1.4 var(--f); color: #C9D2DF; letter-spacing: .02em; text-align: center; min-height: 1.4em; }
.boot-log { position: absolute; inset-inline: var(--gut); bottom: calc(86px + env(safe-area-inset-bottom)); font: 400 10.5px/1.55 var(--fm); color: #6F7B90; direction: ltr; text-align: left; max-height: 9.5em; overflow: hidden; opacity: 0; transition: opacity .3s; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.boot-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.boot-log .m { color: #3E4A5E; } .boot-log .ok { color: #34D399; } .boot-log .hl { color: #22E0FF; } .boot-log .wh { color: #F2F5F8; }
.boot-bar { position: absolute; inset-inline: var(--gut); bottom: calc(70px + env(safe-area-inset-bottom)); height: 2px; background: rgba(242, 245, 248, .08); opacity: 0; transition: opacity .3s; overflow: hidden; border-radius: 2px; }
.boot-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: linear-gradient(90deg, #22E0FF, #F2F5F8); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px #22E0FF; }
[dir=rtl] .boot-bar i { transform-origin: right; }
.boot-actions { position: absolute; inset-inline: var(--gut); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(242, 245, 248, .14); background: rgba(11, 17, 28, .6); color: #C9D2DF; font: 500 13px/1 var(--f); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .2s, color .2s, background .2s; }
.pill:hover { border-color: #22E0FF; color: #fff; }
.pill .ic { width: 17px; height: 17px; }
[aria-pressed=false] .ic-on, [aria-pressed=true] .ic-off { display: none; }
.boot.on .boot-hint, .boot.on .boot-actions [data-act=sound] { opacity: 0; transition: opacity .25s; }
.boot.on .boot-log, .boot.on .boot-bar { opacity: 1; }
.boot.on .start { pointer-events: none; animation: implode .7s var(--ease) forwards; }
.boot.on .start-rings .r { animation-duration: .8s !important; }
@keyframes implode { 0% { transform: scale(.94); } 30% { transform: scale(1.12); filter: brightness(2); } 100% { transform: scale(0); opacity: 0; filter: brightness(3); } }
.boot.out { animation: bootout .9s var(--ease) forwards; pointer-events: none; }
@keyframes bootout { 0% { clip-path: circle(150% at 50% 50%); } 100% { clip-path: circle(0% at 50% 50%); } }
.boot.flash::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(34, 224, 255, .4) 40%, transparent 70%); animation: flash .6s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
.boot.shake { animation: shake .4s linear; }
@keyframes shake { 10%, 90% { transform: translate(-1px, 1px); } 20%, 80% { transform: translate(3px, -2px); } 30%, 50%, 70% { transform: translate(-4px, 2px); } 40%, 60% { transform: translate(4px, -1px); } }
.flyer { position: fixed; z-index: 210; pointer-events: none; will-change: transform; }

/* ---------------------------------------------------------------- header */
.top { position: fixed; top: 0; inset-inline: 0; z-index: 50; height: calc(var(--hdr) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gut) 0; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--ln); transition: transform .5s var(--ease), background .3s; }
.js:not(.booted) .top, .js.entering .top { transform: translateY(-110%); }
.top.hide { transform: translateY(-110%); }
.brand { display: flex; align-items: center; height: 44px; }
.brand .logo { width: 92px; height: auto; }
.lg-q { fill: var(--lq); } .lg-c { fill: var(--lc); }
.nav { display: none; gap: 4px; margin-inline-start: 18px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--mu); transition: color .2s, background .2s; }
.nav a:hover, .nav a.on { color: var(--tx); background: var(--acc-soft); }
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.langs { display: flex; padding: 3px; border: 1px solid var(--ln2); border-radius: 12px; margin-inline-end: 4px; background: color-mix(in srgb, var(--sf) 60%, transparent); }
.langs a { min-width: 34px; height: 32px; display: grid; place-items: center; padding: 0 6px; border-radius: 9px; font: 600 12.5px/1 var(--f); color: var(--mu); transition: background .2s, color .2s; }
.langs a[lang=ar], .langs a[lang=ckb] { font-family: QPlex, var(--f); font-size: 14px; }
.langs a[aria-current] { background: var(--acc); color: var(--acc-ink); }
.langs a:not([aria-current]):hover { color: var(--tx); }
.ibtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--mu); transition: color .2s, background .2s, transform .2s; flex: none; }
.ibtn:hover { color: var(--tx); background: var(--acc-soft); }
.ibtn:active { transform: scale(.92); }
.ibtn .ic { width: 20px; height: 20px; }
.i-light { display: none; }
[data-theme=light] .i-light { display: block; } [data-theme=light] .i-dark { display: none; }

/* ---------------------------------------------------------------- hero / map */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--hdr) + env(safe-area-inset-top) + 18px) var(--gut) 40px; display: flex; flex-direction: column; align-items: center; }
.greet { font: 500 11px/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); margin-bottom: 10px; text-align: center; min-height: 1.4em; }
[dir=rtl] .greet { letter-spacing: .02em; font-family: var(--f); font-size: 12.5px; }
.qmap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.wires path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.w-line path { stroke: var(--acc); stroke-width: 1.4; opacity: .55; }
.w-line path.tap { stroke-width: 1.2; opacity: .45; }
.w-glow path { stroke: var(--acc); stroke-width: 7; opacity: .07; }
[data-theme=light] .w-line path { opacity: .6; } [data-theme=light] .w-glow path { opacity: .06; }
.w-pk circle { fill: #fff; filter: drop-shadow(0 0 4px var(--acc)) drop-shadow(0 0 8px var(--acc)); }
[data-theme=light] .w-pk circle { fill: var(--acc); }
.w-pk .trail { fill: none; stroke: var(--acc); stroke-width: 2.4; stroke-linecap: round; opacity: .9; filter: none; }

.core { position: relative; z-index: 1; display: flex; justify-content: center; }
.core-h1 { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: inherit; font-weight: inherit; }
.core-reactor { position: relative; width: clamp(130px, 42vmin, 230px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .6s var(--spring); }
.core-reactor:active { transform: scale(.96); }
.core-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 68%); filter: blur(10px); z-index: -1; animation: breathe 4s ease-in-out infinite; }
.core-reactor::before { content: ''; position: absolute; inset: 21%; border-radius: 50%; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--acc) 14%, var(--sf)), var(--bg) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 50px var(--glow), inset 0 0 30px var(--acc-soft); z-index: -1; }
.core-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cr { fill: none; stroke: var(--acc); transform-origin: 200px 200px; }
.cr1 { stroke-width: 1; stroke-dasharray: 2 8; opacity: .5; animation: spin 50s linear infinite; }
.cr2 { stroke-width: 3; stroke-dasharray: 90 30 8 30; opacity: .55; animation: spinr 26s linear infinite; }
.cr3 { stroke-width: 12; stroke-dasharray: 1 6; opacity: .22; animation: spin 70s linear infinite; }
.cr5 { stroke-width: 1; opacity: .25; }
.cr4 { stroke-width: 2.5; stroke-linecap: round; opacity: .9; animation: spin 10s linear infinite; }
.orbit { transform-origin: 200px 200px; animation: spin 7s linear infinite; fill: var(--acc); filter: drop-shadow(0 0 6px var(--acc)); }
.orbit.o2 { animation: spinr 11s linear infinite; opacity: .8; }
.orbit.o3 { animation: spin 17s linear infinite; opacity: .7; }
.core-mark { width: 30%; position: relative; filter: drop-shadow(0 0 18px var(--glow)); }
.core-img { width: 46%; height: auto; border-radius: 12px; }
.core.landing .core-mark, .core.landing .core-img { opacity: 0; }
.core-mark, .core-img { transition: opacity .25s; }
.core-word { width: clamp(110px, 32vmin, 190px); height: auto; margin-top: 2px; }
.core-tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; max-width: 520px; font: 600 12.5px/1.5 var(--fm); letter-spacing: .06em; color: var(--mu); text-align: center; padding: 0 6px; }
[dir=rtl] .core-tags { font-family: var(--f); font-size: 14px; letter-spacing: 0; }
.core-tags .tg { transition: color .35s, text-shadow .35s; }
.core-tags .tg.on { color: var(--acc-t); text-shadow: 0 0 14px var(--glow); }
.core-tags .bul { color: var(--acc); opacity: .7; }
.core-tags b { color: var(--tx); font-weight: 600; }
.core.boost .cr { animation-duration: 1.4s !important; }
.core.boost .core-glow { animation-duration: .6s; }

.branches { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; align-items: start; }
.branch { min-width: 0; }
.bhead { position: relative; text-align: center; padding: 14px 10px 13px; border-radius: var(--r); background: var(--card); border: 1px solid var(--ln2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; }
.bhead::before { content: ''; position: absolute; inset-inline: 18%; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--acc), transparent); box-shadow: 0 0 14px var(--acc); }
.bhead-ic { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--acc-t); background: var(--acc-soft); margin-bottom: 6px; }
.bhead-ic .ic { width: 19px; height: 19px; }
.bhead-t { font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
[dir=rtl] .bhead-t { letter-spacing: 0; }
.bhead-s { margin-top: 3px; font-size: 12px; line-height: 1.45; color: var(--mu); }
.nodes { position: relative; display: grid; gap: 10px; margin-top: 26px; padding-inline-start: 16px; }
.node { position: relative; min-width: 0; }

.chip { position: relative; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--ln2); font-size: 13.5px; font-weight: 600; line-height: 1.25; transition: border-color .25s, transform .3s var(--spring), background .25s, box-shadow .25s; overflow: hidden; isolation: isolate; }
.chip .ic { width: 19px; height: 19px; color: var(--acc-t); }
.chip span { min-width: 0; overflow-wrap: anywhere; }
.chip:hover, .chip:focus-visible { border-color: var(--acc); transform: translateY(-2px); box-shadow: 0 8px 30px -10px var(--glow); }
.chip-more { border-style: dashed; color: var(--mu); }
.chip-more:hover { color: var(--tx); }
.node.ping .chip, .node.ping .app { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 26px -4px var(--glow); }
.node.ping .app { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 0 26px -4px color-mix(in srgb, var(--c) 60%, transparent); }

.app { --c: var(--acc); position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; padding: 10px; border-radius: 14px; text-align: start; background: var(--card); border: 1px solid var(--ln2); transition: transform .35s var(--spring), border-color .25s, box-shadow .25s; isolation: isolate; overflow: hidden; transform-style: preserve-3d; }
.app::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a), transparent 0 70%, var(--c) 85%, transparent 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .3s; animation: rot 3s linear infinite; pointer-events: none; }
@keyframes rot { to { --a: 360deg; } }
.app::after { content: ''; position: absolute; inset: 0; background: radial-gradient(160px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; z-index: -1; }
.app:hover, .app:focus-visible { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 14px 40px -16px color-mix(in srgb, var(--c) 70%, transparent); }
.app:hover::before, .app:focus-visible::before, .app:hover::after { opacity: 1; }
.app-logo { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, var(--sf)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent); overflow: hidden; flex: none; }
.app-logo .ic { width: 22px; height: 22px; }
.app-logo img { width: 100%; height: 100%; object-fit: cover; }
.app-txt { min-width: 0; display: flex; flex-direction: column; }
.app-name { font-size: 14.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.app-tag { display: none; font-size: 12px; line-height: 1.4; color: var(--mu); margin-top: 2px; }
.app-st { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; justify-self: start; font: 600 10.5px/1 var(--fm); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); padding: 5px 8px; border-radius: 7px; background: color-mix(in srgb, var(--ok) 11%, transparent); }
[dir=rtl] .app-st { font-family: var(--f); font-size: 11.5px; letter-spacing: 0; }
.app-st .ic { width: 12px; height: 12px; }
.app-st.is-private { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.ldot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; animation: blink 1.4s steps(1) infinite; }

.hero-cta { position: relative; z-index: 1; margin: 56px auto 0; max-width: 760px; text-align: center; }
.kicker { font: 600 11.5px/1.4 var(--fm); letter-spacing: .2em; text-transform: uppercase; color: var(--acc-t); margin-bottom: 12px; }
[dir=rtl] .kicker { font-family: var(--f); font-size: 14px; letter-spacing: 0; text-transform: none; }
.sec-cta { display: flex; justify-content: center; margin-top: 30px; }
.wa-sticky { position: fixed; z-index: 65; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: var(--gut); visibility: hidden; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); box-shadow: 0 14px 36px -10px var(--glow); transform: translateY(140%) scale(.8); opacity: 0; transition: transform .45s var(--spring), opacity .3s, visibility 0s linear .45s; pointer-events: none; }
.wa-sticky .ic { width: 27px; height: 27px; }
.wa-sticky.on { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.wa-sticky::after { content: ''; position: absolute; inset: -4px; border-radius: 22px; border: 2px solid var(--acc); opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.25); } }
.has-ai .wa-sticky { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .wa-sticky { display: none; } }
.hero-title { font-size: clamp(26px, 7.4vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
[dir=rtl] .hero-title { letter-spacing: 0; line-height: 1.3; }
.hero-sub { margin-top: 14px; color: var(--mu); font-size: clamp(15px, 4vw, 18px); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15.5px; transition: transform .35s var(--spring), box-shadow .3s, background .3s, border-color .3s; isolation: isolate; overflow: hidden; will-change: transform; }
.btn .ic { width: 21px; height: 21px; }
.btn-main { background: var(--acc); color: var(--acc-ink); box-shadow: 0 10px 34px -10px var(--glow), inset 0 -2px 0 rgba(0, 0, 0, .15); }
.btn-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite; z-index: -1; }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-main:hover { box-shadow: 0 16px 44px -10px var(--glow); }
.btn-ghost { border: 1px solid var(--ln2); background: var(--card); }
.btn-ghost:hover { border-color: var(--acc); }
.scroll-cue { display: none; }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: 76px var(--gut); max-width: 1240px; margin: 0 auto; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.sec-k { font: 600 11px/1 var(--fm); letter-spacing: .3em; color: var(--acc-t); margin-bottom: 12px; direction: ltr; }
.sec-t { font-size: clamp(26px, 7vw, 44px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
[dir=rtl] .sec-t { letter-spacing: 0; line-height: 1.35; }
.sec-s { margin-top: 12px; color: var(--mu); text-wrap: pretty; }

.svc-grid { display: grid; gap: 12px; counter-reset: svc; }
.svc { position: relative; padding: 22px 20px 22px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--ln); overflow: hidden; transition: border-color .3s, transform .4s var(--spring); transform-style: preserve-3d; isolation: isolate; }
.svc:hover { border-color: var(--ln2); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(240px circle at var(--mx, 0%) var(--my, 0%), var(--acc-soft), transparent 70%); opacity: 0; transition: opacity .3s; }
.svc:hover::after { opacity: 1; }
.svc-n { position: absolute; top: 18px; inset-inline-end: 18px; font: 600 11px/1 var(--fm); color: var(--mu2); letter-spacing: .12em; }
.svc-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: var(--acc-t); background: var(--acc-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 25%, transparent); margin-bottom: 16px; }
.svc-ic .ic { width: 24px; height: 24px; }
.svc-t { font-size: 18px; line-height: 1.35; font-weight: 700; }
.svc-d { margin-top: 8px; color: var(--mu); font-size: 15px; line-height: 1.6; }
[dir=rtl] .svc-d { line-height: 1.8; }
.svc-corner { position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(var(--acc), var(--acc)) top left / 12px 1px no-repeat, linear-gradient(var(--acc), var(--acc)) top left / 1px 12px no-repeat,
              linear-gradient(var(--acc), var(--acc)) bottom right / 12px 1px no-repeat, linear-gradient(var(--acc), var(--acc)) bottom right / 1px 12px no-repeat; }
.svc:hover .svc-corner, .svc.flash .svc-corner { opacity: .9; }
.svc.flash { border-color: var(--acc); }

.why-box { position: relative; padding: 34px 22px; border-radius: 26px; border: 1px solid var(--ln2); background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 10%, var(--sf)), var(--sf) 60%); overflow: hidden; isolation: isolate; }
.why-box::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--ln) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--ln) 1px, transparent 1px) 0 0 / 28px 28px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.why-t { font-size: clamp(28px, 8vw, 54px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; max-width: 16ch; text-wrap: balance; }
[dir=rtl] .why-t { letter-spacing: 0; line-height: 1.35; }
.why-list { display: grid; gap: 18px; margin-top: 30px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-b { flex: none; font: 700 12px/1 var(--fm); color: var(--acc-ink); background: var(--acc); padding: 7px 8px; border-radius: 8px; margin-top: 3px; }
.why-list p { color: var(--mu); font-size: 16px; }

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border-radius: 16px; border: 1px solid var(--ln); background: var(--card); overflow: hidden; transition: border-color .3s; }
.qa[open] { border-color: var(--ln2); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 18px; font-weight: 600; font-size: 16px; line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa-q { flex: 1; font-size: inherit; font-weight: inherit; line-height: inherit; }
.qa-x { flex: none; width: 26px; height: 26px; border-radius: 8px; position: relative; background: var(--acc-soft); }
.qa-x::before, .qa-x::after { content: ''; position: absolute; inset: 50% 7px auto; height: 1.6px; margin-top: -.8px; background: var(--acc-t); transition: transform .35s var(--ease); }
.qa-x::after { transform: rotate(90deg); }
.qa[open] .qa-x::after { transform: rotate(0); }
.qa::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.qa[open]::details-content { height: auto; }
.qa-a { padding: 0 18px 18px; color: var(--mu); }

.contact-box { position: relative; text-align: center; padding: 40px 20px; border-radius: 28px; border: 1px solid var(--ln2); background: radial-gradient(90% 70% at 50% 0%, color-mix(in srgb, var(--acc) 14%, transparent), transparent 70%), var(--card); overflow: hidden; }
.contact-t { font-size: clamp(30px, 9vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
[dir=rtl] .contact-t { letter-spacing: 0; line-height: 1.3; }
.contact-s { margin: 14px auto 0; max-width: 520px; color: var(--mu); }
.mailcard { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px auto 0; max-width: 420px; padding: 10px 10px 10px 18px; border-radius: 16px; border: 1px solid var(--ln2); background: var(--sf); }
[dir=rtl] .mailcard { padding: 10px 18px 10px 10px; }
.mail-k { font: 600 10.5px/1 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); }
[dir=rtl] .mail-k { font-family: var(--f); font-size: 12px; letter-spacing: 0; }
.mail-v { flex: 1; font: 600 16px/1.3 var(--fm); color: var(--tx); overflow-wrap: anywhere; text-align: center; }
.mail-v:hover { color: var(--acc-t); }
.copy { border: 1px solid var(--ln2); }
.copy.done { color: var(--ok); border-color: var(--ok); }
.phone-line { margin-top: 12px; color: var(--mu); font-size: 14px; }
.phone-line a { font-family: var(--fm); color: var(--tx); }
.socials { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 26px auto 0; max-width: 760px; }
.soc { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--ln2); background: var(--sf); text-align: start; transition: border-color .25s, transform .35s var(--spring); }
.soc .ic { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--acc-t); }
.soc-l { font-weight: 700; font-size: 15px; line-height: 1.3; }
.soc-h { grid-column: 2; font: 500 12.5px/1.3 var(--fm); color: var(--mu); text-align: start; }
[dir=rtl] .soc-h { text-align: end; justify-self: start; }
.soc-a { grid-row: 1 / 3; grid-column: 3; color: var(--mu); font-size: 18px; transition: transform .3s var(--spring), color .2s; }
[dir=rtl] .soc-a { transform: scaleX(-1); }
.soc:hover { border-color: var(--acc); transform: translateY(-3px); }
.soc:hover .soc-a { color: var(--acc-t); transform: translate(3px, -3px); }
[dir=rtl] .soc:hover .soc-a { transform: scaleX(-1) translate(3px, -3px); }

.foot { padding: 26px var(--gut) calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ln); font-size: 13px; color: var(--mu); }
.foot-row { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.foot-hud { font: 500 11px/1 var(--fm); letter-spacing: .08em; text-transform: uppercase; direction: ltr; }
.secrets { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--ln); font: 600 11.5px/1 var(--fm); color: var(--mu); transition: color .2s, border-color .2s; }
.secrets .ic { width: 14px; height: 14px; }
.secrets:hover { color: var(--acc-t); border-color: var(--acc); }
.secrets.got { color: var(--acc-t); }

/* ---------------------------------------------------------------- reveal + text fx */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .qmap .node, .js .qmap .bhead, .js .core-word, .js .core-tags, .js .core-reactor, .js .greet { opacity: 0; }
.js .qmap.live .node, .js .qmap.live .bhead, .js .qmap.live .core-word, .js .qmap.live .core-tags, .js .qmap.live .core-reactor, .js .hero .greet.live { opacity: 1; }
.qmap.live .core-reactor { animation: popin .9s var(--spring) backwards; }
.qmap.live .core-word { animation: glitchin .8s steps(8) .25s both; }
.qmap.live .core-tags { animation: fadeup .6s var(--ease) .45s both; }
.qmap.live .bhead { animation: popin .7s var(--spring) both; animation-delay: var(--d, .8s); }
.qmap.live .node { animation: nodein .55s var(--spring) both; animation-delay: var(--d, 1s); }
@keyframes popin { from { opacity: 0; transform: scale(.6); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes nodein { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes glitchin { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 30% { opacity: 1; clip-path: inset(0 40% 0 0); transform: translateX(-4px); } 60% { clip-path: inset(0 10% 0 0); transform: translateX(3px); } 100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; } }
.glitch { position: relative; animation: gl .5s steps(2) 1; }
@keyframes gl { 0% { text-shadow: 2px 0 #F87171, -2px 0 #22E0FF; transform: translate(1px, 0); } 50% { text-shadow: -3px 0 #F87171, 3px 0 #22E0FF; transform: translate(-2px, 1px); } 100% { text-shadow: none; transform: none; } }
.scr-c { color: var(--acc-t); }

/* ---------------------------------------------------------------- dialogs */
.dlg { border: 0; padding: 0; background: transparent; color: var(--tx); max-width: min(440px, calc(100vw - 32px)); width: 100%; margin: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; overscroll-behavior: contain; }
dialog:not([open]) { display: none; }
.dlg::backdrop { background: rgba(3, 6, 12, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[data-theme=light] .dlg::backdrop { background: rgba(11, 18, 32, .35); }
.dlg[open] { animation: dlgin .45s var(--spring); }
@keyframes dlgin { from { opacity: 0; transform: translateY(20px) scale(.94); } }
.dlg-in { position: relative; padding: 30px 24px 24px; border-radius: 26px; background: var(--sf); border: 1px solid var(--ln2); text-align: center; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.private .dlg-in { border-color: color-mix(in srgb, var(--warn) 40%, var(--ln2)); }
.private .dlg-in::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--warn) 7%, transparent) 0 10px, transparent 10px 20px); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 45%); mask-image: linear-gradient(to bottom, #000, transparent 45%); pointer-events: none; }
.dlg-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; }
.lockbox { width: 112px; margin: 0 auto 14px; color: var(--warn); }
.lockart { overflow: visible; }
.lockart * { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.la-ring { stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .7; transform-origin: 60px 60px; animation: spin 12s linear infinite; }
.la-ring2 { stroke-width: 1; opacity: .35; }
.la-body { fill: color-mix(in srgb, var(--warn) 12%, transparent); }
.la-shackle { transform: translateY(-9px); transition: transform .5s var(--spring); }
.private.locked .la-shackle { transform: none; }
.la-scan { stroke-width: 2; opacity: 0; filter: drop-shadow(0 0 4px currentColor); }
.private.scanning .la-scan { animation: scan 1s ease-in-out 1; }
@keyframes scan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(64px); } }
.pd-code { font: 600 11px/1.4 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--mu); direction: ltr; }
.pd-code [data-pd-status] { color: var(--acc-t); }
.private.locked .pd-code [data-pd-status] { color: var(--warn); }
.pd-t { margin-top: 12px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.pd-b { margin: 10px 0 22px; color: var(--mu); }
.private .btn { width: 100%; }

.warp { position: fixed; inset: 0; z-index: 300; background: #05080F; display: grid; place-items: end center; }
.warp[hidden] { display: none; }
.warp canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.warp-l { position: relative; margin-bottom: calc(60px + env(safe-area-inset-bottom)); font: 600 14px/1.4 var(--fm); color: #C9D2DF; text-align: center; padding: 0 20px; }
.warp-l b { color: #22E0FF; }

.toasts { position: fixed; z-index: 320; inset-inline: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 11px 16px 11px 12px; border-radius: 16px; background: color-mix(in srgb, var(--sf) 92%, transparent); border: 1px solid var(--ln2); box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14px; animation: toastin .5s var(--spring); pointer-events: auto; }
.toast.out { animation: toastout .35s var(--ease) forwards; }
.toast-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.toast-ic .ic { width: 18px; height: 18px; }
.toast small { display: block; font: 600 10px/1.2 var(--fm); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-t); margin-bottom: 2px; }
[dir=rtl] .toast small { font-family: var(--f); letter-spacing: 0; font-size: 11px; }
.toast b { font-weight: 600; }
@keyframes toastin { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toastout { to { opacity: 0; transform: translateY(10px) scale(.96); } }

.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; inset: 0 auto auto 0; z-index: 330; pointer-events: none; }
.cursor i, .cursor b { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor i { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--acc); box-shadow: 0 0 10px var(--acc); }
.cursor b { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid color-mix(in srgb, var(--acc) 70%, transparent); transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s; }
.cursor.hot b { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--acc-soft); border-color: var(--acc); }
.cursor.down b { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ---------------------------------------------------------------- terminal */
.term { position: fixed; z-index: 260; inset: auto 0 0 0; height: min(78vh, 560px); height: min(78dvh, 560px); display: flex; flex-direction: column; background: rgba(4, 7, 13, .96); color: #D7DEE8; border-top: 1px solid rgba(34, 224, 255, .35); box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .7); font: 400 13px/1.55 var(--fm); direction: ltr; text-align: left; animation: termin .4s var(--ease); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-bottom: env(safe-area-inset-bottom); color-scheme: dark; }
.term[hidden] { display: none; }
@keyframes termin { from { transform: translateY(100%); } }
.term-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid rgba(242, 245, 248, .08); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8A94A8; }
.term-h b { color: #22E0FF; font-weight: 600; }
.term-h .sp { flex: 1; }
.term-h .ibtn { width: 36px; height: 36px; color: #8A94A8; }
.term-o { flex: 1; overflow-y: auto; padding: 12px 16px; overscroll-behavior: contain; white-space: pre-wrap; word-break: break-word; }
.term-o .c { color: #22E0FF; } .term-o .g { color: #34D399; } .term-o .y { color: #FBBF24; } .term-o .r { color: #F87171; } .term-o .m { color: #8A94A8; } .term-o .w { color: #fff; font-weight: 700; }
.term-o .rtl { direction: rtl; unicode-bidi: plaintext; font-family: var(--f); }
.term-o a { color: #22E0FF; text-decoration: underline; text-underline-offset: 3px; }
.term-f { display: flex; align-items: center; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid rgba(242, 245, 248, .06); }
.term-f label { color: #22E0FF; white-space: nowrap; }
.term-f input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 16px; caret-color: #22E0FF; padding: 6px 0; }
.term-chips { display: flex; gap: 6px; padding: 0 16px 8px; overflow-x: auto; scrollbar-width: none; }
.term-chips::-webkit-scrollbar { display: none; }
.term-chips button { flex: none; padding: 7px 11px; border-radius: 9px; border: 1px solid rgba(34, 224, 255, .25); color: #9FE9F7; font: 500 12px/1 var(--fm); }
.term-chips button:hover { background: rgba(34, 224, 255, .1); }
.snake { display: block; margin: 8px 0; max-width: 100%; image-rendering: pixelated; border: 1px solid rgba(34, 224, 255, .3); border-radius: 8px; touch-action: none; }

/* ---------------------------------------------------------------- fx overlays */
.fx-layer { position: fixed; inset: 0; z-index: 240; pointer-events: none; width: 100%; height: 100%; }
.slash { position: fixed; inset: 0; z-index: 245; pointer-events: none; }
.slash::before { content: ''; position: absolute; left: -10%; right: -10%; top: 50%; height: 3px; background: linear-gradient(90deg, transparent, #fff 20%, #22E0FF 50%, #fff 80%, transparent); box-shadow: 0 0 20px #22E0FF, 0 0 50px #22E0FF; transform: rotate(-22deg) scaleX(0); animation: slashline .45s var(--ease) forwards; }
@keyframes slashline { 0% { transform: rotate(-22deg) scaleX(0); opacity: 1; } 60% { transform: rotate(-22deg) scaleX(1); opacity: 1; } 100% { transform: rotate(-22deg) scaleX(1); opacity: 0; } }
body.cut main, body.cut .top, body.cut .foot { animation: cutshake .7s var(--ease); }
@keyframes cutshake { 0% { clip-path: polygon(0 0, 100% 0, 100% 30%, 0 72%); transform: translate(-8px, -6px); } 40% { clip-path: polygon(0 0, 100% 0, 100% 30%, 0 72%); transform: translate(-14px, -10px); } 100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; } }
.ninja { --acc: #FF3B5C; --acc-t: #FF5470; --glow: rgba(255, 59, 92, .4); --acc-soft: rgba(255, 59, 92, .12); --lc: #FF3B5C; }
.godmode { animation: hue 2.4s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.destruct { position: fixed; inset: 0; z-index: 280; display: grid; place-items: center; background: rgba(40, 0, 6, .55); color: #fff; font: 700 clamp(60px, 26vw, 220px)/1 var(--fm); text-shadow: 0 0 30px #F87171; pointer-events: none; animation: redpulse .5s ease-in-out infinite alternate; }
.destruct small { display: block; font-size: 14px; letter-spacing: .3em; text-align: center; margin-bottom: 10px; }
@keyframes redpulse { from { background: rgba(60, 0, 8, .35); } to { background: rgba(120, 0, 16, .6); } }
body.quake main, body.quake .top { animation: shake .3s linear infinite; }
.saver { position: fixed; inset: 0; z-index: 270; background: rgba(2, 4, 8, .94); cursor: none; }
.saver img, .saver svg { position: absolute; width: 160px; height: auto; will-change: transform; }
.saver p { position: absolute; bottom: 30px; inset-inline: 0; text-align: center; font: 500 12px/1 var(--fm); letter-spacing: .2em; color: #5D6779; text-transform: uppercase; }
.lang-suggest { position: fixed; z-index: 60; top: calc(var(--hdr) + env(safe-area-inset-top) + 10px); left: 50%; translate: -50% 0; white-space: nowrap; display: flex; align-items: center; gap: 4px; padding-block: 4px; padding-inline: 14px 4px; border-radius: 14px; background: var(--sf); border: 1px solid var(--ln2); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .5); font-size: 14px; animation: toastin .5s var(--spring); }
.lang-suggest a { font-weight: 600; color: var(--acc-t); }
.lang-suggest .ibtn { width: 34px; height: 34px; }

.ai-fab { position: fixed; z-index: 70; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: var(--gut); display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px 0 14px; border-radius: 26px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 14.5px; box-shadow: 0 14px 40px -10px var(--glow); transition: transform .35s var(--spring); }
[dir=rtl] .ai-fab { padding: 0 14px 0 18px; }
.ai-fab:hover { transform: translateY(-3px); }
.ai-fab[hidden], .ai-panel[hidden] { display: none; }
.ai-fab .ic { width: 22px; height: 22px; }
.ai-panel { position: fixed; z-index: 75; inset: auto 0 0 0; height: min(76dvh, 600px); display: flex; flex-direction: column; background: var(--sf); border: 1px solid var(--ln2); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 70px -20px rgba(0, 0, 0, .6); animation: termin .4s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.ai-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--ln); }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.ai-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-m.bot { align-self: flex-start; background: var(--sf2); border-end-start-radius: 4px; }
.ai-m.me { align-self: flex-end; background: var(--acc); color: var(--acc-ink); border-end-end-radius: 4px; }
.ai-m.wait::after { content: '...'; animation: blink 1s steps(1) infinite; }
.ai-f { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ln); }
.ai-f input { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 1px solid var(--ln2); background: var(--bg); color: var(--tx); padding: 0 14px; font: inherit; font-size: 16px; }
.ai-f input:focus { outline: none; border-color: var(--acc); }
.ai-f .ibtn { width: 46px; height: 46px; background: var(--acc); color: var(--acc-ink); }
[dir=rtl] .ai-f .ibtn .ic { transform: scaleX(-1); }
.ai-note { padding: 0 16px 10px; font-size: 11.5px; color: var(--mu2); text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 559px) {
  .svc { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 18px 16px; }
  .svc-ic { margin: 0; width: 42px; height: 42px; }
  .svc-t { font-size: 16.5px; padding-inline-end: 22px; }
  .svc-d { grid-column: 1 / -1; margin-top: 10px; font-size: 14.5px; }
  .svc-n { top: 14px; inset-inline-end: 14px; }
  .sec { padding-top: 64px; padding-bottom: 64px; }
}
@media (min-width: 380px) {
  .branches { gap: 16px; }
  .chip { font-size: 14px; }
}
@media (min-width: 560px) {
  .app-tag { display: block; }
  .socials { grid-template-columns: repeat(3, 1fr); }
  .soc { grid-template-columns: auto 1fr auto; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .boot-log { font-size: 11.5px; max-width: 560px; }
  .boot-hud { font-size: 11px; }
  .boot-hud-mid { display: inline; }
}
@media (min-width: 760px) {
  :root { --hdr: 68px; }
  .brand .logo { width: 108px; }
  .branches { gap: 40px; margin-top: 78px; }
  .bhead { padding: 18px 18px 16px; }
  .bhead-t { font-size: 19px; }
  .bhead-s { font-size: 13.5px; }
  .nodes { row-gap: 12px; margin-top: 34px; }
  .app { grid-template-columns: auto 1fr; padding: 12px; }
  .app-name { font-size: 15.5px; }
  .hero-cta { margin-top: 80px; }
  .why-box { padding: 56px 48px; }
  .why-list { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .contact-box { padding: 64px 40px; }
  .sec { padding: 110px var(--gut); }
  .term { inset: auto 24px 24px auto; width: min(680px, calc(100vw - 48px)); height: min(70vh, 520px); border: 1px solid rgba(34, 224, 255, .35); border-radius: 18px; }
  [dir=rtl] .term { inset: auto auto 24px 24px; }
  .ai-panel { inset: auto 24px 88px auto; width: 400px; height: min(70vh, 560px); border-radius: 22px; }
  [dir=rtl] .ai-panel { inset: auto auto 88px 24px; }
  .scroll-cue { display: block; position: absolute; bottom: 20px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--ln2); border-radius: 12px; }
  .scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--acc); animation: cue 1.8s ease-in-out infinite; }
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (min-width: 980px) {
  .nav { display: flex; }
  .core-reactor { width: 250px; }
  .core-word { width: 200px; }
  .core-tags { font-size: 13.5px; }
  [dir=rtl] .core-tags { font-size: 15px; }
  .branches { gap: 80px; margin-top: 92px; }
  .nodes { grid-template-columns: 1fr 1fr; column-gap: 30px; padding-inline-start: 0; }
  .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .svc { padding: 28px 26px; }
  .socials { gap: 14px; }
  .qa summary { padding: 22px 24px; font-size: 17px; }
  .qa-a { padding: 0 24px 22px; }
}
@media (min-width: 1280px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .core-reactor { width: clamp(120px, 34vmin, 170px); }
  .greet { margin-bottom: 4px; }
  .start { width: clamp(150px, 46vmin, 220px); }
  .boot-center { gap: 12px; }
  .boot-log { display: none; }
}
@media (max-width: 359px) {
  :root { --gut: 12px; }
  .branches { gap: 10px; }
  .nodes { padding-inline-start: 13px; }
  .chip { padding: 7px 9px; gap: 7px; font-size: 12.5px; }
  .chip .ic { width: 17px; height: 17px; }
  .app { padding: 8px; column-gap: 8px; }
  .app-logo { width: 34px; height: 34px; }
  .app-name { font-size: 13.5px; }
  .langs a { min-width: 30px; }
  .ibtn { width: 36px; height: 36px; }
  .brand .logo { width: 80px; }
}
@media (hover: none) {
  .chip:hover, .soc:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
/* Arabic script must stay joined: no tracking, no caps */
[dir=rtl] :is(.greet, .boot-hint) { letter-spacing: 0; }
[data-clock] { unicode-bidi: isolate; direction: ltr; display: inline-block; }
main:focus { outline: none; }
.js:not(.booted) .skip { display: none; }
.no-js .tools .ibtn, .no-js .secrets { display: none; }
/* while the map is scrolled away, its ambient animations rest (saves battery) */
.hero-off :is(.cr, .orbit, .core-glow, .ldot) { animation-play-state: paused; }
.hero-off .app::before { animation-play-state: paused; }
@media (max-width: 399px) {
  .app { grid-template-rows: auto auto; column-gap: 8px; padding: 9px; }
  .app-logo { grid-row: 1 / 2; width: 32px; height: 32px; border-radius: 9px; }
  .app-logo .ic { width: 19px; height: 19px; }
  .app-name { font-size: clamp(12px, 3.6vw, 14.5px); overflow-wrap: normal; word-break: keep-all; }
  .app-st { grid-column: 1 / -1; }
}
@media (max-height: 520px) {
  .lockbox { width: 64px; margin-bottom: 6px; }
  .dlg-in { padding: 20px 18px 18px; }
  .pd-t { margin-top: 6px; font-size: 20px; }
  .pd-b { margin: 6px 0 14px; }
}
/* iOS 15 and other browsers without color-mix(): solid fallbacks */
@supports not (color: color-mix(in srgb, red, blue)) {
  .top { background: rgba(5, 8, 15, .86); }
  [data-theme=light] .top { background: rgba(244, 247, 250, .9); }
  .langs { background: var(--sf); }
  .toast { background: var(--sf); }
  .core-reactor::before { background: radial-gradient(circle at 50% 38%, var(--sf2), var(--bg) 72%); box-shadow: inset 0 0 0 1px var(--acc), 0 0 50px var(--glow); }
  .app-logo { background: var(--sf2); box-shadow: inset 0 0 0 1px var(--ln2); }
  .app-st { background: rgba(52, 211, 153, .12); }
  .app-st.is-private { background: rgba(251, 191, 36, .14); }
  .why-box { background: var(--sf); }
  .contact-box { background: var(--card); }
  .svc-ic { box-shadow: inset 0 0 0 1px var(--ln2); }
  .private .dlg-in { border-color: rgba(251, 191, 36, .4); }
  .private .dlg-in::before { background: repeating-linear-gradient(-45deg, rgba(251, 191, 36, .07) 0 10px, transparent 10px 20px); }
  .la-body { fill: rgba(251, 191, 36, .12); }
  .app:hover, .app:focus-visible { border-color: var(--c); }
  .dot { animation: none; }
}
[dir=rtl] :is(.foot-hud, .boot-hud-mid, .term-h span, .secrets span:last-child), .pd-code [data-pd-status]:lang(ar), .pd-code [data-pd-status]:lang(ckb) { letter-spacing: 0; text-transform: none; }
[dir=rtl] .pd-code [data-pd-status] { letter-spacing: 0; font-family: var(--f); font-size: 12.5px; }
body:has(.term:not([hidden])) .toasts { bottom: auto; top: calc(var(--hdr) + env(safe-area-inset-top) + 10px); }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
.vt-theme::view-transition-old(root) { animation: none; }
.vt-theme::view-transition-new(root) { animation: none; }

@media print {
  .bg, .bg-fallback, .scan, .boot, .top, .tools, .wires, .core-rings, .toasts, .cursor, .ai-fab, .ai-panel, .scroll-cue, .secrets, .cta-row, .warp, .term { display: none !important; }
  body { background: #fff; color: #000; }
  .js [data-reveal], .js .qmap .node, .js .qmap .bhead, .js .core-word, .js .core-tags, .js .core-reactor { opacity: 1 !important; transform: none !important; }
  .hero { min-height: 0; padding-top: 0; }
  .svc, .qa, .contact-box, .why-box, .bhead, .chip, .app, .soc, .mailcard { background: #fff !important; border-color: #ccc !important; box-shadow: none !important; }
  .lg-q { fill: #000; } .lg-c { fill: #0E7490; }
  .qa::details-content { height: auto; }
}
