:root {
  --ink: #12121a;
  --ink-soft: #55566b;
  --line: rgba(18, 18, 26, 0.1);
  --paper: #ffffff;
  --paper-soft: #f7f7fb;
  --navy: #0e1030;
  --accent: #4f3ff0;
  --accent-deep: #3a2ecc;
  --accent-soft: #eeecfe;
  --mint: #06b389;
  --header-from: #2b46e0;
  --header-to: #7a2fe0;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 24px 48px -28px rgba(14, 16, 48, 0.28);
  --shadow-header: 0 12px 32px -16px rgba(60, 32, 200, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* Topbar — premium blue-violet band, the page's one saturated surface */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background:
    radial-gradient(120% 220% at 8% -40%, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(105deg, var(--header-from) 0%, var(--header-to) 100%);
  box-shadow: var(--shadow-header);
}

.topbar-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(120deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 44px);
  opacity: 0.5;
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-right: auto;
  color: #ffffff;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(155deg, #ffffff 0%, #dcd6ff 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-deep);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35);
}

.footer .brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 0.75rem;
  vertical-align: middle;
}

.topnav {
  display: flex;
  gap: 30px;
}

.topnav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  padding: 4px 0;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1.5px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.topnav a:hover { color: #ffffff; }
.topnav a:hover::after { width: 100%; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-onbar { padding: 9px 18px; }

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lang-switch-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.14);
}

.lang-current-flag { font-size: 0.95rem; line-height: 1; }
.lang-caret { transition: transform 0.15s ease; opacity: 0.85; }
.lang-switch.is-open .lang-caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 50;
}

.lang-switch.is-open .lang-menu { display: block; }

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover { background: var(--paper-soft); }
.lang-option.is-active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.lang-option-flag { font-size: 1rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 22px;
  position: relative;
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-menu .btn { margin-top: 10px; justify-content: center; border-top: none; }
.mobile-menu .btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--paper);
}

.btn-primary:hover { background: var(--accent-deep); }

.btn-large { padding: 14px 26px; font-size: 0.98rem; }

.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  padding: 9px 18px;
}

.btn-ghost:hover { border-color: rgba(18, 18, 26, 0.28); }

/* On the gradient topbar, the ghost button flips to a light outline */
.topbar .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.topbar .btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-text {
  color: var(--ink);
  opacity: 0.7;
  padding: 11px 4px;
  font-weight: 500;
}

.btn-text:hover { opacity: 1; }

/* Hero */
.hero { padding: 88px 0 76px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 20px;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  opacity: 0.8;
  margin: 0;
}

/* Hero visual — signature element: a real transaction receipt card */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.tx-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}

.tx-card-behind {
  position: absolute;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--accent-soft);
  transform: translate(16px, 20px);
  box-shadow: none;
}

.tx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.tx-status {
  background: rgba(6, 179, 137, 0.12);
  color: var(--mint);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.tx-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.tx-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.tx-label { color: var(--ink-soft); }

.tx-foot {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Benefits strip (subtitle summary) */
.benefits {
  background: var(--navy);
  padding: 52px 0;
}

.benefits-inner { max-width: 760px; }

.benefits-title {
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.benefits-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin: 0 0 24px;
}

.benefits-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.chip.chip-solid {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.benefits-closing {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Stats */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 36px 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 180px;
}

/* Section headers */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.section-eyebrow-light { color: rgba(255, 255, 255, 0.6); }

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  font-weight: 800;
  margin: 0 0 40px;
  max-width: 560px;
}

.section-title-light { color: var(--paper); margin-bottom: 24px; }

/* Pour qui — pain points */
.pourqui { padding: 80px 0 76px; }

.pourqui-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pourqui-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.pourqui-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.pourqui-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Features — "super-pouvoirs" grid */
.features { padding: 76px 0; background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Philosophy — brand statement */
.philosophy {
  background: linear-gradient(120deg, var(--header-from) 0%, var(--header-to) 100%);
  padding: 84px 0;
}

.philosophy-inner { max-width: 720px; }

.philosophy-title {
  color: #ffffff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.philosophy-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 620px;
}

/* Showcase */
.showcase { padding: 76px 0; background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.showcase-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 24px 28px;
}

.showcase-art {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
}

.showcase-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.showcase-card h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.showcase-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Pillars */
.pillars { padding: 76px 0; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.pillar-card {
  background: var(--paper);
  padding: 30px 26px;
}

.pillar-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.pillar-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Security */
.security { background: var(--navy); padding: 72px 0; }

.security-inner { max-width: 640px; }

.security-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 12px;
}

.security-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

/* Partners */
.partners { padding: 56px 0; text-align: center; }

.partners-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.partners-label-sm {
  margin-top: 34px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.55;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

/* CTA band */
.cta-band {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.cta-band p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 40px 0; }

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer strong { margin-left: 8px; color: var(--paper); }

.footer p { font-size: 0.85rem; margin: 8px 0 0; }

.footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer-support a { font-weight: 600; color: var(--paper); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .topnav { display: none; }
  .topbar-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; }

  body.nav-open .mobile-menu { display: flex; }
  body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .pourqui-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .lang-current-label { display: none; }
  .lang-switch-btn { padding: 8px 10px; }
}

/* RTL (Arabic) support */
[dir="rtl"] .lang-menu { right: auto; left: 0; text-align: right; }
[dir="rtl"] .lang-option { text-align: right; }
[dir="rtl"] .security-list li { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .security-list li::before { left: auto; right: 0; }
[dir="rtl"] .tx-card-behind { transform: translate(-16px, 20px); }
[dir="rtl"] .topnav a::after { left: auto; right: 0; }
[dir="rtl"] .hero-cta { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .mobile-menu a { border-left: none; }
