/* iFynx product landing pages · © 2026 iFynx Integrated Solutions P.S.C.
   One stylesheet for /fynxpass/, /fynxtv/, /fynxdocs/ and /fynxfamily/. Each page sets its own
   colours on :root (--a, --a2, --deep, --glow, --soft). No scripts, no trackers. */

@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Thmanyah Sans"; src: url("../fonts/thmanyahsans-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #0B1220;
  --ink-2: #3B4556;
  --ink-3: #667085;
  --line: #E6E8EE;
  --paper: #FFFFFF;
  --mist: #F5F7FB;
  --r: 22px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.7 "Thmanyah Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(11, 18, 32, .06); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 12px -4px var(--glow); }
.menu { display: flex; gap: 2px; margin-inline-start: auto; align-items: center; }
.menu a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; }
.menu a:hover { color: var(--ink); background: var(--mist); }
.menu .lang { border: 1px solid var(--line); }
.menu .go { background: var(--ink); color: #fff; margin-inline-start: 6px; }
.menu .go:hover { background: var(--deep); color: #fff; }
@media (max-width: 860px) { .menu .opt { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 80% -10%, var(--a) 0%, transparent 60%), radial-gradient(900px 600px at 0% 20%, var(--a2) 0%, transparent 55%), var(--deep); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); z-index: -1; }
.hero .wrap { text-align: center; padding-top: 88px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: 14.5px; font-weight: 500; backdrop-filter: blur(8px); }
[dir="rtl"] .pill { padding: 7px 8px 7px 14px; }
.pill b { background: #fff; color: var(--deep); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.hero-icon { width: 96px; height: 96px; border-radius: 24px; margin: 0 auto 26px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.18); animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero h1 { font-size: clamp(40px, 6.2vw, 78px); margin: 22px auto 0; max-width: 15ch; animation: rise .9s .08s cubic-bezier(.2,.7,.2,1) both; }
[dir="rtl"] .hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fff, var(--soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.86); max-width: 680px; margin: 22px auto 0; animation: rise .9s .16s cubic-bezier(.2,.7,.2,1) both; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; animation: rise .9s .24s cubic-bezier(.2,.7,.2,1) both; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.2); min-height: 58px; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; text-align: start; line-height: 1.2; }
.store small { font-size: 12px; opacity: .8; }
.store strong { font-size: 18px; font-weight: 700; }
a.store:hover { background: #111; transform: translateY(-1px); }
.store.soon { background: rgba(0,0,0,.35); cursor: default; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 700; text-decoration: none; min-height: 58px; }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--soft); }
.btn-ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.92); }
.chips li.next { border-style: dashed; color: rgba(255,255,255,.75); }
.stage { position: relative; margin: 56px auto 0; max-width: 1180px; animation: rise 1.1s .3s cubic-bezier(.2,.7,.2,1) both; }
.stage::before { content: ""; position: absolute; inset: 10% 15% -10%; background: var(--glow); filter: blur(90px); opacity: .55; z-index: -1; animation: breathe 7s ease-in-out infinite; }
.stage img { width: 100%; border-radius: 26px 26px 0 0; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 50% { opacity: .3; transform: scale(.94); } }

/* Facts */
.facts { border-bottom: 1px solid var(--line); background: var(--paper); }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.facts div { padding: 30px 20px; text-align: center; border-inline-end: 1px solid var(--line); }
.facts div:last-child { border-inline-end: 0; }
.facts dt { font-size: 32px; font-weight: 700; color: var(--deep); line-height: 1.2; }
.facts dd { margin: 6px 0 0; color: var(--ink-3); font-size: 15px; }

/* Sections */
.sec { padding: 112px 0; }
.sec.tint { background: var(--mist); }
.sec.dark { background: #070A12; color: #fff; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--a); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
.sec.dark .eyebrow { color: var(--soft); }
.h2 { font-size: clamp(32px, 4.2vw, 52px); max-width: 20ch; }
.sub { font-size: 20px; color: var(--ink-2); max-width: 680px; margin-top: 16px; }
.sec.dark .sub { color: rgba(255,255,255,.72); }
.head { margin-bottom: 56px; }
.head.center { text-align: center; }
.head.center .h2, .head.center .sub { margin-inline: auto; }

/* What's new */
.news { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.new { position: relative; padding: 28px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.new::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; background: var(--glow); filter: blur(70px); opacity: .25; }
.new .tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--a); color: #fff; margin-bottom: 14px; }
.new .tag.soon { background: transparent; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.85); }
.new h3 { font-size: 21px; margin-bottom: 8px; }
.new p { color: rgba(255,255,255,.72); font-size: 16.5px; }

