:root {
  --bg: #e3edf8;
  --bg-soft: #eef4fb;
  --surface: #f8fbff;
  --ink: #0c1f38;
  --muted: #4f6579;
  --muted-2: #7d90a5;
  --line: rgba(12, 55, 110, 0.12);
  --sky: #0284c7;
  --sky-light: #38bdf8;
  --blue: #2563eb;
  --sky-soft: rgba(14, 165, 233, 0.1);
  --up: #0a9d6c;
  --down: #e0414e;
  --navy-footer: #071426;
  --radius: 26px;
  --clay: 0 22px 45px -14px rgba(80, 120, 175, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -10px 18px rgba(130, 165, 210, 0.16);
  --clay-hover: 0 30px 56px -14px rgba(2, 132, 199, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.95), inset 0 -10px 18px rgba(130, 165, 210, 0.14);
  --clay-small: 0 12px 26px -8px rgba(80, 120, 175, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -6px 12px rgba(130, 165, 210, 0.14);
  --font: "Sora", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0.1 0 0 0 0 0.25 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(56, 189, 248, 0.4); color: var(--ink); }

img { max-width: 100%; display: block; }

section[id] { scroll-margin-top: 92px; }

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--muted); font-size: 1rem; }

.grad {
  background: linear-gradient(100deg, #38bdf8 0%, #0284c7 55%, #2563eb 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--sky), transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, #38bdf8, #0284c7 60%, #2563eb);
  color: #fff;
  box-shadow: 0 14px 28px -8px rgba(2, 132, 199, 0.5), inset 0 -4px 8px rgba(4, 60, 110, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(2, 132, 199, 0.6), inset 0 -4px 8px rgba(4, 60, 110, 0.28), inset 0 2px 4px rgba(255, 255, 255, 0.5); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--clay-small);
}
.btn-ghost:hover { color: var(--sky); transform: translateY(-2px); box-shadow: var(--clay); }

.btn-lg { padding: 17px 40px; font-size: 0.85rem; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.header.scrolled {
  background: rgba(248, 251, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px -18px rgba(80, 120, 175, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 5px 12px rgba(2, 132, 199, 0.4)); }
.logo-text { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.logo-text em { font-style: normal; font-weight: 500; color: var(--sky); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}
.nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--sky-light);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav > a:hover { color: var(--ink); }
.nav > a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions-mobile { display: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--clay-small);
}
.lang-switch a {
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.lang-switch a.active { background: linear-gradient(120deg, #38bdf8, #0284c7); color: #fff; box-shadow: inset 0 -3px 6px rgba(4, 60, 110, 0.3); }
.lang-switch a:not(.active):hover { color: var(--sky); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: none;
  border-radius: 14px;
  box-shadow: var(--clay-small);
  cursor: pointer;
  padding: 11px 10px;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #d9e9f9 0%, var(--bg) 60%);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-chart {
  position: absolute;
  right: -6%;
  bottom: -4%;
  width: 72%;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient(115deg, transparent 8%, #000 55%);
  mask-image: linear-gradient(115deg, transparent 8%, #000 55%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow-a { width: 560px; height: 560px; top: -180px; right: -80px; background: rgba(56, 189, 248, 0.3); }
.hero-glow-b { width: 420px; height: 420px; bottom: -140px; left: -120px; background: rgba(37, 99, 235, 0.14); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  flex: 1;
}

.hero-copy h1 { max-width: 15ch; }
.hero-sub { margin: 24px 0 36px; max-width: 46ch; font-size: 1.05rem; }

.hero-visual { position: relative; will-change: transform; }
.hero-card {
  border-radius: 30px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.75);
  background: #0a1428;
  box-shadow: 0 34px 70px -20px rgba(80, 120, 175, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  animation: floatY 7s ease-in-out infinite;
}
.hero-card img { width: 100%; aspect-ratio: 5/6; object-fit: cover; object-position: center top; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(248, 251, 255, 0.92);
  box-shadow: var(--clay-small);
}
.float-chip strong { color: var(--up); font-weight: 700; }
.chip-a { top: 8%; left: -28px; animation: floatY 6s ease-in-out infinite 0.6s; }
.chip-b { bottom: 12%; right: -20px; animation: floatY 6.6s ease-in-out infinite 1.2s; }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; }
.chip-dot.up { background: var(--up); box-shadow: 0 0 10px rgba(10, 157, 108, 0.6); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.mask-inner {
  display: inline-block;
  transform: translateY(115%);
  animation: maskRise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes maskRise {
  to { transform: translateY(0); }
}

.chip-support {
  bottom: 20px;
  left: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.ticker {
  position: relative;
  z-index: 2;
  margin-top: 70px;
  background: rgba(248, 251, 255, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.8), inset 0 -8px 16px rgba(130, 165, 210, 0.15);
}
.ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 10%, transparent 90%, var(--bg) 100%);
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 52px;
  width: max-content;
  padding: 15px 0;
  animation: tickerScroll 46s linear infinite;
}
.ticker-track span.q {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.ticker-track .qp { font-weight: 500; color: var(--muted); margin-left: 7px; }
.ticker-track .qc { font-weight: 700; margin-left: 7px; }
.ticker-track .qc.up { color: var(--up); }
.ticker-track .qc.down { color: var(--down); }

.ticker-live {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 24px;
  background: linear-gradient(90deg, #f8fbff 55%, rgba(248, 251, 255, 0));
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--up);
}
.ticker-live .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--up);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 157, 108, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(10, 157, 108, 0); }
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 128px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(248, 251, 255, 0.6) 18%, rgba(248, 251, 255, 0.6) 82%, transparent); }

.section-head { max-width: 560px; margin-bottom: 64px; }

.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.market-card {
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--clay);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.market-card:hover { transform: translateY(-8px); box-shadow: var(--clay-hover); }

.market-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--sky);
  background: #eaf4fd;
  box-shadow: var(--clay-small);
  margin-bottom: 20px;
  transition: transform 0.35s ease;
}
.market-card:hover .market-icon { transform: scale(1.08) rotate(-4deg); }
.market-icon svg { width: 26px; height: 26px; }

.market-card h3 { margin-bottom: 9px; }
.market-card p { font-size: 0.86rem; line-height: 1.55; }

.accounts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.account-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 34px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--clay);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.account-card:hover { transform: translateY(-8px); box-shadow: var(--clay-hover); }

.account-card.popular {
  box-shadow: 0 0 0 2px var(--sky-light), var(--clay-hover);
}

.account-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, #38bdf8, #2563eb);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 22px -6px rgba(2, 132, 199, 0.55), inset 0 -3px 6px rgba(4, 60, 110, 0.3);
  white-space: nowrap;
}

.account-name { font-size: 1.2rem; font-weight: 700; }
.account-tag { font-size: 0.85rem; color: var(--muted); margin: 6px 0 22px; }

.account-price {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.account-price .amount { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.account-price .label { font-size: 0.78rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; }

.account-features { list-style: none; margin-bottom: 30px; flex: 1; }
.account-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.account-features li strong { color: var(--ink); font-weight: 600; }
.account-features svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--sky); }

.account-card .btn { width: 100%; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  padding: 36px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--clay);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--clay-hover); }

