/* =====================================================================
   inMARKET — marketing site
   Design system: navy + red brand, premium proptech, light theme with
   a dark gradient hero. Bilingual (EN/AR) with full RTL support.
   ===================================================================== */

:root {
  /* Brand palette */
  --ink-900: #07151f;
  --ink-800: #0a1b2e;
  --ink-700: #102537;
  --ink-600: #173550;
  --ink-500: #21496c;

  --accent: #e13a3e;
  --accent-600: #c52d33;
  --accent-400: #f0595d;
  --accent-soft: #fdecec;

  --gold: #e6a93c;
  --cream: #f7efe2;

  /* Neutrals */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f4f9;
  --surface-3: #e9eef5;
  --text: #0a1b2e;
  --muted: #51647a;
  --muted-2: #7286a0;
  --border: #e4e9f1;
  --border-strong: #d4dce8;

  /* Typography */
  --font-display: 'Montserrat', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Cairo', system-ui, -apple-system, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 27, 46, 0.05);
  --shadow-md: 0 14px 36px rgba(10, 27, 46, 0.09);
  --shadow-lg: 0 30px 70px rgba(10, 27, 46, 0.16);
  --shadow-glow: 0 18px 40px rgba(225, 58, 62, 0.32);

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[dir='rtl'] body {
  font-family: 'Cairo', var(--font-body);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] h4 {
  font-family: 'Cairo', var(--font-display);
  letter-spacing: 0;
}

p {
  margin: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid rgba(225, 58, 62, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ---------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  position: relative;
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section__head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(2.2rem, 5vw, 3.4rem);
}

.section__title {
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  margin-bottom: 0.85rem;
}

.section__lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(225, 58, 62, 0.18);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}

[dir='rtl'] .eyebrow {
  letter-spacing: 0;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  --btn-bg: var(--ink-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  --btn-bg: var(--accent);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  --btn-bg: var(--accent-600);
}

.btn--dark {
  --btn-bg: var(--ink-800);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--ink-800);
  background: var(--surface);
}

.btn--on-dark {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}

.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.16);
}

.btn--lg {
  min-height: 56px;
  padding: 0.95rem 2rem;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* App-store style button with stacked label */
.btn--store {
  text-align: start;
  padding-inline: 1.3rem;
}

.btn--store .btn__stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btn--store .btn__small {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.82;
  text-transform: uppercase;
}

.btn--store .btn__big {
  font-size: 1.02rem;
  font-weight: 800;
}

.btn--disabled {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: rgba(255, 255, 255, 0.6);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
  box-shadow: none;
}

.btn--disabled:hover {
  transform: none;
}

.store-btns--light .btn--disabled {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--muted-2);
  border-color: var(--border-strong);
}

/* ---------------------------------------------------------------- Nav */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(10, 27, 46, 0.06);
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-end: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.25s var(--ease);
}

.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.nav__brand b {
  font-weight: 800;
}
.nav__brand .nav__brand-accent {
  color: var(--accent-400);
  transition: color 0.25s var(--ease);
}

