/* Fluxa site additions: fonts, hero slider, live panel demo, install mockup, trust, FAQ, sticky download */
:root { --fx-g: #2fe38a; --fx-line: rgba(47,227,138,.28); }
:root { --x-font: "IBM Plex Sans Arabic", "IBM Plex Sans", "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif; }
html[lang="en"] { --x-font: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; }

/* logo light sweep */
.fx-sweep { position: absolute; inset: 0; z-index: 4; border-radius: 22%; overflow: hidden; pointer-events: none; }
.fx-sweep::before { content: ""; position: absolute; top: -30%; bottom: -30%; width: 45%; left: -60%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.26) 45%, rgba(190,255,220,.12) 55%, transparent); transform: skewX(-12deg); animation: fx-sweep 6.5s cubic-bezier(.5,0,.2,1) 1.8s infinite; }
@keyframes fx-sweep { 0% { left: -60%; } 24%, 100% { left: 130%; } }

/* hero: slider in the first screen */
.x-sub .fx-sub2 { display: block; margin-top: 6px; font-size: .95em; color: rgba(236,255,244,.86); }
#compare.fx-compact { padding-top: 8px; }
@media (max-width: 640px) {
  .x-hero { padding-top: 70px !important; padding-bottom: 8px !important; }
  .x-stage .x-logo { width: clamp(112px, 32vw, 150px); height: clamp(112px, 32vw, 150px); }
  .x-reflect { display: none !important; }
  .x-shot { margin-top: 6px !important; }
  .x-shot .x-wordmark { height: 30px; }
  .x-sub { margin-top: 10px !important; }
  .x-sub .fx-sub2 { font-size: 14.5px; line-height: 1.55; }
}
@media (max-width: 360px) {
  .x-hero { padding-top: 62px !important; }
  .x-stage .x-logo { width: 96px; height: 96px; }
  .x-shot .x-wordmark { height: 26px; }
}

/* shared glass browser window */
.fx-win { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, rgba(14,24,19,.86), rgba(5,10,8,.92)); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(47,227,138,.06), 0 0 60px -20px rgba(47,227,138,.35); }
.fx-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.03); direction: ltr; }
.fx-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); flex: none; }
.fx-bar > i:first-child { background: rgba(255,95,87,.75); } .fx-bar > i:nth-child(2) { background: rgba(254,188,46,.75); } .fx-bar > i:nth-child(3) { background: rgba(40,200,64,.75); }
.fx-url { flex: 1; min-width: 0; margin-inline-start: 8px; height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.06); color: rgba(236,255,244,.8); font: 500 12.5px/1 ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-url svg { width: 12px; height: 12px; flex: none; opacity: .7; }
.fx-caret { display: inline-block; width: 1.5px; height: 14px; background: var(--fx-g); margin-left: 1px; animation: fx-blink 1s steps(1) infinite; }
@keyframes fx-blink { 50% { opacity: 0; } }

