:root {
  --blue: #0758f7;
  --blue-bright: #1d74ff;
  --navy: #071a3d;
  --navy-soft: #102750;
  --ink: #10213e;
  --muted: #5f6e89;
  --paper: #f5f7fd;
  --white: #ffffff;
  --line: #dbe3f2;
  --signal: #ffd44a;
  --merchant: #d63a4a;
  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --shadow: 0 28px 80px rgba(11, 34, 82, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body[data-language="ar"] .lang-en,
body[data-language="en"] .lang-ar { display: none !important; }

body[data-language="en"] { font-family: Inter, "Segoe UI", Arial, sans-serif; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: var(--signal);
  color: var(--navy);
  font-weight: 800;
}

.skip-link:focus { top: 1rem; }

.shell { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 227, 242, .8);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand img,
.footer-brand img { border-radius: 1rem; box-shadow: 0 10px 28px rgba(7, 88, 247, .24); }

.brand span,
.footer-brand span { display: grid; line-height: 1.15; }
.brand strong,
.footer-brand strong { font-size: 1rem; }
.brand small,
.footer-brand small { margin-top: .2rem; color: var(--muted); font-size: .75rem; letter-spacing: .04em; }

nav { display: flex; align-items: center; gap: 1.4rem; }
nav a { color: #34425c; text-decoration: none; font-size: .95rem; font-weight: 700; }
nav a:hover { color: var(--blue); }

.language-toggle {
  min-width: 52px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle:hover { border-color: var(--blue); color: var(--blue); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.hero {
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 16%, rgba(42, 126, 255, .72), transparent 30%),
    radial-gradient(circle at 7% 90%, rgba(0, 184, 255, .18), transparent 28%),
    var(--navy);
}

.hero-grid {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: 4rem;
  padding-block: 5.25rem 4.75rem;
}

.app-statuses { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .48rem .85rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #dce8ff;
  font-size: .88rem;
  font-weight: 700;
}

.status-dot { width: .58rem; height: .58rem; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 212, 74, .13); }
.status-live .status-dot { flex-shrink: 0; background: #71e6ac; box-shadow: 0 0 0 5px rgba(113, 230, 172, .13); }

.eyebrow {
  margin: 1.7rem 0 .6rem;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow { color: #8ebaff; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.4rem, 6.6vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

[dir="ltr"] h1,
body[data-language="en"] h1 { letter-spacing: -.045em; }

.hero-lead { max-width: 650px; margin-bottom: 2rem; color: #cad8f1; font-size: 1.18rem; line-height: 1.9; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--signal); box-shadow: 0 14px 34px rgba(255, 212, 74, .2); }
.button-ghost { border-color: rgba(255, 255, 255, .24); color: var(--white); background: rgba(255, 255, 255, .08); }
.button-dark { color: var(--white); background: var(--navy); }

.hero-notes { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin: 2.2rem 0 0; padding: 0; color: #9fb2d3; list-style: none; font-size: .92rem; }
.hero-notes li::before { content: "✓"; margin-inline-end: .38rem; color: var(--signal); font-weight: 900; }

.hero-visual { min-width: 0; display: grid; justify-items: center; gap: 1.5rem; }
.phone-stage { width: 100%; position: relative; display: grid; place-items: center; isolation: isolate; }

.orbit { position: absolute; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; }
.orbit-two { width: 390px; height: 390px; border-style: dashed; transform: rotate(12deg); }

.phone-frame {
  width: min(278px, 72vw);
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 2.35rem;
  background: #071126;
  box-shadow: 0 42px 90px rgba(0, 0, 0, .42);
}

.phone-frame img { width: 100%; height: auto; border-radius: 1.8rem; }
.phone-speaker { width: 82px; height: 22px; position: absolute; top: 16px; left: 50%; z-index: 3; border-radius: 999px; background: #071126; transform: translateX(-50%); }

.hero-audience-cards {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  position: relative;
}

.audience-card {
  display: grid;
  align-content: start;
  gap: .35rem;
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 1.15rem;
  background: var(--navy-soft);
  text-align: center;
}

.audience-card > strong { color: var(--white); font-size: 1rem; }
.audience-card > span { color: #dce8ff; font-size: .85rem; }

.section { padding-block: 7.5rem; }
.section-heading { max-width: 790px; margin-bottom: 3.3rem; }
.section-heading.compact { max-width: 680px; }
.section-heading .eyebrow,
.trust-copy .eyebrow,
.contact-box .eyebrow { margin-top: 0; }

h2 { margin-bottom: 1.15rem; font-size: clamp(2.15rem, 4vw, 4.25rem); line-height: 1.12; letter-spacing: -.04em; }
h3 { margin-bottom: .7rem; font-size: 1.35rem; line-height: 1.35; }
.section-heading > p:not(.eyebrow), .trust-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step-card { min-height: 245px; padding: 1.65rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.step-card.featured { color: var(--white); border-color: var(--blue); background: var(--blue); transform: translateY(-1rem); box-shadow: 0 20px 52px rgba(7, 88, 247, .2); }
.step-card p { margin-bottom: 0; color: var(--muted); }
.step-card.featured p { color: #d8e6ff; }
.step-number { display: block; margin-bottom: 2.6rem; color: var(--blue); font-weight: 900; }
.featured .step-number { color: var(--signal); }

.apps-section { color: var(--white); background: #eaf0ff; }
.apps-section .section-heading { color: var(--ink); }
.apps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.app-panel { min-height: 500px; position: relative; overflow: hidden; display: flex; align-items: flex-end; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.customer-panel { background: linear-gradient(140deg, #0758f7 0%, #1d78ff 60%, #63a8ff 100%); }
.merchant-panel { justify-content: flex-end; color: var(--ink); background: var(--white); }
.app-panel-copy { position: relative; z-index: 2; width: 63%; padding: 2.2rem; }
.merchant-panel .app-panel-copy { width: 55%; }
.app-mark { width: 72px; margin-bottom: 2rem; border-radius: 1.3rem; overflow: hidden; box-shadow: 0 16px 35px rgba(0, 0, 0, .18); }
.app-label { margin-bottom: .4rem; color: rgba(255, 255, 255, .72); font-size: .83rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.merchant-panel .app-label { color: var(--merchant); }
.app-panel h3 { margin-bottom: .8rem; font-size: 2rem; }
.app-panel p { color: #dce7ff; }
.merchant-panel p { color: var(--muted); }
.availability { display: inline-flex; margin-top: 1rem; padding: .48rem .8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); font-size: .84rem; font-weight: 800; }
.customer-panel .app-panel-copy { width: 100%; max-width: 30rem; }
.app-downloads { display: grid; justify-items: start; gap: .85rem; margin-top: 1.4rem; }
.app-downloads .button { max-width: 100%; text-align: center; }
.app-downloads .availability { margin-top: 0; }
.app-pattern { position: absolute; inset-inline-end: -2rem; top: 50%; opacity: .12; font-size: 22rem; font-weight: 900; line-height: .7; transform: translateY(-50%) rotate(-8deg); }
.merchant-shot { width: 42%; position: absolute; inset-inline-start: 1.4rem; bottom: -7rem; padding: .45rem; border-radius: 1.8rem; background: var(--merchant); box-shadow: 0 24px 50px rgba(125, 25, 40, .2); transform: rotate(-3deg); }
.merchant-shot img { width: 100%; height: auto; border-radius: 1.4rem; }
.text-link { display: inline-block; margin-top: .8rem; color: var(--merchant); font-weight: 850; text-decoration: none; }

.trust-section { background: var(--white); }
.trust-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.trust-links { display: grid; border-top: 1px solid var(--line); }
.trust-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem .5rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.trust-links a:hover strong { color: var(--blue); }
.trust-links a span { display: grid; }
.trust-links strong { font-size: 1.03rem; }
.trust-links small { color: var(--muted); }
.trust-links b { color: var(--blue); font-size: 1.25rem; }

.contact-section { padding-top: 0; background: var(--white); }
.contact-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 3rem; border-radius: var(--radius-lg); color: var(--white); background: var(--navy); }
.contact-box h2 { max-width: 680px; margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.7rem); }
.contact-box p:not(.eyebrow) { max-width: 650px; margin-bottom: 0; color: #bdcae0; }
.contact-email { min-width: 295px; display: grid; gap: .15rem; padding: 1rem 1.2rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; background: rgba(255,255,255,.07); text-decoration: none; }
.contact-email span { color: #aebed8; font-size: .82rem; }
.contact-email strong { color: var(--signal); font-size: 1rem; }

footer { padding-block: 2rem; border-top: 1px solid var(--line); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.25rem; }
.footer-grid > p { grid-column: 1 / -1; margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 960px) {
  nav { display: none; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 1rem; padding-top: 4.5rem; }
  .hero-copy { position: relative; z-index: 4; }
  .hero-visual { margin-top: 2rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: 0; }
  .step-card.featured { transform: none; }
  .apps-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 1.25rem, 1160px); }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 44px; height: 44px; border-radius: .82rem; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .68rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.25rem); }
  .hero-grid { padding-block: 3.7rem 3rem; }
  .hero-lead { font-size: 1.03rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-notes { display: grid; }
  .hero-visual { gap: 1.25rem; }
  .phone-frame { width: 240px; }
  .orbit-one { width: 420px; height: 420px; }
  .orbit-two { width: 320px; height: 320px; }
  .audience-card { padding: .8rem .6rem; }
  .section { padding-block: 5rem; }
  .section-heading { margin-bottom: 2.2rem; }
  .app-panel { min-height: 540px; }
  .app-panel-copy, .merchant-panel .app-panel-copy { width: 100%; padding: 1.45rem; }
  .merchant-panel { align-items: flex-start; }
  .merchant-panel .app-panel-copy { padding-top: 2rem; }
  .merchant-shot { width: 48%; left: 50%; right: auto; bottom: -9rem; inset-inline-start: auto; transform: translateX(-50%) rotate(-3deg); }
  .contact-box { width: calc(100% - 1.25rem); padding: 1.5rem; }
  .contact-email { min-width: 0; width: 100%; overflow-wrap: anywhere; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .hero-audience-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
