/* ================================================================
   ORMINDA — Main Stylesheet v2
/* ── Cross-Document View Transitions (Smooth Multi-Page Nav) ── */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.16s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
  animation: none;
}

:root {
  --bg:          #FFFFFF;
  --surface:     #EDF5FB;
  --surface-alt: #F4F9FD;
  --border:      #D5E8F3;
  --text:        #0F1C2E;
  --muted:       #4A6070;
  --dim:         #8A9BB0;
  --blue:        #4A7FA5;
  --blue-dk:     #3A6585;
  --accent:      #E8935A;
  --up:          #22c55e;
  --down:        #ef4444;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;

  --font:  'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans CJK KR", "Malgun Gothic", system-ui, sans-serif;
  --max-w: 1160px;
  --pv:    96px;
  --ph:    40px;
  --ease:  0.22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--blue-dk); }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--ph); }

.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); display: block; margin-bottom: 10px;
}
.sh {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.18; color: var(--text); margin-bottom: 14px;
}
.sb { font-size: 17px; color: var(--muted); line-height: 1.75; max-width: 560px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: 50px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,127,165,.32); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--surface); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #f0f7fd; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.4); }
.btn-outline-white:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }

/* ═══════════════════════════════════════════════════════
   1 — NAVIGATION
══════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 1050;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  view-transition-name: site-header;
}
.nav-inner {
  /* Widened from 1160px so German/French/Spanish/Dutch all fit at 1280px+ */
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(16px, 2.5vw, 32px); height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; max-width: 160px; }

/* Group 2 – main nav links */
.nav-desktop { display: flex; align-items: center; }
.nav-menu {
  display: flex; align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  list-style: none; margin: 0; padding: 0;
}
.nav-menu li { flex-shrink: 0; }
.nav-menu a {
  display: inline-flex; align-items: center; height: 38px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  white-space: nowrap; text-decoration: none; line-height: 1;
  transition: color var(--ease);
}
.nav-menu a:hover { color: var(--text); }

/* Group 3 – language, login, CTA */
.nav-actions { display: flex; align-items: center; gap: clamp(6px, 1vw, 10px); flex-shrink: 0; }
.nav-login {
  display: inline-flex; align-items: center; height: 38px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  padding: 0 10px; white-space: nowrap; text-decoration: none;
  transition: color var(--ease);
}
.nav-login:hover { color: var(--text); }
.nav-actions .btn { white-space: nowrap; height: 38px; }


