/* ==========================================================================
   Fintek — Design System & Shared Styles
   Light mode by default, opt-in dark mode via [data-theme="dark"] on <html>.
   Design language: Apple-inspired — soft depth, large radii, glass primary
   button (Liquid Glass style), calm motion, generous whitespace.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap");

/* Arabic / Persian typeface — local files provided by the project owner
   (Alibaba Sans supports Arabic-script glyphs, used for ar and fa). */
@font-face {
  font-family: "Alibaba Sans";
  src: url("../assets/fonts/Alibaba-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alibaba Sans";
  src: url("../assets/fonts/Alibaba-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ------------------------------ Design Tokens --------------------------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f8;
  --color-text: #11142a;
  --color-text-muted: #5b6178;
  --color-border: rgba(17, 20, 42, 0.09);
  --color-border-strong: rgba(17, 20, 42, 0.14);

  --color-accent: #1650fc;
  --color-accent-2: #4d7bff;
  --color-accent-soft: rgba(22, 80, 252, 0.10);
  --color-accent-contrast: #ffffff;

  --shadow-sm: 0 1px 3px rgba(17, 20, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(17, 20, 42, 0.08);
  --shadow-lg: 0 24px 70px rgba(17, 20, 42, 0.14);

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-highlight: rgba(255, 255, 255, 0.8);

  --header-bg: rgba(255, 255, 255, 0.72);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --container: 1280px;
  --header-h: 84px;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "SF Pro Text", Tahoma, sans-serif;
}

/* Arabic and Persian use the locally-hosted Alibaba Sans typeface instead */
:root:lang(ar), :root:lang(fa) {
  --font-body: "Alibaba Sans", Tahoma, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --color-bg: #0a0c16;
  --color-bg-alt: #10131f;
  --color-surface: #141827;
  --color-surface-2: #191d2f;
  --color-text: #eef0f9;
  --color-text-muted: #9aa1bf;
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.16);

  --color-accent: #5583ff;
  --color-accent-2: #1650fc;
  --color-accent-soft: rgba(85, 131, 255, 0.16);
  --color-accent-contrast: #ffffff;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);

  --glass-bg: rgba(30, 34, 54, 0.5);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.16);

  --header-bg: rgba(10, 12, 22, 0.66);
}

/* Smooth theme transition */
html, body, header, footer, .card, .btn { transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }

/* --------------------------------- Base --------------------------------- */
html, body { background: var(--color-bg); }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--color-text-muted); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

section { padding-block: clamp(56px, 6vw, 108px); position: relative; }
.section-alt { background: var(--color-bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 6px 16px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* --------------------------------- Icons --------------------------------- */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-fill { fill: currentColor; stroke: none; }

/* --------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), filter .3s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* Primary — "Liquid Glass" button, Apple OS 26 style */
.btn-primary {
  position: relative;
  color: var(--color-accent-contrast);
  background:
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,0) 55%),
    linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  background-blend-mode: overlay, normal;
  border: 1px solid rgba(255,255,255,.4);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -6px 14px rgba(0,0,0,.12),
    0 10px 26px rgba(22,80,252,.35),
    0 2px 6px rgba(10,14,30,.1);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.55), rgba(255,255,255,0) 30%);
  opacity: .6; pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.6),
    inset 0 -6px 14px rgba(0,0,0,.12),
    0 16px 34px rgba(22,80,252,.42),
    0 4px 10px rgba(10,14,30,.14);
  filter: brightness(1.04);
}

/* Secondary — soft glass / outline */
.btn-secondary {
  color: var(--color-text);
  background: var(--glass-bg);
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* --------------------------------- Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; }

/* Logo — a small stacked mark on phones, the full wide lockup from tablet
   width up (see the max-width: 767px override below).
   Sized by WIDTH with height:auto (not the other way around) so that if a
   longer translated nav squeezes the header and flexbox shrinks this item,
   the browser recomputes height from the image's own aspect ratio instead
   of stretching/squashing it — it can get smaller, but never distorted. */
.brand-logo { display: block; height: auto; flex-shrink: 1; min-width: 0; }
.brand-logo-desktop { width: 100px; }
.brand-logo-mobile { display: none; width: 42px; }