/* live panel demo */
.fx-demo { max-width: 1040px; margin: 0 auto clamp(22px, 4vw, 40px); }
.fx-studio { position: relative; height: clamp(560px, 62vw, 660px); overflow: hidden; direction: ltr; background: radial-gradient(120% 80% at 20% 0%, rgba(47,227,138,.07), transparent 60%); }
.fx-side { position: absolute; left: 0; top: 0; bottom: 0; width: 170px; padding: 18px 16px; border-right: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 14px; }
.fx-side b { width: 92px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.16); margin-bottom: 10px; }
.fx-side span { height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); }
.fx-side span:nth-child(odd) { width: 70%; }
.fx-main { position: absolute; left: 170px; right: 392px; top: 0; bottom: 0; padding: 28px; display: grid; place-items: center; }
.fx-drop { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; border-radius: 18px; border: 1.5px dashed rgba(255,255,255,.16); display: grid; place-items: center; align-content: center; gap: 12px; color: rgba(255,255,255,.35); transition: opacity .5s, transform .5s; }
.fx-drop svg { width: 46px; height: 46px; }
.fx-l { display: block; width: 150px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.1); } .fx-l.s { width: 96px; }
.fx-clip { position: absolute; inset: 28px; display: flex; gap: 18px; align-items: flex-start; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1.2); pointer-events: none; }
.fx-clip.on { opacity: 1; transform: none; }
.fx-thumb { width: 132px; aspect-ratio: 9 / 16; border-radius: 14px; flex: none; background: linear-gradient(160deg, #1fd27a 0%, #0b6c47 35%, #13253a 70%, #5b2bd1 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 40px -6px rgba(47,227,138,.55); position: relative; overflow: hidden; }
.fx-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 25% at 70% 30%, rgba(255,255,255,.5), transparent 70%), radial-gradient(30% 20% at 30% 70%, rgba(255,210,90,.45), transparent 70%); }
.fx-lines { flex: 1; display: grid; gap: 12px; padding-top: 8px; }
.fx-lines span { height: 12px; border-radius: 6px; background: rgba(255,255,255,.12); } .fx-lines span.s { width: 55%; }
.fx-lines span:first-child { height: 38px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.fx-pnl { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 368px; transform: translateX(0); transition: transform .7s cubic-bezier(.2,.9,.25,1.12), opacity .5s; will-change: transform; }
.fx-pnl.out { transform: translateX(calc(100% + 30px)); opacity: .2; }
.fx-pnl iframe { position: absolute; top: 0; right: 0; width: 368px; height: 100%; border: 0; background: transparent; transform-origin: top right; color-scheme: dark; }
.fx-fab { position: absolute; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--fx-line); background: rgba(5,12,9,.9); box-shadow: 0 0 24px -4px rgba(47,227,138,.6); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: scale(.7); transition: opacity .35s, transform .35s; pointer-events: none; padding: 0; }
.fx-fab img { width: 36px; height: 36px; border-radius: 10px; }
.fx-fab.on { opacity: 1; transform: none; pointer-events: auto; }
.fx-toast { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -14px); max-width: calc(100% - 28px); padding: 10px 16px; border-radius: 14px; background: rgba(3,12,8,.94); border: 1px solid var(--fx-line); color: #eafff3; font: 600 13.5px/1.35 "IBM Plex Sans Arabic", "IBM Plex Sans", sans-serif; box-shadow: 0 10px 30px -10px rgba(0,0,0,.8), 0 0 20px -8px rgba(47,227,138,.6); opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; z-index: 5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-toast.on { opacity: 1; transform: translate(-50%, 0); }
.fx-toast.bad { border-color: rgba(255,110,110,.5); }
.fx-demo__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.fx-note { margin: 0; flex: 1 1 280px; font-size: 14px; line-height: 1.6; color: rgba(236,255,244,.7); display: flex; gap: 8px; align-items: flex-start; }
.fx-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--fx-g); box-shadow: 0 0 10px var(--fx-g); }
.fx-replay { font: inherit; font-size: 14px; font-weight: 600; color: var(--fx-g); background: rgba(13,42,26,.6); border: 1px solid var(--fx-line); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.fx-replay:hover { border-color: rgba(47,227,138,.7); }
@media (max-width: 900px) {
  .fx-side { display: none; }
  .fx-main { left: 0; right: 0; }
  .fx-pnl { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; }
  .fx-studio { height: 600px; }
}
@media (max-width: 380px) { .fx-studio { height: 560px; } }

/* install mockup */
.fx-inst { margin: 0 0 18px; }
.fx-inst .fx-win { border-radius: 18px; }
.fx-iview { position: relative; height: 230px; overflow: hidden; direction: ltr; font-family: "IBM Plex Sans", system-ui, sans-serif; color: #e8eaed; background: #0b0f0d; }
.fx-sc { position: absolute; inset: 0; padding: 16px 18px; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .45s, transform .55s cubic-bezier(.2,.9,.3,1.15); pointer-events: none; }
.fx-sc.on { opacity: 1; transform: none; }
.fx-sc0 { display: grid; place-items: center; align-content: center; gap: 14px; }
.fx-dlbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: linear-gradient(135deg, #6dffb8, #19d46b); color: #04140b; font-weight: 700; font-size: 14px; box-shadow: 0 0 26px -6px rgba(47,227,138,.8); transition: transform .15s; }
.fx-dlbtn svg, .fx-file svg { width: 16px; height: 16px; }
.fx-dlbtn.p { transform: scale(.94); }
.fx-file { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; background: #1b1f1d; border: 1px solid rgba(255,255,255,.08); font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.fx-file.on { opacity: 1; transform: none; }
.fx-file .bar { width: 90px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.fx-file .bar i { display: block; height: 100%; width: 0; background: var(--fx-g); transition: width 1.1s ease; }
.fx-file.on .bar i { width: 100%; }
.fx-sc1 { display: flex; align-items: center; justify-content: center; gap: 26px; }
.fx-ico { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: #cfd6d2; transition: transform .5s, opacity .5s; }
.fx-ico svg { width: 60px; height: 60px; }
.fx-arrow { width: 36px; height: 2px; background: linear-gradient(90deg, transparent, var(--fx-g)); position: relative; }
.fx-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--fx-g); }
.fx-ico.dim { opacity: .45; transform: scale(.92); }
.fx-ico.pop { transform: scale(1.06); }
.fx-ext-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fx-ext-h b { font-size: 18px; font-weight: 600; }
.fx-dev { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #cfd6d2; }
.fx-tg { width: 34px; height: 14px; border-radius: 7px; background: rgba(255,255,255,.25); position: relative; transition: background .3s; }
.fx-tg::after { content: ""; position: absolute; top: -3px; left: -2px; width: 20px; height: 20px; border-radius: 50%; background: #dadce0; box-shadow: 0 1px 3px rgba(0,0,0,.5); transition: left .3s cubic-bezier(.3,1.4,.5,1), background .3s; }
.fx-tg.on { background: rgba(47,227,138,.55); box-shadow: 0 0 12px rgba(47,227,138,.5); }
.fx-tg.on::after { left: 16px; background: var(--fx-g); }
.fx-tools { display: flex; gap: 8px; padding-top: 12px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.fx-tools.on { opacity: 1; transform: none; }
.fx-tools span { padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); font-size: 12.5px; color: #8ab4f8; transition: transform .15s, box-shadow .3s, background .3s; white-space: nowrap; }
.fx-tools span.hl { border-color: var(--fx-g); color: var(--fx-g); box-shadow: 0 0 16px -2px rgba(47,227,138,.6); }
.fx-tools span.p { transform: scale(.94); background: rgba(47,227,138,.12); }
.fx-blank { margin-top: 18px; display: grid; gap: 10px; } .fx-blank i { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); } .fx-blank i:nth-child(2) { width: 70%; } .fx-blank i:nth-child(3) { width: 45%; }
.fx-dlg { position: absolute; left: 50%; top: 50%; width: min(330px, 86%); transform: translate(-50%, -46%); border-radius: 12px; background: #202124; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.7); padding: 12px; font-size: 12.5px; opacity: 0; transition: opacity .35s, transform .4s; }
.fx-dlg.on { opacity: 1; transform: translate(-50%, -50%); }
.fx-dlg p { margin: 0 0 8px; color: #bdc1c6; }
.fx-dlg ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.fx-dlg li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; color: #cfd6d2; }
.fx-dlg li svg { width: 16px; height: 16px; color: #f2c14e; flex: none; }
.fx-dlg li.sel { background: rgba(47,227,138,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(47,227,138,.5); }
.fx-dlg .ok { display: flex; justify-content: flex-end; }
.fx-dlg .ok span { padding: 6px 14px; border-radius: 6px; background: #8ab4f8; color: #202124; font-weight: 600; transition: transform .15s; }
.fx-dlg .ok span.p { transform: scale(.93); }
.fx-card { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px; border-radius: 12px; background: #1b1f1d; border: 1px solid rgba(255,255,255,.08); max-width: 330px; opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .5s cubic-bezier(.2,.9,.3,1.2), box-shadow .5s; }
.fx-card.on { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(47,227,138,.35), 0 0 30px -8px rgba(47,227,138,.6); }
.fx-card img { width: 38px; height: 38px; border-radius: 10px; }
.fx-card div { flex: 1; min-width: 0; } .fx-card b { display: block; font-size: 14px; } .fx-card small { color: #9aa0a6; font-size: 12px; }
.x-steps li.fx-now { color: #fff; }
.x-steps li.fx-now::before { box-shadow: 0 0 0 2px rgba(47,227,138,.6), 0 0 18px rgba(47,227,138,.55) !important; }
#panel-pc .x-steps li { cursor: pointer; transition: color .3s; }

/* trust + FAQ */
.fx-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 1040px; margin: 0 auto; }
.fx-perm { padding: 18px 18px 16px; }
.fx-perm code { display: inline-block; direction: ltr; unicode-bidi: isolate; font: 600 12.5px/1 ui-monospace, Menlo, Consolas, monospace; color: #c9ffe0; background: #0d2a1a; border: 1px solid rgba(25,227,107,.35); padding: 5px 9px; border-radius: 8px; margin-bottom: 10px; }
.fx-perm h3 { margin: 0 0 6px; font-size: 16.5px; }
.fx-perm p { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(236,255,244,.74); }
.fx-perm p small { display: block; margin-top: 6px; direction: ltr; text-align: start; unicode-bidi: plaintext; font-size: 12px; color: rgba(236,255,244,.5); word-break: break-word; }
.fx-facts { max-width: 1040px; margin: 14px auto 0; padding: 18px 20px; display: grid; gap: 10px; }
.fx-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.fx-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx-facts svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--fx-g); }
.fx-faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.fx-faq details { padding: 0; overflow: hidden; }
.fx-faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 16.5px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fx-faq summary::-webkit-details-marker { display: none; }
.fx-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--fx-g); border-bottom: 2px solid var(--fx-g); transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.fx-faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.fx-faq details > div { padding: 0 20px 18px; font-size: 15px; line-height: 1.7; color: rgba(236,255,244,.76); }
.fx-faq code { direction: ltr; unicode-bidi: isolate; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: #c9ffe0; background: #0d2a1a; border: 1px solid rgba(25,227,107,.35); padding: 1px 7px; border-radius: 7px; }

/* sticky download */
.fx-sticky { position: fixed; z-index: 60; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translate(-50%, 140%); transition: transform .5s cubic-bezier(.2,.9,.3,1.15); display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; text-decoration: none; color: #04140b; font-weight: 700; font-size: 15.5px; background: linear-gradient(135deg, #6dffb8, #19d46b); box-shadow: 0 12px 30px -8px rgba(0,0,0,.7), 0 0 30px -6px rgba(47,227,138,.75); white-space: nowrap; }
.fx-sticky svg { width: 18px; height: 18px; }
.fx-sticky small { font-weight: 600; opacity: .7; font-size: 12.5px; }
.fx-sticky.on { transform: translate(-50%, 0); }
.x-foot { padding-bottom: 86px; }

@media (prefers-reduced-motion: reduce) {
  .fx-sweep { display: none; }
  .fx-pnl, .fx-sc, .fx-sticky, .fx-clip { transition: none; }
}