.nav--scrolled .nav__brand {
  color: var(--text);
}
.nav--scrolled .nav__brand .nav__brand-accent {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav--scrolled .nav__link {
  color: var(--muted);
}

.nav--scrolled .nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 0.5rem 0.95rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.lang-toggle svg {
  width: 16px;
  height: 16px;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav--scrolled .lang-toggle {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.nav--scrolled .lang-toggle:hover {
  background: var(--surface-2);
}

.nav__cta {
  display: inline-flex;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav__toggle span {
  position: relative;
}
.nav__toggle span::before {
  position: absolute;
  inset-block-start: -6px;
  inset-inline-start: 0;
}
.nav__toggle span::after {
  position: absolute;
  inset-block-start: 6px;
  inset-inline-start: 0;
}

.nav--scrolled .nav__toggle {
  border-color: var(--border-strong);
  background: var(--surface);
}
.nav--scrolled .nav__toggle span,
.nav--scrolled .nav__toggle span::before,
.nav--scrolled .nav__toggle span::after {
  background: var(--text);
}

/* Mobile menu panel */
.nav__menu {
  position: fixed;
  inset-block-start: var(--nav-h);
  inset-inline: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem var(--gutter) 1.4rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav__menu.is-open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.nav__menu a {
  padding: 0.85rem 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.nav__menu .btn {
  margin-top: 0.8rem;
}

body.menu-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative;
  color: #fff;
  padding-block: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem)) clamp(3rem, 8vw, 6rem);
  background: radial-gradient(120% 120% at 85% 0%, #1c3e5d 0%, var(--ink-800) 42%, var(--ink-900) 100%);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset-block-start: -20%;
  inset-inline-end: -10%;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgba(225, 58, 62, 0.42) 0%, rgba(225, 58, 62, 0) 62%);
  filter: blur(6px);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset-block-end: -25%;
  inset-inline-start: -15%;
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle, rgba(33, 73, 108, 0.6) 0%, rgba(33, 73, 108, 0) 65%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 940px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero .eyebrow {
  color: #fff;
  background: rgba(225, 58, 62, 0.16);
  border-color: rgba(225, 58, 62, 0.4);
}

.hero__title {
  font-size: clamp(2rem, 5.6vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  overflow-wrap: break-word;
}

.hero__title .accent {
  background: linear-gradient(120deg, var(--accent-400), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: rgba(238, 244, 250, 0.82);
  max-width: 36rem;
  margin-bottom: 1.9rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.8rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.4rem;
  color: rgba(238, 244, 250, 0.72);
  font-size: 0.9rem;
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-400);
  flex: none;
}

/* ---------------------------------------------------------------- Phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 8% 12%;
  background: radial-gradient(circle, rgba(225, 58, 62, 0.34), transparent 70%);
  filter: blur(38px);
  z-index: -1;
}

.phone {
  width: min(310px, 78vw);
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #1e3851, #0c1d30);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.phone__notch {
  position: absolute;
  inset-block-start: 20px;
  inset-inline: 0;
  margin-inline: auto;
  width: 110px;
  height: 26px;
  background: #0a0f17;
  border-radius: var(--r-pill);
  z-index: 3;
}

.phone__screen {
  border-radius: 32px;
  background: linear-gradient(180deg, #0f2236 0%, #0b1928 100%);
  padding: 1.15rem 1rem 1.2rem;
  overflow: hidden;
  position: relative;
  min-height: 540px;
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  padding: 0.1rem 0.3rem 0.9rem;
}

.app-status__dots {
  display: inline-flex;
  gap: 4px;
}
.app-status__dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.app-hello {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.app-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.9rem;
}

.app-wallet {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  border-radius: 20px;
  padding: 1rem 1.1rem 1.05rem;
  color: #fff;
  box-shadow: 0 18px 30px rgba(225, 58, 62, 0.35);
  position: relative;
  overflow: hidden;
}

.app-wallet::after {
  content: '';
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
}

.app-wallet__label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}
.app-wallet__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  margin-top: 0.2rem;
}
.app-wallet__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
}
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.22);
  padding: 0.22rem 0.55rem;
  border-radius: var(--r-pill);
}

.app-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  margin: 1rem 0.2rem 0.55rem;
}

.app-calc {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.85rem 0.95rem;
}
.app-calc__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
  padding-block: 0.28rem;
}
.app-calc__line b {
  color: #fff;
  font-weight: 700;
}
.app-calc__total {
  margin-top: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-calc__total b {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}
.app-calc__total span {
  color: var(--accent-400);
  font-size: 0.72rem;
  font-weight: 700;
}

.app-deal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  margin-top: 0.5rem;
}
.app-deal__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex: none;
}
.app-deal__icon svg {
  width: 16px;
  height: 16px;
}
.app-deal__body {
  flex: 1;
  min-width: 0;
}
.app-deal__title {
  font-size: 0.78rem;
  color: #fff;
  font-weight: 600;
}
.app-deal__sub {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.5);
}
.app-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-pill);
}
.app-badge--ok {
  background: rgba(46, 196, 132, 0.2);
  color: #58e0a6;
}
.app-badge--wait {
  background: rgba(230, 169, 60, 0.2);
  color: var(--gold);
}

/* Floating accent cards beside the phone */
.hero__chip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 16px;
  padding: 0.7rem 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.82rem;
  z-index: 4;
  animation: floaty 6s ease-in-out infinite;
}
.hero__chip--a {
  inset-block-start: 16%;
  inset-inline-start: -4%;
  animation-delay: 1.2s;
}
.hero__chip--b {
  inset-block-end: 13%;
  inset-inline-end: -3%;
  animation-delay: 2.4s;
}
.hero__chip-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.hero__chip-ic svg {
  width: 18px;
  height: 18px;
}
.hero__chip small {
  display: block;
  font-weight: 600;
  font-size: 0.68rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero__chip {
    display: none;
  }
}

/* ---------------------------------------------------------------- Trust strip */
.trust {
  background: var(--ink-800);
  color: rgba(255, 255, 255, 0.9);
  padding-block: 1.4rem;
}

.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem clamp(1.2rem, 4vw, 3rem);
  text-align: center;
}

.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.trust__item svg {
  width: 22px;
  height: 22px;
  color: var(--accent-400);
  flex: none;
}

.trust__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 640px) {
  .trust__divider {
    display: none;
  }
}

/* ---------------------------------------------------------------- Features (bento) */
.features__grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature--wide {
    grid-column: span 2;
  }
}

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    border-color 0.22s var(--ease);
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid rgba(225, 58, 62, 0.16);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature__title {
  font-size: 1.16rem;
  margin-bottom: 0.45rem;
}

.feature__text {
  color: var(--muted);
  font-size: 0.96rem;
}

.feature--accent {
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  border-color: transparent;
  color: #fff;
}
.feature--accent .feature__text {
  color: rgba(238, 244, 250, 0.78);
}
.feature--accent .feature__icon {
  background: rgba(225, 58, 62, 0.2);
  border-color: rgba(225, 58, 62, 0.4);
  color: var(--accent-400);
}
.feature--accent::after {
  content: '';
  position: absolute;
  inset-block-start: -30%;
  inset-inline-end: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(225, 58, 62, 0.32), transparent 70%);
}

