:root {
  --primary: #1f6bff;
  --navy: #0d1f3c;
  --sky: #9cc4ff;
  --bg: #f5f8ff;
  --surface: #ffffff;
  --border: #e5ecf5;
  --muted: #5b6b82;
  --green: #08b942;
  --radius-card: 18px;
  --radius-button: 14px;
  --shadow-card: 0 4px 20px rgba(13, 31, 60, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }

/* Language switch: body.lang-so or body.lang-en */
body.lang-so .en { display: none !important; }
body.lang-en .so { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  color: #fff;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand b { color: var(--sky); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: #dbe7ff; text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.lang-switch { display: inline-flex; border: 1px solid #3a5278; border-radius: 999px; overflow: hidden; }
.lang-switch button { background: transparent; color: #dbe7ff; border: 0; padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }
.lang-switch button.active { background: var(--primary); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-button); font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #1557d6); color: #fff; box-shadow: 0 10px 24px -8px rgba(31, 107, 255, .5); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; }
h1 { font-size: 46px; line-height: 1.15; margin: 10px 0 14px; letter-spacing: -.5px; }
h2 { font-size: 30px; margin: 0 0 14px; letter-spacing: -.3px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Dark blue hero (inspired by modern fintech landing pages) */
.hero-blue {
  position: relative; overflow: hidden; color: #fff;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 80% 20%, rgba(156, 196, 255, .35), transparent 45%),
    linear-gradient(170deg, #1f6bff 0%, #1557d6 45%, #0d1f3c 100%);
}
.hero-blue .hero-title { color: #fff; font-size: 40px; line-height: 1.2; font-weight: 700; margin: 10px 0 14px; letter-spacing: -.4px; }
.hero-blue .lead { color: #d6e5ff; }
.hero-blue .eyebrow { color: #9cc4ff; }
.hero-blue .btn-ghost { background: transparent; color: #fff; border-color: #6d95e8; }
.hero-blue .note { color: #bcd3ff; }
.hero-blue .hero-grid { grid-template-columns: 1fr 1fr; }
.tilt-phone {
  width: 280px; margin: 0 auto; padding: 12px; border-radius: 40px;
  background: #0b1a33; transform: rotate(-9deg);
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .55), inset 0 0 0 2px #22406e;
}
.tilt-phone img { border-radius: 30px; background: #fff; width: 100%; }
.badge-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.badge-row span { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* Phone mockups */
.phones { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.phone { width: 230px; border-radius: 34px; padding: 10px; background: var(--navy); box-shadow: 0 24px 50px -18px rgba(13, 31, 60, .5); }
.phone img { width: 100%; border-radius: 26px; background: #fff; }

/* Sections */
section { padding: 64px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-card); }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f0ff; color: var(--primary); font-weight: 800; margin-bottom: 14px; }

.operators { display: flex; justify-content: center; gap: 40px; align-items: center; flex-wrap: wrap; }
.operators img { height: 84px; width: auto; }

.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; margin-bottom: 26px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; }

.notice { border-left: 4px solid var(--primary); background: #eef4ff; padding: 16px 18px; border-radius: 10px; margin: 18px 0; }

.contact-box { background: var(--navy); color: #fff; border-radius: 24px; padding: 40px; text-align: center; }
.contact-box p { color: #cfdcf5; }
.contact-box .btn-ghost { background: transparent; color: #fff; border-color: #3a5278; }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.legal h1 { font-size: 36px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: #2c3e57; }
.legal ul { padding-left: 20px; }
.updated { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c8e6; padding: 40px 0; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: #dbe7ff; text-decoration: none; margin-left: 16px; }
.site-footer a:hover { color: #fff; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@keyframes float-phone {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50% { transform: rotate(-7deg) translateY(-16px); }
}
.tilt-phone { animation: float-phone 6s ease-in-out infinite; }

@keyframes glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}
.hero-blue::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(156,196,255,.45), transparent 65%);
  animation: glow 7s ease-in-out infinite; pointer-events: none;
}

@keyframes shine {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shine 3.6s ease-in-out infinite;
}
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }

.card { transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -16px rgba(13,31,60,.25); }

.badge-row span { animation: rise-in .6s ease both; }
.badge-row span:nth-child(2) { animation-delay: .1s; }
.badge-row span:nth-child(3) { animation-delay: .2s; }
.badge-row span:nth-child(4) { animation-delay: .3s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.operators img { transition: transform .3s ease, filter .3s ease; filter: grayscale(.2); }
.operators img:hover { transform: scale(1.08); filter: none; }

/* Download section */
.download-box { background: linear-gradient(135deg, #1f6bff, #0d1f3c); color: #fff; border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.download-box h2 { color: #fff; }
.download-box p { color: #d6e5ff; }
.install-steps { display: grid; gap: 14px; }
.install-steps .card { color: var(--navy); }
.install-steps h3 { margin-bottom: 6px; }
.install-steps ol { margin: 0; padding-left: 20px; color: #2c3e57; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store-row .btn-ghost { background: #fff; color: var(--navy); }

/* Reduced motion: no animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mobile */
@media (max-width: 860px) {
  h1 { font-size: 34px; }
  .hero-grid, .hero-blue .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .download-box { grid-template-columns: 1fr; padding: 28px; }
  .hero-blue .hero-title { font-size: 30px; }
  .hero-blue .cta-row, .badge-row { justify-content: center; }
  .hero-blue .lead { margin-left: auto; margin-right: auto; }
  .tilt-phone { width: 240px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links .hide-sm { display: none; }
}
@media (max-width: 520px) {
  html, body { overflow-x: hidden; }
  .nav { height: 60px; }
  .brand span { font-size: 17px; }
  .nav-links > a { display: none; }
  .hero { padding: 40px 0 28px; }
  .hero-blue { padding: 48px 0 56px; }
  .hero-blue .hero-title { font-size: 26px; }
  .tilt-phone { width: 200px; }
  .lead { font-size: 16px; }
  h1 { font-size: 30px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .phone { width: 200px; }
  .contact-box { padding: 26px; }
}