.why-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--sky);
  background: #eaf4fd;
  box-shadow: var(--clay-small);
  margin-bottom: 20px;
}
.why-icon svg { width: 23px; height: 23px; }

.why-card h3 { margin-bottom: 9px; }
.why-card p { font-size: 0.86rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 72px;
}
.split-reverse { grid-template-columns: 1.15fr 1fr; }

.split-sub { margin: 20px 0 32px; max-width: 44ch; font-size: 1rem; }

.split-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.75);
  background: #0a1428;
  box-shadow: var(--clay-hover);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.split-visual:hover { transform: translateY(-6px); }
.split-visual img { width: 100%; object-fit: cover; }

.contact-card {
  position: relative;
  padding: 44px 40px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--clay);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 16px;
  background: #eaf1fa;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.92rem;
  box-shadow: inset 0 3px 8px rgba(80, 120, 175, 0.18), inset 0 -1px 0 rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background: #f2f8fe;
  box-shadow: inset 0 3px 8px rgba(80, 120, 175, 0.14), 0 0 0 2px var(--sky-light);
}

.contact-submit { width: 100%; margin-top: 6px; }

.contact-success {
  text-align: center;
  padding: 40px 10px;
  animation: successIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.contact-success .success-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(130deg, #38bdf8, #0284c7);
  box-shadow: 0 16px 30px -8px rgba(2, 132, 199, 0.55), inset 0 -4px 8px rgba(4, 60, 110, 0.28), inset 0 2px 4px rgba(255, 255, 255, 0.45);
}
.contact-success .success-icon svg { width: 34px; height: 34px; }
.contact-success h3 { font-size: 1.25rem; margin-bottom: 8px; }
.contact-success p { font-size: 0.92rem; }

@keyframes successIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cta-final { padding-top: 40px; }

.cta-panel {
  position: relative;
  text-align: center;
  padding: 88px 32px;
  border-radius: 34px;
  background: linear-gradient(150deg, #0284c7 0%, #0ea5e9 55%, #2563eb 110%);
  overflow: hidden;
  box-shadow: 0 36px 70px -22px rgba(2, 132, 199, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -12px 24px rgba(4, 50, 100, 0.25);
}
.cta-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.18);
  filter: blur(90px);
}
.cta-panel h2 { position: relative; color: #fff; margin-bottom: 14px; }
.cta-panel p { position: relative; color: rgba(255, 255, 255, 0.85); margin-bottom: 36px; }
.cta-panel .btn { position: relative; }
.cta-panel .btn-primary {
  background: var(--surface);
  color: var(--sky);
  box-shadow: 0 16px 32px -10px rgba(0, 30, 60, 0.45), inset 0 -3px 6px rgba(80, 120, 175, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.9);
}

.tools-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 150px 24px 110px;
  position: relative;
  z-index: 2;
}
.tools-head { max-width: 620px; margin-bottom: 40px; }
.tools-sub { margin-top: 14px; font-size: 1rem; }

.tool-card {
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--clay);
  padding: 36px 32px;
  margin-top: 26px;
}
.tool-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tool-card > p { font-size: 0.88rem; margin-bottom: 24px; }