/* ---------------------------------------------------------------- How it works */
.how {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.steps {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--ink-800);
  color: #fff;
  margin-bottom: 1rem;
}

.step:nth-child(2) .step__num {
  background: var(--ink-600);
}
.step:nth-child(3) .step__num {
  background: var(--ink-500);
}
.step:nth-child(4) .step__num {
  background: var(--accent);
}

.step__title {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.step__text {
  color: var(--muted);
  font-size: 0.93rem;
}

.step__arrow {
  display: none;
}

@media (min-width: 760px) {
  .step__arrow {
    display: grid;
    place-items: center;
    position: absolute;
    inset-block-start: 2.1rem;
    inset-inline-end: -0.85rem;
    width: 24px;
    height: 24px;
    color: var(--border-strong);
    background: var(--bg);
    z-index: 2;
  }
  .step:last-child .step__arrow {
    display: none;
  }
  [dir='rtl'] .step__arrow {
    transform: scaleX(-1);
  }
}

/* ---------------------------------------------------------------- CTA band */
.cta__card {
  position: relative;
  background: radial-gradient(120% 140% at 100% 0%, #1f4263 0%, var(--ink-800) 45%, var(--ink-900) 100%);
  border-radius: var(--r-xl);
  padding: clamp(2.2rem, 6vw, 3.6rem);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

@media (min-width: 860px) {
  .cta__card {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.cta__card::before {
  content: '';
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(225, 58, 62, 0.4), transparent 65%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.7rem;
}

.cta__text {
  color: rgba(238, 244, 250, 0.82);
  font-size: 1.05rem;
  max-width: 34rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .cta__actions {
    align-items: flex-end;
  }
  [dir='rtl'] .cta__actions {
    align-items: flex-start;
  }
}

.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------------------------------------------------------------- Contact */
.contact__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 0.92fr 1.08fr;
  }
}

.contact__info .section__title {
  text-align: start;
}

.contact__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-block: 0.8rem 1.6rem;
}

.contact__list {
  display: grid;
  gap: 0.9rem;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 600;
}

.contact__ic {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  flex: none;
}

.contact__ic svg {
  width: 20px;
  height: 20px;
}

.contact__list small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 540px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 0.97rem;
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(225, 58, 62, 0.14);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.form-status--success {
  background: #e7f7ee;
  color: #1c7a48;
  border: 1px solid #b9e6cc;
}

.form-status--error {
  background: var(--accent-soft);
  color: var(--accent-600);
  border: 1px solid #f6c9cb;
}

/* ---------------------------------------------------------------- Footer */
.footer {
  background: var(--ink-900);
  color: rgba(238, 244, 250, 0.7);
  padding-block: clamp(2.6rem, 6vw, 3.6rem) 1.8rem;
}

.footer__top {
  display: grid;
  gap: 1.8rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 720px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.footer__logo {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fff;
}

.footer__tag {
  max-width: 24rem;
  font-size: 0.95rem;
}

.footer__col h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

[dir='rtl'] .footer__col h4 {
  letter-spacing: 0;
}

.footer__col a,
.footer__col span {
  display: block;
  padding-block: 0.32rem;
  color: rgba(238, 244, 250, 0.7);
  font-size: 0.93rem;
  transition: color 0.18s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  gap: 0.6rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.footer__social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer__social svg {
  width: 19px;
  height: 19px;
}

/* ---------------------------------------------------------------- Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay='1'] {
  transition-delay: 0.08s;
}
.reveal[data-delay='2'] {
  transition-delay: 0.16s;
}
.reveal[data-delay='3'] {
  transition-delay: 0.24s;
}
.reveal[data-delay='4'] {
  transition-delay: 0.32s;
}

/* ---------------------------------------------------------------- Signup redirect */
.redirect-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: radial-gradient(120% 120% at 85% 0%, #1c3e5d 0%, var(--ink-800) 42%, var(--ink-900) 100%);
  color: #fff;
  text-align: center;
}

.redirect-card {
  max-width: 420px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.4rem 2rem;
  backdrop-filter: blur(10px);
}

.redirect-card img {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.redirect-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.redirect-card p {
  color: rgba(238, 244, 250, 0.75);
  margin: 0.4rem 0 0;
}

.redirect-card .ref-pill {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  background: rgba(225, 58, 62, 0.18);
  border: 1px solid rgba(225, 58, 62, 0.4);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent-400);
  border-radius: 50%;
  margin: 1.4rem auto 0;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- Responsive nav */
@media (max-width: 860px) {
  .nav__links,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn,
  .store-btns,
  .store-btns .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------- Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- Brand accent (CSP-safe, replaces inline style) */
.brand-accent {
  color: var(--accent-400);
}

/* ---------------------------------------------------------------- Referral / signup page (moved from inline <style> for CSP) */
.ref-box {
  margin: 18px 0;
}
.ref-box__label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.ref-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
}
.ref-code code {
  font-family: 'Inter', ui-monospace, monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}
.ref-copy {
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
  background: #e13a3e;
  color: #fff;
}
.ref-hint {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.store-cta {
  display: inline-block;
  margin-top: 8px;
  background: #fff;
  color: #0a1b2e;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px 22px;
}
.muted {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}
[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- FAQ (native <details>, no JS) */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 22px;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
[dir='rtl'] .faq__item summary {
  font-family: 'Cairo', var(--font-display);
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after {
  content: '\2212';
}
.faq__answer {
  padding: 0 0 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------------------------------------------------------------- Legal / About pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 88px;
}
.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.legal__updated {
  color: var(--muted-2);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
}
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.8;
}
.legal p {
  margin-bottom: 14px;
}
.legal ul {
  padding-inline-start: 1.2rem;
  margin: 0 0 14px;
}
.legal li {
  margin-bottom: 6px;
}
.legal a {
  color: var(--accent-600);
}
.legal__back {
  display: inline-block;
  margin-top: 28px;
  font-weight: 600;
  color: var(--accent-600);
  text-decoration: none;
}

/* ---------------------------------------------------------------- Links page (/links/) */
.links-page {
  min-height: 100dvh;
  position: relative;
  color: #fff;
  background: var(--ink-800);
  overflow-x: hidden;
}

.links-page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225, 58, 62, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(33, 73, 108, 0.45), transparent 50%),
    linear-gradient(165deg, var(--ink-900) 0%, var(--ink-800) 45%, var(--ink-700) 100%);
  pointer-events: none;
}

.links-page__top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 20px var(--gutter) 0;
  max-width: 480px;
  margin: 0 auto;
}

.links-page__lang {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}
.links-page__lang:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.links-page__main {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: 28px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
}

.links-page__brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.links-page__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.links-page__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
}
.links-page__title-accent {
  color: var(--accent);
}

.links-page__tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 28ch;
}

.links-page__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.links-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
}
.links-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.links-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.links-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ink-800);
  color: #fff;
}
.links-card__icon svg {
  width: 22px;
  height: 22px;
}
.links-card__icon--ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
}
.links-card__icon--fb {
  background: #1877f2;
}
.links-card__icon--li {
  background: #0a66c2;
}

.links-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.links-card__label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.links-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.links-card__chev {
  flex-shrink: 0;
  color: var(--muted-2);
  width: 20px;
  height: 20px;
}
.links-card__chev svg {
  width: 20px;
  height: 20px;
}
[dir='rtl'] .links-card__chev {
  transform: scaleX(-1);
}

.links-page__home {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px;
  transition: color 0.15s var(--ease);
}
.links-page__home:hover {
  color: #fff;
}

[dir='rtl'] .links-page {
  font-family: 'Cairo', var(--font-body);
}
[dir='rtl'] .links-page__title,
[dir='rtl'] .links-card__title {
  font-family: 'Cairo', var(--font-display);
  letter-spacing: 0;
}
