/* ==========================================================
   Anatolian Nile — نيل الأناضول · v3
   Palette from the logo: plum (arrow), ember → saffron (chevrons).
   ========================================================== */

:root {
  --night: #1A0E2B;
  --night-2: #241536;
  --night-3: #342248;
  --night-deep: #120920;
  --on-night: #F5F0FA;
  --on-night-2: #C0B4D0;
  --on-night-3: #8E80A3;
  --on-night-line: rgba(245, 240, 250, .13);

  --paper: #F5F3F8;
  --white: #FFFFFF;
  --ink: #1C1328;
  --ink-2: #4A3F58;
  --ink-3: #75698A;
  --line: #E2DCEA;

  --ember: #D6341D;
  --ember-hover: #B92B17;
  --orange: #F7941D;
  --saffron: #FDB515;
  --grad: linear-gradient(90deg, #EE1C25 0%, #F7941D 58%, #FDB813 100%);
  --danger: #C0262D;
  --ok: #1E8E5A;

  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: clamp(1.08rem, 1rem + .3vw, 1.25rem);
  --t-lg: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
  --t-xl: clamp(2.2rem, 1.3rem + 3.2vw, 4.25rem);
  --t-hero: clamp(3rem, 1.4rem + 5.6vw, 6.75rem);

  --wrap: 1280px;
  --gutter: clamp(1rem, .4rem + 2.6vw, 2.75rem);
  --sy: clamp(3.5rem, 2.4rem + 3.6vw, 6rem);
  --header-h: 76px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:not([lang="ar"]) body { line-height: 1.6; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 200; padding: .6rem 1rem; background: var(--saffron); color: var(--ink); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.25em; height: 1.25em; flex: none; }

.h-display { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; }
html[lang="ar"] .h-display { letter-spacing: 0; line-height: 1.25; }
.lead { margin-top: 1.1rem; font-size: var(--t-md); color: var(--ink-2); max-width: 36em; }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.45em;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: .5em 1.1em; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: .85em 1.9em; font-size: 1.0625rem; }
.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: var(--ember-hover); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33253f; }
.btn-text { background: none; color: var(--ink-2); padding-inline: .6em; border-radius: var(--r-sm); }
.btn-text:hover { color: var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--on-night);
  transition: background-color .35s, border-color .35s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(26, 14, 43, .82);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--on-night-line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand img { width: 40px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-family: var(--f-display); font-weight: 700; font-size: 1.02rem; }