.tool-widget {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--clay-small);
  background: #fff;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.tools-grid .tool-card { margin-top: 26px; }

.tradingview-widget-container { width: 100%; }

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tools-body { padding-top: 120px; }
}

.legal-body {
  max-width: 820px;
  margin: 150px auto 110px;
  padding: 64px 72px;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--clay);
}
.legal-body h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 12px; }
.legal-updated { font-size: 0.82rem; color: var(--muted-2); margin-bottom: 44px; }
.legal-body h2 { font-size: 1.15rem; margin: 36px 0 12px; }
.legal-body p { font-size: 0.92rem; margin-bottom: 10px; }
.legal-body ul { margin: 6px 0 14px 20px; }
.legal-body li { font-size: 0.92rem; color: var(--muted); margin-bottom: 6px; }

.legal-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.legal-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 22px;
  background: #eef4fb;
  box-shadow: var(--clay-small);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.legal-hub-card:hover { transform: translateY(-4px); box-shadow: var(--clay); }
.legal-hub-card h3 { margin-bottom: 5px; }
.legal-hub-card p { font-size: 0.84rem; }
.legal-hub-card > svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--sky);
  transition: transform 0.3s ease;
}
.legal-hub-card:hover > svg { transform: translateX(4px); }

.footer {
  background: var(--navy-footer);
  color: #f3f6ff;
  padding: 64px 0 40px;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -18px 40px -20px rgba(12, 55, 110, 0.35), inset 0 2px 0 rgba(148, 172, 230, 0.12);
  position: relative;
  z-index: 2;
}
.footer .logo { color: #f3f6ff; }
.footer .logo-text em { color: var(--sky-light); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(148, 172, 230, 0.14);
}

.footer-brand p { font-size: 0.84rem; color: #5f6d8c; margin-top: 14px; max-width: 26ch; }

.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f3f6ff;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #93a0bd;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a:hover { color: var(--sky-light); transform: translateX(3px); }

.footer-legal { padding-top: 32px; text-align: center; }
.footer-legal p { font-size: 0.82rem; color: #5f6d8c; }
.footer-legal strong { color: #93a0bd; font-weight: 600; }
.footer-legal .risk {
  margin: 16px auto 0;
  max-width: 900px;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(148, 172, 230, 0.06);
  color: #8a7d63;
  font-size: 0.8rem;
  line-height: 1.6;
}
.footer-legal .copy { margin-top: 20px; font-size: 0.76rem; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-card, .float-chip, .ticker-track { animation: none; }
  .mask-inner { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1024px) {
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .accounts-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .account-card.popular { order: -1; }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 44px; }
  .split-reverse .split-visual { order: 2; }
  .split-reverse .split-copy { order: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero { padding-top: 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; }
  .hero-chart { width: 110%; right: -20%; }

  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px 24px 28px;
    background: rgba(248, 251, 255, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 40px -20px rgba(80, 120, 175, 0.4);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav > a { padding: 13px 6px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-actions-mobile { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
  .nav-actions-mobile .lang-switch { align-self: flex-start; }
  .header-actions { display: none; }
  .menu-toggle { display: flex; }
}

@media (min-width: 901px) {
  .nav .lang-switch { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 88px 0; }
  .markets-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 32px 24px; }
  .legal-body { padding: 40px 28px; margin-top: 120px; }
  .legal-hub-grid { grid-template-columns: 1fr; }
  .chip-a { left: 6px; }
  .chip-b { right: 6px; }
  .cta-panel { padding: 64px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { border-radius: 28px 28px 0 0; }
  .ticker-live { padding: 0 14px; }
}

@media (max-width: 460px) {
  .markets-grid { grid-template-columns: 1fr; }
}
