/* Whites — site styles.
   Logical properties (inline-start/end) keep the Arabic (RTL) and English (LTR) layouts in sync. */

:root {
  --ink: #0c1a2b;
  --ink-2: #13263c;
  --ink-3: #1c3552;
  --text: #2a3646;
  --muted: #5c6878;
  --line: #e8e3d8;
  --line-2: #d8d0c0;
  --bg: #ffffff;
  --warm: #f8f5ef;
  --warm-2: #f1ebe0;
  --gold: #b8913f;
  --gold-2: #d7b56c;
  --gold-3: #ecd9ae;
  --gold-soft: #f6eedd;
  --gold-ink: #876220;
  --on-dark: #c3cedb;
  --on-dark-2: #8fa1b6;
  --wa: #0e7c66;
  --danger: #b42318;
  --ok: #157a55;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 43, 0.06);
  --shadow: 0 18px 40px -22px rgba(12, 26, 43, 0.28), 0 2px 6px rgba(12, 26, 43, 0.04);
  --shadow-lg: 0 40px 80px -32px rgba(12, 26, 43, 0.45);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[dir='ltr'] body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; color: var(--ink); font-weight: 700; line-height: 1.35; }
[dir='ltr'] :is(h1, h2, h3) { letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--gold-3); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[dir='rtl'] .icon-arrow { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgba(12, 26, 43, 0.55); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--ink-3); }
.btn--gold { --btn-bg: var(--gold-2); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: var(--gold-3); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-2); }
.btn--ghost:hover { --btn-bg: #fff; --btn-border: var(--ink); box-shadow: none; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { --btn-border: #fff; box-shadow: none; }
.btn--whatsapp { --btn-bg: var(--wa); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14.5px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(12, 26, 43, 0.45); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; }
.brand-mark-bg { fill: var(--ink); }
.brand-mark-w { fill: none; stroke: var(--gold-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark-dot { fill: none; stroke: var(--gold-2); stroke-width: 3.2; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: 0.26em; color: var(--ink); }
.brand-sub { margin-top: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }
.brand--light .brand-mark-bg { fill: rgba(255, 255, 255, 0.07); }
.brand--light .brand-name { color: #fff; }
.brand--light .brand-sub { color: var(--on-dark-2); }

.site-nav { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.15s, color 0.15s;
}
.nav-list a:hover { background: var(--warm); color: var(--ink); }
.nav-list a[aria-current='page'] { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s;
}
.lang-switch:hover { border-color: var(--ink); }
.lang-switch .icon { width: 17px; height: 17px; }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle-bars span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--warm { background: var(--warm); }
.section--dark { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.section--dark::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 108, 0.16), transparent 65%);
  pointer-events: none;
}
.section--dark :is(h2, h3) { color: #fff; }
.section--center { min-height: 62vh; display: grid; align-items: center; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-ink);
}
.kicker::before { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--gold-2); }
.section--dark .kicker, .panel--dark .kicker { color: var(--gold-2); }
.section-title { font-size: clamp(28px, 3.6vw, 42px); }
.lead { font-size: clamp(16.5px, 1.6vw, 18.5px); color: var(--muted); }
.section--dark .lead { color: var(--on-dark); }

.icon-tile {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  flex-shrink: 0;
}
.icon-tile .icon { width: 28px; height: 28px; }
.icon-tile--sm { width: 48px; height: 48px; border-radius: 14px; }
.icon-tile--sm .icon { width: 24px; height: 24px; }
.icon-tile--dark { background: rgba(215, 181, 108, 0.12); color: var(--gold-2); }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon {
  width: 22px; height: 22px;
  margin-top: 3px;
  padding: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  stroke-width: 2.6;
}
.check-list--light li { color: var(--on-dark); }
.check-list--light .icon { background: rgba(215, 181, 108, 0.14); color: var(--gold-2); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 84px) clamp(64px, 8vw, 112px);
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(215, 181, 108, 0.2), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--warm) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, #000, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.hero h1 { margin-bottom: 22px; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.25; }
[dir='ltr'] .hero h1 { line-height: 1.08; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-ink);
  background: linear-gradient(transparent 68%, var(--gold-soft) 68%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero .lead { max-width: 580px; font-size: clamp(17px, 1.7vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions--center { justify-content: center; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.hero-points .icon { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.4; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 500px); }
.hero-art { overflow: hidden; aspect-ratio: 480 / 560; border-radius: var(--radius-xl); background: var(--ink); box-shadow: var(--shadow-lg); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
/* Mirror the skyline in Arabic so the rising line reads right→left and the sun stays clear of the status card. */
[dir='rtl'] .hero-art img { transform: scaleX(-1); }
.float-card {
  position: absolute;
  padding: 16px 18px;
  border: 1px solid rgba(232, 227, 216, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.float-card small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.float-card strong { display: block; font-size: 15px; }
.float-card--status { inset-inline-start: -40px; top: 12%; width: max-content; min-width: 230px; animation: float 7s ease-in-out infinite; }
.float-card--secure { inset-inline-end: -32px; bottom: 18%; display: flex; align-items: center; gap: 12px; animation: float 7s ease-in-out -3.5s infinite; }
.float-card--chip {
  inset-inline-start: 24px;
  bottom: -18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
[dir='rtl'] .float-card--chip { padding: 8px 10px 8px 18px; }
.float-title { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.status-list { list-style: none; display: grid; gap: 10px; }
.status-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.status-ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e2f3ea; color: var(--ok); flex-shrink: 0; }
.status-ico .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.is-live .status-ico { background: var(--gold-soft); }
.is-live small { margin-inline-start: auto; padding: 2px 8px; white-space: nowrap; border-radius: 999px; background: var(--gold-soft); font-size: 11.5px; font-weight: 600; color: var(--gold-ink); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
.chip-icons { display: flex; }
.chip-icons .icon {
  width: 32px; height: 32px;
  padding: 7px;
  margin-inline-start: -9px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-2);
}
.chip-icons .icon:first-child { margin-inline-start: 0; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 145, 63, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(184, 145, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 145, 63, 0); }
}

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.service-card:focus-within { border-color: var(--gold-2); }
.service-num { position: absolute; inset-inline-end: 24px; top: 24px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--line-2); }
.service-card .icon-tile { margin-bottom: 22px; transition: background-color 0.25s, color 0.25s; }
.service-card:hover .icon-tile { background: var(--ink); color: var(--gold-2); }
.service-card h3 { font-size: 21px; }
.service-card p { font-size: 15.5px; color: var(--muted); }
.service-card .check-list { gap: 9px; margin-bottom: 24px; font-size: 15px; }
.service-card .check-list .icon { width: 20px; height: 20px; margin-top: 4px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--ink); }
.card-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-link .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.service-card:hover .card-link .icon { transform: translateX(4px); }
[dir='rtl'] .service-card:hover .card-link .icon { transform: scaleX(-1) translateX(4px); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.feature .icon-tile { margin-bottom: 18px; }
.feature h3 { font-size: 19px; }
.feature p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; }
.steps::before {
  content: '';
  position: absolute;
  top: 27px;
  inset-inline: 12.5%;
  border-top: 2px dashed var(--line-2);
}
.step { position: relative; text-align: center; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-2);
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 0 0 8px var(--bg);
}
.section--warm .step-num { box-shadow: 0 0 0 8px var(--warm); }
.step h3 { font-size: 19px; }
.step p { max-width: 260px; margin: 0 auto; font-size: 15.5px; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.calc-form { display: grid; gap: 26px; padding: clamp(24px, 4vw, 44px); }
.calc-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0; font-weight: 600; color: var(--ink); }
.calc-unit { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.calc-input {
  display: flex;
  align-items: center;
  height: 54px;
  padding-inline: 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.calc-input input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 600; color: var(--ink); text-align: start; }
[dir='rtl'] .calc-input input { text-align: right; }
/* Sliders stay left→right in both languages (browsers disagree on how to mirror the filled track). */
.range {
  --p: 50%;
  direction: ltr;
  width: 100%;
  height: 6px;
  margin: 18px 0 4px;
  border-radius: 6px;
  background: linear-gradient(to right, var(--ink) var(--p), var(--line) var(--p));
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  width: 24px; height: 24px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 26, 43, 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.range::-moz-range-thumb { width: 16px; height: 16px; border: 4px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(12, 26, 43, 0.25); }
.range:focus-visible { outline-offset: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--warm); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px; border-radius: 10px; text-align: center; font-weight: 600; color: var(--muted); transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.calc-help { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

.calc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--on-dark);
}
.calc-result::before {
  content: '';
  position: absolute;
  inset: auto -120px -140px auto;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 108, 0.22), transparent 70%);
  pointer-events: none;
}
.calc-result-label { margin: 0; font-weight: 500; color: var(--on-dark-2); }
.calc-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: -10px 0 0; font-size: clamp(36px, 4.6vw, 52px); font-weight: 700; line-height: 1.1; color: #fff; }
.calc-cur { font-size: 18px; font-weight: 600; color: var(--gold-2); }
.split-bar { display: flex; height: 10px; overflow: hidden; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.split-principal { width: 70%; background: #fff; transition: width 0.4s var(--ease); }
.split-interest { width: 30%; background: var(--gold-2); transition: width 0.4s var(--ease); }
.calc-rows { display: grid; gap: 0; margin: 0; }
.calc-rows div { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.calc-rows dt { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-2); }
.calc-rows dd { margin: 0; font-weight: 600; color: #fff; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot--principal { background: #fff; }
.dot--interest { background: var(--gold-2); }
.dot--muted { background: rgba(255, 255, 255, 0.25); }
.calc-result .btn { position: relative; margin-top: auto; }
.calc-note { position: relative; margin: 0; font-size: 13px; color: var(--on-dark-2); }

/* ---------- B2B (collection) ---------- */
.b2b { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.b2b .check-list { margin: 26px 0 0; }
.report-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.6);
}
.report-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.report-head strong { display: block; color: #fff; font-size: 16.5px; }
.report-head small { color: var(--on-dark-2); font-size: 13px; }
.report-bars { width: 100%; height: 150px; }
.bar-done { fill: var(--gold-2); }
.bar-pending { fill: rgba(255, 255, 255, 0.12); }
.report-legend { display: flex; gap: 20px; margin: 14px 0 20px; font-size: 13.5px; color: var(--on-dark-2); }
.report-legend span { display: inline-flex; align-items: center; gap: 8px; }
.report-rows { list-style: none; display: grid; gap: 14px; }
.report-rows li { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; font-size: 14px; color: var(--on-dark); }
.report-rows svg { width: 100%; height: 8px; }
.report-rows .track { fill: rgba(255, 255, 255, 0.1); }
.report-rows .fill { fill: #fff; }
[dir='rtl'] .report-rows svg, [dir='rtl'] .report-bars { transform: scaleX(-1); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-intro .btn { margin-top: 10px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  list-style: none;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--warm); color: var(--ink); flex-shrink: 0; transition: transform 0.25s var(--ease), background-color 0.2s; }
.faq-icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--gold-soft); }
.faq-a { padding: 0 24px 20px; }
.faq-a p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-3) 100%);
  color: var(--on-dark);
}
.cta-band::before,
.cta-band::after { content: ''; position: absolute; border: 1px solid rgba(215, 181, 108, 0.25); border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 420px; height: 420px; inset-inline-end: -120px; top: -200px; }
.cta-band::after { width: 260px; height: 260px; inset-inline-end: -40px; top: -120px; }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 10px; font-size: clamp(24px, 3vw, 34px); color: #fff; }
.cta-band p { margin: 0; max-width: 560px; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: start; }
.form-card { position: relative; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full, .field-group { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; font-size: 13px; color: var(--muted); }
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #98a2af; }
.input:hover { border-color: #c6bca8; }
.input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.6; }
select.input {
  padding-inline-end: 42px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c1a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: right 14px center;
  cursor: pointer;
}
[dir='rtl'] select.input { background-position: left 14px center; }
[dir='rtl'] .input[dir='ltr'] { text-align: right; }
.field.has-error .input { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08); }
.field-error { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--danger); }
.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  background: var(--warm);
}
.field-group[hidden] { display: none; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; font-weight: 500 !important; line-height: 1.6; color: var(--text) !important; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form-alert { margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; background: #fdecea; color: var(--danger); font-size: 14.5px; font-weight: 500; }
.lead-form .btn--block { margin-top: 22px; }
.form-success { padding: clamp(16px, 4vw, 32px) 8px; text-align: center; }
.form-success:focus { outline: 0; }
.success-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e2f3ea;
  color: var(--ok);
  box-shadow: 0 0 0 10px #f1faf5;
}
.success-icon .icon { width: 34px; height: 34px; stroke-width: 2.4; }
.form-success h3 { font-size: 24px; }
.form-success p { max-width: 420px; margin-inline: auto; color: var(--muted); }

.info-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 32px; border-radius: var(--radius-xl); background: var(--ink); color: var(--on-dark); }
.info-card h3 { margin-bottom: 18px; font-size: 19px; color: #fff; }
.info-card .info-sub { margin-top: 28px; }
.next-steps { list-style: none; display: grid; gap: 14px; }
.next-steps li { display: flex; align-items: flex-start; gap: 12px; }
.next-steps span {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(215, 181, 108, 0.14);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
}
.info-card .btn--whatsapp { margin-top: 24px; }
.info-note { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: var(--on-dark-2); }
.info-note .icon { width: 18px; height: 18px; color: var(--gold-2); }

.channels { list-style: none; display: grid; gap: 4px; }
.channel { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.channel-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; background: rgba(215, 181, 108, 0.12); color: var(--gold-2); }
.channel-icon .icon { width: 20px; height: 20px; }
.channel-text { display: flex; flex-direction: column; line-height: 1.4; }
.channel-label { font-size: 12.5px; color: var(--on-dark-2); }
.channel-text a, .channel-text > span:last-child { font-weight: 600; color: #fff; }
.channel-text a:hover { color: var(--gold-2); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(215, 181, 108, 0.16), transparent 62%),
    linear-gradient(180deg, #fff, var(--warm));
}
.page-hero-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.25; }
[dir='ltr'] .page-hero h1 { line-height: 1.1; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; list-style: none; font-size: 14px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-inline-end: 8px; color: var(--line-2); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.page-hero-art { position: relative; justify-self: center; display: grid; place-items: center; width: min(100%, 300px); aspect-ratio: 1; }
.page-hero-art::before,
.page-hero-art::after { content: ''; position: absolute; border: 1px dashed var(--line-2); border-radius: 50%; }
.page-hero-art::before { inset: 0; animation: spin 60s linear infinite; }
.page-hero-art::after { inset: 14%; border-style: solid; border-color: var(--line); }
.orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--ink-3), var(--ink) 70%);
  color: var(--gold-2);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.orb .icon { width: 44%; height: 44%; stroke-width: 1.3; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Panels / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { padding: clamp(26px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; }
.panel--dark { border-color: transparent; background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: var(--on-dark); }
.panel-title { margin-bottom: 22px; font-size: 22px; }
.panel--dark .panel-title { color: #fff; }
.panel-note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-p { font-size: 17px; }
.emblem { padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-xl); background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-lg); }
.emblem h3 { margin-bottom: 16px; color: #fff; }
.emblem-list { list-style: none; display: grid; gap: 6px; }
.emblem-list a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; transition: background-color 0.2s; }
.emblem-list a:hover { background: rgba(255, 255, 255, 0.05); }
.emblem-list strong { display: block; color: #fff; }
.emblem-list small { display: block; font-size: 13px; color: var(--on-dark-2); }
.emblem-list > li > a > .icon { width: 18px; height: 18px; margin-inline-start: auto; color: var(--gold-2); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; }
.mv-card .icon-tile { margin-bottom: 20px; }
.mv-card h2 { font-size: 26px; }
.mv-card p { margin: 0; font-size: 17px; color: var(--muted); }
.mv-card--dark { border-color: transparent; background: linear-gradient(160deg, var(--ink), var(--ink-3)); }
.mv-card--dark h2 { color: #fff; }
.mv-card--dark p { color: var(--on-dark); }

/* ---------- Prose / misc pages ---------- */
.prose { max-width: 800px; }
.prose h2 { margin: 2em 0 0.6em; font-size: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { display: grid; gap: 8px; padding-inline-start: 1.3em; }
.prose li::marker { color: var(--gold); }
.prose p, .prose li { font-size: 16.5px; }
.center-card { max-width: 640px; margin-inline: auto; text-align: center; }
.center-card h1 { font-size: clamp(28px, 4vw, 40px); }
.big-code { margin: 0 0 8px; font-size: clamp(72px, 12vw, 128px); font-weight: 700; line-height: 1; letter-spacing: 0.04em; color: var(--gold-3); }
.pill-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.pill-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; }
.pill-links a:hover { border-color: var(--ink); }
.pill-links .icon { width: 18px; height: 18px; color: var(--gold-ink); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 28px; background: var(--ink); color: var(--on-dark-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand p { max-width: 360px; margin: 20px 0 0; }
.footer-title { margin-bottom: 16px; font-size: 15px; font-weight: 600; color: #fff; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.channels--footer .channel { padding-block: 6px; }
.channels--footer .channel-icon { width: 34px; height: 34px; border-radius: 10px; }
.socials { list-style: none; display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; color: #fff; transition: border-color 0.15s, color 0.15s; }
.socials a:hover { border-color: var(--gold-2); color: var(--gold-2); }
.socials .icon { width: 20px; height: 20px; }
.disclaimer { max-width: 860px; margin: 44px 0 0; font-size: 13px; line-height: 1.7; color: #7d8fa4; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.footer-lang { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.footer-lang .icon { width: 17px; height: 17px; }

/* ---------- WhatsApp button ---------- */
.wa-fab {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(14, 124, 102, 0.7);
  transition: transform 0.2s var(--ease);
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab .icon { width: 28px; height: 28px; stroke-width: 1.8; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js [data-reveal].is-visible { opacity: 1; transform: none; }
:is(.services-grid, .features, .steps, .split, .mv-grid) > :nth-child(2) { transition-delay: 0.07s; }
:is(.services-grid, .features, .steps, .split, .mv-grid) > :nth-child(3) { transition-delay: 0.14s; }
:is(.services-grid, .features, .steps) > :nth-child(4) { transition-delay: 0.21s; }
.features > :nth-child(5) { transition-delay: 0.28s; }
.features > :nth-child(6) { transition-delay: 0.35s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-list a { padding-inline: 9px; font-size: 14.5px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-grid; margin-inline-start: auto; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 12px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 30px 50px -30px rgba(12, 26, 43, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a { padding: 12px 14px; border-radius: 12px; font-size: 16.5px; }
  .nav-actions { flex-direction: column; align-items: stretch; padding-top: 16px; border-top: 1px solid var(--line); }
  .nav-actions .btn { min-height: 50px; }
  .lang-switch { justify-content: center; padding-block: 12px; }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-nav { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0; border: 0; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid,
  .b2b,
  .faq,
  .calc,
  .contact-grid,
  .story,
  .page-hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 460px); margin-top: 8px; }
  .float-card--status { inset-inline-start: -12px; top: 8%; width: 220px; }
  .float-card--secure { inset-inline-end: -12px; bottom: 14%; }
  .page-hero-art { display: none; }
  .faq-intro, .info-card { position: static; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .services-grid--3 { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .split, .mv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 11px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { padding: 12px 14px; }
  .float-card--status { min-width: 0; }
  .status-list li { font-size: 13px; }
  .is-live small { display: none; }
  .float-card--secure strong { font-size: 14px; }
  .float-card--chip { display: none; }
  .services-grid, .services-grid--3, .features, .features--4, .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; text-align: start; }
  .step-num { grid-row: span 2; width: 48px; height: 48px; margin: 0; font-size: 18px; }
  .step p { max-width: none; margin: 0; }
  .form-grid, .field-group { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .report-rows li { grid-template-columns: 1fr; gap: 6px; }
  .faq-item summary { padding: 18px; font-size: 15.5px; }
  .faq-a { padding: 0 18px 18px; }
  .wa-fab { width: 54px; height: 54px; inset-inline-end: 16px; bottom: 16px; }
}
