/* ============================================
   NEO FINANCE — PREMIUM UI/UX
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --bg-dark: #04101a;
  --bg-dark-2: #07182a;
  --ink: #0a1722;
  --ink-2: #1a2733;
  --muted: #5a6b7a;
  --muted-2: #8a98a8;
  --line: #e6ebf0;
  --line-dark: rgba(255,255,255,.08);

  --teal: #1bb7c7;
  --teal-2: #73d2e0;
  --teal-3: #0e8e9a;
  --teal-glow: rgba(27,183,199,.45);
  --gold: #d6b46a;
  --gold-2: #e8c87f;

  --grad-primary: linear-gradient(135deg, #1bb7c7 0%, #73d2e0 100%);
  --grad-text: linear-gradient(90deg, #1bb7c7, #73d2e0 60%, #d6b46a);
  --grad-dark: linear-gradient(180deg, #04101a 0%, #07182a 100%);
  --grad-mesh: radial-gradient(ellipse 80% 60% at 20% 30%, rgba(27,183,199,.25), transparent 60%),
               radial-gradient(ellipse 70% 50% at 80% 60%, rgba(115,210,224,.18), transparent 60%),
               radial-gradient(ellipse 60% 40% at 50% 80%, rgba(214,180,106,.10), transparent 60%);

  --shadow-sm: 0 2px 8px rgba(10,23,34,.04), 0 1px 2px rgba(10,23,34,.06);
  --shadow-md: 0 8px 24px rgba(10,23,34,.06), 0 2px 6px rgba(10,23,34,.04);
  --shadow-lg: 0 24px 60px rgba(10,23,34,.10), 0 8px 20px rgba(10,23,34,.06);
  --shadow-xl: 0 40px 100px rgba(10,23,34,.14), 0 12px 28px rgba(10,23,34,.08);
  --shadow-glow: 0 20px 60px rgba(27,183,199,.30), 0 8px 24px rgba(27,183,199,.18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);

  --container: 1240px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
[dir="rtl"] body { font-family: 'Tajawal', 'Inter', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, output, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== CURSOR GLOW (desktop) ===== */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,183,199,.10), transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .3s ease;
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) {
  body:hover .cursor-glow { opacity: 1; }
}
@media (max-width: 900px) { .cursor-glow { display: none; } }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-primary);
  box-shadow: 0 0 14px var(--teal-glow);
  transition: width .1s linear;
}

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(10,23,34,.04);
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(10,23,34,.06), 0 8px 24px rgba(10,23,34,.04);
  border-bottom-color: rgba(10,23,34,.06);
  padding: 12px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  transition: color .25s var(--ease);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--teal); }
.main-nav a:hover::after { width: calc(100% - 32px); }
.lang-switch {
  margin-inline-start: 8px;
  padding: 8px 16px !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600 !important;
  font-size: 13.5px !important;
}
.lang-switch::after { display: none; }
.lang-switch:hover {
  background: var(--ink);
  color: #fff !important;
  border-color: var(--ink);
}

/* ===== BUTTONS ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(10,23,34,.18), inset 0 1px 0 rgba(255,255,255,.08);
  isolation: isolate;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover::before { opacity: 1; }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 30px rgba(10,23,34,.30);
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: var(--teal);
  box-shadow: var(--shadow-glow);
}
.btn-arrow { transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(3px); }

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border-radius: 12px;
}
.menu-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfe 0%, #ffffff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-mesh {
  position: absolute; inset: 0;
  background: var(--grad-mesh);
  animation: meshShift 18s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0% { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(27,183,199,.55), transparent 70%);
  top: -100px; right: -80px;
}
.hero-orb-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(115,210,224,.45), transparent 70%);
  bottom: -120px; left: -60px;
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(214,180,106,.30), transparent 70%);
  top: 40%; left: 45%;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.06); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,23,34,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,23,34,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 50%, #000 30%, transparent 80%);
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .04;
  mix-blend-mode: overlay;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  z-index: 2;
}
.hero-copy { max-width: 640px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 var(--teal-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--teal-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--ink);
}
[dir="rtl"] .hero-title { font-family: 'Tajawal', sans-serif; font-weight: 800; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero-lede {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 20px;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.hero-meta-item svg {
  color: var(--teal);
  flex-shrink: 0;
}
.trademark {
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* PHONE VISUAL */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  perspective: 1400px;
  overflow: visible;
}
.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.phone-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 110%; height: 90%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(27,183,199,.55), transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(214,180,106,.25), transparent 65%);
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  filter:
    drop-shadow(0 40px 70px rgba(10,23,34,.22))
    drop-shadow(0 14px 24px rgba(10,23,34,.12));
  animation: phoneFloat 6s ease-in-out infinite;
  transition: transform .6s var(--ease-out);
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* FLOATING CARDS */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: floatCard 7s ease-in-out infinite;
}
.float-card-1 {
  top: 14%;
  right: -4%;
  animation-delay: -1s;
}
.float-card-2 {
  bottom: 18%;
  left: -8%;
  animation-delay: -4s;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
.fc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-title { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.fc-sub { font-size: 12px; color: var(--muted); }

/* SCROLL INDICATOR */
.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 2px solid var(--muted-2);
  border-radius: 999px;
  z-index: 3;
}
.hero-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--teal);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translate(-50%, 0); }
  50% { opacity: .3; transform: translate(-50%, 12px); }
}

