/* FA landing page.
   Direction (Refero lock): Splice = dark canvas, white display type, ONE blue pill CTA, full-bleed art, depth from
   surface shifts not shadows. Frame.io = product shots in 24px dark frames on a soft blue glow.
   Brand: FA's own UI blue (#5cc8e0, app accent) and the illustrations' background, so the art bleeds into the page. */
:root {
  --bg: #15191d;          /* = the welcome illustrations' background */
  --bg-deep: #0f1215;
  --surface: #1c2126;
  --line: rgba(255, 255, 255, .08);
  --text: #f4f6f8;
  --muted: #a3acb6;
  --blue: #5cc8e0;        /* app accent: CTA fill, eyebrows, ticks only */
  --blue-glow: rgba(92, 200, 224, .16);
  --on-blue: #0b0e11;
  --wrap: 1200px;
  --gutter: 16px;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--blue); color: var(--on-blue); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { top: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

/* ---------- type ---------- */
.display {
  font-weight: 700;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem);
  line-height: 1.25;
  text-wrap: balance;
}
.eyebrow { color: var(--blue); font-weight: 600; font-size: .95rem; margin-block-end: 14px; }
.lede, .promise { color: var(--muted); max-width: 38ch; text-wrap: pretty; }
.promise { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); margin-block-start: 20px; }
.lede { margin-block-start: 14px; font-size: 1.1rem; }
.fine { color: var(--muted); font-size: .9rem; margin-block-start: 16px; }

