/* Silah product page. Same identity as the app: an indigo-washed ground, content that floats, related things
   gathered in pools of light, sections joined by a woven knot. Logical properties so Arabic mirrors cleanly. */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Reem Kufi'; font-weight: 600; font-display: swap; src: url(fonts/reem-kufi-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Reem Kufi'; font-weight: 600; font-display: swap; src: url(fonts/reem-kufi-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF; }

:root {
  --ground: #ECEEF5; --surface: #F8F9FD; --on-dark: #F1F3FA; --deep: #161A30; --line: #D8DCE8; --outline: #A9B0C4;
  --ink: #1B1F33; --ink-2: #545A70; --goat: #3A2F2B;
  --indigo: #2B3A67; --indigo-2: #4A5788; --indigo-tint: #DDE1EE;
  --saffron: #D19A3A; --saffron-ink: #8A5A12; --saffron-tint: #F6E8CC;
  --madder: #A3392B; --palm: #2F6B57; --palm-tint: #DCEBE4;
  --sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --arab: 'IBM Plex Sans Arabic', 'IBM Plex Sans', system-ui, sans-serif;
  --kufi: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17.5px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[dir='rtl'] body { font-family: var(--arab); font-size: 18.5px; line-height: 1.8; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--saffron-tint); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.012em; line-height: 1.15; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 12px; z-index: 20; background: var(--surface); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; border-radius: 6px; }

/* the ground: slow dye blooms, as in the app */
.bloom { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.bloom i { position: absolute; border-radius: 50%; filter: blur(60px); }
.bloom i:nth-child(1) { width: 70vmax; height: 70vmax; inset-inline-start: -25vmax; top: -30vmax; background: radial-gradient(circle, var(--surface) 0%, rgba(248, 249, 253, 0) 65%); }
.bloom i:nth-child(2) { width: 60vmax; height: 60vmax; inset-inline-end: -30vmax; top: 30vh; background: radial-gradient(circle, #DDE1EE 0%, rgba(221,225,238,0) 65%); }
.bloom i:nth-child(3) { width: 45vmax; height: 45vmax; inset-inline-start: 10vw; bottom: -25vmax; background: radial-gradient(circle, rgba(246,232,204,.5) 0%, rgba(246,232,204,0) 65%); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }
main, footer { overflow-x: clip; }   /* glows may spread past the gutter; never scroll sideways */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-ink); }
[dir='rtl'] .eyebrow { letter-spacing: 0; font-size: 14.5px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(236, 238, 245, .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.top::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(169,176,196,0), rgba(169,176,196,.55) 20%, rgba(169,176,196,.55) 80%, rgba(169,176,196,0)); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-inline-end: auto; }
.brand .kufi { font-family: var(--kufi); font-weight: 600; font-size: 25px; color: var(--indigo); line-height: 1; }
.brand .latin { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.lang { font-size: 15px; text-decoration: none; color: var(--indigo); padding: 6px 12px; border-radius: 999px; background: rgba(248, 249, 253, .7); }
[lang='ar'] .lang, .lang:lang(ar) { font-family: var(--arab); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 500; text-decoration: none; font-size: 16.5px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn.primary { background: var(--indigo); color: var(--on-dark); box-shadow: 0 10px 28px rgba(43,58,103,.28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(43,58,103,.34); }
.btn.quiet { color: var(--indigo); background: rgba(248, 249, 253, .75); }
.btn.quiet:hover { background: var(--surface); }
.btn.small { padding: 9px 16px; font-size: 14.5px; box-shadow: none; }
[dir='rtl'] .btn .arrow { transform: scaleX(-1); }

/* hero */
.hero { padding-block: 72px 40px; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 54px; }
.hero .copy { max-width: 820px; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); margin-block: 18px 22px; max-width: 15em; }
[dir='rtl'] .hero h1 { font-size: clamp(34px, 4.4vw, 56px); }
.hero .lead { font-size: 21px; color: var(--ink-2); max-width: 36em; }
[dir='rtl'] .hero .lead { font-size: 20.5px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 30px 18px; }
.hero .note { font-size: 14.5px; color: var(--ink-2); }
.shot { position: relative; isolation: isolate; }
.shot::before { content: ''; position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(248, 249, 253, .95), rgba(248, 249, 253, 0) 72%); filter: blur(10px); }
.shot img { border-radius: 18px; box-shadow: 0 30px 80px rgba(27,31,51,.16), 0 4px 14px rgba(27,31,51,.06); }
.caption { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* figures: free numbers separated by knots, never boxed */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-block: 34px 10px; }
.figures > div { padding: 8px 28px; position: relative; }
.figures > div + div::before { content: ''; position: absolute; inset-inline-start: 0; top: 14%; bottom: 14%; width: 1.5px; background: linear-gradient(rgba(169,176,196,0), rgba(169,176,196,.7) 30%, rgba(169,176,196,.7) 70%, rgba(169,176,196,0)); }
.figures > div + div::after { content: ''; position: absolute; inset-inline-start: -4.5px; top: calc(50% - 5px); width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; background: var(--saffron); opacity: .85; }
.figures strong { display: block; font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; color: var(--indigo); letter-spacing: -.02em; line-height: 1.1; }
.figures span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.figures em { font-style: normal; color: var(--saffron-ink); }

/* sections joined by a woven knot */
section { padding-block: 72px; }
.knot { position: relative; height: 1px; max-width: 520px; margin: 0 auto; }
.knot::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(169,176,196,0), rgba(169,176,196,.75) 35%, rgba(169,176,196,0) 50%, rgba(169,176,196,.75) 65%, rgba(169,176,196,0)); }
.knot::after { content: ''; position: absolute; left: calc(50% - 6px); top: -6px; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; background: var(--saffron); }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 3.3vw, 42px); margin-top: 12px; }
.head p { font-size: 19px; color: var(--ink-2); margin-top: 16px; }
.head p.eyebrow { font-size: 12.5px; color: var(--saffron-ink); margin-top: 0; }
[dir='rtl'] .head p.eyebrow { font-size: 14.5px; }
.center { text-align: center; margin-inline: auto; }

