/* ═══════════════════════════════════════════════════════════════
   Perfect Tower — Landing Page CSS
   Premium dark navy + gold + blue/violet SaaS design
   RTL-first, Cairo font, full responsive
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
  /* Brand palette */
  --navy:   #061426;
  --navy2:  #0a1b33;
  --navy3:  #102a4d;
  --gold:   #d7a93f;
  --gold2:  #ffe39a;
  --blue:   #315cff;
  --violet: #7557ff;
  --cyan:   #6ce7ff;
  --green:  #13c27a;
  --orange: #f6a500;
  --red:    #ff5368;

  /* UI colours */
  --text:   #101827;
  --muted:  #6d7890;
  --soft:   #f4f7fd;
  --line:   #e6edf8;
  --white:  #fff;

  /* Elevation / shape */
  --shadow:  0 28px 90px rgba(6,20,38,.13);
  --radius:  28px;

  /* Footer */
  --footer-bg: var(--navy);

  /* Gradients */
  --grad-blue:   linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --grad-gold:   linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  --grad-navy:   linear-gradient(160deg, var(--navy) 0%, var(--navy3) 100%);

  /* Spacing */
  --section-py: 96px;
  --container:  1200px;
  --gap:        32px;
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
a:hover { color: var(--gold); }

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
}

p { color: rgba(255,255,255,.75); }

ul { list-style: none; }

/* ── Container ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Noise Texture Overlay ───────────────────────────────────── */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* ── Ambient Orbs ────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: .18;
}

.orb-1 {
  width: 800px;
  height: 800px;
  background: var(--blue);
  top: -300px;
  right: -200px;
  animation: float 18s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--violet);
  bottom: 20%;
  left: -150px;
  animation: float 24s ease-in-out infinite reverse;
}

/* ── Top Strip ───────────────────────────────────────────────── */
.top-strip {
  position: relative;
  z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  padding: 9px 16px;
  letter-spacing: .02em;
}

.top-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top-strip span {
  opacity: .8;
  background: rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .78rem;
}

.top-strip strong { font-weight: 800; }

/* ── Header / Navbar ─────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.header.scrolled {
  background: rgba(6,20,38,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,.25);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 24px;
}

/* ── Brand ───────────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--grad-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(49,92,255,.4);
  flex-shrink: 0;
}

.tower-icon {
  font-size: .75rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: .95rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .06em;
}

.brand-text small {
  font-size: .7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Menu ────────────────────────────────────────────────────── */
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}

.menu a {
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: 10px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.menu a:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

/* ── Nav Actions ─────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Language Switcher ───────────────────────────────────────── */
.lang-switcher {
  position: relative;
  z-index: 200;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.85);
  padding: 7px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  font-family: inherit;
  transition: background .18s, border-color .18s;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  color: var(--white);
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-code { font-size: .78rem; letter-spacing: .04em; }

.lang-drop {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  background: rgba(10,27,51,.97);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 6px;
  min-width: 130px;
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
}

.lang-switcher:hover .lang-drop,
.lang-switcher.open .lang-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(49,92,255,.18);
  color: var(--white);
}

.lang-option.active { color: var(--gold); }