/* Features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { grid-column: span 2; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(11,18,32,.28); }
.card.wide { grid-column: span 3; }
.card.hl { background: linear-gradient(140deg, var(--deep), var(--a)); color: #fff; border: 0; }
.card.hl p { color: rgba(255,255,255,.82); }
.ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--deep); margin-bottom: 20px; }
.card.hl .ico { background: rgba(255,255,255,.16); color: #fff; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 980px) { .card, .card.wide { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card, .card.wide { grid-column: auto; } }

/* Screens */
.shelf { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 24px 28px; margin: 0 auto; max-width: 1400px; scrollbar-width: thin; }
.shelf figure { flex: none; width: 272px; margin: 0; scroll-snap-align: center; }
.shelf img { border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(11,18,32,.45); background: var(--soft); }
.shelf figcaption { font-size: 15px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.hint { text-align: center; color: var(--ink-3); font-size: 14px; }
.big-shot { margin-top: 56px; }
.big-shot img { border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(11,18,32,.5); }

/* Signature blocks */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.step { padding: 28px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.step.key { background: linear-gradient(160deg, var(--a), var(--deep)); border: 0; }
.step b { display: block; font-size: 20px; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.75); font-size: 16px; }
.step code { display: block; margin-top: 14px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--soft); word-break: break-all; direction: ltr; text-align: left; opacity: .85; }
.arrow { display: grid; place-items: center; color: rgba(255,255,255,.5); font-size: 26px; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } .arrow { transform: rotate(90deg); } [dir="rtl"] .arrow { transform: rotate(90deg); } }

.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screen { padding: 24px 20px; border-radius: 20px; border: 1px solid var(--line); background: var(--paper); text-align: center; }
.screen .ico { margin: 0 auto 14px; }
.screen b { display: block; font-size: 18px; }
.screen span { font-size: 14px; color: var(--ink-3); }
.screen.next { border-style: dashed; background: transparent; }
.screen.next .ico { background: var(--mist); color: var(--ink-3); }
@media (max-width: 760px) { .screens { grid-template-columns: repeat(2, 1fr); } }

.note { margin-top: 28px; padding: 20px 24px; border-radius: 16px; background: var(--soft); color: var(--deep); font-size: 16.5px; border-inline-start: 4px solid var(--a); }

.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.door { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-weight: 500; }
.door i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--a); font-style: normal; font-size: 18px; flex: none; }

.formats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.formats span { padding: 14px 22px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-weight: 700; }
.formats span.in { background: var(--a); border: 0; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps3 div { padding: 30px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.steps3 div::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--deep); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps3 b { font-size: 20px; display: block; margin-bottom: 6px; }
.steps3 p { color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 0; font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 28px; line-height: 1; color: var(--a); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); font-size: 17px; }

/* Closing */
.closing { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 120px 0; background: radial-gradient(800px 400px at 50% 120%, var(--a) 0%, transparent 70%), var(--deep); }
.closing img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 24px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); }
.closing .h2 { margin: 0 auto; }
.closing .sub { color: rgba(255,255,255,.8); margin: 16px auto 0; }

/* More from iFynx */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sib { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 20px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); transition: transform .2s, box-shadow .2s; }
.sib:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -24px rgba(11,18,32,.3); }
.sib img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.sib b { display: block; font-size: 18px; }
.sib span { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; display: block; }
.made { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 30px; border-radius: var(--r); background: #070A12; color: #fff; }
.made p { color: rgba(255,255,255,.75); max-width: 640px; }
.made b { color: #fff; font-size: 20px; display: block; margin-bottom: 4px; }
@media (max-width: 860px) { .family { grid-template-columns: 1fr; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 34px 0; font-size: 15px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .sec { padding: 80px 0; }
  .hero .wrap { padding-top: 60px; }
  .facts div { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 22px 16px; }
  .shelf figure { width: 230px; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Small screens: keep the header on one line, and let the device stage bleed wider. */
.brand, .menu a { white-space: nowrap; }
.facts dt { font-size: clamp(24px, 2.6vw, 32px); }
@media (max-width: 640px) {
  .top .wrap { gap: 10px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .menu a { padding: 7px 10px; font-size: 14.5px; }
  .stage { margin-top: 40px; overflow: hidden; border-radius: 20px 20px 0 0; }
  .stage img { width: 170%; max-width: none; margin-inline-start: -35%; border-radius: 0; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .menu .lang { display: none; } }

/* Download section (a product with more than one store) */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl .card { grid-column: auto; display: flex; flex-direction: column; gap: 4px; }
.dl .card h3 { margin-bottom: 6px; }
.dl-note { font-size: 14.5px !important; color: var(--ink-3) !important; margin-top: 8px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
.dl-row .btn, .dl-row .store { min-height: 52px; }
.btn-solid { background: var(--a); color: #fff; }
.btn-solid:hover { background: var(--deep); }
.btn-line { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--a); color: var(--a); }
.btn-soon { border: 1px dashed var(--line); color: var(--ink-3); cursor: default; }
#download { scroll-margin-top: 80px; }
@media (max-width: 900px) { .dl { grid-template-columns: 1fr; } }