/* ===== STATS ===== */
.stats {
  padding: 80px 0;
  background: linear-gradient(180deg, #fff 0%, #f7f9fb 100%);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-2);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section { padding: 120px 0; position: relative; }
.section-light { background: #fff; }
.section-dark {
  background: var(--grad-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(27,183,199,.18), transparent 60%);
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 1; }

.section-heading.center { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-kicker {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-kicker.dark { color: var(--ink); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
}
/* Only the leading number renders as a circular badge — the label beside it is
   a plain span so it can carry a data-i18n attribute. */
.section-tag .section-tag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.section-dark .section-tag { color: rgba(255,255,255,.6); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 18px;
}
[dir="rtl"] .section-title { font-family: 'Tajawal', sans-serif; }
.section-title.white { color: #fff; }
.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
}
.section-body.muted { color: rgba(255,255,255,.7); }
.section-heading.center .section-body { margin-inline: auto; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.value-list {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
}
.value-list svg {
  width: 20px; height: 20px;
  color: var(--teal);
  background: rgba(27,183,199,.10);
  border-radius: 50%;
  padding: 3px;
  flex-shrink: 0;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.text-link:hover {
  color: var(--teal-3);
  border-color: var(--teal-3);
}
.text-link::after {
  content: '→';
  transition: transform .25s var(--ease);
}
[dir="rtl"] .text-link::after { content: '←'; }
.text-link:hover::after { transform: translateX(4px); }
[dir="rtl"] .text-link:hover::after { transform: translateX(-4px); }

/* ===== PROCESS ===== */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-line-wrap {
  position: absolute;
  top: 60px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  z-index: 0;
}
.process-line {
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(27,183,199,.5), rgba(115,210,224,.5), transparent);
}
.process-card {
  position: relative;
  padding: 32px 24px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  z-index: 1;
}
.process-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.06);
  border-color: rgba(27,183,199,.4);
}
.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-2);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.process-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(27,183,199,.30);
}
.process-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}
.process-card p {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}

/* ===== HOW WE WORK ===== */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.pill-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .3s var(--ease);
}
.pill i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
}
.pill-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 8px 24px rgba(10,23,34,.18);
}
.pill-active i { background: var(--teal); box-shadow: 0 0 0 3px rgba(27,183,199,.25); }
.pill-arrow { color: var(--muted-2); font-weight: 700; }
[dir="rtl"] .pill-arrow { transform: scaleX(-1); }

.how-visual {
  position: relative;
}
.how-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.how-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.how-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(4,16,26,.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.how-card-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  color: #fff;
}
.how-card-stats > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
[dir="rtl"] .how-card-stats strong { font-family: 'Tajawal', sans-serif; }
/* "256-bit" is a Latin technical term kept untranslated. Marking it dir="ltr"
   stops RTL reordering flipping it to "bit-256"; the alignment override keeps
   it flush with the Arabic label beneath it. */