/* Mobile: lang switcher in menu */
@media (max-width: 1000px) {
  .lang-drop {
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: all .22s;
  white-space: nowrap;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(49,92,255,.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(49,92,255,.5);
  color: var(--white);
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(215,169,63,.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(215,169,63,.5);
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.25);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(215,169,63,.06);
}

/* Billing cycle toggle active state */
.landing-cycle-btn.active {
  background: var(--blue, #315cff);
  color: #fff;
  border-color: var(--blue, #315cff);
}
.landing-cycle-btn.active:hover {
  background: var(--blue, #315cff);
  color: #fff;
  border-color: var(--blue, #315cff);
  opacity: .9;
}

.btn-glass {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-xl {
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: 18px;
}

/* ── Hamburger ───────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  transition: background .2s;
}

.hamburger:hover { background: rgba(255,255,255,.13); }

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Sections ────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-py) 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding-top: 60px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 600px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(49,92,255,.12);
  border: 1px solid rgba(49,92,255,.3);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 24px;
  letter-spacing: .04em;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(19,194,122,.6);
  animation: pulseAnim 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(19,194,122,.6); }
  70% { box-shadow: 0 0 0 8px rgba(19,194,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(19,194,122,0); }
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-content h1 span {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust strong {
  font-size: .92rem;
  font-weight: 800;
  color: var(--white);
}

.hero-trust span {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ── Hero Visual ─────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  z-index: 2;
}

.device-wrap {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Admin Window — dashboard, slightly recessed behind phone ── */
.admin-window {
  background: rgba(10,27,51,.78);
  border: 1px solid rgba(49,92,255,.2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  /* very subtle depth blur — just enough to feel behind the phone */
  filter: blur(.4px) brightness(.94);
  box-shadow: 0 28px 90px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.04);
  animation: deviceFloat 8s ease-in-out infinite;
  will-change: transform;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; }
.window-bar span:nth-child(1) { background: #ff5368; }
.window-bar span:nth-child(2) { background: #f6a500; }
.window-bar span:nth-child(3) { background: #13c27a; }
.window-bar small { font-size: .72rem; color: rgba(255,255,255,.35); margin-inline-start: 8px; }

.admin-layout {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 220px;
}
.admin-layout aside {
  background: rgba(255,255,255,.03);
  border-inline-end: 1px solid rgba(255,255,255,.05);
  padding: 14px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.logo-dot {
  width: 24px; height: 24px;
  background: var(--grad-blue);
  border-radius: 7px; margin-bottom: 8px;
}
.admin-layout aside i {
  display: block; width: 20px; height: 4px;
  background: rgba(255,255,255,.1); border-radius: 3px;
}
.admin-layout aside i:nth-child(2) { background: rgba(49,92,255,.6); }
.admin-content { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

/* ── KPIs ────────────────────────────────────────────────────── */
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi {
  background: rgba(255,255,255,.05); border-radius: 10px;
  padding: 10px 10px 8px; display: flex; flex-direction: column; gap: 3px;
}
.kpi span { font-size: .65rem; color: rgba(255,255,255,.45); font-weight: 600; }
.kpi b    { font-size: .95rem; font-weight: 800; color: var(--white); }
.kpi b.green { color: var(--green); }
.kpi b.gold  { color: var(--gold); }

/* ── Chart Card ──────────────────────────────────────────────── */
.chart-card {
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 10px;
  display: flex; align-items: flex-end; gap: 10px; min-height: 68px; overflow: hidden;
}
.line-chart {
  flex: 1; height: 46px;
  background: linear-gradient(135deg, rgba(49,92,255,.28) 0%, rgba(117,87,255,.14) 100%);
  border-radius: 8px; position: relative;
}
.line-chart::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(49,92,255,.18), transparent);
  border-radius: 8px;
}
.donut {
  width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0% 62%, var(--violet) 62% 80%, rgba(255,255,255,.1) 80% 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.donut::after { content: ''; width: 26px; height: 26px; border-radius: 50%; background: var(--navy2); }

/* ── Table Card ──────────────────────────────────────────────── */
.table-card {
  background: rgba(255,255,255,.04); border-radius: 10px; padding: 8px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.table-card > div { height: 6px; background: rgba(255,255,255,.08); border-radius: 3px; }
.table-card > div:nth-child(1) { background: rgba(49,92,255,.4); }
.table-card > div:nth-child(2) { background: rgba(255,255,255,.12); }
.table-card > div:nth-child(3) { background: rgba(19,194,122,.3); }

/* ══════════════════════════════════════════════════════════════
   PHONE MOCKUP — visual focus, raised 24px from previous
   ══════════════════════════════════════════════════════════════ */
.phone-mockup {
  position: absolute;
  bottom: -8px;
  inset-inline-start: -8px;
  z-index: 10;
  /* flex column so panel flows directly below phone frame — same animation unit */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: phoneLevitate 7s ease-in-out infinite;
  will-change: transform;
}

/* Soft ambient halo — tight to phone, -15% vs previous */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 240px;
  background: radial-gradient(ellipse at 50% 38%,
    rgba(99,56,255,.19) 0%,
    rgba(49,92,255,.05) 58%,
    transparent 78%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Phone float: subtle 8px — never distracting */
@keyframes phoneLevitate {
  0%,100% { transform: translateY(0px) rotate(-1.5deg); }
  50%      { transform: translateY(-8px) rotate(-1.5deg); }
}

/* ── Phone Frame — premium device quality ───────────────────── */
.phone-frame {
  width: 196px;
  background: #080810;
  border-radius: 42px;
  /* Dual-border: outer edge dark, inner ring semi-transparent bright */
  box-shadow:
    /* outer edge for depth */
    0 0 0 1px rgba(0,0,0,.95),
    /* metallic ring */
    0 0 0 2.5px rgba(255,255,255,.17),
    /* main shadow */
    0 36px 90px rgba(0,0,0,.72),
    /* purple screen spill — reduced 15% */
    0 10px 36px rgba(99,56,255,.19),
    /* far ambient */
    0 60px 120px rgba(49,92,255,.1);
  padding: 10px 8px 14px;
  position: relative;
  z-index: 6;   /* above panel (z-index: 3) — phone overlaps panel top */
}

/* Top specular highlight — simulates glass edge */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 12px; right: 12px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,.28) 30%,
    rgba(255,255,255,.32) 50%,
    rgba(255,255,255,.28) 70%,
    transparent 100%);
  border-radius: 1px;
  z-index: 5;
}
/* Volume buttons — left physical side */
.phone-frame::after {
  content: '';
  position: absolute;
  top: 50px; inset-inline-start: -3px;
  width: 2.5px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,.2), rgba(255,255,255,.08));
  border-radius: 2px;
  box-shadow: 0 46px 0 rgba(255,255,255,.13);
}

/* ── Dynamic Island ─────────────────────────────────────────── */
.phone-notch {
  width: 76px; height: 20px;
  background: #080810;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 6px;
  position: relative; z-index: 5;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.05);
}

/* ── Screen ─────────────────────────────────────────────────── */
.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/18;
  background: #16083a;
  position: relative;
  z-index: 4;
  /* inner edge shadow for depth */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}
.phone-screen img {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
/* Screen glass reflection — diagonal highlight strip */
.phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.06) 0%,
    rgba(255,255,255,.02) 18%,
    transparent 40%
  );
  border-radius: 28px;
  pointer-events: none;
  z-index: 5;
}

/* ── Home Indicator ─────────────────────────────────────────── */
.phone-home-bar {
  width: 56px; height: 3.5px;
  background: rgba(255,255,255,.18);
  border-radius: 3px;
  margin: 7px auto 0;
}

/* ══════════════════════════════════════════════════════════════
   GLASS BRIDGE
   12px frosted slot between phone frame (z:6) and download panel (z:3).
   Sits at exactly z:4 — above panel, below phone — creating the
   "panel emerging through a glass slot in the phone" illusion.
   ══════════════════════════════════════════════════════════════ */
.phone-bridge {
  width: 52px;
  height: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  /* frosted glass fill — very low opacity */
  background: linear-gradient(to bottom,
    rgba(255,255,255,.055) 0%,
    rgba(255,255,255,.018) 100%);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  /* side and bottom borders only — top is flush against phone frame */
  border: 1px solid rgba(255,255,255,.09);
  border-top: none;
  /* gently curves toward the panel */
  border-radius: 0 0 10px 10px;
  /* soft purple edge glow at the bottom (the "slot opening") */
  box-shadow:
    0 4px 14px rgba(99,56,255,.11),
    inset 0 -1px 0 rgba(117,87,255,.12);
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD PANEL
   Flex child of .phone-mockup — moves with the phone as one unit.
   margin-top: -(14px phone overlap + 12px bridge height) = -26px
   so the panel tucks behind both the phone frame and the bridge.
   ══════════════════════════════════════════════════════════════ */
.phone-badges {
  /* in-flow flex child — NOT absolutely positioned */
  width: 222px;
  background: rgba(5,9,22,.84);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  /* top border hidden behind phone frame; bottom fully rounded */
  border: 1px solid rgba(255,255,255,.12);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 12px 16px 16px;
  /* pull up 26px = 14px (phone overlap) + 12px (bridge height)
     panel tucks behind both phone frame and glass bridge */
  margin-top: -26px;
  /* padding-top keeps visible content below the overlap zone */
  padding-top: 34px;
  box-shadow:
    0 20px 56px rgba(0,0,0,.55),
    0 8px 24px rgba(99,56,255,.12),
    0 2px 0 rgba(255,255,255,.04) inset;
  /* lower z-index so phone frame renders on top */
  position: relative;
  z-index: 3;
}
/* Liquid bridge — soft radial glow that straddles the phone/panel seam.
   Bleeds 22px upward into the phone frame, 16px into the panel.
   The eye never sees it consciously; the brain reads phone + panel as one object. */
.phone-badges::before {
  content: '';
  position: absolute;
  /* sits at bridge center — 26px above panel top = where panel first becomes visible */
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 32px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(117,87,255,.15) 0%,
    rgba(99,56,255,.07) 45%,
    transparent 75%);
  border-radius: 50%;
  filter: blur(6px);
  pointer-events: none;
  z-index: 7;               /* above phone frame (6) so glow shows on both */
}
.phone-badges-label {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-align: center;
  letter-spacing: .06em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.phone-badges-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.phone-badges-row a { display: block; transition: transform .18s, filter .18s; }
.phone-badges-row a:hover { transform: scale(1.05); filter: brightness(1.1); }
.phone-badges-row img { width: 96px; height: auto; border-radius: 7px; display: block; }

/* ══════════════════════════════════════════════════════════════
   FLOATING CARDS — 3 cards, distributed top/mid/bottom
   ══════════════════════════════════════════════════════════════ */
.floating-card {
  position: absolute;
  background: rgba(7,12,30,.82);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
  will-change: transform;
  /* top edge highlight for glass feel */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.fc-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.fc-icon-green  { background: rgba(19,194,122,.13);  box-shadow: 0 0 0 1px rgba(19,194,122,.2); }
.fc-icon-gold   { background: rgba(246,165,0,.13);   box-shadow: 0 0 0 1px rgba(246,165,0,.2); }
.fc-icon-purple { background: rgba(99,56,255,.17);   box-shadow: 0 0 0 1px rgba(99,56,255,.26); }
.fc-icon-blue   { background: rgba(49,92,255,.13);   box-shadow: 0 0 0 1px rgba(49,92,255,.2); }

.fc-body { display: flex; flex-direction: column; gap: 2px; }
.fc-body small  { font-size: .62rem; color: rgba(255,255,255,.46); font-weight: 600; line-height: 1.2; }
.fc-body strong { font-size: .84rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.fc-body strong.green { color: var(--green); }

/* Card 1: صندوق المبنى — top, right side, slightly outside dashboard */
.floating-card.revenue {
  top: -14px;
  inset-inline-end: -14px;
  z-index: 6;
  min-width: 148px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 8px 28px rgba(0,0,0,.38),
    0 0 0 1px rgba(19,194,122,.06);
}

/* Card 2: نسبة التحصيل — mid-left, in front of phone, 30px from heading */
.floating-card.fc-collection {
  top: 26%;
  inset-inline-start: -44px;
  z-index: 14;
  min-width: 138px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 12px 36px rgba(0,0,0,.48),
    0 0 0 1px rgba(99,56,255,.09);
}

/* Card 3: طلب صيانة — attached near phone bottom, inside dashboard */
.floating-card.fc-maintenance {
  bottom: 40px;
  inset-inline-end: 16px;
  z-index: 5;
  min-width: 142px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 8px 24px rgba(0,0,0,.35),
    0 0 0 1px rgba(49,92,255,.08);
}

/* ── Subtle card float animations — 2–3px only, never distracting */
@keyframes fcFloat1 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-3px)} }
@keyframes fcFloat2 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-2px)} }
@keyframes fcFloat3 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-3px)} }

