/* KERMI — Create Beyond Limits. Dark premium / liquid-glass system */
:root {
  --bg: #070a24;
  --indigo: #0b0f3b;
  --violet: #7a5cff;
  --violet-d: #5b3ff0;
  --cyan: #22d3ee;
  --coral: #ff7a6b;
  --silver: #e6e8f0;
  --ink: #f4f6ff;
  --muted: #aeb5da;
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --r: 22px;
  --font-h: "Sora", "Cairo", system-ui, sans-serif;
  --font-b: "Inter", "Cairo", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --z-nav: 50;
  --z-modal: 100;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--font-b); overflow-x: hidden;
}
html[dir="rtl"] body { font-family: "Cairo", var(--font-b); }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-h); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; font-family: "Cairo", var(--font-h); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-300%); background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { transform: none; }

/* ambient background */
.bg-mesh { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100lvh; min-height: 100%; z-index: -1; -webkit-transform: translateZ(0); transform: translateZ(0); overflow: hidden; background: radial-gradient(1200px 700px at 80% -10%, #1b1a6e 0%, transparent 60%), var(--bg); }
.bg-mesh i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; animation: drift 26s ease-in-out infinite alternate; }
.bg-mesh i:nth-child(1) { width: 560px; height: 560px; background: #4a35d9; left: -140px; top: 8%; }
.bg-mesh i:nth-child(2) { width: 520px; height: 520px; background: #0e8fb0; right: -120px; top: 36%; animation-delay: -9s; opacity: 0.38; }
.bg-mesh i:nth-child(3) { width: 460px; height: 460px; background: #c9506a; left: 32%; bottom: -160px; animation-delay: -15s; opacity: 0.3; }
@keyframes drift { to { transform: translate3d(70px, -50px, 0) scale(1.15); } }

.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.eyebrow { font: 600 13px/1 var(--font-h); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan); display: inline-flex; gap: 10px; align-items: center; }
html[dir="rtl"] .eyebrow { letter-spacing: 0.02em; font-family: "Cairo"; font-size: 15px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--cyan)); border-radius: 2px; }
h2.title { font-size: clamp(30px, 4.4vw, 52px); margin-top: 16px; }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 62ch; margin-top: 16px; }
.grad { background: linear-gradient(95deg, #9d86ff 0%, var(--cyan) 55%, #ff9d8f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* glass */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 20px 60px rgba(2, 4, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12); }

/* nav */
.nav { position: fixed; top: max(14px, env(safe-area-inset-top)); left: 0; right: 0; z-index: var(--z-nav); }
.nav .bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 18px; border-radius: 999px; width: min(1200px, calc(100% - 24px)); margin-inline: auto; background: rgba(10, 13, 52, 0.62); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }
html[dir="rtl"] .nav .bar { padding: 9px 18px 9px 12px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font-h); letter-spacing: 0.08em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0 auto; padding: 0; }
.nav ul a { display: block; padding: 9px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s, background .2s; min-height: 40px; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: #fff; background: var(--glass-2); }
.lang { min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 14px var(--font-b); cursor: pointer; padding: 0 14px; transition: background .2s; }
.lang:hover { background: var(--glass-2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
.nav .cta-sm { display: inline-flex; }
@media (max-width: 860px) {
  .nav ul { display: none; position: absolute; top: 66px; left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: 24px; background: rgba(10, 13, 52, 0.94); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
  .nav.open ul { display: flex; }
  .burger { display: grid; place-items: center; margin-inline-start: auto; }
  .nav .cta-sm { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 16px var(--font-b); cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
html[dir="rtl"] .btn { font-family: "Cairo"; }
.btn.primary { color: #fff; background: linear-gradient(100deg, var(--violet-d), #2a8fe6 70%, #1db8d8); box-shadow: 0 10px 34px rgba(91, 63, 240, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(91, 63, 240, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn.ghost { color: var(--ink); background: var(--glass); border-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.ghost:hover { background: var(--glass-2); transform: translateY(-2px); }
.btn.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* hero */
.hero { padding-top: clamp(120px, 14vw, 180px); padding-bottom: clamp(48px, 7vw, 90px); }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(54px, 9vw, 120px); font-weight: 800; letter-spacing: 0.02em; }
html[dir="rtl"] .hero h1 { font-size: clamp(54px, 9vw, 110px); }
.hero .slogan { font: 600 clamp(22px, 3vw, 36px)/1.2 var(--font-h); margin-top: 14px; }
.hero .sub { color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); max-width: 54ch; margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.rotator { display: inline-block; min-width: 9ch; }
.mark-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; perspective: 900px; }
.mark-stage .halo { position: absolute; inset: 8%; border-radius: 50%; background: conic-gradient(from 90deg, rgba(122, 92, 255, .55), rgba(34, 211, 238, .5), rgba(255, 122, 107, .45), rgba(122, 92, 255, .55)); filter: blur(70px); animation: spin 22s linear infinite; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.mark-stage .mark { width: 78%; filter: drop-shadow(0 30px 60px rgba(60, 40, 210, .55)); transition: transform .2s ease-out; animation: float 7s ease-in-out infinite; position: relative; }
@keyframes float { 50% { translate: 0 -14px; } }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit span { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: spin linear infinite; }
.orbit span b { position: absolute; transform: translate(-50%, -50%); width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px 4px var(--c); }
.orbit .o1 { animation-duration: 14s; } .orbit .o1 b { left: 46vmin; top: 0; --c: var(--cyan); }
.orbit .o2 { animation-duration: 20s; animation-direction: reverse; } .orbit .o2 b { left: 38vmin; top: 0; --c: var(--coral); }
@media (min-width: 1000px) { .orbit .o1 b { left: 270px; } .orbit .o2 b { left: 230px; } }
@media (max-width: 999px) { .orbit .o1 b { left: 40vw; } .orbit .o2 b { left: 34vw; } }
@media (max-width: 900px) { .hero .grid { grid-template-columns: 1fr; } .mark-stage { max-width: 420px; margin: 0 auto; order: -1; } }

/* product cards */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.pcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.28); }
.pcard .art { aspect-ratio: 16 / 8; background: #000; display: grid; place-items: center; overflow: hidden; position: relative; }
.pcard .art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; transition: transform .6s var(--ease); }
.pcard:hover .art img { transform: scale(1.05); }
.pcard .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard h3 { font-size: 30px; }
.tag { display: inline-flex; padding: 5px 12px; border-radius: 999px; font: 600 12px var(--font-b); letter-spacing: .04em; border: 1px solid var(--line); color: var(--silver); background: var(--glass); }
.tag.live { color: #7cf0c4; border-color: rgba(124, 240, 196, .35); }
.tag.soon { color: #ffc9a9; border-color: rgba(255, 201, 169, .3); }
.pcard p { color: var(--muted); }
.pcard ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pcard li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--silver); }
.pcard .row { display: flex; gap: 12px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

/* bento / feature cards */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 44px; }
.fcard { padding: 26px; grid-column: span 2; transition: transform .3s var(--ease), border-color .3s; }
.fcard:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.fcard.w3 { grid-column: span 3; }
.fcard .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, rgba(122,92,255,.4), rgba(34,211,238,.25)); border: 1px solid var(--line); margin-bottom: 16px; }
.fcard .ic svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fcard h4 { font-size: 20px; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) { .fcard, .fcard.w3 { grid-column: span 3; } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .fcard, .fcard.w3 { grid-column: auto; } }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.rcard { padding: 22px; border-style: dashed; }
.rcard h4 { font-size: 22px; letter-spacing: .06em; }
.rcard small { color: var(--cyan); font-weight: 600; display: block; margin: 6px 0 10px; }
.rcard p { color: var(--muted); font-size: 14.5px; }
.rcard em { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: #ffc9a9; }
@media (max-width: 1060px) { .road { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .road { grid-template-columns: 1fr; } }

/* vision split */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.vm .glass { padding: 34px; }
.vm h3 { font-size: 26px; margin-bottom: 12px; }
.vm p { color: var(--muted); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.values span { padding: 10px 20px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 500; transition: background .2s, transform .2s; }
.values span:hover { background: var(--glass-2); transform: translateY(-2px); }
@media (max-width: 760px) { .vm { grid-template-columns: 1fr; } }

/* CTA band + footer */
.band { padding: clamp(36px, 6vw, 70px); text-align: center; background: linear-gradient(120deg, rgba(91,63,240,.35), rgba(34,211,238,.18) 60%, rgba(255,122,107,.22)); }
.band h2 { font-size: clamp(30px, 4.6vw, 54px); }
.band p { color: var(--silver); margin: 14px auto 28px; max-width: 52ch; }
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
footer h5 { font: 600 14px var(--font-h); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
html[dir="rtl"] footer h5 { letter-spacing: 0; font-family: Cairo; font-size: 16px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer li a { color: var(--silver); }
footer li a:hover { color: #fff; text-decoration: underline; }
footer .fine { color: var(--muted); font-size: 14px; margin-top: 36px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* product pages */
.phero { padding-top: clamp(120px, 13vw, 170px); padding-bottom: 20px; text-align: center; }
.phero .plogo { width: min(760px, 92%); margin: 0 auto; mix-blend-mode: screen; }
.phero h1 { font-size: clamp(34px, 5.2vw, 64px); margin-top: 8px; }
.phero .sub { color: var(--muted); max-width: 60ch; margin: 18px auto 0; font-size: 20px; }
.phero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.demo-sec { padding: 40px 0 28px; }
.demo-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: center; }
.demo-head.flip { grid-template-columns: 1.2fr .8fr; }
.demo-head.flip .txt { order: 2; }
.demo-head h3 { font-size: clamp(26px, 3.2vw, 40px); margin: 12px 0; }
.demo-head p { color: var(--muted); }
.demo-head .hint { display: inline-flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; color: var(--cyan); }
.demo-head .hint::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 960px) { .demo-head, .demo-head.flip { grid-template-columns: 1fr; } .demo-head.flip .txt { order: 0; } }

/* ===== App-window replica (shared by demos) ===== */
.appwin { border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, rgba(40, 46, 96, .72), rgba(18, 20, 52, .88)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 40px 90px rgba(2, 3, 28, .65), inset 0 1px 0 rgba(255,255,255,.15); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); -webkit-backdrop-filter: blur(26px) saturate(1.5); color: #eef0ff; font: 400 14px/1.4 "Segoe UI", Inter, system-ui, sans-serif; direction: ltr; text-align: left; }
.appwin .tb { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); }
.appwin .tb img { width: 20px; height: 20px; }
.appwin .tb b { font-weight: 600; }
.appwin .tb .chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #b9bfe6; }
.appwin .tb .dots { margin-inline-start: auto; display: flex; gap: 14px; color: #aab0d8; }
.appwin .body { display: grid; grid-template-columns: 1fr 270px; min-height: 420px; }
.appwin .stage { position: relative; display: grid; place-items: center; overflow: hidden; background-color: #1b1f4a; background-image: linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.05) 75%), linear-gradient(45deg, rgba(255,255,255,.05) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.05) 75%); background-size: 24px 24px; background-position: 0 0, 12px 12px; }
.appwin .side { padding: 14px; display: flex; flex-direction: column; gap: 14px; background: rgba(8, 10, 38, .35); border-inline-start: 1px solid rgba(255,255,255,.07); max-height: 520px; overflow: auto; }
.appwin .foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); align-items: center; }
.ab { min-height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); color: #fff; font: 600 13px "Segoe UI", Inter; cursor: pointer; transition: background .15s, transform .15s; }
.ab:hover { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.1)); }
.ab.on { background: linear-gradient(180deg, #7b63ff, #4a3fd0); border-color: rgba(255,255,255,.4); }
.ab.pri { background: linear-gradient(100deg, #6a4bff, #2f8cf0); border-color: rgba(255,255,255,.35); box-shadow: 0 6px 20px rgba(80, 70, 240, .45); }
.ab.sq { width: 36px; padding: 0; display: grid; place-items: center; }
.ab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gt { font: 700 11px "Segoe UI", Inter; letter-spacing: .12em; text-transform: uppercase; color: #9aa3d6; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); }
.seg button { flex: 1 1 auto; min-height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #b9bfe6; font: 500 13px "Segoe UI", Inter; cursor: pointer; }
.seg button:hover { color: #fff; background: rgba(255,255,255,.08); }
.seg button.on { background: rgba(255,255,255,.16); color: #fff; }
.sl { display: grid; gap: 2px; }
.sl label { display: flex; justify-content: space-between; color: #cfd4f4; font-size: 13px; }
.sl label output { font-weight: 700; color: #fff; }
input[type="range"].rg { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; }
input[type="range"].rg::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, #5b7cff var(--p, 50%), rgba(255,255,255,.2) var(--p, 50%)); }
input[type="range"].rg::-moz-range-track { height: 5px; border-radius: 5px; background: rgba(255,255,255,.2); }
input[type="range"].rg::-moz-range-progress { height: 5px; border-radius: 5px; background: #5b7cff; }
input[type="range"].rg::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid #8b6bff; margin-top: -8px; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
input[type="range"].rg::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid #8b6bff; }
.toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(14, 16, 50, .78); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: all .45s var(--ease); font: 500 13.5px "Segoe UI", Inter; color: #fff; white-space: nowrap; z-index: 5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #7a5cff); display: grid; place-items: center; }
.toast .ok svg { width: 13px; stroke: #fff; fill: none; stroke-width: 3; }
.toast a { color: #9fd8ff; cursor: pointer; font-weight: 600; }
@media (max-width: 760px) { .appwin .body { grid-template-columns: 1fr; } .appwin .side { border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.07); max-height: none; } .toast { white-space: normal; width: max-content; max-width: 92%; } }

/* ===== Rota wheel demo ===== */
.desk { position: relative; border-radius: 26px; overflow: hidden; min-height: 520px; background: radial-gradient(900px 500px at 20% 0%, #3a2fc4 0%, transparent 60%), radial-gradient(800px 500px at 100% 100%, #138ab0 0%, transparent 55%), #121552; border: 1px solid var(--line); -webkit-user-select: none; user-select: none; touch-action: none; }
.desk .win { position: absolute; left: 6%; top: 9%; width: 44%; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.desk .win h6 { margin: 0 0 12px; font: 600 12px "Segoe UI"; color: #c7cdf3; letter-spacing: .04em; }
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.file { display: grid; gap: 6px; justify-items: center; padding: 10px 4px; border-radius: 10px; font: 500 11px "Segoe UI"; color: #e2e6ff; text-align: center; border: 1px solid transparent; }
.file .th { width: 54px; height: 54px; border-radius: 10px; background-size: cover; background-position: center; display: grid; place-items: center; font: 800 12px var(--font-h); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.file.drag { cursor: grab; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.file.drag:active { cursor: grabbing; }
.file.done { box-shadow: 0 0 0 2px rgba(34, 211, 238, .55); border-radius: 12px; }
.ghost-file { position: absolute; z-index: 30; width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 14px 30px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.8); pointer-events: none; transform: translate(-50%, -50%) rotate(-4deg); display: none; }
.ghost-file::after { content: attr(data-n); position: absolute; right: -8px; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: #5b7cff; color: #fff; font: 700 12px/22px "Segoe UI"; text-align: center; }
.wheel { position: absolute; width: 440px; height: 440px; z-index: 20; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; transition: transform .28s var(--ease), opacity .2s; }
.wheel.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.wheel .blur { position: absolute; inset: 0; border-radius: 50%; -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6); -webkit-mask: radial-gradient(circle, transparent 0 76px, #000 77px 218px, transparent 219px); mask: radial-gradient(circle, transparent 0 76px, #000 77px 218px, transparent 219px); }
.wheel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wheel .sl-p { fill: rgba(22, 26, 78, .55); stroke: rgba(255,255,255,.32); stroke-width: 1.4; transition: fill .15s, transform .15s; transform-origin: 220px 220px; }
.wheel .sl-p.hot { fill: rgba(106, 84, 255, .72); stroke: #fff; transform: scale(1.045); filter: drop-shadow(0 0 16px rgba(122, 92, 255, .9)); }
.wheel .lb { fill: #fff; font: 700 14px "Segoe UI", Inter, sans-serif; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.wheel .lb.s { font-size: 10.5px; fill: #c8cffa; font-weight: 500; }
.wheel .hub { fill: rgba(10, 12, 44, .6); stroke: rgba(255,255,255,.25); }
.wheel .hubt { fill: #dfe3ff; font: 600 12px "Segoe UI"; text-anchor: middle; dominant-baseline: middle; }
.deskbar { position: absolute; bottom: 14px; left: 14px; right: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; z-index: 6; }
.deskbar .kbd { padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); font: 600 12px "Segoe UI"; color: #fff; }
.deskbar .kbd.on { background: #6a4bff; }
.fake-cur { position: absolute; z-index: 40; width: 22px; height: 22px; pointer-events: none; display: none; }
.fake-cur svg { width: 100%; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.hl { position: absolute; right: 5%; top: 12%; width: 280px; display: grid; gap: 8px; }
.hl .chipx { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font: 500 13px "Segoe UI"; color: #dde1ff; }
.hl .chipx b { color: #fff; }
@media (max-width: 760px) { .desk .win { width: 88%; left: 6%; } .hl { display: none; } .wheel { width: 340px; height: 340px; } }

/* ===== Edit demo extras ===== */
.imgbox { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 12px; }
.imgbox img { max-height: 400px; width: auto; max-width: 100%; border-radius: 6px; transition: filter .15s; }
.imgbox .cut { position: absolute; opacity: 0; transition: opacity .5s; }
.imgbox.cutout img.base { opacity: 0; }
.imgbox.cutout .cut { opacity: 1; }
.scan { position: absolute; top: 0; bottom: 0; width: 3px; background: linear-gradient(#22d3ee, #7a5cff); box-shadow: 0 0 22px 6px rgba(34,211,238,.7); display: none; }
.cmpbtn { position: absolute; left: 14px; bottom: 14px; z-index: 3; }

/* ===== Compare / pattern demos ===== */
.dframe { border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--line); background: #0a0d33; }
.cmp { position: relative; -webkit-user-select: none; user-select: none; touch-action: none; cursor: ew-resize; }
.cmp canvas, .cmp .layer { width: 100%; display: block; }
.cmp .top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x, 50%)); }
.cmp .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 22px rgba(255,255,255,.7); }
.cmp .handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1b1f4a; display: grid; place-items: center; font: 700 18px Inter; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.cmp .lab { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; font: 600 12px "Segoe UI"; background: rgba(8, 10, 38, .7); border: 1px solid rgba(255,255,255,.25); color: #fff; z-index: 2; }
.cmp .lab.l { left: 14px; } .cmp .lab.r { right: 14px; }
.ctrls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 14px 16px; background: rgba(255,255,255,.05); border-top: 1px solid var(--line); }
.ctrls .sl { min-width: 170px; flex: 1; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); cursor: pointer; padding: 0; min-width: 30px; }
.sw.on { outline: 2px solid #fff; outline-offset: 2px; }
.mini-cap { font-size: 13px; color: var(--muted); }
.canvas-wrap { position: relative; line-height: 0; background: #fff; }
.canvas-wrap canvas { width: 100%; height: auto; touch-action: none; }

/* trim */
.tlwrap { padding: 16px; display: grid; gap: 12px; }
.pv { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/8; }
.pv canvas { width: 100%; height: 100%; display: block; }
.pv .time { position: absolute; left: 12px; bottom: 10px; font: 600 12px "Segoe UI"; background: rgba(0,0,0,.6); padding: 3px 9px; border-radius: 8px; color: #fff; }
.tl { position: relative; height: 66px; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); touch-action: none; }
.tl canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tl .shade { position: absolute; top: 0; bottom: 0; background: rgba(5,6,28,.72); }
.tl .sel { position: absolute; top: 0; bottom: 0; border: 3px solid #8b6bff; border-radius: 10px; box-shadow: 0 0 18px rgba(122,92,255,.6); cursor: grab; }
.tl .hd { position: absolute; top: 0; bottom: 0; width: 22px; margin-left: -11px; cursor: ew-resize; z-index: 3; }
.tl .hd::after { content: ""; position: absolute; left: 8px; top: 18px; width: 6px; height: 30px; border-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.tl .ph { position: absolute; top: 0; bottom: 0; width: 2px; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; z-index: 2; }
.tinfo { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font: 500 13px "Segoe UI"; color: #cfd4f4; }
.tinfo b { color: #fff; }

/* modal */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; place-items: center; background: rgba(4, 5, 26, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 16px; }
.modal.open { display: grid; }
.modal .card { width: min(520px, 100%); padding: 32px; }
.modal h3 { font-size: 28px; margin-bottom: 10px; }
.modal p { color: var(--muted); margin-bottom: 20px; }
.modal .row2 { display: flex; gap: 12px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