.brand-ar { font-family: var(--f-display); font-size: .78rem; color: var(--on-night-2); }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; gap: .15rem; }
.site-nav a { display: block; padding: .5rem .85rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--on-night-2); transition: color .2s, background-color .2s; }
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.lang-switch { display: flex; padding: 3px; gap: 2px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; }
.lang-switch button { min-width: 36px; height: 32px; padding: 0 .55rem; border: 0; border-radius: 999px; background: none; cursor: pointer; font-family: var(--f-display); font-size: .8125rem; font-weight: 600; color: var(--on-night-2); }
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--night); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: #fff; }
.menu-bars, .menu-bars::before, .menu-bars::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), background-color .2s; }
.menu-bars { top: 50%; margin-top: -1px; }
.menu-bars::before, .menu-bars::after { content: ""; left: 0; margin-left: 0; }
.menu-bars::before { transform: translateY(-6px); }
.menu-bars::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: rotate(45deg); background: currentColor; }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: rotate(-45deg); background: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; color: #fff; background: var(--night-deep); overflow: hidden; isolation: isolate; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 50%; will-change: transform; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; }
[dir="rtl"] .hero-scrim { background: linear-gradient(270deg, rgba(18, 9, 32, .92) 0%, rgba(18, 9, 32, .7) 30%, rgba(18, 9, 32, .12) 58%, transparent 70%), linear-gradient(0deg, rgba(18, 9, 32, .85) 0%, transparent 28%); }
[dir="ltr"] .hero-scrim { background: linear-gradient(90deg, rgba(18, 9, 32, .92) 0%, rgba(18, 9, 32, .7) 30%, rgba(18, 9, 32, .12) 58%, transparent 70%), linear-gradient(0deg, rgba(18, 9, 32, .85) 0%, transparent 28%); }
.hero-inner { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 2rem) 9rem; }
.hero-inner > * { max-width: 38rem; }
.tagline { font-family: var(--f-display); font-weight: 600; font-size: var(--t-md); color: var(--saffron); margin-bottom: 1rem; }
.hero-title { font-size: var(--t-hero); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 12ch; }
html[lang="ar"] .hero-title { line-height: 1.3; letter-spacing: 0; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; }
.hero-lead { margin-top: 1.5rem; font-size: var(--t-md); color: #E4DCEE; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-foot { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 2.25rem; }
.hero-facts { display: flex; gap: clamp(1.5rem, 1rem + 2vw, 3.5rem); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dd { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; }
.hero-facts dt { font-size: .875rem; color: var(--on-night-2); }
.scroll-cue { display: flex; align-items: center; gap: .9rem; font-size: .875rem; color: var(--on-night-2); text-decoration: none; }
.cue-line { position: relative; width: 1px; height: 46px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.cue-line::after { content: ""; position: absolute; inset: 0; background: var(--saffron); transform: translateY(-100%); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 60%, 100% { transform: translateY(100%); } }

/* entrance states (only when JS will animate them) */
html.js.motion [data-reveal], html.js.motion .hero-title .ln > span { opacity: 0; }
html.js.motion.reveal-done [data-reveal], html.js.motion.reveal-done .hero-title .ln > span { opacity: 1; }

/* ---------- partner (one instead of five) ---------- */
.partner { background: var(--paper); }
.partner-pin { min-height: 100svh; display: flex; align-items: center; padding-block: var(--sy); }
.partner-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.partner-states { display: grid; margin-top: 2.25rem; }
.state { grid-area: 1 / 1; display: flex; align-items: baseline; gap: .8rem; font-size: var(--t-md); color: var(--ink-2); transition: opacity .45s, transform .45s var(--ease); }
.state b { font-family: var(--f-display); font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--ink); }
.state-after b { color: var(--ember); }
.state-after { opacity: 0; transform: translateY(12px); }
.partner.is-ordered .state-before { opacity: 0; transform: translateY(-12px); }
.partner.is-ordered .state-after { opacity: 1; transform: none; }

.partner-stage { position: relative; aspect-ratio: 1.15 / 1; width: 100%; }
.partner-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.partner-lines path { fill: none; }
.lines-chaos path { stroke: #B3A8C3; stroke-width: 1.5; stroke-dasharray: 5 6; }
.lines-order path { stroke: #CFC6DA; stroke-width: 1.5; }
.lines-order path.main { stroke: url(#gradLine); stroke-width: 3.5; stroke-linecap: round; }
.node {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: max-content; /* near the stage edge an absolutely positioned box would otherwise shrink below its label */
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(28, 19, 40, .22);
  font-family: var(--f-display); font-weight: 600; font-size: clamp(.8rem, .7rem + .3vw, .95rem); white-space: nowrap;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.node .i { width: 1.3em; height: 1.3em; color: var(--ember); }
.node-you { background: var(--ink); color: #fff; border-color: var(--ink); }
.node-you .i { color: var(--saffron); }
.node-hub { background: var(--night); color: #fff; border: 0; padding: .8rem 1.3rem; font-size: clamp(.95rem, .8rem + .4vw, 1.15rem); box-shadow: 0 0 0 6px rgba(247, 148, 29, .16), 0 20px 50px -18px rgba(214, 52, 29, .6); }
.node-hub img { width: 30px; }

/* ---------- journey ---------- */
.journey { background: var(--night); color: var(--on-night); overflow: hidden; }
.journey .lead { color: var(--on-night-2); }
.journey-pin { padding-block: var(--sy); }
.journey-head { margin-bottom: 2rem; }
.journey-track { display: flex; flex-direction: column; gap: 3.5rem; padding-inline: var(--gutter); max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; }
.stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
.stage-media img { width: 100%; max-height: 58vh; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.stage-no { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.8rem, 2rem + 2.5vw, 4.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--saffron); margin-bottom: 1rem; }
.stage-text h3 { font-size: var(--t-lg); font-weight: 700; }
.stage-text p { margin-top: .6rem; color: var(--on-night-2); max-width: 26em; }
.journey-rail { display: none; }

/* horizontal mode (desktop + GSAP) */
html.hscroll .journey-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 1rem) 2rem; }
html.hscroll .journey-head { margin-bottom: 0; flex: none; }
html.hscroll .journey-viewport { flex: 1; min-height: 0; display: flex; align-items: center; }
html.hscroll .journey-track { flex-direction: row; gap: 0; max-width: none; margin: 0; padding-inline: var(--gutter); will-change: transform; }
html.hscroll .stage { flex: 0 0 auto; width: min(1180px, 80vw); padding-inline-end: 4vw; }
html.hscroll .stage-media img { max-height: 60vh; will-change: transform, opacity; }
html.hscroll .journey-rail { display: block; flex: none; }
.rail { position: relative; height: 3px; border-radius: 3px; background: var(--night-3); overflow: hidden; }
.rail-fill { position: absolute; inset: 0; background: var(--grad); transform: scaleX(var(--p, 0)); transform-origin: left; }
[dir="rtl"] .rail-fill { transform-origin: right; background: linear-gradient(270deg, #EE1C25 0%, #F7941D 58%, #FDB813 100%); }
.rail-labels { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: .8rem; font-size: .8125rem; color: var(--on-night-3); }
.rail-labels li { transition: color .3s; }
.rail-labels li.is-active { color: #fff; font-weight: 600; }

/* ---------- services ---------- */
.services { background: var(--white); padding-block: var(--sy); }
.services-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5.5rem); align-items: start; }
.services-media { position: sticky; top: calc(var(--header-h) + 6vh); aspect-ratio: 1.2 / 1; border-radius: var(--r-lg); background: radial-gradient(120% 90% at 50% 60%, #EDE8F4 0%, var(--paper) 60%); }
.services-media img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; transform: scale(.95) translateY(10px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.services-media img.is-on { opacity: 1; transform: none; }
.svc-list { margin-top: 2.5rem; border-bottom: 1px solid var(--line); }
.svc { border-top: 1px solid var(--line); }
.svc summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; cursor: pointer; list-style: none; }
.svc summary::-webkit-details-marker { display: none; }
.svc-title { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; font-family: var(--f-display); font-weight: 700; font-size: clamp(1.45rem, 1rem + 1.5vw, 2.3rem); line-height: 1.25; color: var(--ink-3); transition: color .3s, transform .4s var(--ease); }
.svc summary:hover .svc-title, .svc[open] .svc-title { color: var(--ink); }
.svc summary:hover .svc-title { transform: translateX(calc(var(--dirx, -1) * 6px)); }
[dir="ltr"] .svc { --dirx: 1; }
.svc-toggle { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.svc-toggle::before, .svc-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), background-color .3s; }
.svc-toggle::after { transform: rotate(90deg); }
.svc[open] .svc-toggle { background: var(--ember); border-color: var(--ember); transform: rotate(180deg); }
.svc[open] .svc-toggle::before, .svc[open] .svc-toggle::after { background: #fff; }
.svc[open] .svc-toggle::after { transform: rotate(0deg); }
.svc::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.svc[open]::details-content { block-size: auto; }
.svc-body > div { padding-bottom: 1.75rem; }
.svc-body p { color: var(--ink-2); max-width: 34em; }
.svc-body ul { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.5rem; margin-top: 1.1rem; font-size: .9688rem; }
.svc-body li { position: relative; padding-inline-start: 1.1rem; }
.svc-body li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 6px; height: 6px; border-radius: 1px; background: var(--orange); }
.tag-free { font-family: var(--f-body); font-size: .8125rem; font-weight: 600; padding: .2rem .7rem; border-radius: 99px; background: #FFF0D2; color: #7A4B00; }

/* ---------- containers ---------- */
.containers { background: var(--paper); padding-block: var(--sy); }
.cont-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.cont-visual { position: relative; }
.cont-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; position: relative; z-index: 1; }
.cont-tabs button { display: inline-flex; align-items: baseline; gap: .35rem; min-height: 44px; padding: .45rem 1.2rem; border: 0; border-radius: 999px; background: none; cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 1.0625rem; color: var(--ink-2); direction: ltr; transition: background-color .25s, color .25s; }
.cont-tabs button small { font-family: var(--f-body); font-weight: 500; font-size: .8125rem; color: var(--ink-3); }
.cont-tabs button:hover { color: var(--ink); }
.cont-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cont-tabs button[aria-selected="true"] small { color: #D5CCE0; }
.cont-stage { position: relative; aspect-ratio: 1.42 / 1; margin-top: .5rem; }
.cont-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease); transform: translateY(8px); }
.cont-stage img.is-on { opacity: 1; transform: none; }
.cont-scale-note { position: absolute; inset-inline-start: 0; bottom: 0; font-size: .8125rem; color: var(--ink-3); }
.cont-cap { display: flex; flex-direction: column; }
.cont-cap-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.6rem, 2.4rem + 4.5vw, 7rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); text-align: start; }
.cont-cap-num b { font-weight: 800; font-variant-numeric: tabular-nums; }
.cont-cap-label { margin-top: .4rem; font-size: .9375rem; color: var(--ink-3); }
.cont-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin-top: 2rem; }
.cont-specs div { border-top: 1px solid var(--line); padding-top: .6rem; }
.cont-specs dt { font-size: .8125rem; color: var(--ink-3); }
.cont-specs dd { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cont-fit { margin-block: 1.6rem 1.8rem; color: var(--ink-2); font-size: .9688rem; }
.cont-fit b { color: var(--ink); font-weight: 600; }
.cont-more { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.more-card { padding: 1.5rem 1.75rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); }
.more-card h3 { font-size: 1.15rem; font-weight: 700; }
.more-card p { margin-top: .4rem; color: var(--ink-2); font-size: .9688rem; }

/* ---------- why (bento) ---------- */
.why { background: var(--white); padding-block: var(--sy); }
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "one one price pay" "one one track track" "stats stats aud aud";
}
.tile { position: relative; display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.4rem, 1rem + 1vw, 2rem); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.tile h3 { font-size: var(--t-lg); font-weight: 700; }
.tile-copy p { margin-top: .45rem; color: var(--ink-2); font-size: .9688rem; }
.tile-one { grid-area: one; background: var(--night); color: #fff; min-height: 440px; }
.tile-one .tile-copy p { color: var(--on-night-2); max-width: 26em; }
.tile-one h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; }
.tile-art { margin-top: auto; width: 100%; max-width: 640px; align-self: center; margin-bottom: -4%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .45)); }
.tile-price { grid-area: price; }
.tile-pay { grid-area: pay; }
.tile-track { grid-area: track; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.tile-stats { grid-area: stats; background: var(--ember); color: #fff; justify-content: center; }
.tile-aud { grid-area: aud; justify-content: center; }

.ui { position: relative; margin-top: auto; padding: 1rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 36px -22px rgba(28, 19, 40, .35); font-size: .875rem; }
.ui-tag { position: absolute; top: -.7rem; inset-inline-end: .8rem; padding: .05rem .55rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: .6875rem; font-weight: 600; }
.ui-quotes .q { display: grid; grid-template-columns: 5.2rem 1fr auto; align-items: center; gap: .6rem; padding-block: .4rem; }
.ui-quotes .q + .q { border-top: 1px dashed var(--line); }
.ui-quotes .bar { height: 8px; border-radius: 8px; background: #E6E0EE; position: relative; overflow: hidden; }
.ui-quotes .bar::after { content: ""; position: absolute; inset: 0; width: var(--w); background: #C8BED6; border-radius: 8px; }
.ui-quotes .is-best .bar::after { background: var(--grad); }
.ui-quotes b { font-family: var(--f-display); font-weight: 600; }
.ui-quotes em { grid-column: 1 / -1; justify-self: end; margin-top: -.2rem; font-style: normal; font-size: .75rem; font-weight: 600; color: var(--ok); }
.pay-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; }
.pay-row .i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: #FFF0D2; color: #9A5B00; }
.pay-row b { display: block; font-family: var(--f-display); font-weight: 600; }
.pay-row span { font-size: .8125rem; color: var(--ink-3); }
.pay-row em { font-style: normal; font-size: .75rem; font-weight: 600; color: var(--ok); background: #E4F4EC; padding: .15rem .55rem; border-radius: 99px; }
.pay-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .9rem; font-size: .75rem; color: var(--ink-3); }
.pay-steps li { padding-top: .45rem; border-top: 3px solid var(--line); }
.pay-steps .done { border-top-color: var(--orange); color: var(--ink-2); }
.pay-steps .now { border-top-color: var(--ember); color: var(--ink); font-weight: 600; }
.ui-chat { display: flex; flex-direction: column; gap: .5rem; background: #EFEAF5; }
.msg { align-self: flex-start; max-width: 92%; display: flex; flex-wrap: wrap; align-items: flex-end; gap: .15rem .6rem; padding: .5rem .8rem; border-radius: 14px; border-start-start-radius: 4px; background: var(--white); box-shadow: 0 2px 6px -3px rgba(28, 19, 40, .2); }
.msg time { font-size: .6875rem; color: var(--ink-3); }
.tile-stats dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile-stats dd { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; text-align: start; font-variant-numeric: tabular-nums; }
.tile-stats dt { margin-top: .4rem; font-size: .9375rem; color: #FFE3D6; }
.tile-aud ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.tile-aud li { padding: .5rem 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 500; font-size: .9375rem; }

/* ---------- quote ---------- */
.quote { background: var(--night); color: var(--on-night); padding-block: var(--sy); }
.quote .lead { color: var(--on-night-2); }
.quote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 1rem + 5vw, 5.5rem); align-items: start; }
.channels { margin-top: 2.5rem; border-top: 1px solid var(--on-night-line); }
.channels a { display: flex; align-items: flex-start; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--on-night-line); text-decoration: none; }
.channels a:hover b { color: var(--saffron); }
.channels .i { width: 22px; height: 22px; margin-top: .2rem; color: var(--saffron); }
.channels a > span { display: flex; flex-direction: column; line-height: 1.5; }
.channels b { font-family: var(--f-display); font-weight: 600; transition: color .2s; }
.channels a > span > span { align-self: flex-start; color: var(--on-night-2); font-size: .9375rem; }
[dir="rtl"] .channels a > span > span { text-align: right; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.form-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; counter-reset: fstep; margin-bottom: 2rem; }
.form-progress li { counter-increment: fstep; padding-top: .7rem; border-top: 3px solid var(--line); font-size: .875rem; font-weight: 500; color: var(--ink-3); transition: border-color .3s, color .3s; }
.form-progress li::before { content: counter(fstep) ". "; }
.form-progress li.is-done { border-top-color: var(--orange); color: var(--ink-2); }
.form-progress li[aria-current="step"] { border-top-color: var(--ember); color: var(--ink); font-weight: 600; }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step > * + * { margin-top: 1.25rem; }
.field { min-width: 0; }
.field[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.label { display: block; margin-bottom: .45rem; font-size: .9375rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  display: block; width: 100%; min-height: 50px; padding: .7rem .95rem;
  background: var(--white); border: 1px solid #CFC7D9; border-radius: 12px; color: var(--ink); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; line-height: 1.6; }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2375698A' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .95rem center; }
[dir="ltr"] select { background-position: right .95rem center; }
::placeholder { color: #9A91A8; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: #A89EB6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(247, 148, 29, .35); }
.is-invalid, .is-invalid:hover { border-color: var(--danger); }
.error { margin-top: .35rem; font-size: .8125rem; color: var(--danger); }
.error:empty { display: none; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented label > span { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; min-height: 44px; padding: .35rem .5rem; border-radius: 10px; font-size: .9375rem; font-weight: 500; text-align: center; line-height: 1.3; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented small { font-size: .75rem; color: var(--ink-3); direction: ltr; }
.segmented label:hover > span { color: var(--ink); }
.segmented input:checked + span { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(28, 19, 40, .12), 0 0 0 1px var(--line); }
.segmented input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-status { margin-top: 1.25rem; font-size: .9375rem; color: var(--danger); }
.form-status:empty { display: none; }
.form-nav { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-nav .btn-text { margin-inline-end: auto; }
.form-nav [hidden] { display: none; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success:focus { outline: none; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 1.25rem; }
.form-success circle { fill: #E7F5EE; stroke: var(--ok); stroke-width: 2; }
.form-success path { fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: var(--t-lg); }
.form-success p { margin: .5rem auto 1.75rem; max-width: 26em; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--night-deep); color: var(--on-night-2); font-size: .9375rem; overflow: hidden; }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-block: clamp(4rem, 3rem + 4vw, 7rem) 3rem; border-bottom: 1px solid var(--on-night-line); }
.footer-mega { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, 1.6rem + 9vw, 11rem); line-height: 1; color: var(--on-night); letter-spacing: -.02em; }
html[lang="ar"] .footer-mega { line-height: 1.2; letter-spacing: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-block: 3.5rem 3rem; }
.footer-brand img { width: 260px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 26em; }
.footer-col h2 { font-size: 1rem; font-weight: 600; color: var(--on-night); margin-bottom: 1rem; }
.footer-col li + li { margin-top: .5rem; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col address { line-height: 1.7; }
.social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social li + li { margin-top: 0; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--on-night-line); border-radius: 50%; transition: border-color .2s, color .2s, background-color .2s; }
.social a:hover { border-color: var(--on-night-2); color: #fff; background: rgba(255, 255, 255, .06); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem 2rem; font-size: .8125rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; background: var(--on-night-line); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-nav a { padding-inline: .6rem; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "one one" "price pay" "track track" "stats stats" "aud aud"; }
  .tile-one { min-height: 0; }
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--night); border-bottom: 1px solid var(--on-night-line); padding: .5rem var(--gutter) 1.25rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: .9rem .25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--on-night-line); border-radius: 0; }
  .partner-grid, .services-grid, .cont-layout, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .services-media { position: relative; top: 0; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .header-cta, .brand-name { display: none; }
  [dir] .hero-scrim { background: linear-gradient(0deg, rgba(18, 9, 32, .96) 0%, rgba(18, 9, 32, .82) 42%, rgba(18, 9, 32, .15) 68%, rgba(18, 9, 32, .35) 100%); }
  .hero-inner { justify-content: flex-end; padding-bottom: 8.5rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .partner-pin { min-height: 0; }
  .partner-stage { aspect-ratio: .95 / 1; }
  .node { padding: .45rem .75rem; }
  .svc-body ul, .cont-specs, .field-row, .cont-more { grid-template-columns: 1fr; }
  .cont-tabs { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; border-radius: 18px; }
  .cont-tabs button { justify-content: center; }

  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "one" "price" "pay" "track" "stats" "aud"; }
  .tile-track { grid-template-columns: 1fr; }
  .tile-stats dl { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