@media (max-width: 767px) {
  .brand-logo-desktop { display: none; }
  .brand-logo-mobile { display: block; }
}

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.nav-link {
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: .95rem; font-weight: 500; color: var(--color-text-muted);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-link:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav-link.is-active { color: var(--color-accent); background: var(--color-accent-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  color: var(--color-text);
}
.theme-toggle:hover { color: var(--color-accent); }
.theme-toggle .icon { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.header-cta { display: inline-flex; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 14px; border-radius: var(--radius-pill);
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  color: var(--color-text); font-weight: 600; font-size: .85rem;
}
.lang-toggle:hover { color: var(--color-accent); }
.lang-toggle .icon { width: 18px; height: 18px; }
.lang-toggle .lang-code { text-transform: uppercase; }
.lang-toggle .chevron { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.lang-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
  min-width: 180px; background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 120;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: var(--radius-sm); font-size: .9rem; text-align: start;
  color: var(--color-text);
}
.lang-menu button:hover { background: var(--color-surface-2); }
.lang-menu button.is-active { color: var(--color-accent); font-weight: 700; background: var(--color-accent-soft); }


.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------- Hero --------------------------------- */
.hero { padding-top: clamp(64px, 8vw, 110px); padding-bottom: clamp(56px, 7vw, 90px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy p.lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.6rem; color: var(--color-text); font-weight: 800; }
.hero-stats .stat span { font-size: .85rem; color: var(--color-text-muted); }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual svg { width: 100%; height: auto; position: relative; z-index: 2; filter: drop-shadow(var(--shadow-lg)); overflow: visible; }

.blob { position: absolute; z-index: 0; filter: blur(4px); opacity: .55; }
:root[data-theme="dark"] .blob { opacity: .35; }

.particles-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particles-bg canvas { width: 100%; height: 100%; display: block; opacity: .5; }

/* --------------------------------- 3D-style dashboard hero mockup --------------------------------- */
/* A tasteful "floating screen" effect for the home hero illustration.
   Note: true CSS perspective (rotateX/rotateY) individually warps every
   glyph and path inside an SVG based on its position in the plane, which
   at readable text sizes reads as broken/overlapping type rather than a
   sleek tilt — so depth here comes from a plain rigid 2D rotation (which
   cannot distort shapes, only turn the whole illustration as one piece),
   layered offset panels behind the card, and a soft diagonal glass sheen —
   not from perspective. Two chart shapes cross-fade in a slow loop to
   suggest live, changing data. */
.dash-3d { transform: rotate(-2.2deg); transform-origin: 50% 50%; }
.dash-3d-sheen { fill: url(#dashSheenGradient); pointer-events: none; }

@keyframes chartFadeA { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes chartFadeB { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.chart-a { animation: chartFadeA 9s ease-in-out infinite; }
.chart-b { animation: chartFadeB 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .dash-3d { transform: rotate(-1deg); }
  .chart-a { animation: none; opacity: 1; }
  .chart-b { animation: none; opacity: 0; }
}

/* ------------------------------ Trust / Stats bar ------------------------------ */
.trust-bar { padding-block: 40px; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-grid .stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--color-accent); }
.trust-grid .stat span { font-size: .9rem; color: var(--color-text-muted); }

/* --------------------------------- Grids --------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* --------------------------------- Cards --------------------------------- */
.card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }

.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .95rem; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  /* pushes the link to the bottom of the card regardless of how long the
     description text above it is, so it lines up across a whole row */
  margin-top: auto;
  padding-top: 18px;
  font-weight: 600; font-size: .92rem; color: var(--color-accent);
}
.card-link .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
:dir(rtl) .card-link .icon { transform: scaleX(-1); }
.card-link:hover .icon { transform: translateX(4px); }
:dir(rtl) .card-link:hover .icon { transform: scaleX(-1) translateX(4px); }

/* Feature row (icon + text, no card box) */
.feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent-soft); color: var(--color-accent);
}
.feature h4 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; }

/* Process steps */
.process { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-inline-start: 4px; }
.process-num {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  background: var(--color-accent); color: #fff;
  box-shadow: 0 8px 20px rgba(22,80,252,.35);
  margin-bottom: 18px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: .92rem; }

/* Why-us list */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }

/* CTA banner */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--color-accent), #0f3fd6);
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.82); max-width: 560px; margin-inline: auto; }
.cta-banner .btn-secondary { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-banner .btn-secondary:hover { border-color: #fff; color: #fff; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* --------------------------------- Hand-drawn illustrations --------------------------------- */
/* Shared classes used by the custom inline SVG mockups across pages, so
   every illustration follows the current theme automatically. */
.illus-surface { fill: var(--color-surface); stroke: var(--color-border); }
.illus-surface-2 { fill: var(--color-surface-2); stroke: none; }
.illus-accent { fill: var(--color-accent); stroke: none; }
.illus-accent-soft { fill: var(--color-accent); opacity: .14; stroke: none; }
.illus-line { stroke: var(--color-accent); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.illus-muted-line { stroke: var(--color-border-strong); fill: none; stroke-width: 2; stroke-linecap: round; }
.illus-muted-fill { fill: var(--color-border-strong); stroke: none; }
.illus-white { fill: #fff; stroke: none; }
.illus-badge {
  filter: drop-shadow(0 10px 20px rgba(17,20,42,.14));
}
:root[data-theme="dark"] .illus-badge { filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.illus-float { animation: illusFloat 5s ease-in-out infinite; }
.illus-float-slow { animation: illusFloat 7s ease-in-out infinite; animation-delay: .5s; }
@keyframes illusFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .illus-float, .illus-float-slow { animation: none; } }

/* --------------------------------- Mockup frames --------------------------------- */
.frame-browser {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.frame-browser .frame-bar { display: flex; gap: 7px; padding: 16px 20px; background: var(--color-surface-2); }
.frame-browser .frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--color-border-strong); }

/* --------------------------------- Forms --------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface); color: var(--color-text);
  font-size: .95rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--color-accent); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--color-text-muted); margin-top: 14px; }

.contact-info-card { display: flex; flex-direction: row; gap: 16px; align-items: flex-start; padding: 24px; }

.map-embed {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }
.contact-info-card h4 { margin-bottom: 4px; }
.contact-info-card p { font-size: .92rem; }

/* --------------------------------- Footer --------------------------------- */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 14px; font-size: .92rem; max-width: 280px; }
.footer-col h3 { font-size: .95rem; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { font-size: .92rem; color: var(--color-text-muted); }
.footer-col a:hover { color: var(--color-accent); }

.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text-muted);
}
.social-links a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.social-links .icon { width: 17px; height: 17px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-block: 22px; border-top: 1px solid var(--color-border);
  font-size: .82rem; color: var(--color-text-muted); flex-wrap: wrap;
}
.made-with .heart { display: inline-block; filter: saturate(1.5) brightness(.78) hue-rotate(-6deg); }

/* --------------------------------- Reveal (fade-in blur) --------------------------------- */
.reveal {
  opacity: 0; filter: blur(16px); transform: translateY(22px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; filter: none; transform: none; transition: none; }
}

/* --------------------------------- Utilities --------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ================================ Responsive ================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
}

/* English (and Spanish/Malay/Arabic) nav labels run longer than the
   original short Persian ones, so the full inline nav — 6 links plus the
   language switch, theme toggle and CTA button — only reliably fits at
   the container's own max width. Below that it collapses into the
   off-canvas menu so nothing wraps onto a second line. */
@media (max-width: 1280px) {
  .site-nav {
    position: fixed; inset-inline: 16px; top: 82px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); padding: 10px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-link { text-align: center; white-space: normal; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 72px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding-inline: 18px; }
  .btn { padding: 13px 22px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 20px; }
  .header-actions { gap: 6px; }
  .lang-toggle { padding: 0 8px; }
}

/* Live-pulse dot used in dashboard mockup illustrations */
.illus-pulse { animation: illusPulse 1.8s ease-in-out infinite; }
@keyframes illusPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .illus-pulse { animation: none; } }
