/* ═══════════════════════════════════════════════════════════════
   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;
}

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: 580px;
  margin: 0 auto;
}

/* ── Admin Window (Dashboard Preview) ───────────────────────── */
.admin-window {
  background: rgba(10,27,51,.85);
  border: 1px solid rgba(49,92,255,.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  animation: deviceFloat 8s ease-in-out infinite;
}

.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%;
  background: rgba(255,255,255,.15);
}

.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,.3) 0%, rgba(117,87,255,.15) 100%);
  border-radius: 8px;
  position: relative;
}

.line-chart::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(49,92,255,.2), 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); }

/* ── Mobile Card ─────────────────────────────────────────────── */
.mobile-card {
  position: absolute;
  bottom: -20px;
  inset-inline-start: -30px;
  width: 100px;
  background: linear-gradient(145deg, var(--navy2), var(--navy3));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: floatCard 6s ease-in-out infinite;
}

.phone-top {
  width: 30px;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  margin: 0 auto 10px;
}

.phone-icon {
  width: 28px;
  height: 28px;
  background: var(--grad-blue);
  border-radius: 8px;
  margin: 0 auto 6px;
}

.mobile-card p {
  font-size: .6rem;
  color: rgba(255,255,255,.6);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.phone-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.phone-lines span {
  display: block;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 2px;
}

.phone-lines span:nth-child(1) { width: 60px; }
.phone-lines span:nth-child(2) { width: 44px; }
.phone-lines span:nth-child(3) { width: 50px; }

/* ── Floating Cards ──────────────────────────────────────────── */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,.3);
  min-width: 130px;
}

.floating-card small {
  font-size: .68rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}

.floating-card strong {
  font-size: .9rem;
  font-weight: 800;
  color: var(--white);
}

.floating-card.revenue {
  top: 20px;
  inset-inline-end: -20px;
  animation: floatCard 7s ease-in-out infinite;
}

.floating-card.revenue strong { color: var(--green); }

.floating-card.alert {
  bottom: 40px;
  inset-inline-end: -10px;
  animation: floatCard 5s ease-in-out infinite reverse;
}

.floating-card.alert strong { color: var(--gold); }

/* ── 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: 1rem;
  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: .9rem;
  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: .98rem;
  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: .95rem;
  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(220px, 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: .85rem;
  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: .88rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}

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

/* ── 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;
}

/* ── 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; }

/* ── 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; }
}

/* ══════════════════════════════════════════════════════════════
   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: right; }
[dir="rtl"] .section-head p             { text-align: right; }
[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 .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 .admin-layout aside i,
.perfect-tower-brand .bars span {
  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%;
  }
}