/* phones */
.phone { width: 100%; max-width: 280px; border-radius: 38px; border: 9px solid var(--deep); background: var(--deep); box-shadow: 0 26px 60px rgba(27,31,51,.2); overflow: hidden; }
.phone img { width: 100%; border-radius: 29px; }

/* three moments */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); column-gap: 44px; }
.moment { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
.moment .phone { margin: 0 auto 30px; align-self: end; }
.moment .n { font-family: var(--mono); font-size: 13px; color: var(--saffron-ink); }
.moment h3 { font-size: 24px; margin: 6px 0 10px; }
.moment p + p { margin-top: 10px; }
.outcome { color: var(--palm); font-weight: 500; }
[dir='rtl'] .moment .n, [dir='rtl'] .timeline .when { font-family: var(--arab); font-size: 15px; font-weight: 500; }

/* feature rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.row + .row { margin-top: 84px; }
.row.flip > :first-child { order: 2; }
.row .phone { margin-inline: auto; }
.points { margin: 26px 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding-inline-start: 26px; margin-top: 16px; }
.points li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1.5px; background: var(--saffron); }
.points b { font-weight: 600; }
.row h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 10px; }
.row .lede { font-size: 18.5px; color: var(--ink-2); margin-top: 14px; }

/* pools of light */
.pool { position: relative; isolation: isolate; padding: 34px 36px; }
.pool::before { content: ''; position: absolute; inset: -22px -30px; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 72% 66% at 50% 50%, var(--glow, rgba(248, 249, 253, .95)) 0%, var(--glow-2, rgba(248, 249, 253, .75)) 52%, rgba(248, 249, 253, 0) 80%); filter: blur(10px); }
.pool.palm { --glow: rgba(220,235,228,.98); --glow-2: rgba(220,235,228,.72); }
.pool.saffron { --glow: rgba(246,232,204,.95); --glow-2: rgba(246,232,204,.7); }
.pool.indigo { --glow: rgba(221,225,238,.98); --glow-2: rgba(221,225,238,.7); }

/* safety: four promises */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 64px; }
.promise h3 { font-size: 21px; display: flex; gap: 12px; align-items: center; }
.promise h3 svg { flex: none; color: var(--indigo); }
.promise p { margin-top: 10px; color: var(--ink-2); }
.promise .proof { margin-top: 10px; font-size: 14.5px; color: var(--palm); }