.fc-anim-1 { animation: fcFloat1 7s   0s    ease-in-out infinite; }
.fc-anim-2 { animation: fcFloat2 8.4s 1.6s  ease-in-out infinite; }
.fc-anim-3 { animation: fcFloat3 6.6s 0.8s  ease-in-out infinite; }

/* ── Logos Strip ─────────────────────────────────────────────── */
.logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.logos span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.logos b {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 4px 14px;
  transition: all .2s;
}

.logos b:hover {
  color: var(--white);
  background: rgba(49,92,255,.12);
  border-color: rgba(49,92,255,.3);
}

/* ── Section Head ────────────────────────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-head p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
}

/* ── Section Number ──────────────────────────────────────────── */
.section-number {
  display: inline-block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .15em;
  color: var(--blue);
  background: rgba(49,92,255,.1);
  border: 1px solid rgba(49,92,255,.25);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ── Eyebrow ─────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

/* ── Glass Card ──────────────────────────────────────────────── */
.glass-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(49,92,255,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}

.glass-card:hover {
  border-color: rgba(49,92,255,.3);
  background: rgba(255,255,255,.06);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.glass-card:hover::before { opacity: 1; }

.glass-card i {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 16px;
  font-style: normal;
}

.glass-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.glass-card p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

/* ── Problem Grid ────────────────────────────────────────────── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

/* ── Split Layout ────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse {
  direction: ltr;
}

[dir="rtl"] .split.reverse {
  direction: rtl;
}

.split h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.split p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ── Checks ──────────────────────────────────────────────────── */
.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checks span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}

.checks span::before {
  content: '';
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: rgba(19,194,122,.15);
  border: 1.5px solid rgba(19,194,122,.4);
  border-radius: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,7 5,10 10,3' fill='none' stroke='%2313c27a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── Analytics Card ──────────────────────────────────────────── */
.analytics-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.analytics-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.analytics-top strong {
  font-size: .95rem;
  font-weight: 800;
  color: var(--white);
}

.analytics-top span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(19,194,122,.12);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ── Metrics ─────────────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.metrics b {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
}

.metrics b.green { color: var(--green); }
.metrics b.gold  { color: var(--gold); }

.metrics small {
  font-size: .7rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Bars ────────────────────────────────────────────────────── */
.bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bars span {
  display: block;
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.bars span::after {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--w, 50%);
  background: var(--grad-blue);
  border-radius: 8px;
  transition: width .8s ease;
}

/* ── Modules Grid ────────────────────────────────────────────── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(333px, 1fr));
  gap: var(--gap);
}

/* ── Module Card ─────────────────────────────────────────────── */
.module-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 28px;
  transition: all .3s;
  cursor: default;
}

.module-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(49,92,255,.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 50px rgba(49,92,255,.15);
}

.module-card > span {
  display: block;
  font-size: 2rem;
  margin-bottom: 14px;
}

.module-card h3 {
  font-size: .98rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.module-card p {
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49,92,255,.4), transparent);
}

/* ── Timeline Item ───────────────────────────────────────────── */
.timeline-item {
  position: relative;
  padding-top: 56px;
}

.timeline-item b {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 48px;
  height: 48px;
  background: var(--grad-blue);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 900;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(49,92,255,.4);
}

.timeline-item h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}

.timeline-item p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

/* ── Finance Visual ──────────────────────────────────────────── */
.finance-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-data-label,
.pricing-helper {
  display: inline-flex;
  width: fit-content;
  color: var(--gold);
  background: rgba(215,169,63,.1);
  border: 1px solid rgba(215,169,63,.24);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .82rem;
  font-weight: 800;
}

.pricing-helper {
  margin-top: 12px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09);
}

/* ── Fund Card ───────────────────────────────────────────────── */
.fund-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 20px 24px;
  transition: all .3s;
}

.fund-card:hover {
  border-color: rgba(215,169,63,.3);
  background: rgba(215,169,63,.05);
}

.fund-card small {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.fund-card strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
}

.fund-card.big strong {
  font-size: 2rem;
}

.fund-stats {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.fund-stats span {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
}

/* ── Ops Board ───────────────────────────────────────────────── */
.ops-board {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ── Ops Row ─────────────────────────────────────────────────── */
.ops-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .2s;
}

.ops-row:last-child { border-bottom: none; }

.ops-row:hover { background: rgba(255,255,255,.04); }

.ops-row span {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

.ops-row b {
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.6);
}

.ops-row b.green {
  color: var(--green);
  background: rgba(19,194,122,.12);
}

.ops-row b.gold {
  color: var(--gold);
  background: rgba(215,169,63,.1);
}

/* ── Pricing Grid ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  align-items: start;
}

/* ── Price Card ──────────────────────────────────────────────── */
.price-card {
  position: relative;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .3s;
  overflow: hidden;
}

.price-card::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49,92,255,.2), transparent 70%);
  top: var(--my, 50%);
  left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}

.price-card:hover::after { opacity: 1; }

.price-card:hover {
  border-color: rgba(49,92,255,.3);
  transform: translateY(-6px);
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}

.price-card.featured {
  background: linear-gradient(160deg, rgba(49,92,255,.15) 0%, rgba(117,87,255,.1) 100%);
  border-color: rgba(49,92,255,.4);
  box-shadow: 0 20px 70px rgba(49,92,255,.2);
}

.price-card.featured:hover {
  border-color: rgba(49,92,255,.6);
  box-shadow: 0 30px 90px rgba(49,92,255,.3);
}

.price-card em {
  display: inline-block;
  font-style: normal;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(215,169,63,.12);
  border: 1px solid rgba(215,169,63,.25);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 16px;
}

.price-card h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.price-card > p {
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
  line-height: 1.6;
}

