/* =============================================================================
   OiaPay — Landing Page Styles
   Premium FinTech · Bilingual (RTL/LTR) · Bootstrap 5 base + custom layer
   ============================================================================= */

:root {
  /* Brand palette (Royal Blue family) */
  --royal:        #0D47A1;
  --royal-dark:   #0A2E73;
  --blue-light:   #2196F3;
  --blue-soft:    #EAF3FF;
  --navy:         #071E4A;
  --white:        #FFFFFF;
  --ink:          #1A1A1A;
  --muted:        #5B6B86;
  --success:      #00C853;
  --gold:         #F2BD3D;

  --grad-primary: linear-gradient(135deg, var(--blue-light) 0%, var(--royal) 55%, var(--royal-dark) 100%);
  --grad-hero:    radial-gradient(1200px 600px at 80% -10%, rgba(33,150,243,.45), transparent 60%),
                  linear-gradient(160deg, var(--royal) 0%, var(--royal-dark) 60%, var(--navy) 100%);
  --grad-gold:    linear-gradient(135deg, #F5CC6B 0%, #F2BD3D 55%, #D49A1F 100%);

  --shadow-sm:  0 1px 2px rgba(13,71,161,.06), 0 6px 18px -10px rgba(13,71,161,.22);
  --shadow-md:  0 8px 30px -12px rgba(13,71,161,.28);
  --shadow-lg:  0 24px 60px -20px rgba(10,46,115,.40);

  --radius:     16px;
  --radius-sm:  12px;
  --container:  1200px;
  --header-h:   76px;
}

/* ───────────────────────────── Base ───────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  margin: 0;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; color: var(--royal-dark); }
a { text-decoration: none; color: inherit; transition: color .2s ease; }
img { max-width: 100%; }
section { position: relative; }

.container { max-width: var(--container); }

/* ───────────────────────────── Buttons ───────────────────────────── */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.4rem; transition: all .25s ease; border: 0; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .9rem; }

.btn-primary-grad { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary-grad:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(13,71,161,.55); }