/* ── Mobile Hamburger & Drawer ──────────────────────── */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: border-color var(--ease), background var(--ease);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: var(--blue); }
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 1051;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 16px 36px rgba(15,28,46,0.12);
  padding: 20px var(--ph) 28px;
  max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.nav-drawer:not([hidden]) {
  display: block;
}
.nav-drawer-menu {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 20px;
}
.nav-drawer-menu li a {
  display: flex; align-items: center;
  min-height: 48px; padding: 12px 16px;
  font-size: 16px; font-weight: 600;
  color: var(--text); border-radius: var(--r-md);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-drawer-menu li a:hover,
.nav-drawer-menu li a.active {
  background: var(--surface); color: var(--blue);
}
.nav-drawer-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.nav-drawer-actions .btn {
  min-height: 48px; justify-content: center; font-size: 15px;
  width: 100%;
}

/* ═══════════════════════════════════════════════════════
   2 — HERO
══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 80px var(--ph) 80px;
  background: linear-gradient(130deg, #fff 45%, var(--surface) 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--blue) 70%, var(--accent));
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 400px;
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--text);
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 480px; line-height: 1.78; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-risk { font-size: 12px; color: var(--dim); max-width: 420px; line-height: 1.65; }

/* ── Trading dashboard mockup ─────────────────────── */
.hero-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-3d-logo {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 48px rgba(74,127,165,.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50%       { transform: translateY(-14px) rotate(2deg); }
}
.mock-card {
  background: #0d1b2a;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 0 0 1px rgba(74,127,165,.2), 0 28px 72px rgba(10,20,35,.4), 0 4px 16px rgba(0,0,0,.2);
  transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.4s var(--ease);
}
.mock-card:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.mock-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mock-symbol { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); flex: 1; }
.mock-price { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.02em; display: block; }
.mock-change { font-size: 12px; font-weight: 600; }
.mock-change.up { color: var(--up); }
.mock-change.down { color: var(--down); }
.mock-chart { margin-bottom: 14px; }
.mock-chart svg { width: 100%; height: 100px; }
.mock-row {
  display: flex; align-items: center;
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05);
}
.mock-inst { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75); flex: 1; }
.mock-val { font-size: 13px; font-weight: 600; color: #fff; margin-right: 10px; font-variant-numeric: tabular-nums; }
.mock-chg { font-size: 12px; font-weight: 600; min-width: 52px; text-align: right; font-variant-numeric: tabular-nums; }
.mock-chg.up { color: var(--up); } .mock-chg.down { color: var(--down); }
.mock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.mock-btn { padding: 10px; border-radius: 8px; border: none; font-family: var(--font); font-size: 14px; font-weight: 700; cursor: default; }
.mock-sell { background: rgba(239,68,68,.12); color: #f87171; }
.mock-buy  { background: rgba(74,127,165,.22); color: #7bbfdf; }

/* ═══════════════════════════════════════════════════════
   3 — MARKETS
══════════════════════════════════════════════════════ */
.markets { padding: var(--pv) 0; background: var(--bg); }
.markets-hd { margin-bottom: 44px; }
.markets-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-bottom: 40px; }
.mkt-card {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px 20px;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease);
  display: flex; flex-direction: column;
}
.mkt-card:hover { background: var(--surface); border-color: var(--blue); transform: translateY(-5px); box-shadow: 0 14px 36px rgba(74,127,165,.13); }
.mkt-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background var(--ease), border-color var(--ease);
}
.mkt-card:hover .mkt-ico { background: rgba(74,127,165,.12); border-color: rgba(74,127,165,.3); }
.mkt-ico svg { flex-shrink: 0; }
.mkt-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.mkt-card p  { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.mkt-card .mkt-link { margin-top: auto; }
.mkt-link { font-size: 13px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--ease); }
.mkt-card:hover .mkt-link { gap: 8px; }
.markets-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════
   4 — PLATFORM
══════════════════════════════════════════════════════ */
.platform { padding: var(--pv) 0; background: var(--surface); }
.platform-hd { max-width: 600px; margin-bottom: 48px; }
.platform-feats { margin: 28px 0 36px; display: flex; flex-direction: column; gap: 20px; }
.pf-item { display: flex; gap: 14px; align-items: flex-start; }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 9px; }
.pf-item strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.pf-item span   { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Platform mockup — desktop UI */
.plat-mock {
  background: #0d1b2a;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(10,20,35,.35), 0 0 0 1px rgba(74,127,165,.18);
  margin-top: 48px;
}
.pm-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.pm-tabs { display: flex; gap: 4px; }
.pm-tab {
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.45); background: transparent; border: none;
  padding: 5px 12px; border-radius: 6px; cursor: default;
  transition: all var(--ease);
}
.pm-tab.active { background: rgba(74,127,165,.2); color: #7bbfdf; }
.pm-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.4); }
.pm-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }
.pm-body { display: grid; grid-template-columns: 1fr 220px; }
.pm-main { padding: 20px; border-right: 1px solid rgba(255,255,255,.06); }
.pm-instr { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pm-instr-name { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.9); }
.pm-instr-price { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.pm-instr-chg { font-size: 13px; font-weight: 600; color: var(--up); }
.pm-chartsvg { width: 100%; height: 140px; }
.pm-trade { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 14px; align-items: center; }
.pm-sell-btn, .pm-buy-btn {
  padding: 10px; border-radius: 8px; border: none;
  font-family: var(--font); font-size: 13px; font-weight: 700; cursor: default;
}
.pm-sell-btn { background: rgba(239,68,68,.12); color: #f87171; }
.pm-buy-btn  { background: rgba(74,127,165,.22); color: #7bbfdf; }
.pm-spread { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.35); text-align: center; }
.pm-side { padding: 16px; }
.pm-search {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 8px 12px; font-size: 12px;
  color: rgba(255,255,255,.3); margin-bottom: 12px;
}
.pm-wrow {
  display: flex; align-items: center; padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.pm-wname { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); flex: 1; }
.pm-wprice { font-size: 12px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; margin-right: 6px; }
.pm-wchg { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pm-wchg.up { color: var(--up); } .pm-wchg.down { color: var(--down); }

/* ═══════════════════════════════════════════════════════
   5 — DEPOSITS & WITHDRAWALS
══════════════════════════════════════════════════════ */
.deposits { padding: var(--pv) 0; background: var(--surface-alt); }
.deposits-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.deposits-hd { margin-bottom: 24px; }
.dep-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--blue); margin-top: 20px; }
.pay-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.pay-tile {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 16px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.pay-tile:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(74,127,165,.1); transform: translateY(-2px); }
.pay-tile-label { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ═══════════════════════════════════════════════════════
   6 — PRACTICAL OPEN LAYOUT
══════════════════════════════════════════════════════ */
.practical { padding: var(--pv) 0; background: var(--bg); }
.practical-hd { margin-bottom: 44px; }
.prac-list { display: flex; flex-direction: column; gap: 0; }
.prac-row {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 32px 0; border-top: 1px solid var(--border);
}
.prac-row:last-child { border-bottom: 1px solid var(--border); }
.prac-ico {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.prac-body { flex: 1; }
.prac-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.prac-body p  { font-size: 14px; color: var(--muted); line-height: 1.65; }
.prac-link { font-size: 14px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }

/* ═══════════════════════════════════════════════════════
   7 — LEARNING
══════════════════════════════════════════════════════ */
.learning { padding: var(--pv) 0; background: var(--surface-alt); }
.learning-hd { margin-bottom: 44px; }
.learn-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.learn-featured {
  background: #fff; border: 1px solid var(--border);
  border-top: 4px solid var(--blue); border-radius: var(--r-lg); padding: 36px;
  display: flex; flex-direction: column;
  transition: transform var(--ease), box-shadow var(--ease);
}
.learn-featured:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(74,127,165,.1); }
.learn-small-stack { display: flex; flex-direction: column; gap: 20px; }
.learn-small {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-top: 3px solid var(--accent); border-radius: var(--r-md); padding: 24px;
  flex: 1;
  transition: transform var(--ease), box-shadow var(--ease);
}
.learn-small:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(74,127,165,.09); }
.learn-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.learn-featured .learn-tag { color: var(--blue); }
.learn-featured h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.35; flex: 1; }
.learn-small h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.38; }
.learn-featured p, .learn-small p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.learn-link { font-size: 14px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; transition: gap var(--ease); margin-top: auto; }
.learn-featured:hover .learn-link,
.learn-small:hover .learn-link { gap: 8px; }
.learning-cta { text-align: center; }