/* ---------- buttons: blue pill is the only filled CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--blue); color: var(--on-blue);
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: #7dd5e8; }
.btn:active { transform: scale(.98); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(21, 25, 29, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.mark { color: var(--text); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; text-decoration: none; line-height: 1; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---------- hero: art fills the left, copy sits in the art's empty right side ---------- */
.hero { position: relative; overflow: hidden; }
.hero-art { width: 100%; aspect-ratio: 1520 / 1014; object-fit: cover; object-position: 0 50%; }
.hero-copy { position: relative; padding-block: 8px 72px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.sec-head { margin-block-end: 40px; }

.frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.frame-tablet { padding: clamp(8px, 1.2vw, 14px); background: #0b0d10; border-radius: calc(var(--radius) + 6px); }
.frame-tablet img { border-radius: 14px; }
/* soft blue glow behind product shots (Frame.io detail) */
.studio, .mix { position: relative; z-index: 0; }
.studio .wrap, .mix .split { position: relative; }
.studio .wrap::before, .mix .split::before {
  content: ""; position: absolute; inset: 20% 10% -6% 10%; z-index: -1;
  background: radial-gradient(closest-side, var(--blue-glow), transparent);
  filter: blur(20px);
}

.split { display: grid; gap: 40px; align-items: center; }
.ticks { margin-block-start: 22px; display: grid; gap: 10px; color: var(--text); }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .72em;
  width: 12px; height: 3px; border-radius: 3px; background: var(--blue);
}

/* tools: illustration on the left, copy over its empty right side */
.tools { position: relative; overflow: hidden; padding-block-start: 0; }
.tools-art { width: 100%; aspect-ratio: 1520 / 1014; object-fit: cover; object-position: 0 50%; }
.tools-copy { position: relative; }

.panels { padding-block-start: 0; }
.panel-row { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 8px; }
.panel-row li { scroll-snap-align: start; }
.cap { color: var(--muted); font-size: .95rem; margin-block-start: 12px; }

.cards { display: grid; gap: 14px; margin-block-start: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 1.2rem; margin-block-end: 8px; }
.card p { color: var(--muted); }

.download { background: var(--bg-deep); }
.dl { display: grid; gap: 14px; margin-block-start: 40px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dl-card h3 { font-size: 1.25rem; }
.dl-card p { color: var(--muted); flex: 1; margin-block-end: 10px; }
.dl-main { background: linear-gradient(160deg, #1e3a44, var(--surface) 70%); border-color: rgba(92, 200, 224, .35); }
/* Windows: the Store first (recommended, filled), the .exe second (outlined); one column when narrow */
.get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; max-width: none; }
.get-opt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.get-btn { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px; border-radius: 14px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.get-btn:hover { transform: translateY(-2px); }
.get-btn:active { transform: translateY(0); }
.get-ico { width: 24px; height: 24px; flex: none; }
.get-txt { display: flex; flex-direction: column; gap: 4px; line-height: 1.1; min-width: 0; }
.get-txt small { font-size: .74rem; font-weight: 500; opacity: .78; }
.get-txt b { font-size: 1.02rem; font-weight: 700; white-space: nowrap; }
.get-store { background: linear-gradient(135deg, #8ddff0, #3a9fd0); color: var(--on-blue); box-shadow: 0 10px 28px -12px rgba(92, 200, 224, .6); }
.get-store:hover { box-shadow: 0 16px 34px -12px rgba(92, 200, 224, .75); }
.get-exe { color: var(--text); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.get-exe:hover { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38); }
.get-perks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.get-perks li { display: inline-flex; align-items: center; gap: 6px; }
.get-perks li::before { content: ""; width: 9px; height: 5px; border: solid var(--blue); border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.get-note { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
@media (max-width: 560px) { .get { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .get-btn { transition: none; } }
.soon { display: inline-flex; min-height: 40px; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; }

.foot { border-block-start: 1px solid var(--line); background: var(--bg-deep); }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 28px; color: var(--muted); font-size: .92rem; }
.foot .mark { font-size: 1.3rem; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: repeat(2, 1fr); }
  .panel-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
}
@media (min-width: 960px) {
  /* art spans the full width, copy overlays the empty right part of the illustration */
  .hero { min-height: min(92vh, 860px); display: grid; align-items: center; }
  /* physical left: the drawing sits on the image's left 65%, so the copy (right) never overlaps it */
  .hero-art, .tools-art { position: absolute; left: 0; top: 50%; width: min(78%, 1300px); aspect-ratio: 1520 / 1014; transform: translateY(-50%); }
  .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
  .hero-copy { padding-block: 120px; z-index: 1; }
  .hero-copy > * { max-width: 560px; }
  .split { grid-template-columns: 5fr 7fr; gap: 64px; }
  .tools { min-height: min(80vh, 760px); display: grid; align-items: center; padding-block: 0; }
  .tools-copy > * { max-width: 520px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .dl { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- motion (all of it is switched off by .still / reduced motion) ---------- */
.words > span { display: inline-block; }
.js:not(.still) .words > span { opacity: 0; transform: translateY(.45em); filter: blur(6px); }
.js.ready:not(.still) .words > span {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay: calc(250ms + var(--i) * 130ms);
}
.js:not(.still) .hero-copy > :not(h1) { opacity: 0; transform: translateY(14px); }
.js.ready:not(.still) .hero-copy > :not(h1) { opacity: 1; transform: none; transition: opacity .9s var(--ease) .85s, transform .9s var(--ease) .85s; }
.js:not(.still) .hero-art { opacity: 0; scale: 1.06; }
.js.ready:not(.still) .hero-art { opacity: 1; scale: 1; transition: opacity 1.6s var(--ease), scale 2.4s var(--ease); }
.hero-art { translate: 0 var(--y, 0px); }

/* statement: outlined words fill with FA blue one by one */
.statement { padding-block: clamp(56px, 8vw, 120px) 0; }
.say {
  font-weight: 700; line-height: 1.05; letter-spacing: -0.01em;
  font-size: clamp(3.6rem, 1rem + 11vw, 10rem);
  display: flex; flex-wrap: wrap; gap: 0 .3em;
}
.say span {
  color: color-mix(in srgb, var(--blue) calc(var(--f, 1) * 100%), transparent);
  -webkit-text-stroke: 1.5px color-mix(in srgb, rgba(255, 255, 255, .35) calc((1 - var(--f, 1)) * 100%), transparent);
  transform: translateY(calc((1 - var(--f, 1)) * 18px));
}

/* product shot: tilted back, straightens as it arrives (Apple-style) */
.tilt {
  transform-origin: 50% 0;
  transform: perspective(1600px) rotateX(calc((1 - var(--p, 1)) * 24deg)) scale(calc(.9 + var(--p, 1) * .1));
  will-change: transform;
}

/* big wordmark behind the download section (Awwwards: Atmos / Huxley) */
.download { position: relative; overflow: hidden; }
.download .wrap { position: relative; }
.giant {
  position: absolute; left: -1vw; top: -0.12em; line-height: 1; font-weight: 700;
  font-size: clamp(11rem, 28vw, 28rem); letter-spacing: -0.02em; direction: ltr; color: transparent; -webkit-text-stroke: 2px rgba(92, 200, 224, .16);
  transform: translateY(calc((1 - var(--p, 1)) * 160px)); pointer-events: none; user-select: none;
}

/* CTA: soft light sweep on hover */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-ghost::after { background: linear-gradient(100deg, transparent 30%, rgba(92, 200, 224, .25) 50%, transparent 70%); }

@media (min-width: 720px) {
  /* panels start stacked in the middle and fan out like cards (Awwwards: Karma) */
  .fan { perspective: 1400px; }
  .fan li { transition: none; }
  .fan li:nth-child(1) { transform: translateX(calc((1 - var(--p, 1)) * -104%)) rotate(calc(var(--p, 1) * 4deg)) translateY(calc(var(--p, 1) * 18px)); }
  .fan li:nth-child(2) { position: relative; z-index: 1; transform: translateY(calc((1 - var(--p, 1)) * 40px)); }
  .fan li:nth-child(3) { transform: translateX(calc((1 - var(--p, 1)) * 104%)) rotate(calc(var(--p, 1) * -4deg)) translateY(calc(var(--p, 1) * 18px)); }
  .fan .reveal { opacity: 1 !important; }
}
@media (min-width: 960px) {
  .hero-art { translate: 0 var(--y, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  .tilt, .giant, .fan li, .say span { transform: none !important; }
  .btn::after { display: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