[dir="rtl"] .how-card-stats strong[dir="ltr"] { text-align: right; }
.how-card-stats strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.how-card-stats span {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  position: relative;
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(27,183,199,.05), rgba(115,210,224,.02));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-2);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-card > * { position: relative; }
.benefit-card-feature {
  background: linear-gradient(135deg, #0a1722 0%, #07182a 100%);
  color: #fff;
  border-color: transparent;
}
.benefit-card-feature h3 { color: #fff; }
.benefit-card-feature p { color: rgba(255,255,255,.7); }
.benefit-icon {
  width: 60px; height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  color: #fff;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(27,183,199,.30);
}
.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.benefit-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.benefit-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(27,183,199,.10);
  color: var(--teal-3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.benefit-card-feature .benefit-tag {
  background: rgba(27,183,199,.20);
  color: var(--teal-2);
}

/* ===== CALCULATOR ===== */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.fine-print {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.calc-card {
  padding: 32px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0,0,0,.30);
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(27,183,199,.10), transparent 60%);
  pointer-events: none;
}
.calc-card > * { position: relative; }
.calc-output {
  padding: 28px;
  background: linear-gradient(135deg, rgba(27,183,199,.18), rgba(115,210,224,.10));
  border: 1px solid rgba(27,183,199,.25);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  text-align: center;
}
.calc-output-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  font-weight: 600;
}
.calc-output-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.calc-currency {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
}
#calcMonthly {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.calc-output-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
}
.calc-output-meta strong { color: #fff; font-weight: 600; }
.calc-output-meta .dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 50%;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}
.calc-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calc-field-head label {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Space Grotesk carries no Arabic glyphs, so anything that can hold Arabic
   needs a Tajawal fallback in RTL (see .hero-title / .section-title / .cta-title). */
[dir="rtl"] .calc-field-val { font-family: 'Tajawal', sans-serif; }
.calc-field-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: rgba(27,183,199,.18);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(27,183,199,.50);
  cursor: grab;
  transition: transform .2s var(--ease);
}
.calc-slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(27,183,199,.50);
  cursor: grab;
}
.calc-field-range {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.section-testimonials { background: #f7f9fb; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  padding: 32px 28px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.t-stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
  margin-bottom: 18px;
}
.t-stars svg { width: 18px; height: 18px; }
.t-quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  font-weight: 500;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.t-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.t-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.t-role { font-size: 12.5px; color: var(--muted); }

/* ===== FAQ ===== */
.faq-container { max-width: 820px; margin: 0 auto; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-list details[open] {
  border-color: var(--teal-2);
  box-shadow: var(--shadow-md);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: relative;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  flex-shrink: 0;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.faq-toggle::before, .faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-toggle::before {
  width: 12px; height: 2px;
  transform: translate(-50%, -50%);
}
.faq-toggle::after {
  width: 2px; height: 12px;
  transform: translate(-50%, -50%);
}
.faq-list details[open] .faq-toggle {
  background: var(--teal);
  transform: rotate(180deg);
}
.faq-list details[open] .faq-toggle::before { background: #fff; }
.faq-list details[open] .faq-toggle::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #1bb7c7 0%, #73d2e0 60%, #d6b46a 130%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  border-radius: 50%;
  filter: blur(40px);
  animation: orbFloat 16s ease-in-out infinite;
}
.cta-wrap {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}
[dir="rtl"] .cta-title { font-family: 'Tajawal', sans-serif; }
.cta-body {
  color: rgba(10,23,34,.75);
  font-size: 1rem;
  max-width: 560px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  /* Widths follow the content: the brand column holds only the logo, Quick Links
     and Contact carry the long labels, Social is three short words. */
  grid-template-columns: 0.6fr 1.4fr 0.7fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
/* The stacked mark is portrait (324x512), so it renders narrow. With the about
   paragraph gone it is the only thing in its column and needs the extra height
   to hold its own beside the link lists. */
.footer-logo-img { height: 88px; width: auto; 
  mix-blend-mode: screen;
  filter: contrast(2.1);}
.site-footer h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 18px;
}
/* The Contact Us column gets extra breathing room under its heading. */
.site-footer h3.footer-contact-title { margin-bottom: 30px; }
.footer-links li, .footer-social li, .contact-list li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-links a, .footer-social a, .contact-list a {
  color: rgba(255,255,255,.65);
  transition: color .25s var(--ease);
}
.footer-links a:hover, .footer-social a:hover, .contact-list a:hover {
  color: var(--teal-2);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-social svg {
  padding: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  transition: background .25s var(--ease), color .25s var(--ease);
  box-sizing: content-box;
}
.footer-social a:hover svg { background: var(--teal); color: #fff; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
}
.contact-list svg {
  color: var(--teal-2);
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-badge {
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.04em;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 36px rgba(10,23,34,.30);
  transform: translateY(120px);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease);
}
.floating-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.floating-cta:hover {
  background: var(--teal);
  box-shadow: var(--shadow-glow);
}
[dir="rtl"] .floating-cta { right: auto; left: 24px; }

/* ===== REVEAL ANIMATIONS ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal][data-delay="1"] { transition-delay: .10s; }
[data-reveal][data-delay="2"] { transition-delay: .20s; }
[data-reveal][data-delay="3"] { transition-delay: .30s; }
[data-reveal][data-delay="4"] { transition-delay: .40s; }
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legacy reveal (compat with i18n.js if used) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== MOBILE NAV ===== */
@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    top: 70px; left: 16px; right: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover { background: var(--bg-soft); color: var(--ink); }
  .lang-switch { text-align: center; margin-top: 8px; }
  .menu-toggle { display: block; }
  .nav-wrap > .btn { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-line-wrap { display: none; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .calculator-grid, .how-grid, .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .cta-wrap { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 420px; }
  .phone-stage { max-width: 280px; }
  .phone { max-height: 480px; }
  .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-scroll { display: none; }
  .stats { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 24px 12px; }
  .calc-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .floating-cta { padding: 12px 18px; font-size: 13px; }
  .floating-cta span { display: none; }
}

@media (max-width: 480px) {
  .hero-visual { min-height: 360px; }
  .phone-stage { max-width: 240px; }
  .phone { max-height: 420px; }
  .how-card-stats { grid-template-columns: 1fr; gap: 12px; }
  .how-card-overlay { padding: 20px; }
  .pill-line { gap: 6px; }
  .pill { padding: 8px 12px; font-size: 12.5px; }
}

/* ===== RTL TWEAKS ===== */
[dir="rtl"] .hero-orb-1 { right: auto; left: -80px; }
[dir="rtl"] .hero-orb-2 { left: auto; right: -60px; }

/* ===== LEGAL PAGE ===== */
.legal-page-body {
  background: var(--bg-soft);
  color: var(--ink);
}

.legal-site-header {
  background: rgba(255, 255, 255, 0.96);
}

.legal-hero {
  position: relative;
  height: 180px;
  margin-top: 70px;
  overflow: hidden;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--grad-mesh), linear-gradient(180deg, #f0f8fa 0%, var(--bg-soft) 100%);
}

.legal-main {
  padding: 0 0 80px;
  margin-top: -72px;
  position: relative;
  z-index: 1;
}

.legal-shell {
  max-width: 880px;
}

.legal-lang-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin: 0 auto 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

.legal-shell .legal-lang-bar {
  display: flex;
  width: fit-content;
}

.legal-lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}

.legal-lang-btn:hover {
  color: var(--ink);
}

.legal-lang-btn.is-active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(27, 183, 199, 0.28);
}

.legal-document {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(4, 16, 26, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 48px 56px;
}

.legal-document[hidden] {
  display: none !important;
}

.legal-document:not(.is-active) {
  display: none;
}

.legal-document.is-active {
  display: block;
}

.legal-document-ar,
.legal-document-ar .legal-title,
.legal-document-ar .legal-part,
.legal-document-ar .legal-section {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

.legal-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(4, 16, 26, 0.08);
}

.legal-brand {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.legal-document-ar .legal-brand {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
}

.legal-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.55rem);
  line-height: 1.12;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  padding: 6px 12px;
  background: var(--bg-soft);
  border-radius: 999px;
}

.legal-toc {
  background: linear-gradient(180deg, #f8fbfd 0%, #f3f7fa 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
}

.legal-toc-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.legal-toc ol {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.legal-toc li + li {
  margin-top: 8px;
}

.legal-toc a {
  color: var(--teal-3);
  text-decoration: none;
  font-weight: 500;
}

.legal-toc a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.legal-part {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.28rem;
  margin: 44px 0 22px;
  padding: 14px 0 14px 16px;
  border-inline-start: 4px solid var(--teal);
  color: var(--ink);
  background: linear-gradient(90deg, rgba(27, 183, 199, 0.08), transparent);
  border-radius: 0 12px 12px 0;
}

.legal-document-ar .legal-part {
  padding: 14px 16px 14px 0;
  border-inline-start: 0;
  border-inline-end: 4px solid var(--teal);
  border-radius: 12px 0 0 12px;
  background: linear-gradient(270deg, rgba(27, 183, 199, 0.08), transparent);
}

.legal-section {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.08rem;
  margin: 30px 0 12px;
  scroll-margin-top: 110px;
  color: var(--ink);
}

.legal-subsection {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 18px 0 10px;
  line-height: 1.6;
  color: var(--ink-2);
}

.legal-paragraph {
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0 0 14px;
  font-size: 0.98rem;
}

.legal-list {
  margin: 0 0 18px;
  padding-inline-start: 1.35rem;
  color: var(--ink-2);
}

.legal-list li {
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 0.98rem;
}

.legal-list li::marker {
  color: var(--teal);
}

.legal-body a {
  color: var(--teal-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--teal);
}

.legal-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.legal-nav a:hover {
  color: var(--teal);
}

.legal-footer {
  padding: 32px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.legal-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .legal-hero {
    height: 140px;
    margin-top: 64px;
  }

  .legal-main {
    margin-top: -56px;
    padding-bottom: 56px;
  }

  .legal-document {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .legal-lang-bar {
    width: calc(100% - 8px);
    justify-content: center;
  }

  .legal-lang-btn {
    flex: 1;
    padding: 12px 14px;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