/* ═══════════════════════════════════════════════════════
   8 — ABOUT ORMINDA
══════════════════════════════════════════════════════ */
.about { padding: var(--pv) 0; background: var(--bg); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-body p { font-size: 16px; color: var(--muted); line-height: 1.8; margin-bottom: 16px; }
.about-body p:last-child { margin-bottom: 0; }
.about-facts { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.fact-row { padding: 20px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.fact-row:last-child { border-bottom: 1px solid var(--border); }
.fact-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.fact-value { font-size: 15px; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════════════════
   9 — GETTING STARTED
══════════════════════════════════════════════════════ */
.onboarding { padding: var(--pv) 0; background: var(--surface); }
.onboarding-inner { display: grid; grid-template-columns: 380px 1fr; gap: 72px; align-items: start; }
.onboarding-hd { margin-bottom: 40px; }
.steps { display: flex; flex-direction: column; gap: 26px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.step-body p  { font-size: 14px; color: var(--muted); line-height: 1.6; }
.onboarding-cta {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 48px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.oc-ico {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.onboarding-cta h3 { font-size: 22px; font-weight: 700; color: var(--text); }
.onboarding-cta p  { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 320px; }
.oc-small { font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   10 — CLOSING
══════════════════════════════════════════════════════ */
.closing {
  background: linear-gradient(135deg, var(--blue) 0%, #2a5a7c 100%);
  padding: 100px var(--ph); text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.closing::before { content:''; position:absolute; top:-100px; right:-100px; width:380px; height:380px; border-radius:50%; background:rgba(255,255,255,.05); }
.closing::after  { content:''; position:absolute; bottom:-80px; left:-50px; width:280px; height:280px; border-radius:50%; background:rgba(255,255,255,.04); }
.closing-inner { position:relative; z-index:1; }
.closing h2 { font-size:clamp(28px,4.5vw,50px); font-weight:700; letter-spacing:-0.025em; margin-bottom:14px; }
.closing p { font-size:17px; opacity:.82; max-width:480px; margin:0 auto 36px; line-height:1.7; }
.closing-btns { display:flex; justify-content:center; flex-wrap:wrap; gap:12px; }

/* ═══════════════════════════════════════════════════════
   11 — FOOTER
══════════════════════════════════════════════════════ */
.footer { background: #0a1520; color: rgba(255,255,255,.6); padding: 72px var(--ph) 36px; }
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr; gap: 80px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 36px;
}
.footer-brand img {
  height: 30px; width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
  margin-bottom: 12px;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.42); line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.58); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-size: 13px; font-style: normal; color: rgba(255,255,255,.42); line-height: 1.6; margin-top: 14px; }
.footer-reg {
  max-width: var(--max-w);
  margin: 32px auto 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 11.5px;
  color: rgba(255,255,255,.32);
  line-height: 1.75;
}
.footer-reg a { color: rgba(255,255,255,.44); text-decoration: underline; }
.footer-reg strong { color: rgba(255,255,255,.52); font-weight: 700; display: inline; }
.footer-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 16px;
}
.footer-reg-col p { margin: 0; }
.footer-reg-disclaimer { margin: 0; color: rgba(255,255,255,.26); }
@media (max-width: 768px) {
  .footer-reg-grid { grid-template-columns: 1fr; gap: 16px; }
}
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.28);
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px;
}
.footer-legal {
  background: rgba(0,0,0,.25);
  padding: 16px 40px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px 24px;
}
.footer-legal a,
.footer-legal .cookie-settings-btn {
  font-size: 11px; color: rgba(255,255,255,.35);
  white-space: nowrap; transition: color .2s;
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; text-decoration: none;
  font-family: inherit; line-height: inherit;
  display: inline-block;
}
.footer-legal a:hover,
.footer-legal .cookie-settings-btn:hover { color: rgba(255,255,255,.7); }

/* ── Account Enquiry Modal ───────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,28,46,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 16px; backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: var(--r-xl); padding: 36px 32px;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 24px 64px rgba(15,28,46,.18);
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 26px;
  color: var(--dim); cursor: pointer; line-height: 1; border-radius: 50%;
  transition: color .15s, background .15s;
}
.modal-close:hover, .modal-close:focus-visible { color: var(--text); background: var(--surface); }
.modal-card h2 { font-size: clamp(20px, 4vw, 24px); font-weight: 700; color: var(--text); margin: 0 0 10px; padding-right: 32px; }
.modal-card > div > p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0 0 20px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-form label { font-size: 13px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.modal-form input, .modal-form textarea {
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--r-lg); font-family: inherit; font-size: 16px; /* Prevents iOS auto-zoom */
  color: var(--text); background: #fff; outline: none;
  transition: border-color .2s; width: 100%; box-sizing: border-box;
  min-height: 48px;
}
.modal-form textarea { min-height: 80px; resize: vertical; }
.modal-form input:focus, .modal-form textarea:focus { border-color: var(--blue); }
.modal-submit { width: 100%; min-height: 48px; margin-top: 4px; font-size: 15px; }
.modal-success {
  background: var(--surface); border: 1.5px solid var(--blue);
  border-radius: var(--r-lg); padding: 24px; font-size: 15px;
  line-height: 1.7; color: var(--blue); text-align: center; margin-top: 8px;
}

/* ── Cloudflare Turnstile ─────────────────────────────────────────────── */
.ts-wrap { margin: 14px 0 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ts-msg  { font-size: 12px; margin: 0; padding: 0; }
.ts-expired-msg { color: #b45309; }
.ts-error-msg   { color: #c53030; }
.btn[data-ts],
.btn[disabled][data-ts] {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}


/* ── Compact layout threshold — chosen so the widest language (Spanish, ~1202px)
      fits at 1280px+ without wrapping. Compact kicks in at 1200px and below. ── */
@media (max-width: 1200px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  /* Keep lang selector in the top bar; hide login + CTA (available in drawer) */
  .nav-login { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-actions { gap: 8px; }
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mockup { display: none; }
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
  .deposits-inner, .about-inner,
  .onboarding-inner { grid-template-columns: 1fr; gap: 40px; }
  .pm-body { grid-template-columns: 1fr; }
  .pm-side { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --pv: 64px; --ph: 16px; }
  .nav-inner { padding: 0 16px; height: 60px; gap: 8px; }
  .nav-logo img { height: 38px; max-width: 130px; }
  .nav-actions { gap: 8px; }
  .nav-toggle { width: 40px; height: 40px; }
  .nav-drawer-actions { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .learn-layout { grid-template-columns: 1fr; }
  .pay-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal { padding: 16px 20px; gap: 8px 18px; }
}
@media (max-width: 640px) {
  :root { --pv: 56px; --ph: 16px; }
  .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  :root { --pv: 48px; --ph: 16px; }
  .nav-inner { padding: 0 16px; height: 60px; gap: 8px; }
  .nav-logo img { height: 36px; max-width: 124px; }
  .nav-actions { gap: 6px; }
  .nav-toggle { width: 40px; height: 40px; }
  .markets-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
  .closing-btns { flex-direction: column; align-items: stretch; }
  .closing-btns .btn { justify-content: center; }
  .onboarding-cta { padding: 32px 20px; }
  .modal-card { padding: 28px 20px; border-radius: var(--r-lg); }
  .modal-overlay { padding: 10px; }
}
@media (max-width: 360px) {
  :root { --ph: 12px; }
  .nav-inner { padding: 0 12px; gap: 6px; }
  .nav-logo img { height: 32px; max-width: 110px; }
  .nav-toggle { width: 36px; height: 36px; }
  .pay-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}


/* ── Accessibility & Reduced Motion ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── Floating Language Selector (Bottom-Left) ──────── */
.floating-lang-wrap {
  position: fixed;
  bottom: calc(24px + var(--cookie-banner-offset, 0px) + env(safe-area-inset-bottom, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  z-index: 1000;
  transition: bottom 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 768px) {
  .floating-lang-wrap {
    bottom: calc(16px + var(--cookie-banner-offset, 0px) + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
  }
}

.floating-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  min-height: 48px;
  padding: 0 14px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 28, 46, 0.08);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.floating-lang-btn:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(15, 28, 46, 0.12);
}

.floating-lang-btn:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 127, 165, 0.25), 0 4px 14px rgba(15, 28, 46, 0.12);
}

.floating-lang-btn .lang-globe-icon {
  color: var(--blue);
  flex-shrink: 0;
}

.floating-lang-btn .floating-lang-current {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.floating-lang-btn .floating-lang-chevron {
  color: var(--muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.floating-lang-btn[aria-expanded="true"] .floating-lang-chevron {
  transform: rotate(180deg);
}

.floating-lang-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 230px;
  max-width: calc(100vw - 32px);
  max-height: min(480px, calc(100vh - 120px));
  max-height: min(480px, calc(100dvh - 120px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 28, 46, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E0 transparent;
  transition: box-shadow 0.2s ease;
}

.floating-lang-menu::-webkit-scrollbar {
  width: 5px;
}

.floating-lang-menu::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

.floating-lang-menu::-webkit-scrollbar-thumb {
  background: #CBD5E0;
  border-radius: 999px;
}

.floating-lang-menu::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.floating-lang-menu.has-scroll-below {
  box-shadow: 0 12px 32px rgba(15, 28, 46, 0.14), inset 0 -18px 16px -14px rgba(15, 28, 46, 0.2);
}

.floating-lang-menu[hidden] {
  display: none !important;
}

.floating-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-lang-item:not(.active):hover,
.floating-lang-item:not(.active):focus-visible {
  outline: none;
  background: #F1F5F9;
  color: var(--text);
}

.floating-lang-item:not(.active):focus-visible {
  box-shadow: inset 0 0 0 2px #CBD5E1;
}

.floating-lang-item.active {
  background: #EDF5FB;
  color: var(--blue);
  font-weight: 600;
}

.floating-lang-item.active:hover,
.floating-lang-item.active:focus-visible {
  outline: none;
  background: #E1EFF8;
  color: var(--blue-dk);
}

.floating-lang-item.active:focus-visible {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.floating-lang-check {
  color: var(--blue);
  flex-shrink: 0;
  margin-left: 8px;
}

.floating-lang-item:not(.active) .floating-lang-check {
  display: none;
}

/* Modal open state: disable floating button pointer events */
body.modal-open .floating-lang-wrap {
  pointer-events: none;
  opacity: 0;
}

/* ── Cookie Consent Banner ──────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: var(--max-w); margin: 0 auto; z-index: 990;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgba(15, 28, 46, 0.12);
  padding: 24px 28px;
  animation: cookieFadeUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner[hidden] { display: none !important; }
@keyframes cookieFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cookie-banner-text { flex: 1; }
.cookie-banner-title {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.cookie-banner-desc {
  font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 8px;
}
.cookie-banner-links {
  font-size: 12.5px; color: var(--dim);
}
.cookie-banner-links a {
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
}
.cookie-banner-links a:hover { color: var(--blue-dk); }
.cookie-banner-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.cookie-btn {
  min-height: 42px; padding: 9px 18px; font-size: 13.5px; white-space: nowrap;
}

@media (max-width: 900px) {
  .cookie-banner { bottom: 12px; left: 12px; right: 12px; padding: 20px 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-banner-actions { flex-direction: column; width: 100%; gap: 8px; }
  .cookie-banner-actions .cookie-btn { width: 100%; justify-content: center; }
}

/* ── Cookie Preferences Modal ───────────────────────── */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 1060;
  background: rgba(15, 28, 46, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.cookie-modal-overlay[hidden] { display: none !important; }
.cookie-modal-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); width: 100%; max-width: 680px;
  max-height: calc(100dvh - 40px); display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(15, 28, 46, 0.18);
  overflow: hidden;
  animation: cookieCardIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookieCardIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 28px 18px; border-bottom: 1px solid var(--border);
  gap: 16px;
}
.cookie-modal-header-text h2 {
  font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px;
}
.cookie-modal-sub {
  font-size: 13.5px; line-height: 1.6; color: var(--muted);
}
.cookie-modal-close {
  background: none; border: none; font-size: 28px; line-height: 1;
  color: var(--dim); cursor: pointer; padding: 4px; border-radius: var(--r-sm);
  transition: color var(--ease);
}
.cookie-modal-close:hover { color: var(--text); }
.cookie-modal-body {
  padding: 20px 28px; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 18px;
}
.cookie-cat-item {
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; background: var(--surface-alt);
}
.cookie-cat-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px;
}
.cookie-cat-name { font-size: 15px; font-weight: 700; color: var(--text); margin-right: 8px; }
.cookie-cat-badge {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; background: #e2f4e8; color: #166534;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.cookie-cat-badge.optional { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.cookie-cat-desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin-bottom: 12px; }
.cookie-cat-details { overflow-x: auto; margin-top: 10px; }
.cookie-details-table {
  width: 100%; border-collapse: collapse; font-size: 12px; text-align: left;
}
.cookie-details-table th, .cookie-details-table td {
  padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--muted);
}
.cookie-details-table th { font-weight: 600; color: var(--text); background: rgba(255,255,255,0.7); }
.cookie-details-table code {
  font-family: ui-monospace, SFMono-Regular, monospace; background: #fff;
  padding: 2px 5px; border-radius: 4px; border: 1px solid var(--border); font-size: 11.5px;
}

/* Switch toggle */
.cookie-switch-label { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.cookie-switch-label input { opacity: 0; width: 0; height: 0; }
.cookie-switch {
  position: absolute; inset: 0; background-color: #cbd5e1;
  border-radius: 24px; transition: background-color var(--ease);
}
.cookie-switch::before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background-color: #fff;
  border-radius: 50%; transition: transform var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-switch-label input:checked + .cookie-switch { background-color: var(--blue); }
.cookie-switch-label input:checked + .cookie-switch::before { transform: translateX(20px); }
.cookie-switch.locked { background-color: var(--blue); opacity: 0.65; cursor: not-allowed; }

.cookie-modal-footer {
  padding: 18px 28px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  background: #fff;
}
.cookie-modal-btn { min-height: 42px; padding: 9px 18px; font-size: 13.5px; }

@media (max-width: 640px) {
  .cookie-modal-card { max-height: calc(100dvh - 20px); }
  .cookie-modal-header, .cookie-modal-body, .cookie-modal-footer { padding: 16px 20px; }
  .cookie-modal-footer { flex-direction: column; width: 100%; }
  .cookie-modal-footer .cookie-modal-btn { width: 100%; justify-content: center; }
}

/* Permanent Footer Trigger Button */
.cookie-settings-btn {
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; font-size: inherit; color: inherit;
  cursor: pointer; text-decoration: none;
  display: inline-block; white-space: nowrap;
}
.cookie-settings-btn:hover { color: rgba(255,255,255,.7); }

body.drawer-open .cookie-banner { display: none !important; }
