/* Plenous — marketing site. Tokens first; every colour and size below derives from them. */
:root {
  --ink: #0b0b1f;
  --ink-2: #26244a;
  --muted: #5f5d7e;
  --paper: #f8f7fc;
  --paper-2: #f0eef9;
  --line: #e4e1f1;
  --indigo: #6d3df5;
  --indigo-deep: #4c1fd1;
  --indigo-soft: #efe9ff;
  --coral: #ff4f8b;
  --cyan: #12b8e6;
  --grad: linear-gradient(100deg, #6d3df5 0%, #b23cf0 35%, #ff4f8b 65%, #ff9a3d 100%);
  --mint: #1fae8c;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(18 20 43 / 0.06), 0 12px 40px -12px rgb(18 20 43 / 0.18);
  --shadow-lg: 0 2px 4px rgb(18 20 43 / 0.05), 0 40px 90px -30px rgb(40 40 120 / 0.38);
  --radius: 18px;
  --display: "Bricolage Grotesque", "Geist", system-ui, sans-serif;
  --body: "Geist", "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --arabic: "IBM Plex Sans Arabic", "Geist", system-ui, sans-serif;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1efff; --ink-2: #cfcbef; --muted: #9b97c2; --paper: #07061a; --paper-2: #100e28; --line: #24204a;
    --indigo: #9b7bff; --indigo-deep: #b9a3ff; --indigo-soft: #1e1846; --card: #110f2b; color-scheme: dark;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 40px -12px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 40px 90px -30px rgb(0 0 0 / 0.75);
  }
}
:root[data-theme="dark"] {
  --ink: #f1efff; --ink-2: #cfcbef; --muted: #9b97c2; --paper: #07061a; --paper-2: #100e28; --line: #24204a;
  --indigo: #9b7bff; --indigo-deep: #b9a3ff; --indigo-soft: #1e1846; --card: #110f2b; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 99; }
/* Hidden in place (not pushed off-screen), so right-to-left pages don't gain a sideways scroll. */
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ type */
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -0.03em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.8rem, 7.2vw, 6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 40ch; }
.eyebrow { font: 600 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--indigo); }
.ar { font-family: var(--arabic); direction: rtl; letter-spacing: 0; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font: 600 1rem/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn small { font-weight: 500; opacity: .65; font-size: .82rem; }

/* ------------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1 var(--display); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: 8px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .96rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav .btn { height: 40px; padding: 0 18px; font-size: .92rem; margin-inline-start: auto; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 40px; height: 40px; color: var(--ink); }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav .btn { display: none; }
}

/* ------------------------------------------------------------------ hero (signature: the bilingual mirror) */
.hero { padding: clamp(48px, 9vw, 110px) 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .88rem; color: var(--muted); text-decoration: none; }
.hero-badge b { background: var(--indigo-soft); color: var(--indigo-deep); font: 600 .74rem/1 var(--mono); padding: 6px 9px; border-radius: 999px; letter-spacing: .04em; }
.mirror { display: grid; grid-template-columns: 1fr; margin-top: 28px; }
.mirror h1 span { display: block; }
.mirror .en em { font-style: normal; color: var(--indigo); }
.mirror .ar-line { font-family: var(--arabic); direction: rtl; text-align: end; font-weight: 700; font-size: clamp(2rem, 5.2vw, 4.3rem); line-height: 1.25; letter-spacing: 0; margin-top: 6px;
  background: linear-gradient(90deg, var(--coral), var(--indigo) 55%, color-mix(in srgb, var(--ink) 35%, transparent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; margin-top: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 14px; font: 500 .84rem/1.4 var(--mono); color: var(--muted); }

/* showcase: tabs that swap the app screenshot */
.showcase { margin-top: clamp(40px, 6vw, 72px); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.tab { border: 1px solid var(--line); background: var(--card); color: var(--muted); height: 40px; padding: 0 16px; border-radius: 999px; font: 600 .92rem/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.window { border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; }
.window-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-inline: auto; font: 500 .78rem/1 var(--mono); color: var(--muted); transform: translateX(-20px); }
.window img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.panel[hidden] { display: none; }
.showcase-caption { text-align: center; margin-top: 18px; color: var(--muted); font-size: .98rem; min-height: 1.6em; }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) img { animation: rise .5s cubic-bezier(.2,.7,.2,1); }
  @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------------------ sections */
section { padding: clamp(72px, 10vw, 130px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* feature rows: text + screenshot, alternating */
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 10vw, 120px); }
.feature.flip > :first-child { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; margin-top: 12px; }
.feature p { color: var(--muted); margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--indigo-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235b5bd6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--card); }
.shot img { width: 100%; height: auto; }
.shot-stack { position: relative; }
.shot-stack .shot + .shot { position: absolute; width: 58%; inset-inline-end: -4%; bottom: -12%; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip > :first-child { order: 0; }
  .shot-stack .shot + .shot { position: static; width: 100%; margin-top: 14px; }
}

/* surfaces: four-up overview */
.surfaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.surface { background: var(--card); padding: 28px 24px 30px; }
.surface .num { font: 600 .78rem/1 var(--mono); color: var(--muted); }
.surface h3 { margin-top: 18px; }
.surface p { color: var(--muted); margin-top: 10px; font-size: .97rem; }
.surface .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-top: 18px; }
.surface .icon svg { width: 22px; height: 22px; }
@media (max-width: 980px) { .surfaces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .surfaces { grid-template-columns: 1fr; } }

/* bilingual band */
.band { background: var(--ink); color: var(--paper); border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.band .eyebrow { color: color-mix(in srgb, var(--indigo) 60%, #fff); }
.band h2 { color: inherit; margin-top: 14px; }
.band p { color: color-mix(in srgb, var(--paper) 70%, transparent); margin-top: 16px; }
.band .ar-big { font-family: var(--arabic); direction: rtl; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.5; font-weight: 600; margin-top: 22px; color: var(--paper); }
.band .shot { border-color: transparent; }
:root[data-theme="dark"] .band, .band { --ink-band: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #1b1d3a; } }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-top: 16px; }
.card p { color: var(--muted); margin-top: 10px; font-size: .97rem; }
.card .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--indigo-soft); color: var(--indigo); display: grid; place-items: center; }
.card .icon svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* platform tiles */
.platforms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.platform { border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; background: var(--card); text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.platform:hover { border-color: var(--indigo); transform: translateY(-2px); }
.platform svg { width: 28px; height: 28px; }
.platform b { font: 700 1.05rem/1.2 var(--display); }
.platform span { color: var(--muted); font-size: .86rem; }
.platform.soon { opacity: .72; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, 1fr); } }

/* CTA */
.cta { text-align: center; padding: clamp(56px, 8vw, 96px) 24px; border-radius: 28px; background:
  radial-gradient(600px 300px at 20% 0%, color-mix(in srgb, var(--indigo) 22%, transparent), transparent),
  radial-gradient(500px 260px at 90% 100%, color-mix(in srgb, var(--coral) 16%, transparent), transparent), var(--paper-2); border: 1px solid var(--line); }
.cta h2 { max-width: 16ch; margin-inline: auto; }
.cta .hero-cta { justify-content: center; margin-top: 28px; }

/* page header for inner pages */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
.page-head .lede { margin-top: 18px; max-width: 56ch; }

/* download page */
.dl-primary { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.dl-primary .hero-cta { margin-top: 22px; }
@media (max-width: 860px) { .dl-primary { grid-template-columns: 1fr; } }
.dl-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .97rem; }
.dl-table th, .dl-table td { text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dl-table th { font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dl-table a { color: var(--indigo); font-weight: 600; text-decoration: none; }
.dl-table a:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; }

/* code */
pre { background: #10122a; color: #e7e9ff; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font: 500 .9rem/1.65 var(--mono); margin: 14px 0 0; border: 1px solid #23264a; }
pre .c { color: #7f86b8; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.steps { counter-reset: step; display: grid; gap: 34px; max-width: 820px; }
.step { position: relative; padding-inline-start: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 0; top: -2px; width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 1rem/1 var(--display); }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin-top: 8px; }

/* features page index */
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--muted); }
.toc a:hover { color: var(--ink); border-color: var(--muted); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 32px; margin-top: 40px; }
.spec div h4 { margin: 0; font: 650 1rem/1.3 var(--body); }
.spec div p { color: var(--muted); font-size: .95rem; margin-top: 6px; }
@media (max-width: 860px) { .spec { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 14px; font: 600 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.foot .brand { display: inline-flex; }
.foot a:not(.brand) { display: block; text-decoration: none; color: var(--ink-2); padding: 5px 0; font-size: .95rem; }
.foot a:hover { color: var(--indigo); }
.foot p { color: var(--muted); font-size: .95rem; margin-top: 12px; max-width: 34ch; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; color: var(--muted); font-size: .86rem; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }

/* scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ================================================================== motion & colour layer */
.mirror .en em, .grad-text { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
.mirror .ar-line { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; }
.btn-primary { background: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: 0; transition: opacity .35s ease; z-index: -1; }
.btn-primary:hover { background: var(--ink); color: #fff; box-shadow: 0 14px 40px -12px #b23cf0aa; }
.btn-primary:hover::before { opacity: 1; }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 26px -10px #b23cf0; }
.hero-badge b { background: var(--grad); color: #fff; }
.eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.center .eyebrow, .eyebrow.center { margin-inline: auto; }
.card, .surface, .platform { position: relative; }
.card::after, .platform::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), #b23cf0, #ff4f8b55 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.card:hover::after, .platform:hover::after { opacity: 1; }
.card .icon, .checks li::before { background-color: var(--indigo-soft); }
.band { background: radial-gradient(700px 400px at 0% 0%, #6d3df555, transparent 60%), radial-gradient(600px 400px at 100% 100%, #ff4f8b40, transparent 60%), #0b0a24; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--grad); z-index: 50; }

/* aurora behind the hero */
.hero::before { display: none; }
.aurora { position: absolute; inset: -20% -10% auto; height: 1000px; pointer-events: none; filter: blur(70px); opacity: .55; z-index: 0; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; }
.aurora span:nth-child(1) { width: 560px; height: 560px; left: 8%; top: 8%; background: #8b5cf6; }
.aurora span:nth-child(2) { width: 480px; height: 480px; right: 10%; top: 2%; background: #ff4f8b; }
.aurora span:nth-child(3) { width: 520px; height: 420px; left: 38%; top: 30%; background: #12b8e6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .aurora { opacity: .7; } :root:not([data-theme="light"]) .aurora span { mix-blend-mode: screen; } }
:root[data-theme="dark"] .aurora { opacity: .7; } :root[data-theme="dark"] .aurora span { mix-blend-mode: screen; }
.hero .wrap { z-index: 1; }
.showcase { perspective: 1600px; }
.showcase .window { transform-origin: 50% 0; will-change: transform; box-shadow: 0 50px 120px -40px #6d3df566, var(--shadow-lg); }

@media (prefers-reduced-motion: no-preference) {
  .mirror .en em, .mirror .ar-line, .grad-text { animation: shimmer 6s linear infinite; }
  @keyframes shimmer { to { background-position: 200% center; } }
  .aurora span:nth-child(1) { animation: drift1 16s ease-in-out infinite alternate; }
  .aurora span:nth-child(2) { animation: drift2 19s ease-in-out infinite alternate; }
  .aurora span:nth-child(3) { animation: drift3 22s ease-in-out infinite alternate; }
  @keyframes drift1 { to { transform: translate(160px, 120px) scale(1.2); } }
  @keyframes drift2 { to { transform: translate(-200px, 160px) scale(.85); } }
  @keyframes drift3 { to { transform: translate(-120px, -90px) scale(1.25); } }

  /* hero intro: words rise out of a mask, one after another */
  .js .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
  .js .w > i { display: inline-block; font-style: normal; transform: translateY(110%) rotate(6deg); animation: wordUp .9s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 90ms + 100ms); }
  /* The gradient word keeps its shimmer while it rises in. */
  .js .w > i.grad-text { animation: wordUp .9s cubic-bezier(.16,1,.3,1) forwards, shimmer 6s linear infinite; animation-delay: calc(var(--i) * 90ms + 100ms), 0s; }
  @keyframes wordUp { to { transform: none; } }
  .js .intro { opacity: 0; transform: translateY(24px); filter: blur(8px); animation: introIn 1s cubic-bezier(.16,1,.3,1) forwards; animation-delay: var(--d, 0ms); }
  @keyframes introIn { to { opacity: 1; transform: none; filter: none; } }

  .js .reveal { opacity: 0; transform: translateY(48px) scale(.98); filter: blur(6px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform 1.1s cubic-bezier(.16,1,.3,1), filter .9s ease; transition-delay: var(--stagger, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .js .feature.reveal .shot { transform: translateX(60px) rotate(1.5deg); transition: transform 1.2s cubic-bezier(.16,1,.3,1) .1s; }
  .js .feature.flip.reveal .shot { transform: translateX(-60px) rotate(-1.5deg); }
  .js .feature.reveal.in .shot { transform: none; }
  .card, .platform, .surface { transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .2s, box-shadow .4s; }
  .card:hover, .surface:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px #6d3df555; }
  .panel:not([hidden]) img { animation: swap .7s cubic-bezier(.16,1,.3,1); }
  @keyframes swap { from { opacity: 0; transform: scale(1.04); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
  .tab { transition: background .3s, color .3s, transform .2s; } .tab:hover { transform: translateY(-2px); }
}

/* ================================================================== layout polish */
.feature { grid-template-columns: 1fr 1.5fr; }
.feature > .shot, .feature > .shot-stack { position: relative; }
.feature > .shot::before { content: ""; position: absolute; inset: 8% -6% -10%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--indigo) 22%, transparent), transparent); filter: blur(20px); }
.feature > .shot { isolation: isolate; overflow: visible; }
.feature > .shot img { border-radius: 14px; }
.feature h3 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.feature .eyebrow + h3 { margin-top: 10px; }
.section-head h2 { text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }
.lede { text-wrap: pretty; }

/* highlights strip under the hero */
.strip-section { padding: clamp(40px, 6vw, 64px) 0 0; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--card); overflow: hidden; }
.strip li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 22px; }
.strip li + li { border-inline-start: 1px solid var(--line); }
.strip svg { width: 22px; height: 22px; flex: none; color: var(--indigo); margin-top: 2px; }
.strip b { display: block; font: 650 .98rem/1.3 var(--body); }
.strip span { display: block; color: var(--muted); font-size: .88rem; margin-top: 3px; line-height: 1.4; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr 1fr; } .strip li:nth-child(3) { border-inline-start: 0; } .strip li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr; } .strip li + li { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* cards: gradient icon tiles */
.card .icon { background: linear-gradient(135deg, color-mix(in srgb, var(--indigo) 18%, transparent), color-mix(in srgb, var(--coral) 14%, transparent)); }
.surface .icon { box-shadow: 0 8px 20px -8px currentColor; }
.platform { align-items: flex-start; }
.platform b { font-size: 1.1rem; }

/* hero: headline on one line where it fits, CTA under the lede */
.mirror h1 { font-size: clamp(2.8rem, 8vw, 6.6rem); }
.hero-row { align-items: center; }
.feature.flip { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } }
/* The band is always dark, in both site themes: fixed light text. */
.band { color: #f3f1ff; }
.band h2, .band .ar-big { color: #ffffff; }
.band p { color: rgba(236, 233, 255, 0.72); }

/* ------------------------------------------------------------------ Arabic pages + language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 600 .86rem/1 var(--body); transition: background .15s, border-color .15s; }
.lang-switch svg { width: 15px; height: 15px; }
.lang-switch:hover { background: var(--paper-2); border-color: var(--indigo); }
.nav .btn { margin-inline-start: 0; }
.nav .lang-switch { margin-inline-start: auto; }
html[lang="ar"] .lang-switch { font-family: var(--body); }
html[lang="ar"] { --display: var(--arabic); --body: var(--arabic); }
html[lang="en"] .lang-switch { font-family: var(--arabic); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .brand, html[lang="ar"] .feature h3 { letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] .eyebrow, html[lang="ar"] .foot h4, html[lang="ar"] .dl-table th, html[lang="ar"] .hero-meta, html[lang="ar"] .hero-badge b { font-family: var(--arabic); letter-spacing: 0; text-transform: none; }
html[lang="ar"] .mirror .ar-line { font-family: "Bricolage Grotesque", sans-serif; direction: ltr; text-align: left; }
html[lang="ar"] .band .ar-big { font-family: "Bricolage Grotesque", sans-serif; direction: ltr; text-align: left; }
html[lang="ar"] .window-bar span { transform: translateX(20px); }
html[lang="ar"] .window img { object-position: top right; }
@media (prefers-reduced-motion: no-preference) {
  html[lang="ar"].js .feature.reveal .shot { transform: translateX(-60px) rotate(-1.5deg); }
  html[lang="ar"].js .feature.flip.reveal .shot { transform: translateX(60px) rotate(1.5deg); }
  html[lang="ar"].js .feature.reveal.in .shot { transform: none; }
}
/* Shots slide in from the side; clip that so phones never get a sideways scroll. */
main { overflow-x: clip; }
.agent-card{border:1px solid var(--line,#e4e7ec);border-radius:16px;padding:22px 24px;background:var(--card,#fff);font-size:15px;line-height:1.55;box-shadow:0 10px 30px rgba(20,22,43,.06)}
.agent-card p{margin:0 0 14px}.agent-card .who{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;opacity:.6;margin-bottom:4px}
.agent-card .ok{margin:0;color:#16a34a;font-weight:600}
/* phones: the aurora blobs are sized for desktop and would flood the whole hero; keep them small and faint,
   faded out before the text, so the headline and lede stay readable */
@media (max-width: 700px) {
  .aurora { height: 560px; inset: -10% -30% auto; opacity: .35 !important; filter: blur(60px);
    -webkit-mask-image: linear-gradient(#000 0%, transparent 85%); mask-image: linear-gradient(#000 0%, transparent 85%); }
  .aurora span:nth-child(1) { width: 260px; height: 260px; left: -10%; top: 0; }
  .aurora span:nth-child(2) { width: 240px; height: 240px; right: -10%; top: 0; }
  .aurora span:nth-child(3) { width: 240px; height: 200px; left: 30%; top: 22%; }
  .hero .lede { color: var(--ink-2); }
}