.price-card strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.price-card small {
  display: inline-block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.price-card ul {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-card ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  color: rgba(255,255,255,.75);
  font-weight: 600;
}

.price-card ul li::before {
  content: '';
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: rgba(19,194,122,.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,6 4,8 8,3' fill='none' stroke='%2313c27a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.price-card .btn {
  width: 100%;
}

/* ── Agent Panel ─────────────────────────────────────────────── */
.agent-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 56px 64px;
}

.agent-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.agent-panel > div > p {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ── Ref Card ────────────────────────────────────────────────── */
.ref-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(215,169,63,.2);
  border-radius: 20px;
  padding: 28px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-card > span {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
}

.ref-card code {
  font-family: monospace;
  font-size: .8rem;
  color: var(--cyan);
  background: rgba(108,231,255,.08);
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
  display: block;
}

.ref-card > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.ref-card > div b {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.ref-card > div small {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 700;
}

/* ── FAQ List ────────────────────────────────────────────────── */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-list details {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s;
}

.faq-list details[open] {
  border-color: rgba(49,92,255,.3);
  background: rgba(49,92,255,.05);
}

.faq-list details + details { margin-top: 8px; }

.faq-list summary {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::marker { display: none; }

.faq-list summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform .3s;
  flex-shrink: 0;
  margin-inline-start: 16px;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 24px 20px;
  font-size: .93rem;
  color: rgba(255,255,255,.6);
  line-height: 1.8;
}

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta {
  text-align: center;
}

.cta-box {
  background: linear-gradient(160deg, rgba(49,92,255,.12) 0%, rgba(117,87,255,.08) 100%);
  border: 1px solid rgba(49,92,255,.25);
  border-radius: 36px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(49,92,255,.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  line-height: 1.2;
}

.cta-box > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.cta-box > div {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.partner-mini-section {
  padding-top: 0;
}

.partner-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-block: 24px;
}

.partner-mini strong {
  display: block;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.partner-mini p {
  color: rgba(255,255,255,.62);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg, var(--navy));
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 64px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 32px;
}

.footer-brand { margin-bottom: 16px; }

.footer-grid > div > p {
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
  margin-top: 12px;
  max-width: 280px;
}

.footer-grid h4 {
  font-size: .85rem;
  font-weight: 800;
  color: rgba(255,255,255,.6);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid a,
.footer-grid button {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  margin-bottom: 10px;
  transition: color .2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: inherit;
  padding: 0;
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: var(--gold);
}

/* ── Copyright ───────────────────────────────────────────────── */
.copy {
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.25);
  font-weight: 500;
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6,20,38,.75);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Card ──────────────────────────────────────────────── */
.modal-card {
  position: relative;
  background: var(--navy2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 44px 40px;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  animation: modalIn .35s cubic-bezier(.2,.8,.3,1) forwards;
}

.modal-card.small { max-width: 420px; }

.modal-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.modal-card > p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 28px;
}

/* ── Modal Close ─────────────────────────────────────────────── */
.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.07);
  border-radius: 50%;
  color: rgba(255,255,255,.6);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: inherit;
}

.modal-close:hover {
  background: rgba(255,255,255,.14);
  color: var(--white);
}

/* ── Form ────────────────────────────────────────────────────── */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  margin-top: 24px;
}

.form.one { grid-template-columns: 1fr; }

.form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: .85rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
}

.form label.full { grid-column: 1 / -1; }

.form input,
.form select,
.form textarea {
  padding: 12px 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: var(--white);
  font-size: .9rem;
  font-family: inherit;
  font-weight: 500;
  transition: border-color .2s, background .2s;
  outline: none;
  width: 100%;
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(255,255,255,.25);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: rgba(49,92,255,.5);
  background: rgba(49,92,255,.06);
  box-shadow: 0 0 0 3px rgba(49,92,255,.1);
}

.form select option {
  background: var(--navy2);
  color: var(--white);
}

.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.phone-input-group select {
  width: 100px;
  flex: 0 0 100px;
  text-align: center;
}

.phone-input-group input {
  flex: 1 1 auto;
  min-width: 0;
  direction: ltr;
  text-align: left;
}

.form textarea {
  min-height: 100px;
  resize: vertical;
}

.form [type="submit"] {
  grid-column: 1 / -1;
  padding: 14px;
  font-size: 1rem;
  border-radius: 14px;
}

/* ── Scrollbar in modal ──────────────────────────────────────── */
.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

/* ── Reveal Animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── @keyframes ──────────────────────────────────────────────── */
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30px, -40px) scale(1.04); }
  66%  { transform: translate(-20px, 20px) scale(.97); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes deviceFloat {
  0%   { transform: translateY(0px) rotate(0deg); }
  50%  { transform: translateY(-12px) rotate(.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatCard {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes shine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.93) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Section backgrounds ─────────────────────────────────────── */
.problems-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10,27,51,.5) 50%, transparent 100%);
}

.solution { background: transparent; }

.modules-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10,27,51,.6) 50%, transparent 100%);
}

.pricing-section {
  background: linear-gradient(180deg, transparent 0%, rgba(10,27,51,.7) 50%, transparent 100%);
}

.faq-section { background: transparent; }

main {
  display: flex;
  flex-direction: column;
}

