/* ── RMPay Global Styles ── */
:root {
  --navy:    #0C1E3E;
  --blue:    #1B3A6B;
  --blue2:   #1E4A8A;
  --orange:  #E87C28;
  --gold:    #B8962E;
  --white:   #FFFFFF;
  --text:    #C0CEEA;
  --muted:   #7A8DAF;
  --card:    rgba(255,255,255,0.05);
  --border:  rgba(255,255,255,0.09);
  --radius:  14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Barlow', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
em { font-style: normal; color: var(--orange); }
p { color: var(--text); line-height: 1.75; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px;
  display: flex; align-items: center;
  padding: 0 5%;
  background: rgba(12,30,62,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.35rem; color: #fff; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--orange); }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 8px 20px !important; border-radius: 8px !important;
  border-bottom: none !important; font-weight: 700 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  color: #fff; padding: 6px 12px; border-radius: 8px;
  cursor: pointer; font-size: 0.82rem; font-weight: 600;
  font-family: 'Inter', sans-serif; transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #162c58; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; min-width: 148px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.lang-dropdown.open { display: block; }
.lang-option {
  padding: 10px 16px; cursor: pointer; font-size: 0.84rem;
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s; color: var(--text);
}
.lang-option:hover { background: rgba(255,255,255,0.07); color: #fff; }
.lang-option.active { color: var(--orange); font-weight: 700; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #E87C28, #C96B18);
  color: #fff; padding: 14px 30px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(232,124,40,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(232,124,40,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.22);
  color: #fff; padding: 14px 30px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--orange); background: rgba(232,124,40,0.08); }

/* ── LAYOUT ── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 90px 5%; }
.section-tag {
  display: inline-block;
  background: rgba(232,124,40,0.12); color: var(--orange);
  border: 1px solid rgba(232,124,40,0.25);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 14px;
}
.section-lead { color: var(--text); font-size: 1rem; max-width: 560px; margin-bottom: 50px; }

/* ── CARDS ── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(232,124,40,0.35); transform: translateY(-4px); }
.card-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(232,124,40,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 130px 5% 70px;
  background: linear-gradient(135deg, #08172e 0%, #0C1E3E 60%, #142848 100%);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,124,40,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 580px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 20px; display: flex; align-items: center; gap: 6px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--text); }

/* ── FOOTER ── */
footer {
  background: #070f20;
  border-top: 1px solid var(--border);
  padding: 60px 5% 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 50px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.footer-brand .logo img { height: 34px; }
.footer-brand .logo span { font-family: 'Barlow', sans-serif; font-weight: 900; font-size: 1.2rem; color: #fff; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text); text-decoration: none; font-size: 0.88rem; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }
.ssl-badge { display: flex; align-items: center; gap: 6px; }

/* ── PARTICLE CANVAS ── */
#particle-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.25;
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: rgba(12,30,62,0.98); padding: 24px 5%; gap: 0; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section-inner { padding: 60px 5%; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