/* evidence */
.proofs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.proofs strong { display: block; font-size: 40px; font-weight: 600; color: var(--indigo); line-height: 1.1; letter-spacing: -.02em; }
.proofs span { display: block; margin-top: 8px; font-size: 15.5px; color: var(--ink-2); line-height: 1.5; }
.proofs span span { display: inline; margin: 0; font-size: inherit; }
.chart { margin-top: 64px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.bars { display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; font-size: 15.5px; }
.bar .track { position: relative; height: 34px; }
.bar .fill { height: 100%; border-radius: 0 8px 8px 0; background: var(--c); width: var(--w); display: flex; align-items: center; justify-content: flex-end; padding-inline-end: 10px; color: var(--on-dark); font-weight: 600; font-family: var(--mono); font-size: 15px; }
[dir='rtl'] .bar .fill { border-radius: 8px 0 0 8px; }
.bar .fill.light { color: var(--ink); }

/* film */
.film video { width: 100%; border-radius: 18px; background: #1B1F33; box-shadow: 0 30px 80px rgba(27,31,51,.18); }

/* pilot: a thread with knots */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; position: relative; padding-top: 34px; }
.timeline::before { content: ''; position: absolute; top: 8px; inset-inline: 0; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--saffron), var(--indigo-tint)); }
[dir='rtl'] .timeline::before { background: linear-gradient(270deg, var(--saffron), var(--indigo-tint)); }
.timeline > div { position: relative; }
.timeline > div::before { content: ''; position: absolute; top: -34px; inset-inline-start: 0; width: 16px; height: 16px; transform: rotate(45deg); border-radius: 3px; background: var(--surface); border: 2.5px solid var(--indigo); }
.timeline > div:first-child::before { background: var(--saffron); border-color: var(--saffron-ink); }
.timeline .when { font-family: var(--mono); font-size: 13.5px; color: var(--saffron-ink); }
.timeline h3 { font-size: 20px; margin: 6px 0 8px; }
.money { margin-top: 70px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.ledger { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ledger td { padding: 12px 0; vertical-align: top; border-bottom: 1px solid rgba(169,176,196,.45); }
.ledger td:first-child { padding-inline-end: 18px; width: 50%; }
.ledger td:nth-child(2) { padding-inline-end: 12px; }
.ledger tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
[dir='rtl'] .tag { letter-spacing: 0; font-size: 13px; }
.tag.m { background: var(--palm-tint); color: var(--palm); }
.tag.a { background: var(--saffron-tint); color: var(--saffron-ink); }
.tag.p { background: var(--indigo-tint); color: var(--indigo); }

/* documents */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.docs a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; text-decoration: none; color: var(--ink); position: relative; }
.docs a::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, rgba(169,176,196,.6), rgba(169,176,196,0)); }
[dir='rtl'] .docs a::after { background: linear-gradient(270deg, rgba(169,176,196,.6), rgba(169,176,196,0)); }
.docs a:hover b { color: var(--indigo); }
.docs b { font-weight: 500; }
.docs small { color: var(--ink-2); font-size: 14px; white-space: nowrap; }

/* team */
.team { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; align-items: start; }
.team h3 { font-size: 26px; }
.built { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.built li { padding-block: 11px; border-top: 1px solid var(--line); }
.built li:last-child { border-bottom: 1px solid var(--line); }
.built b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* footer */
footer { position: relative; padding-block: 62px 70px; font-size: 14.5px; color: #B9BFD3; background: var(--deep); }
footer::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 6px; opacity: .9; background: repeating-linear-gradient(90deg, var(--madder) 0 8px, transparent 8px 14px, var(--saffron) 14px 18px, transparent 18px 24px, var(--indigo-2) 24px 32px, transparent 32px 38px); }
footer b { color: var(--on-dark); font-weight: 600; }
footer .grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.qr { display: flex; gap: 16px; align-items: center; }
.qr img { width: 112px; height: 112px; border-radius: 10px; background: var(--surface); padding: 6px; }

@media (max-width: 980px) {
  .top nav { display: none; }
  .hero .grid, .row, .chart, .money, .team { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row.flip > :first-child { order: 0; }
  .moments { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 64px; }
  .moment { display: block; }
  .figures, .proofs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 0; }
  .figures > div:nth-child(3)::before, .figures > div:nth-child(3)::after { display: none; }
  .promises, .docs { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 0; padding-inline-start: 34px; }
  .timeline::before { top: 0; bottom: 0; inset-inline-start: 6px; inset-inline-end: auto; width: 3px; height: auto; background: linear-gradient(var(--saffron), var(--indigo-tint)); }
  .timeline > div::before { top: 4px; inset-inline-start: -34px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  body { font-size: 16.5px; }
  .top .wrap { gap: 10px; height: 60px; }
  .top .btn.small { padding: 8px 12px; }
  .hero { padding-top: 40px; }
  section { padding-block: 54px; }
  .figures > div { padding: 6px 16px; }
  .bar { grid-template-columns: 1fr; gap: 6px; }
  .pool { padding: 26px 18px; }
  .pool::before { inset: -14px -10px; }
  footer .grid { grid-template-columns: minmax(0, 1fr); }
  .qr { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