.hero { order: 1; }
.problems-section { order: 2; }
.solution { order: 3; }
.finance-section { order: 4; }
.modules-section { order: 5; }
.mobile-section { order: 6; }
.flow-section { order: 7; }
.security-section { order: 8; }
.trust-section { order: 9; }
.pricing-section { order: 10; }
.faq-section { order: 11; }
.final-cta { order: 12; }
.app-download-cta { order: 13; }
.partner-mini-section { order: 14; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-gradient {
  background: var(--grad-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Responsive 1000px ───────────────────────────────────────── */
@media (max-width: 1000px) {
  :root {
    --section-py: 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-visual  { order: 2; display: none; }

  .hero-buttons { justify-content: center; }
  .hero-trust   { justify-content: center; }
  .hero-lead    { margin-inline: auto; }

  .logos { justify-content: center; }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .split.reverse { direction: ltr; }
  [dir="rtl"] .split.reverse { direction: rtl; }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .agent-panel {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 32px;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: rgba(6,20,38,.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    z-index: 99;
  }

  .menu.active { display: flex; }
  .menu a { width: 100%; padding: 10px 14px; }

  .hamburger { display: flex; }

  .timeline::before { display: none; }

  .timeline-item {
    padding-top: 0;
    padding-inline-start: 64px;
  }

  .timeline-item b {
    top: 0;
    inset-inline-start: 0;
  }

  .cta-box { padding: 56px 32px; }

  .modal-card { padding: 32px 24px; }
}

/* ── Responsive 640px ────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --section-py: 56px;
    --gap: 20px;
    --radius: 20px;
  }

  .nav { height: 60px; }

  .brand-text small { display: none; }

  .nav-actions .btn-ghost { display: none; }
  .lang-code { display: none; }
  .lang-btn { padding: 6px 9px; }

  .section-head { margin-bottom: 36px; }

  .hero-content h1 { font-size: 2rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-xl { padding: 13px 26px; font-size: .95rem; }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-grid > div:nth-child(1) { order: 1; }
  .footer-grid > div:nth-child(4) { order: 2; }
  .footer-grid > div:nth-child(2) { order: 3; }
  .footer-grid > div:nth-child(3) { order: 4; }

  .cta-box { padding: 40px 20px; border-radius: 24px; }

  .cta-box > div {
    flex-direction: column;
    align-items: center;
  }

  .modal-card { padding: 28px 20px; }

  .form {
    grid-template-columns: 1fr;
  }

  .form label.full { grid-column: 1; }

  .agent-panel { padding: 28px 24px; }

  .ref-card { min-width: unset; }

  .kpi-row { grid-template-columns: repeat(3, 1fr); }

  .metrics { grid-template-columns: repeat(2, 1fr); }

  .glass-card { padding: 24px; }

  .section-head p,
  .split p,
  .checks span,
  .glass-card p,
  .module-card p,
  .timeline-item p,
  .partner-mini p {
    font-size: 1rem;
  }

  .partner-mini {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════════
   RTL ADJUSTMENTS  (Arabic + any future RTL language)
   ══════════════════════════════════════════════════════════════ */

/* ── Flex rows that need icon/badge on the correct side ── */
[dir="rtl"] .brand           { flex-direction: row-reverse; }
[dir="rtl"] .nav-actions     { flex-direction: row-reverse; }
[dir="rtl"] .hero-buttons    { flex-direction: row-reverse; }
[dir="rtl"] .hero-trust      { flex-direction: row-reverse; }
[dir="rtl"] .badge           { flex-direction: row-reverse; }
[dir="rtl"] .analytics-top  { flex-direction: row-reverse; }
[dir="rtl"] .ops-row         { flex-direction: row-reverse; }
[dir="rtl"] .window-bar      { flex-direction: row-reverse; }
[dir="rtl"] .admin-layout    { direction: rtl; }
[dir="rtl"] .lang-btn        { flex-direction: row-reverse; }

/* ── Hero content ── */
[dir="rtl"] .hero-content h1            { text-align: right; }
[dir="rtl"] .hero-content p             { text-align: right; }
[dir="rtl"] .hero-content .badge        { justify-content: flex-start; flex-direction: row-reverse; }
[dir="rtl"] .hero-lead                  { text-align: right; }

/* ── Section headers ── */
[dir="rtl"] .section-head               { align-items: flex-end; }
[dir="rtl"] .section-head h2            { text-align: center; }
[dir="rtl"] .section-head p             { text-align: center; }
[dir="rtl"] .section-number            { align-self: flex-start; }
[dir="rtl"] .eyebrow                    { display: block; text-align: right; }

/* ── Checklist items — icon (::before) on the RIGHT in Arabic ── */
[dir="rtl"] .checks {
  align-items: flex-end;     /* whole block hugs the right */
}

[dir="rtl"] .checks span {
  flex-direction: row-reverse;   /* ::before (icon) goes to RIGHT side (start of row-reverse) */
  justify-content: flex-start;   /* flex-start in row-reverse = RIGHT side → icon on right */
  text-align: right;
  width: 100%;
}

/* ── Cards & grids ── */
[dir="rtl"] .module-card          { text-align: right; }
[dir="rtl"] .glass-card           { text-align: right; }
[dir="rtl"] .price-card           { text-align: right; }
[dir="rtl"] .price-card h3        { text-align: center; }
[dir="rtl"] .price-card strong    { text-align: center; display: block; }
[dir="rtl"] .price-card ul        { text-align: right; }
[dir="rtl"] .price-card ul li     { flex-direction: row-reverse; justify-content: flex-start; }

/* ── Timeline / How it works ── */
[dir="rtl"] .timeline-item h3,
[dir="rtl"] .timeline-item p      { text-align: right; }
[dir="rtl"] .timeline-item        { padding-inline-start: 80px; padding-inline-end: 0; }

/* ── FAQ ── */
[dir="rtl"] .faq-list details summary { text-align: right; }
[dir="rtl"] .faq-list details p       { text-align: right; }

/* ── Agents section ── */
[dir="rtl"] .agent-panel > div:first-child { text-align: right; }
[dir="rtl"] .ref-card                       { text-align: center; }

/* ── Footer ── */
[dir="rtl"] .footer-grid > div h4     { text-align: right; }
[dir="rtl"] .footer-grid > div a,
[dir="rtl"] .footer-grid > div button { text-align: right; display: block; }
[dir="rtl"] .copy                      { text-align: center; }

/* ── Misc ── */
[dir="rtl"] .section-number { font-variant-numeric: lining-nums; }
[dir="rtl"] .price-card h3 { text-align: center; }
[dir="rtl"] .price-card strong { text-align: center; display: block; }
[dir="rtl"] .faq-list summary { flex-direction: row-reverse; }
[dir="rtl"] .faq-list summary::after { margin-inline-start: 0; margin-inline-end: 16px; }
[dir="rtl"] .floating-card.revenue { inset-inline-end: -20px; inset-inline-start: auto; }
[dir="rtl"] .floating-card.alert { inset-inline-end: -10px; inset-inline-start: auto; }
[dir="rtl"] .mobile-card { inset-inline-start: -30px; inset-inline-end: auto; }
[dir="rtl"] .bars span::after { inset-inline-start: 0; inset-inline-end: auto; }

/* Perfect Tower brand refresh: smart SaaS infrastructure language */
.perfect-tower-brand {
  --navy: #0A1020;
  --navy2: #101B35;
  --navy3: #18284C;
  --blue: #6B3DF4;
  --violet: #8A63FF;
  --gold: #F59E0B;
  --gold2: #FFD36A;
  --green: #10B981;
  --soft: #F5F4FF;
  --line: rgba(138, 99, 255, .22);
  --radius: 8px;
  --shadow: 0 24px 80px rgba(10, 16, 32, .22);
  background:
    radial-gradient(circle at 20% 0%, rgba(107, 61, 244, .18), transparent 32rem),
    linear-gradient(180deg, #0A1020 0%, #101B35 44%, #0A1020 100%);
}

.perfect-tower-brand::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .18;
  background-image:
    linear-gradient(30deg, rgba(138, 99, 255, .24) 12%, transparent 12.5%, transparent 87%, rgba(138, 99, 255, .24) 87.5%, rgba(138, 99, 255, .24)),
    linear-gradient(150deg, rgba(138, 99, 255, .24) 12%, transparent 12.5%, transparent 87%, rgba(138, 99, 255, .24) 87.5%, rgba(138, 99, 255, .24)),
    linear-gradient(30deg, rgba(138, 99, 255, .24) 12%, transparent 12.5%, transparent 87%, rgba(138, 99, 255, .24) 87.5%, rgba(138, 99, 255, .24)),
    linear-gradient(150deg, rgba(138, 99, 255, .24) 12%, transparent 12.5%, transparent 87%, rgba(138, 99, 255, .24) 87.5%, rgba(138, 99, 255, .24));
  background-position: 0 0, 0 0, 26px 45px, 26px 45px;
  background-size: 52px 90px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 70%);
}

.perfect-tower-brand .orb {
  display: none;
}

.perfect-tower-brand .top-strip,
.perfect-tower-brand .btn-primary,
.perfect-tower-brand .brand-mark,
.perfect-tower-brand .logo-dot {
  background: linear-gradient(135deg, #6B3DF4 0%, #8A63FF 100%);
}

.perfect-tower-brand .header.scrolled {
  background: rgba(10, 16, 32, .86);
  border-bottom: 1px solid rgba(138, 99, 255, .18);
}

.perfect-tower-brand .brand-logo-img {
  filter: none;
}

.perfect-tower-brand .badge,
.perfect-tower-brand .eyebrow,
.perfect-tower-brand .section-number {
  color: #C8B8FF;
}

.perfect-tower-brand .hero h1 span,
.perfect-tower-brand .green {
  color: #10B981;
}

.perfect-tower-brand .gold,
.perfect-tower-brand .price-card.featured em,
.perfect-tower-brand .brand-text small {
  color: #F59E0B;
}

.perfect-tower-brand .glass-card,
.perfect-tower-brand .module-card,
.perfect-tower-brand .price-card,
.perfect-tower-brand .analytics-card,
.perfect-tower-brand .ops-board,
.perfect-tower-brand .fund-card,
.perfect-tower-brand .agent-panel,
.perfect-tower-brand .ref-card,
.perfect-tower-brand .cta-box,
.perfect-tower-brand .modal-card {
  border: 1px solid rgba(138, 99, 255, .20);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    rgba(16, 27, 53, .72);
  box-shadow: 0 20px 60px rgba(0,0,0,.20);
}

.perfect-tower-brand .module-card::before,
.perfect-tower-brand .glass-card::before,
.perfect-tower-brand .price-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6B3DF4, #10B981);
}
.perfect-tower-brand .glass-card::before {
  width: auto;
}


.perfect-tower-brand .admin-window,
.perfect-tower-brand .mobile-card,
.perfect-tower-brand .floating-card,
.perfect-tower-brand .chart-card,
.perfect-tower-brand .table-card,
.perfect-tower-brand .kpi {
  border-radius: 8px;
  border-color: rgba(138, 99, 255, .18);
}
/*,
.perfect-tower-brand .bars span */
.perfect-tower-brand .admin-layout aside i{
  background: linear-gradient(90deg, #6B3DF4, #8A63FF);
}

.perfect-tower-brand .hero-visual::before,
.perfect-tower-brand .finance-visual::before,
.perfect-tower-brand .ops-board::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(138, 99, 255, .18);
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
}

.perfect-tower-brand .hero-visual,
.perfect-tower-brand .finance-visual,
.perfect-tower-brand .ops-board {
  position: relative;
}

.perfect-tower-brand .btn,
.perfect-tower-brand input,
.perfect-tower-brand select,
.perfect-tower-brand textarea,
.perfect-tower-brand .lang-btn {
  border-radius: 8px;
}

.perfect-tower-brand .btn-gold {
  background: #F59E0B;
  color: #0A1020;
}

.perfect-tower-brand .section:nth-of-type(even) {
  background: rgba(245, 244, 255, .035);
}

.perfect-tower-brand .brand-logo-img {
  width: auto;
  min-width: 150px;
}

.brand-dna-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.brand-dna-strip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(138, 99, 255, .24);
  border-radius: 8px;
  background: rgba(16, 27, 53, .72);
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  font-weight: 700;
}

.brand-dna-strip span::before,
.node-icon {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8A63FF;
  box-shadow: 0 0 0 5px rgba(138, 99, 255, .12);
  flex: 0 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.trust-card,
.result-metric,
.phone-shell {
  position: relative;
  border: 1px solid rgba(138, 99, 255, .20);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    rgba(16, 27, 53, .78);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.trust-card {
  padding: 24px;
  overflow: hidden;
}

.trust-card::after,
.results-board::after,
.phone-shell::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(138, 99, 255, .16);
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
}

.trust-card .node-icon {
  display: block;
  margin-bottom: 18px;
}

.trust-card h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.trust-card p {
  color: rgba(255,255,255,.68);
  font-size: .92rem;
}

.results-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-metric {
  padding: 22px;
  min-height: 150px;
}

.result-metric.wide {
  grid-column: 1 / -1;
}

.result-metric small,
.phone-card small {
  display: block;
  color: #C8B8FF;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-metric strong {
  display: block;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  margin: 12px 0;
}

.result-metric span {
  color: rgba(255,255,255,.66);
  font-size: .9rem;
}

.system-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.system-line i {
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(138,99,255,.8), rgba(107,61,244,.26));
  border: 1px solid rgba(255,255,255,.12);
}

.mobile-showcase {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: min(320px, 100%);
  min-height: 520px;
  padding: 56px 22px 22px;
  border-radius: 28px;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  width: 96px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.phone-card {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(138, 99, 255, .2);
  border-radius: 8px;
  background: rgba(10, 16, 32, .72);
}

.phone-card.active {
  background: linear-gradient(135deg, rgba(107,61,244,.44), rgba(138,99,255,.18));
}

.phone-card.success {
  border-color: rgba(16,185,129,.36);
}

.phone-card strong {
  display: block;
  color: #fff;
  margin-top: 6px;
}

@media (max-width: 980px) {
  .trust-grid,
  .results-board {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .trust-grid,
  .results-board {
    grid-template-columns: 1fr;
  }

  .brand-dna-strip span {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   Pricing section – redesign (2026-06 v2)
══════════════════════════════════════════════════════════════════ */

/* ── Section spacing ─────────────────────────────────────────────── */
.pricing-section .section-head { margin-bottom: 20px; }

/* ── Global billing toggle ───────────────────────────────────────── */
.pricing-cycle-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 32px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.16);
  border-radius: 56px;
  padding: 5px;
  width: fit-content;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}
.cycle-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.52);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .22s;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: .01em;
}
.cycle-btn.active {
  background: var(--accent, #315CFF);
  color: #fff;
  box-shadow: 0 4px 20px rgba(49,92,255,.45);
}
.cycle-save-badge {
  font-size: .72rem;
  font-weight: 800;
  background: rgba(34,197,94,.2);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.38);
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── Pro card glow + prominence ─────────────────────────────────── */
.price-card-pro {
  position: relative;
  z-index: 2;
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(49,92,255,.55) !important;
  box-shadow: 0 0 0 1px rgba(49,92,255,.4), 0 28px 80px rgba(49,92,255,.28) !important;
}
.price-card-pro:hover {
  transform: translateY(-16px) scale(1.04) !important;
}
.price-card-pro-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(49,92,255,.22) 0%, rgba(117,87,255,.14) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ── Price block inside card ─────────────────────────────────────── */
.price-block { margin-bottom: 2px; }
.price-amount-wrap { line-height: 1; }
.price-card-desc {
  font-size: .87rem;
  color: rgba(255,255,255,.52);
  margin-bottom: 12px;
  line-height: 1.6;
}
.price-yearly-total {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.save-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(34,197,94,.18);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 10px;
}

/* ── Unit limit badge ────────────────────────────────────────────── */
.price-unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  margin: 10px 0 16px;
}
.price-card-pro .price-unit-badge {
  background: rgba(49,92,255,.18);
  border-color: rgba(49,92,255,.4);
  color: rgba(200,210,255,.9);
}

/* ── Benefit list inside card ────────────────────────────────────── */
.price-benefits {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* ── Enterprise CTA banner ───────────────────────────────────────── */
.enterprise-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 26px 36px;
  background: linear-gradient(135deg, rgba(49,92,255,.1) 0%, rgba(117,87,255,.07) 100%);
  border: 1px solid rgba(49,92,255,.28);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.enterprise-banner-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.enterprise-banner-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.enterprise-banner-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}
.enterprise-banner-text p {
  font-size: .86rem;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
  margin: 0;
}
.enterprise-banner-btn { flex-shrink: 0; white-space: nowrap; }

/* ── Comparison toggle ───────────────────────────────────────────── */
.comparison-wrap { margin-top: 36px; }
.comparison-toggle-wrap { display: flex; justify-content: center; }
.btn-outline-accent {
  background: transparent;
  border: 2px solid rgba(49,92,255,.55);
  color: rgba(255,255,255,.82);
  font-weight: 700;
  font-size: .92rem;
  padding: 12px 30px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .22s;
}
.btn-outline-accent:hover {
  background: rgba(49,92,255,.2);
  border-color: var(--accent, #315CFF);
  color: #fff;
}
.comparison-chevron { transition: transform .25s; flex-shrink: 0; }
.comparison-toggle[aria-expanded="true"] .comparison-chevron { transform: rotate(180deg); }

/* ── Comparison table ────────────────────────────────────────────── */
.comparison-table-wrap { margin-top: 28px; }
.comparison-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 560px;
}
.comparison-table thead tr {
  background: rgba(49,92,255,.14);
  border-bottom: 2px solid rgba(49,92,255,.35);
}
.comparison-table th {
  padding: 16px 14px;
  color: rgba(255,255,255,.88);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
.feature-col-header { text-align: start !important; min-width: 180px; font-size: .82rem; color: rgba(255,255,255,.5) !important; }
.comparison-table th.col-featured { background: rgba(49,92,255,.22); color: #fff; }
.col-featured-badge {
  display: block;
  font-size: .68rem;
  font-style: normal;
  color: var(--gold, #D7A93F);
  font-weight: 700;
  margin-top: 3px;
  white-space: nowrap;
}
.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th { background: rgba(255,255,255,.018); }
.comparison-table tbody tr:hover td,
.comparison-table tbody tr:hover th { background: rgba(49,92,255,.06) !important; }
.comparison-table td,
.comparison-table tbody th {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: rgba(255,255,255,.68);
  text-align: center;
  vertical-align: middle;
}
.comparison-table .feature-col-header,
.comparison-table th.feature-label {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  background: rgba(10,27,51,.96);
}
.comparison-table th.feature-label {
  text-align: start;
  color: rgba(255,255,255,.82);
  font-weight: 600;
  white-space: nowrap;
}
.comparison-table td.col-featured { background: rgba(49,92,255,.055); }
.comparison-group-row th {
  background: rgba(255,255,255,.038) !important;
  color: rgba(255,255,255,.42);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: start;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.check-yes { color: #4ade80; font-size: 1rem; font-weight: 900; }
.check-no  { color: rgba(255,255,255,.2); font-size: 1rem; }
.limit-val { color: #fff; font-weight: 700; font-size: .9rem; }

/* ── RTL ─────────────────────────────────────────────────────────── */
[dir="rtl"] .pricing-cycle-toggle            { direction: rtl; }
[dir="rtl"] .cycle-btn                       { direction: rtl; }
[dir="rtl"] .enterprise-banner               { flex-direction: row-reverse; }
[dir="rtl"] .enterprise-banner-body          { flex-direction: row-reverse; }
[dir="rtl"] .enterprise-banner-text          { text-align: right; }
[dir="rtl"] .feature-col-header              { text-align: end !important; }
[dir="rtl"] .comparison-table th.feature-label { text-align: end; }
[dir="rtl"] .comparison-group-row th         { text-align: end; }

/* ══════════════════════════════════════════════════════════════════
   App Store Badges — Landing (dark theme)
══════════════════════════════════════════════════════════════════ */

.app-badges-wrap { display: inline-block; }

/* Hero badge block */
.hero-content .app-badges-wrap {
  margin: 20px 0 8px;
}
.app-badges-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.app-badges-title {
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,.8);
}
.app-badges-subtitle {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
}
.app-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.app-badge-link {
  display: inline-block;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .2s, transform .2s;
  outline-offset: 3px;
}
.app-badge-link:hover  { opacity: .85; transform: translateY(-2px); }
.app-badge-link:focus-visible { outline: 2px solid var(--accent, #315CFF); }
.app-badge-link img    { display: block; height: 46px; width: auto; }

/* ── App Download CTA section ──────────────────────────────────── */
.app-download-cta { padding: 40px 0; }
.app-download-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px 36px;
  flex-wrap: wrap;
}
.app-download-cta-text {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.app-download-cta-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.app-download-cta-text strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.app-download-cta-text p {
  font-size: .88rem;
  color: rgba(255,255,255,.58);
  line-height: 1.6;
  margin: 0;
}

[dir="rtl"] .app-download-cta-text { flex-direction: row-reverse; }
[dir="rtl"] .app-download-cta-inner { flex-direction: row-reverse; }
[dir="rtl"] .app-badges-row { flex-direction: row-reverse; }

@media (max-width: 768px) {
  .app-download-cta-inner { flex-direction: column; align-items: flex-start; padding: 20px; }
  [dir="rtl"] .app-download-cta-inner { flex-direction: column; }
  .app-badge-link img { height: 42px; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .price-card-pro { transform: none; }
  .price-card-pro:hover { transform: translateY(-6px) !important; }
}
@media (max-width: 768px) {
  .cycle-btn              { padding: 8px 18px; font-size: .84rem; }
  .cycle-save-badge       { display: none; }
  .enterprise-banner      { flex-direction: column; align-items: flex-start; padding: 20px; }
  .enterprise-banner-btn  { width: 100%; justify-content: center; }
  [dir="rtl"] .enterprise-banner { flex-direction: column; }
  .comparison-table-scroll { border-radius: 8px; }
}
@media (max-width: 480px) {
  .cycle-btn { padding: 7px 14px; font-size: .8rem; }
  .pricing-cycle-toggle { padding: 4px; }
}

/* =================================================================
   MOBILE IMPROVEMENTS — Header, Hero, Modal, General
   ================================================================= */

/* ── Mobile menu actions (login + CTA inside hamburger) ────────── */
.menu-mobile-actions { display: none; }

@media (max-width: 1000px) {
  .menu-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .menu-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.15);
    text-decoration: none;
    transition: background .2s, color .2s;
  }
  .menu-login-btn:hover {
    background: rgba(255,255,255,.12);
    color: var(--white);
  }

  .menu-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: .95rem;
    border-radius: 14px;
  }

  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn-primary { display: none; }
}

/* ── Navbar on small mobile ─────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { height: 58px; gap: 12px; }
  .brand-logo-img { max-height: 38px !important; max-width: 140px !important; }

  .top-strip { font-size: .75rem; padding: 7px 12px; }
  .top-strip span { font-size: .7rem; padding: 2px 8px; }
  .top-strip .container {
    gap: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .top-strip strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }

  .hamburger { width: 42px; height: 42px; }
}

/* ── Hero on mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding-top: 36px; padding-bottom: 52px; }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: .95rem;
    margin-bottom: 28px;
    line-height: 1.75;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 32px;
  }

  .hero-buttons .btn-xl {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 14px;
    justify-content: center;
  }

  .hero-trust {
    gap: 12px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .hero-trust > div { flex: 1; align-items: center; text-align: center; }
  .hero-trust strong { font-size: .8rem; }
  .hero-trust span   { font-size: .68rem; }

  .badge { margin-inline: auto; margin-bottom: 18px; }

  .brand-dna-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
  }

  .brand-dna-strip span {
    background: rgba(49,92,255,.12);
    border: 1px solid rgba(49,92,255,.2);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: .75rem;
    color: rgba(255,255,255,.8);
    font-weight: 600;
  }

  .logos {
    font-size: .82rem;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 20px;
  }

  .logos b {
    background: rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: .78rem;
    white-space: nowrap;
  }
}

/* ── Sections on mobile ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-head { text-align: center; align-items: center; }
  .section-head h2 { font-size: 1.5rem; }
  .section-head p  { font-size: .9rem; }
  .section-number  { font-size: 3rem; }

  .glass-card  { padding: 20px 18px; border-radius: 16px; }
  .glass-card h3, .module-card h3, .trust-card h3 { font-size: 1rem; }
  .glass-card p,  .module-card p,  .trust-card p  { font-size: .88rem; }

  .module-card { padding: 20px 18px; border-radius: 16px; text-align: right; }
  .trust-grid  { grid-template-columns: 1fr; gap: 14px; }
  .trust-card  { padding: 18px 16px; border-radius: 16px; }

  .checks span { font-size: .9rem; padding: 7px 0; }

  .final-cta .cta-box h2 { font-size: 1.4rem; text-align: center; }
  .final-cta .cta-box p  { font-size: .9rem;  text-align: center; }
  .final-cta .cta-box > div { flex-direction: column; width: 100%; }
  .final-cta .cta-box .btn-xl { width: 100%; justify-content: center; }
}

/* ── Modal — full-screen bottom-sheet on mobile ─────────────────── */
@media (max-width: 640px) {
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 10px 20px 40px;
  }

  .modal-card::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,.2);
    border-radius: 2px;
    margin: 0 auto 20px;
  }

  .modal-card h2 { font-size: 1.3rem; margin-bottom: 6px; }

  .form { grid-template-columns: 1fr; gap: 14px; }
  .form label { font-size: .88rem; gap: 6px; }

  .form label input,
  .form label select,
  .form label textarea {
    font-size: .9rem;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .phone-input-group { display: flex; gap: 8px; align-items: stretch; }
  .phone-input-group select {
    width: 88px;
    flex-shrink: 0;
    font-size: .85rem;
    padding: 11px 6px;
    border-radius: 10px;
    text-align: center;
  }
  .phone-input-group input { flex: 1; min-width: 0; }

  .form .btn-primary,
  .form button[type="submit"] {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 14px;
    justify-content: center;
    margin-top: 4px;
  }

  .modal-close {
    top: 20px;
    inset-inline-end: 16px;
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
}

/* ── RTL modal + mobile menu ────────────────────────────────────── */
@media (max-width: 640px) {
  [dir="rtl"] .phone-input-group { flex-direction: row-reverse; }
  [dir="rtl"] .modal-card h2,
  [dir="rtl"] .modal-card .eyebrow,
  [dir="rtl"] .modal-card p { text-align: right; }
  [dir="rtl"] .form label { text-align: right; }
  [dir="rtl"] .brand-dna-strip { direction: rtl; }
}

@media (max-width: 1000px) {
  [dir="rtl"] .menu-mobile-actions { align-items: stretch; }
  [dir="rtl"] .menu-login-btn { flex-direction: row-reverse; }
}

/* ── Pricing on mobile ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .price-card { padding: 24px 18px; border-radius: 18px; }
  .price-card h3 { font-size: 1.1rem; }
  .price-card .landing-plan-price { font-size: 2rem; }
  .price-benefits li { font-size: .88rem; }
  .enterprise-banner { padding: 18px 16px; border-radius: 16px; }
  .enterprise-banner strong { font-size: .95rem; }
  .enterprise-banner p { font-size: .85rem; }
}

/* ── Footer on mobile ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer { padding: 40px 0 24px; }
  .footer-grid { gap: 24px; }
  .footer-grid > div h4 { font-size: .95rem; margin-bottom: 10px; }
  .copy { flex-direction: column; align-items: flex-start; gap: 8px; font-size: .8rem; }
}

/* ── Very small phones (≤400px) ─────────────────────────────────── */
@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav { gap: 8px; }
  .brand-logo-img { max-height: 32px !important; max-width: 110px !important; }
}

/* =================================================================
   HORIZONTAL OVERFLOW FIX
   - html + body: prevent horizontal scroll at the document level.
   - NEVER put overflow:hidden on .header or any element that has
     position:absolute children (lang-drop, menu) — it clips them.
   - Sections get max-width:100vw WITHOUT overflow:hidden so that
     fixed/absolute descendants (modals, dropdowns) are not clipped.
   ================================================================= */
html { overflow-x: hidden; }

/* Content sections — constrain width but do NOT clip descendants */
.hero,
.section,
.final-cta,
.footer { max-width: 100vw; }

/* Hero heading must wrap on narrow screens */
.hero-content h1 {
  overflow-wrap: break-word;
  word-break:    break-word;
  max-width:     100%;
}

/* Nav: brand may shrink so it doesn't push nav-actions off-screen.
   NO overflow:hidden on .nav or .header — clips the dropdown menus. */
@media (max-width: 1000px) {
  .brand {
    flex-shrink: 1;
    min-width:   0;
  }
  .brand-logo-img { max-width: 140px !important; }

  /* In RTL, reset nav-actions to natural row direction so the
     double-reversal doesn't push the lang button off the left edge. */
  [dir="rtl"] .nav-actions { flex-direction: row; }

  /* Lang dropdown: constrain width, anchor to inline-end of button */
  .lang-drop {
    max-width: calc(100vw - 48px);
    inset-inline-end: 0;
    inset-inline-start: auto;
  }
}

/* Modal: stop scroll-chaining so dragging inside the card
   doesn't scroll the page behind it. */
.modal-card {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Lock body scroll while any modal is open (JS adds .modal-open) */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  background: #ffffff;
  color: #0A1020;
  border: 2px solid #6B3DF4;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(10, 16, 32, .18);
}

.skip-link:focus {
  transform: translateY(0);
  outline: none;
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-privacy-note {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  line-height: 1.7;
}

.form-privacy-note a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════
   Comprehensive RTL polish for Arabic landing page
   Keep this late in the file so it corrects older directional rules.
   ══════════════════════════════════════════════════════════════ */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .top-strip .container,
html[dir="rtl"] .brand,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .menu,
html[dir="rtl"] .hero-buttons,
html[dir="rtl"] .hero-trust,
html[dir="rtl"] .badge,
html[dir="rtl"] .analytics-top,
html[dir="rtl"] .ops-row,
html[dir="rtl"] .enterprise-banner,
html[dir="rtl"] .enterprise-banner-body,
html[dir="rtl"] .app-download-cta-inner,
html[dir="rtl"] .app-download-cta-text,
html[dir="rtl"] .partner-mini,
html[dir="rtl"] .lang-btn,
html[dir="rtl"] .lang-option {
  direction: rtl;
  flex-direction: row;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .split > div,
html[dir="rtl"] .glass-card,
html[dir="rtl"] .module-card,
html[dir="rtl"] .timeline-item,
html[dir="rtl"] .trust-card,
html[dir="rtl"] .price-card,
html[dir="rtl"] .enterprise-banner-text,
html[dir="rtl"] .app-download-cta-text,
html[dir="rtl"] .partner-mini,
html[dir="rtl"] .footer-grid > div,
html[dir="rtl"] .modal-card,
html[dir="rtl"] .form label,
html[dir="rtl"] .form-privacy-note {
  text-align: right;
}

html[dir="rtl"] .section-head {
  text-align: center;
}

html[dir="rtl"] .section-head,
html[dir="rtl"] .checks {
  align-items: flex-start;
}

html[dir="rtl"] .hero-content h1,
html[dir="rtl"] .hero-lead,
html[dir="rtl"] .split h2,
html[dir="rtl"] .split p,
html[dir="rtl"] .timeline-item h3,
html[dir="rtl"] .timeline-item p,
html[dir="rtl"] .faq-list summary,
html[dir="rtl"] .faq-list details p,
html[dir="rtl"] .footer-grid h4,
html[dir="rtl"] .footer-grid a,
html[dir="rtl"] .footer-grid button {
  text-align: right;
}

html[dir="rtl"] .checks span,
html[dir="rtl"] .price-card ul li,
html[dir="rtl"] .faq-list summary,
html[dir="rtl"] .phone-input-group {
  direction: rtl;
  flex-direction: row;
  justify-content: flex-start;
  text-align: right;
}

html[dir="rtl"] .timeline-item {
  padding-inline-start: 0;
  padding-inline-end: 64px;
}

html[dir="rtl"] .timeline-item b {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

html[dir="rtl"] .lang-drop {
  inset-inline-start: 0;
  inset-inline-end: auto;
  text-align: right;
}

html[dir="rtl"] .menu-mobile-actions,
html[dir="rtl"] .app-badges-header {
  text-align: right;
  align-items: stretch;
}

html[dir="rtl"] .app-badges-row {
  direction: rtl;
  flex-direction: row;
  justify-content: flex-start;
}

html[dir="rtl"] .faq-list summary::after {
  margin-inline-start: auto;
  margin-inline-end: 0;
}

html[dir="rtl"] .modal-close {
  inset-inline-start: 20px;
  inset-inline-end: auto;
}

html[dir="rtl"] .selected-plan-price,
html[dir="rtl"] .price-block,
html[dir="rtl"] .landing-plan-price,
html[dir="rtl"] .landing-plan-cycle,
html[dir="rtl"] .price-unit-badge {
  text-align: right;
}

html[dir="rtl"] .comparison-table {
  direction: rtl;
}

html[dir="rtl"] .comparison-table th,
html[dir="rtl"] .comparison-table td {
  text-align: center;
}

html[dir="rtl"] .feature-col-header,
html[dir="rtl"] .comparison-table th.feature-label,
html[dir="rtl"] .comparison-group-row th {
  text-align: right !important;
}

html[dir="ltr"] .feature-col-header,
html[dir="ltr"] .comparison-table th.feature-label,
html[dir="ltr"] .comparison-group-row th {
  text-align: left !important;
}

html[dir="rtl"] .check-yes,
html[dir="rtl"] .check-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 1.25rem;
}

@media (max-width: 1180px) {
  .nav {
    gap: 12px;
  }

  .menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu a {
    font-size: .82rem;
    padding-inline: 9px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 1080px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: rgba(6,20,38,.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    z-index: 99;
    overflow-x: visible;
  }

  html[dir="rtl"] .menu {
    flex-direction: column;
  }

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  html[dir="rtl"] .timeline-item {
    padding-inline-end: 58px;
  }

  html[dir="rtl"] .modal-close {
    inset-inline-start: 16px;
  }

  html[dir="rtl"] .app-download-cta-inner,
  html[dir="rtl"] .partner-mini {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
