/* ============================================================
   JET-VIX.COM — Partner landing
   Design system inspired by the official Jetvix visual identity
   (white canvas, electric blue, friendly rounded shapes).
   Uses CSS logical properties → RTL (Arabic) works automatically.
   ============================================================ */

:root {
  --blue: #1f5bff;
  --blue-hover: #0f4af0;
  --blue-soft: #eaf0ff;
  --blue-softer: #f5f8ff;
  --navy: #0a1633;
  --ink: #16213e;
  --muted: #5a6784;
  --line: #e4e9f5;
  --green: #12b76a;
  --red: #f6465d;
  --amber: #ffb020;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 40px rgba(16, 42, 107, 0.10);
  --shadow-sm: 0 4px 16px rgba(16, 42, 107, 0.07);
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
}

html[lang="ar"] body { --font: "Tajawal", "Segoe UI", system-ui, sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 16px;
  border-radius: 999px; padding: 15px 32px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 8px 24px rgba(31, 91, 255, 0.35);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.btn-white:hover { transform: translateY(-2px); }
.btn-lg { font-size: 18px; padding: 18px 42px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(16,42,107,.06); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.02em; }
.logo .dot { color: var(--blue); }
.main-nav { display: flex; gap: 26px; margin-inline-start: auto; }
.main-nav a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.main-nav a:hover { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 24px; font-size: 15px; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-softer); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-family: inherit; font-weight: 700; font-size: 14px; color: var(--navy); cursor: pointer;
}
.lang-btn:hover { border-color: var(--blue); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  min-width: 190px; padding: 6px; display: none; z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px;
}
.lang-menu a:hover { background: var(--blue-softer); }
.lang-menu a.active { color: var(--blue); background: var(--blue-soft); }
.lang-flag { font-size: 17px; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, #dce7ff 0%, rgba(220,231,255,0) 60%),
              radial-gradient(800px 500px at -10% 110%, #eaf0ff 0%, rgba(234,240,255,0) 55%),
              var(--white);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding-block: 72px 88px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 700; font-size: 13.5px; padding: 8px 16px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.025em;
  color: var(--navy); font-weight: 800; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub { font-size: 18.5px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.hero-note { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { flex: none; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(16,42,107,.18)); }

/* ---------- Stats bar ---------- */
.stats { border-block: 1px solid var(--line); background: var(--white); }
.stats-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding-block: 34px; gap: 20px; text-align: center;
}
.stat b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.stat b .u { color: var(--blue); }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Generic sections ---------- */
.section { padding-block: 92px; }
.section-alt { background: var(--blue-softer); }
.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: 56px; }
.kicker {
  display: inline-block; color: var(--blue); font-weight: 800; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px;
}
.section-head h2, .section h2.h2 {
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em;
  color: var(--navy); font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* ---------- Feature grid ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3ddf7; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-soft); margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; color: var(--navy); font-weight: 800; margin-bottom: 10px; letter-spacing: -.01em; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* ---------- Markets ---------- */
.markets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.market-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 24px; transition: transform .2s, box-shadow .2s;
}
.market-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.market-card .m-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.m-fx { background: #eaf0ff; } .m-st { background: #e7f8f0; } .m-ix { background: #fff4e0; } .m-cm { background: #feeef1; }
.market-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.market-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.market-card .pairs { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); padding: 34px 28px;
  border: 1px solid var(--line); position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 20px;
  box-shadow: 0 6px 18px rgba(31,91,255,.35);
}
.step h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Platform / app ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(26px, 3vw, 38px); color: var(--navy); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.split .lead { color: var(--muted); font-size: 16.5px; margin-bottom: 26px; }
.check-list { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.check-list svg { flex: none; margin-top: 3px; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 18px;
  color: var(--navy); font-weight: 700; font-size: 14px; background: #fff;
  transition: border-color .15s, transform .15s;
}
.store-badge:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ---------- Bonus banner ---------- */
.bonus {
  background: linear-gradient(120deg, #12245f 0%, #1f5bff 60%, #4d7dff 100%);
  border-radius: var(--radius-lg); color: #fff; overflow: hidden; position: relative;
}
.bonus-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: 56px 60px; position: relative; z-index: 1; }
.bonus h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.bonus p { color: #d7e2ff; font-size: 16.5px; margin-bottom: 28px; max-width: 480px; }
.bonus .fine { font-size: 12.5px; color: #a8bcf5; margin-top: 16px; margin-bottom: 0; }
.bonus-art { text-align: center; font-size: clamp(64px, 8vw, 110px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.bonus-art small { display: block; font-size: 16px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #bcd0ff; margin-top: 10px; }
.bonus::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 10%, rgba(255,255,255,.14), transparent 60%);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { border-color: #cdd9f8; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  padding: 22px 26px; font-size: 17px; font-weight: 700; color: var(--navy); text-align: start;
}
.faq-q .chev { flex: none; transition: transform .25s ease; color: var(--blue); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a > div { padding: 0 26px 24px; color: var(--muted); font-size: 15.5px; }
.faq-a a { font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 44px); color: var(--navy); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.final-cta p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c4e0; padding-block: 56px 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: #b9c4e0; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; display: grid; gap: 14px; font-size: 12.5px; color: #8a97bb; line-height: 1.7; }
.footer-legal strong { color: #c6d0ea; }
.risk-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(246,70,93,.12); color: #ff8fa0; border-radius: 8px; padding: 6px 12px; font-weight: 700; font-size: 12px; margin-bottom: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-block: 56px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-visual { max-width: 560px; margin-inline: auto; }
  .features-grid, .steps { grid-template-columns: 1fr 1fr; }
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .bonus-inner { grid-template-columns: 1fr; text-align: center; padding: 44px 32px; }
  .bonus p { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 76px; inset-inline: 0; background: #fff; flex-direction: column; gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .header-cta .btn-ghost { display: none; }
  .features-grid, .steps, .markets-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stats-inner .stat:last-child { grid-column: 1 / -1; }
  .section { padding-block: 64px; }
  .footer-grid { grid-template-columns: 1fr; }
}