.btn-gold { background: var(--grad-gold); color: #3a2c00; font-weight: 700; box-shadow: var(--shadow-sm); }
.btn-gold:hover { color: #3a2c00; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(242,189,61,.6); }

.btn-ghost { background: transparent; color: var(--royal-dark); border: 1px solid rgba(13,71,161,.25); }
.btn-ghost:hover { background: var(--blue-soft); color: var(--royal); }

.btn-outline-brand { background: transparent; color: var(--royal); border: 1.5px solid var(--royal); }
.btn-outline-brand:hover { background: var(--royal); color: #fff; }

.btn-outline-light-2 { background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-outline-light-2:hover { background: #fff; color: var(--royal); }

/* ───────────────────────────── Header ───────────────────────────── */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1030;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: var(--shadow-sm); }
.site-header .navbar { width: 100%; padding: 0; }

/* New Saudi Riyal symbol — inline PNG sized to the text */
.sar-img { height: .82em; width: auto; display: inline-block; vertical-align: -0.04em; margin-inline-end: .22em; }
/* white variant for dark backgrounds (e.g. app balance card) */
.sar-img--white { filter: brightness(0) invert(1); }
/* Put the symbol on the LEFT of the amount: the symbol is the first child,
   so forcing LTR ordering on the amount element renders it left of the number. */
strong:has(> .sar-img), b:has(> .sar-img), small:has(> .sar-img) { direction: ltr; }

.brand-logo { height: 42px; width: auto; display: block; }
.footer-logo { height: 46px; }
@media (max-width: 575.98px) { .brand-logo { height: 36px; } }

/* legacy text/icon brand (kept for fallback) */
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: var(--grad-primary); color: #fff; font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { font-weight: 800; font-size: 1.4rem; color: var(--royal-dark); letter-spacing: -.5px; }
.brand-text-accent { color: var(--blue-light); }

.navbar .nav-link { font-weight: 600; color: var(--ink); padding: .5rem .9rem; border-radius: 999px; position: relative; }
.navbar .nav-link:hover { color: var(--royal); }
.navbar .nav-link.active { color: var(--royal); background: var(--blue-soft); }

.lang-switch { display: inline-flex; align-items: center; gap: .15rem; font-weight: 700; }
.lang-btn { background: none; border: 0; color: var(--muted); font-weight: 700; padding: .15rem .35rem; border-radius: 8px; cursor: pointer; }
.lang-btn.active { color: var(--royal); background: var(--blue-soft); }
.lang-sep { color: #c8d2e2; }
.navbar-toggler { border: 0; font-size: 1.6rem; color: var(--royal-dark); box-shadow: none !important; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff; margin-top: .75rem; padding: 1rem;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
  }
  .header-actions { flex-wrap: wrap; margin-top: .5rem; }
}

/* ───────────────────────────── Sections ───────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--blue-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .5px;
  color: var(--royal); background: rgba(33,150,243,.12); padding: .3rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: .75rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ───────────────────────────── Hero ───────────────────────────── */
.hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 90px;
  background: var(--grad-hero); color: #fff; overflow: hidden;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.hero-bg .blob-1 { width: 380px; height: 380px; background: #2196F3; top: -90px; inset-inline-end: -60px; }
.hero-bg .blob-2 { width: 320px; height: 320px; background: var(--gold); bottom: -120px; inset-inline-start: -40px; opacity: .25; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.4rem; backdrop-filter: blur(6px);
}
.hero-title { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: 1.2rem; }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.88); max-width: 560px; }
.hero-microtrust { font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-microtrust i { color: var(--gold); }

/* Hero visual + mockups */
.hero-visual { position: relative; min-height: 420px; }
.mock-dashboard {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; max-width: 430px; margin-inline: auto;
}
.mock-topbar, .dash-topbar, .code-top, .code-window .code-top {
  display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: #f3f6fc; border-bottom: 1px solid #e6ecf6;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5f56; } .dot.y { background: #ffbd2e; } .dot.g { background: #27c93f; }
.mock-url { margin-inline-start: auto; font-size: .78rem; color: var(--muted); }
.mock-body { padding: 1.2rem; }
.mock-stat { display: flex; flex-direction: column; }
.mock-stat small { color: var(--muted); }
.mock-stat strong { font-size: 1.7rem; color: var(--royal-dark); }
.trend { font-size: .82rem; font-weight: 700; width: fit-content; padding: .1rem .5rem; border-radius: 999px; }
.trend.up { color: #058c3c; background: rgba(0,200,83,.12); }
.trend.down { color: #c0392b; background: rgba(231,76,60,.12); }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin-top: 1rem; }
.mock-chart span { flex: 1; background: var(--grad-primary); border-radius: 6px 6px 0 0; opacity: .85; }
.mock-chart.big { height: 150px; }

.mock-card {
  position: absolute; inset-block-start: 6%; inset-inline-start: -6%; width: 260px;
  background: linear-gradient(135deg, #0A2E73, #0D47A1 60%, #2196F3);
  color: #fff; border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-lg);
}
.cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.cc-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg,#f5d97a,#caa129); display: inline-block; }
.cc-wifi { font-size: 1.2rem; opacity: .8; }
.cc-number { font-size: 1.15rem; letter-spacing: 2px; margin-bottom: .9rem; }
.cc-foot { display: flex; justify-content: space-between; font-size: .8rem; opacity: .9; }
.cc-brand { font-weight: 800; }

.mock-notif {
  position: absolute; inset-block-end: 4%; inset-inline-end: -4%;
  display: flex; align-items: center; gap: .7rem; background: #fff; color: var(--ink);
  padding: .7rem 1rem; border-radius: 14px; box-shadow: var(--shadow-lg);
}
.notif-ico { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,200,83,.15); color: var(--success); display: grid; place-items: center; font-size: 1.1rem; }
.mock-notif strong { display: block; font-size: .9rem; }
.mock-notif small { color: var(--muted); }

/* Floating animation */
.float-y { animation: floatY 5s ease-in-out infinite; }
.float-y-slow { animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ───────────────────────────── Trusted slider ───────────────────────────── */
.trusted-heading { color: var(--muted); font-weight: 600; margin-bottom: 1.5rem; }
.logo-slider { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.logo-item { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.25rem; color: #9fb0c9; white-space: nowrap; }
.logo-item i { font-size: 1.5rem; }
/* payment-method logos */
.pay-logo { height: 40px; width: auto; display: block; opacity: .9; transition: opacity .25s ease, transform .25s ease; }
.pay-logo:hover { opacity: 1; transform: translateY(-2px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .logo-track { animation-name: marqueeRtl; }
@keyframes marqueeRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ───────────────────────────── Stats ───────────────────────────── */
.stats-section { background: var(--royal-dark); color: #fff; }
.stat-box { padding: 1rem; }
.stat-num { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: #fff; }
.stat-label { color: rgba(255,255,255,.78); font-weight: 600; }

/* ───────────────────────────── Service / Feature / Security cards ───────────────────────────── */
.service-card, .feature-card, .sec-card {
  height: 100%; background: #fff; border: 1px solid #e9eef7; border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover, .feature-card:hover, .sec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(33,150,243,.35); }
.service-card h3, .feature-card h3, .sec-card h3 { font-size: 1.2rem; margin: .9rem 0 .5rem; }
.service-card p, .feature-card p, .sec-card p { color: var(--muted); margin: 0; font-size: .97rem; }

.svc-ico {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px;
  background: var(--blue-soft); color: var(--royal); font-size: 1.5rem; transition: all .3s ease;
}
.service-card:hover .svc-ico { background: var(--grad-primary); color: #fff; }
.feature-card i, .sec-card i { font-size: 2rem; color: var(--blue-light); display: block; }
.section-alt .feature-card { background: #fff; }

/* ───────────────────────────── Timeline (How it works) ───────────────────────────── */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-inline-start: 0; }
.timeline::before { content: ''; position: absolute; inset-block: 12px; inset-inline-start: 22px; width: 2px; background: linear-gradient(var(--blue-light), var(--royal)); }
.tl-item { position: relative; display: flex; gap: 1.2rem; align-items: flex-start; margin-bottom: 1.6rem; padding-inline-start: 8px; }
.tl-num {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; z-index: 1;
  background: var(--grad-primary); color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.tl-card { background: #fff; border: 1px solid #e9eef7; border-radius: var(--radius-sm); padding: 1rem 1.3rem; box-shadow: var(--shadow-sm); flex: 1; }
.tl-card h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.tl-card p { margin: 0; color: var(--muted); }

/* ───────────────────────────── Dashboard preview ───────────────────────────── */
.dash-preview { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 980px; margin: 0 auto; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem; }
.dw { background: var(--blue-soft); border-radius: var(--radius-sm); padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; }
.dw small { color: var(--muted); }
.dw strong { font-size: 1.35rem; color: var(--royal-dark); }
.dw-wide { grid-column: span 2; }
.dw-list { grid-column: span 2; }
.dw-list ul { list-style: none; margin: .5rem 0 0; padding: 0; }
.dw-list li { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed #d9e3f2; font-size: .92rem; }
.dw-list li:last-child { border-bottom: 0; }
@media (max-width: 767.98px) { .dash-grid { grid-template-columns: 1fr 1fr; } .dw-wide, .dw-list { grid-column: span 2; } }

/* ───────────────────────────── Code window ───────────────────────────── */
.code-window { background: #0b1b3b; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-window .code-top { background: #0a1730; border-bottom: 1px solid #1c2d52; }
.code-file { margin-inline-start: .6rem; color: #8aa0c8; font-size: .82rem; }
.copy-btn { margin-inline-start: auto; background: rgba(255,255,255,.08); color: #cfe0ff; border: 0; border-radius: 8px; padding: .3rem .7rem; font-size: .8rem; cursor: pointer; transition: background .2s; }
.copy-btn:hover { background: rgba(255,255,255,.18); }
.copy-btn.copied { background: rgba(0,200,83,.25); color: #aef5c8; }
.code-body { margin: 0; padding: 1.3rem 1.4rem; color: #e3ecff; font-family: 'Cairo', ui-monospace, 'Courier New', monospace; font-size: .92rem; direction: ltr; text-align: left; overflow-x: auto; }
.code-body code { color: #e3ecff; }
.dev-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.dev-list li { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--ink); font-weight: 500; }
.dev-list i { color: var(--success); font-size: 1.15rem; }
.text-start { text-align: start !important; }

/* ───────────────────────────── Security badges ───────────────────────────── */
.badges-row, .footer-badges { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.trust-badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid #dce6f5; color: var(--royal-dark); font-weight: 600; padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.trust-badge i { color: var(--royal); }
.trust-badge.sm { font-size: .85rem; padding: .4rem .8rem; }

/* ───────────────────────────── Pricing ───────────────────────────── */
.price-card { position: relative; height: 100%; background: #fff; border: 1px solid #e9eef7; border-radius: var(--radius); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.featured { border: 2px solid var(--royal); box-shadow: var(--shadow-lg); }
.price-tag { position: absolute; inset-block-start: -14px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--grad-primary); color: #fff; font-size: .8rem; font-weight: 700; padding: .3rem 1rem; border-radius: 999px; white-space: nowrap; }
[dir="rtl"] .price-tag { transform: translateX(50%); }
.price-card h3 { font-size: 1.4rem; }
.price-desc { color: var(--muted); min-height: 48px; }
.price-amt { font-size: 1.5rem; font-weight: 800; color: var(--royal); margin: .5rem 0 1rem; }
.price-feats { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.price-feats li { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; color: var(--ink); }
.price-feats i { color: var(--success); }

/* ───────────────────────────── Mobile app ───────────────────────────── */
.store-btn { display: inline-flex; align-items: center; gap: .7rem; background: var(--royal-dark); color: #fff; padding: .6rem 1.2rem; border-radius: 14px; transition: transform .25s, background .25s; }
.store-btn:hover { color: #fff; background: var(--royal); transform: translateY(-2px); }
.store-btn i { font-size: 1.7rem; }
.store-btn small { display: block; font-size: .68rem; opacity: .85; }
.store-btn b { font-size: 1rem; }

.phone-mock { position: relative; width: 270px; height: 540px; margin: 0 auto; background: #0a1730; border-radius: 38px; padding: 14px; box-shadow: var(--shadow-lg); }
.phone-notch { position: absolute; inset-block-start: 14px; inset-inline-start: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0a1730; border-radius: 0 0 14px 14px; z-index: 2; }
[dir="rtl"] .phone-notch { transform: translateX(50%); }
.phone-screen { height: 100%; background: linear-gradient(160deg, var(--blue-soft), #fff); border-radius: 28px; padding: 2.2rem 1.1rem 1.1rem; overflow: hidden; }
.ps-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--royal-dark); margin-bottom: 1rem; }
.ps-balance { background: var(--grad-primary); color: #fff; border-radius: 16px; padding: 1.1rem; margin-bottom: 1rem; }
.ps-balance small { opacity: .85; } .ps-balance strong { display: block; font-size: 1.6rem; }
.ps-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: .7rem .9rem; margin-bottom: .6rem; font-size: .9rem; box-shadow: var(--shadow-sm); }
.ps-row i { color: var(--success); }

/* ───────────────────────────── Testimonials ───────────────────────────── */
.review-card { height: 100%; background: #fff; border: 1px solid #e9eef7; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.stars { color: var(--gold); margin-bottom: .8rem; }
.review-card p { color: var(--ink); font-size: 1.02rem; }
.reviewer { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.rv-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-weight: 800; }
.reviewer b { display: block; } .reviewer small { color: var(--muted); }
#testimonialCarousel { padding: 0 10px 56px; }
.carousel-control-prev, .carousel-control-next { width: 44px; height: 44px; top: auto; bottom: 0; background: var(--royal); border-radius: 50%; opacity: 1; }
.carousel-control-next { inset-inline-start: calc(50% + 14px); inset-inline-end: auto; }
.carousel-control-prev { inset-inline-start: calc(50% - 58px); inset-inline-end: auto; }

/* ───────────────────────────── FAQ ───────────────────────────── */
.faq-accordion { max-width: 820px; }
.faq-accordion .accordion-item { border: 1px solid #e3eaf6; border-radius: var(--radius-sm) !important; margin-bottom: .8rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 700; color: var(--royal-dark); background: #fff; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: var(--royal); background: var(--blue-soft); }
.faq-accordion .accordion-button:focus { box-shadow: none; border: 0; }
.faq-accordion .accordion-body { color: var(--muted); }

/* ───────────────────────────── Contact ───────────────────────────── */
.contact-form { background: #fff; border: 1px solid #e9eef7; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.contact-form .form-control { border-radius: 12px; padding: .7rem 1rem; border: 1px solid #d9e3f2; }
.contact-form .form-control:focus { border-color: var(--blue-light); box-shadow: 0 0 0 .2rem rgba(33,150,243,.18); }
.contact-form .form-label { font-weight: 600; color: var(--royal-dark); }
.contact-info { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.contact-info li { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; font-weight: 500; }
.contact-info i { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--royal); display: grid; place-items: center; }
.form-alert { margin-top: 1rem; font-weight: 600; display: none; padding: .8rem 1rem; border-radius: 12px; }
.form-alert.ok { display: block; background: rgba(0,200,83,.12); color: #058c3c; }
.form-alert.err { display: block; background: rgba(231,76,60,.12); color: #c0392b; }
.is-invalid { border-color: #e74c3c !important; }

/* ───────────────────────────── Final CTA ───────────────────────────── */
.final-cta { padding: 90px 0; background: var(--grad-hero); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.final-cta p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 620px; margin: .8rem auto 0; }

/* ───────────────────────────── Footer ───────────────────────────── */
.site-footer { background: var(--navy); color: #c4d2ec; padding: 70px 0 24px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .6rem; }
.site-footer a { color: #aebfdd; font-size: .95rem; }
.site-footer a:hover { color: #fff; }
.footer-about { color: #93a6cb; font-size: .95rem; margin: 0 0 1.2rem; }
.social-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cfe0ff; font-size: 1.1rem; transition: all .25s; }
.social-row a:hover { background: var(--grad-primary); color: #fff; transform: translateY(-2px); }
.footer-top { padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-mid { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.1); align-items: center; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.legal-links a { font-size: .9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.6rem; color: #8ea2c8; font-size: .9rem; }
.bottom-links { display: flex; flex-wrap: wrap; gap: 1.1rem; }

/* ───────────────────────────── Back to top ───────────────────────────── */
.back-to-top {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 1040;
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--grad-primary); color: #fff;
  font-size: 1.2rem; box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(12px); transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ───────────────────────────── Scroll reveal animations ───────────────────────────── */
.reveal { opacity: 0; transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.reveal[data-anim="fade-up"]    { transform: translateY(40px); }
.reveal[data-anim="fade-right"] { transform: translateX(-40px); }
.reveal[data-anim="fade-left"]  { transform: translateX(40px); }
.reveal[data-anim="zoom-in"]    { transform: scale(.9); }
[dir="rtl"] .reveal[data-anim="fade-right"] { transform: translateX(40px); }
[dir="rtl"] .reveal[data-anim="fade-left"]  { transform: translateX(-40px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .float-y, .float-y-slow, .logo-track { animation: none !important; }
}

/* ───────────────────────────── Responsive tweaks ───────────────────────────── */
@media (max-width: 991.98px) {
  .section { padding: 70px 0; }
  .hero { padding-top: calc(var(--header-h) + 40px); text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero .d-flex, .hero-microtrust { justify-content: center; }
  .hero-visual { margin-top: 3rem; min-height: 360px; }
  .mock-card { inset-inline-start: 0; }
  .mock-notif { inset-inline-end: 0; }
  .text-start { text-align: center !important; }
  .dev-list { display: inline-block; text-align: start; }
}
@media (max-width: 575.98px) {
  .mock-card { width: 210px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
