/* ==========================================================================
   Mundo-Capital — shared stylesheet
   Layout, colors and type follow the approved homepage screenshot:
   dark navy chrome, white/grey content bands, serif display headings,
   blue gradient buttons.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --navy-950: #03080f;      /* top bar, footer base */
  --navy-900: #060d18;      /* strategy section */
  --navy-800: #0a1422;      /* dark content bands */
  --navy-700: #111d2e;      /* step cards, feedback cards */
  --navy-600: #1a2940;
  --blue-500: #2b78d0;      /* accent */
  --blue-600: #1d62b3;
  --blue-700: #0f4585;
  --ink: #161a20;           /* heading text */
  --body: #5f6670;          /* paragraph text on light */
  --body-dark: #aeb6c2;     /* paragraph text on dark */
  --grey-50: #f4f5f7;       /* light grey bands */
  --grey-100: #eceef1;
  --line: #e3e6ea;
  --white: #ffffff;
  --up: #16a34a;
  --down: #e0413a;
  --star: #f5b400;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --container: 1140px;
  --radius-sm: 4px;
  --radius: 8px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; color: var(--ink); line-height: 1.2; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--blue-600); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(90deg, #2f7fd6 0%, var(--blue-700) 100%);
  box-shadow: 0 6px 18px -8px rgba(29, 98, 179, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(29, 98, 179, .85); }
.btn--ghost { color: #fff; background: transparent; }
.btn--ghost:hover { color: #9cc7f5; }
.btn--outline { color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--sm { padding: 10px 22px; }

/* ---------- 4. Top bar & header ---------- */
.topbar {
    background: #081322;
    color: #8391a3;
    font-size: 14px;
    padding: 5px 0px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 13px; height: 13px; }
.topbar__right { display: flex; gap: 22px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: #000;
  transition: background-color .35s, box-shadow .35s, height .35s;
}
/* The header floats over the dark hero, then turns solid once the page scrolls */
.has-hero .site-header { margin-bottom: calc(var(--header-h) * -1); }
.site-header.is-scrolled, body:not(.has-hero) .site-header { background: rgba(4, 10, 19, .96); box-shadow: 0 8px 30px -18px rgba(0,0,0,.8); }
/* note: no backdrop-filter here, it would trap the fixed mobile menu inside the header */
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a {
  position: relative; color: #d7dde6;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 0; transition: color .2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--blue-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: 6px; }

.menu-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-right: -8px; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- 5. Section scaffolding ---------- */
.section { padding: 110px 0; }
.section--grey { background: var(--grey-50); }
.section--dark { background: var(--navy-800); color: var(--body-dark); }
.section--black { background: #000; color: var(--body-dark); }
.section--deep { background: radial-gradient(120% 90% at 50% 0%, #0c1a2d 0%, var(--navy-900) 60%); color: var(--body-dark); }
.section--dark h2, .section--black h2, .section--deep h2,
.section--dark h3, .section--black h3, .section--deep h3 { color: #fff; }

/* Signature heading device: a fine vertical rule that "drops" into the heading */
.heading { margin-bottom: 56px; }
.heading::before {
  content: ''; display: block; width: 1px; height: 64px; margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(43,120,208,0) 0%, var(--blue-500) 100%);
}
.heading--center { text-align: center; }
.heading--center::before { margin-left: auto; margin-right: auto; }
.heading h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.01em; }
.heading p { margin: 16px auto 0; max-width: 560px; }
.heading--left p { margin-left: 0; }

/* Split rows: text + image */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__text h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; margin-bottom: 22px; }
.split__text p { max-width: 520px; }
.split__text .btn { margin-top: 18px; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }

/* ---------- 6. Home hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 60px) 0 90px;
  color: #fff; overflow: hidden; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(3,8,15,.55) 0%, rgba(3,8,15,.72) 60%, rgba(3,8,15,.92) 100%),
    url('/images/crypto-trading.jpg') center / cover no-repeat,
    var(--navy-950);
}
.hero__inner { max-width: 860px; }
.hero__kicker { font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #5fa2ec; margin-bottom: 26px; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(40px, 6.6vw, 84px); line-height: 1.02; color: #fff; letter-spacing: -.01em; }
.hero h1 .hero__line2 { display: block; font-style: italic; }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* One orchestrated entrance, on load only */
.hero__kicker, .hero h1, .hero__actions { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero h1 { animation-delay: .12s; }
.hero__actions { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 7. Ticker ---------- */
.ticker { background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.06); overflow: hidden; position: relative; font-size: 12px; }
.ticker__track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 8px; padding: 11px 22px; color: #c9d1dc; border-right: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.ticker__coin { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; }
.ticker__sym { color: #7b8797; font-size: 11px; }
.ticker__chg.up { color: var(--up); }
.ticker__chg.down { color: var(--down); }
.ticker__note { position: absolute; right: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 16px 0 40px; color: #6d7a8b; font-size: 11px; background: linear-gradient(90deg, rgba(3,8,15,0), var(--navy-950) 35%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 8. Feature cards (Why choose) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.feature {
  background: #fff; padding: 34px 26px 36px; border-radius: 2px;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(10,20,34,.35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 28px 50px -28px rgba(10,20,34,.45); }
.feature__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3a8ae0, var(--blue-700)); margin-bottom: 22px; }
.feature__icon svg { width: 18px; height: 18px; }
.feature h3 { font-family: var(--font-body); font-size: 14px; font-weight: 600; margin-bottom: 14px; line-height: 1.35; }
.feature p { font-size: 12.5px; line-height: 1.75; margin: 0; }

/* ---------- 9. Sliders (awards + feedback) ---------- */
.slider { position: relative; }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap, 24px)) / 4);
  gap: var(--gap, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 6px 2px 10px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.slider__dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #c6ccd4; transition: background-color .25s, transform .25s; }
.slider__dots button[aria-current="true"] { background: var(--ink); transform: scale(1.3); }
.slider__arrow {
  position: absolute; top: 45%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 8px 20px -12px rgba(0,0,0,.4); transition: background-color .2s, color .2s;
}
.slider__arrow:hover { background: var(--ink); color: #fff; }
.slider__arrow svg { width: 14px; height: 14px; }
.slider__arrow--prev { left: -18px; }
.slider__arrow--next { right: -18px; }

.award { text-align: center; }
.award__img { background: #fff; aspect-ratio: 1; display: grid; place-items: center; padding: 10px; }
.award__img img { max-height: 100%; width: auto; object-fit: contain; transition: transform .4s var(--ease); }
.award:hover .award__img img { transform: scale(1.04); }
.award h3 { font-family: var(--font-body); font-size: 12px; font-weight: 600; margin-top: 14px; line-height: 1.45; padding: 0 8px; }

.feedback-wrap { max-width: 1300px; }
.slider--feedback .slider__track { align-items: start; }
.review { background: var(--navy-700); color: #c5cdd8; padding: 26px 22px 28px; border-radius: 3px; font-size: 12.5px; line-height: 1.75; }
.review__stars { color: var(--star); letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; }
.review__name { color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; }
.review p:last-child { margin-bottom: 0; }

/* ---------- 10. Market overview ---------- */
.markets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.tv-card { border: 1px solid var(--line); background: #fff; min-height: 500px; }
.tv-card .tradingview-widget-copyright { font-size: 11px; text-align: center; padding: 8px 0 10px; }
.tv-card .tradingview-widget-copyright a { color: var(--blue-600); }

/* ---------- 11. Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; counter-reset: step; }
.step {
  position: relative; background: var(--navy-700); color: var(--body-dark); padding: 34px 30px 36px; border-radius: 2px; overflow: hidden;
  transition: transform .35s var(--ease);
}
.step:hover { transform: translateY(-6px); }
/* Step order is a real sequence, so it is shown as a large faint numeral */
.step::after { counter-increment: step; content: counter(step); position: absolute; right: 18px; top: 4px; font-family: var(--font-display); font-size: 88px; line-height: 1; color: rgba(255,255,255,.04); }
.step .feature__icon { margin-bottom: 26px; }
.step h3 { color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 12.5px; margin: 0; }

/* ---------- 12. Roadmap image ---------- */
.roadmap { max-width: 1060px; margin: 0 auto; }
.roadmap img { width: 100%; }
.roadmap__scroll { overflow-x: auto; }
.roadmap__scroll img { min-width: 760px; }

/* ---------- 13. Inner page banner ---------- */
.page-hero {
  position: relative; color: #fff; text-align: center;
  padding: calc(var(--header-h) + 100px) 0 110px;
  background:
    linear-gradient(180deg, rgba(3,8,15,.78), rgba(3,8,15,.9)),
    var(--page-hero-img, url('/images/crypto-board.jpg')) center / cover no-repeat,
    var(--navy-950);
}
.page-hero__kicker { font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #5fa2ec; margin-bottom: 18px; }
.page-hero h1 { color: #fff; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 5vw, 60px); }
.page-hero p { max-width: 560px; margin: 18px auto 0; color: #b9c3d0; }
.crumbs { margin-top: 22px; font-size: 12px; color: #8c98a8; }
.crumbs a:hover { color: #fff; }

/* ---------- 14. About ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: #fff; padding: 34px 28px; border-top: 2px solid var(--blue-500); box-shadow: 0 18px 40px -30px rgba(10,20,34,.35); }
.value h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.value p { font-size: 13.5px; margin: 0; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); }
.mv article { background: var(--navy-800); padding: 48px 44px; }
.mv h3 { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin-bottom: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 50px); color: var(--ink); line-height: 1; }
.stat__label { margin-top: 10px; font-size: 13px; }

/* ---------- 15. Accounts ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); padding: 34px 24px 28px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(10,20,34,.5); }
.plan__name { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); }
.plan__price { font-family: var(--font-display); font-size: 32px; font-weight: 500; color: var(--ink); margin: 10px 0 4px; line-height: 1.1; }
.plan__price--text { font-size: 24px; }
.plan__min { font-size: 12px; margin-bottom: 22px; }
.plan ul { flex: 1; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; padding: 6px 0; color: #3d444e; }
.plan li svg { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--blue-500); }
.plan .btn { width: 100%; white-space: normal; padding: 13px 10px; letter-spacing: .08em; }
.plan--featured { background: var(--navy-800); border-color: var(--navy-800); transform: translateY(-14px); box-shadow: 0 34px 60px -30px rgba(6,13,24,.8); }
.plan--featured:hover { transform: translateY(-20px); }
.plan--featured .plan__price { color: #fff; }
.plan--featured .plan__name { color: #6aaef2; }
.plan--featured .plan__min { color: var(--body-dark); }
.plan--featured ul { border-color: rgba(255,255,255,.12); }
.plan--featured li { color: #d3dae4; }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, #2f7fd6, var(--blue-700)); color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; padding: 5px 14px; border-radius: 20px; white-space: nowrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13.5px; }
.compare th, .compare td { padding: 16px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy-800); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.compare thead th.is-featured { background: var(--blue-700); }
.compare tbody th { text-align: left; color: var(--ink); font-weight: 500; }
.compare td.is-featured { background: #f2f7fd; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.tick { color: var(--blue-600); font-weight: 700; }
.dash { color: #b7bec8; }
.note { font-size: 12.5px; margin-top: 18px; }

/* ---------- 16. FAQ accordion ---------- */
.faq-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.faq-nav a { padding: 12px 16px; font-size: 13.5px; color: #3d444e; border-left: 2px solid var(--line); transition: color .2s, border-color .2s, background-color .2s; }
.faq-nav a:hover, .faq-nav a.is-active { color: var(--ink); border-color: var(--blue-500); background: var(--grey-50); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; padding: 22px 0; text-align: left;
  font-size: 15.5px; font-weight: 500; color: var(--ink); transition: color .2s;
}
.acc__btn:hover { color: var(--blue-600); }
.acc__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .3s, border-color .3s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel p { padding-right: 48px; font-size: 14px; }
.acc__panel p:last-child { padding-bottom: 14px; }

/* ---------- 17. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact-info h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; }
.contact-list { margin-top: 30px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list .feature__icon { flex: none; margin: 0; }
.contact-list h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-bottom: 2px; }
.contact-list a:hover { color: var(--blue-600); }
.contact-photo { margin-top: 34px; }
.contact-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.form { background: #fff; border: 1px solid var(--line); padding: 40px; box-shadow: 0 30px 60px -44px rgba(10,20,34,.5); }
.form h2 { font-family: var(--font-display); font-weight: 500; font-size: 26px; margin-bottom: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-top: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(43,120,208,.14); }
.field.has-error input, .field.has-error textarea { border-color: var(--down); background: #fff7f7; }
.field__error { font-size: 12px; line-height: 1.4; color: var(--down); margin: 5px 0 0; min-height: 17px; } /* space reserved so errors never shift the layout */

.form .btn { margin-top: 26px; }
.form__status { margin-top: 18px; padding: 14px 16px; font-size: 13.5px; border-radius: var(--radius-sm); display: none; }
.form__status.is-success { display: block; background: #ecf8f0; color: #166534; border: 1px solid #bfe5cc; }

.map { margin-top: 0; height: 380px; background: var(--grey-100); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

/* ---------- 18. Legal pages ---------- */
.legal { padding: 90px 0 110px; }
.legal__body { max-width: 820px; margin: 0 auto; }
.legal__meta { font-size: 12.5px; color: #8a929c; padding-bottom: 24px; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 42px 0 12px; }
.legal p, .legal li { font-size: 15px; color: #4a515b; line-height: 1.85; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal strong { color: var(--ink); }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-links a { font-size: 13px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, color .2s; }
.legal-links a:hover, .legal-links a[aria-current="page"] { border-color: var(--blue-500); color: var(--blue-600); }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--navy-950); color: #8391a3; text-align: center; }
.footer__main { padding: 80px 0 40px; }
.footer__logo img { height: 50px; width: auto; margin: 0 auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 34px 0 26px; }
.footer__nav a { color: #e1e7ef; font-size: 12.5px; font-weight: 500; transition: color .2s; }
.footer__nav a:hover { color: #6aaef2; }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; font-size: 13px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: #c9d1dc; transition: color .2s; }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { width: 14px; height: 14px; color: #6aaef2; }
.footer__legalentity { max-width: 760px; margin: 22px auto 0; font-size: 11.5px; color: #6b7889; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; font-size: 12px; }
.footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a { color: #c9d1dc; transition: color .2s; }
.footer__legal a:hover { color: #fff; }
.risk-warning { background: #01050a; border-top: 1px solid rgba(255,255,255,.05); padding: 22px 0 26px; text-align: left; font-size: 11.5px; line-height: 1.75; color: #7a8696; }
.risk-warning strong { color: #d9dee6; }

/* ---------- 20. Scroll reveal (respects reduced motion) ---------- */
/* uses the independent `translate` property so it never overrides card hover/featured transforms */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.reveal.is-visible { opacity: 1; translate: none; }
.no-js .reveal { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; translate: none; }
  .hero__kicker, .hero h1, .hero__actions { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ---------- 21. Responsive ---------- */
@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 16px; }
  .plan--featured { transform: none; }
  .plan--featured:hover { transform: translateY(-6px); }
  .slider__arrow--prev { left: 4px; }
  .slider__arrow--next { right: 4px; }
}
@media (max-width: 1024px) {
  .nav__links { gap: 20px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .slider__track { grid-auto-columns: calc((100% - 2 * var(--gap, 24px)) / 3); }
  .markets-grid { grid-template-columns: 1fr; }
  .split { gap: 44px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .menu-toggle { display: block; }
  .brand, .menu-toggle { position: relative; z-index: 101; }
  .nav {
    position: fixed; inset: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: calc(var(--header-h) + 44px) 24px 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 18px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav__links a::after { display: none; }
  .nav__cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  .nav__cta .btn { padding: 15px; }
  .nav__cta .btn--ghost { border: 1px solid rgba(255,255,255,.2); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: var(--navy-950); }

  .section { padding: 80px 0; }
  .split, .contact-grid, .faq-layout, .mv { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { order: 2; }
  .faq-nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; }
  .faq-nav a { border-left: 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
  .steps, .values { grid-template-columns: 1fr; max-width: 520px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__right { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 20px; }
  .section { padding: 68px 0; }
  .heading { margin-bottom: 40px; }
  .heading::before { height: 46px; margin-bottom: 20px; }
  .features, .plans { grid-template-columns: 1fr; }
  .slider__track { grid-auto-columns: 82%; --gap: 14px; }
  .slider__arrow { display: none; }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .mv article { padding: 36px 26px; }
  .footer__bar .container { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
  .brand img { height: 24px; }
}

/* ---------- 22. Language switch (EN | ES) ----------
   Desktop: in the top bar next to the phone number. Phone layout / burger menu: in the header bar, next to the menu button. */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 2px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: #aeb9c7;
  transition: background-color .2s, color .2s;
}
.topbar .lang-switch a { gap: 0; }
.lang-switch a:hover { color: #fff; }
.lang-switch a[aria-current="true"] { background: linear-gradient(90deg, #2f7fd6 0%, var(--blue-700) 100%); color: #fff; }
.lang-switch--head { display: none; }
.topbar__right { align-items: center; }
.nav__links a { white-space: nowrap; }
.nav__cta .btn { white-space: nowrap; }

@media (max-width: 900px) {
  .lang-switch--head { display: inline-flex; position: relative; z-index: 101; margin-left: auto; padding: 3px; }
  .lang-switch--head a { height: 26px; min-width: 34px; font-size: 11px; }
  .site-header .container { gap: 14px; }
}

/* Spanish labels are longer: tighter desktop bar, burger menu from 1180px down */
html[lang="es"] .nav { gap: 24px; }
html[lang="es"] .nav__links { gap: 22px; }
html[lang="es"] .nav__cta .btn--sm { padding: 10px 16px; }
@media (max-width: 1180px) {
  html[lang="es"] { --header-h: 66px; }
  html[lang="es"] .menu-toggle { display: block; }
  html[lang="es"] .brand, html[lang="es"] .menu-toggle { position: relative; z-index: 101; }
  html[lang="es"] .nav {
    position: fixed; inset: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-950); padding: calc(var(--header-h) + 44px) 24px 40px;
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
    overflow-y: auto;
  }
  html[lang="es"] .nav.is-open { transform: none; visibility: visible; }
  html[lang="es"] .nav__links { flex-direction: column; gap: 0; }
  html[lang="es"] .nav__links a { display: block; padding: 18px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.07); }
  html[lang="es"] .nav__links a::after { display: none; }
  html[lang="es"] .nav__cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 28px; }
  html[lang="es"] .nav__cta .btn { padding: 15px; }
  html[lang="es"] .nav__cta .btn--ghost { border: 1px solid rgba(255,255,255,.2); }
  html[lang="es"] body.menu-open { overflow: hidden; }
  html[lang="es"] body.menu-open .site-header { background: var(--navy-950); }
  html[lang="es"] .lang-switch--head { display: inline-flex; position: relative; z-index: 101; margin-left: auto; padding: 3px; }
  html[lang="es"] .lang-switch--head a { height: 26px; min-width: 34px; font-size: 11px; }
  html[lang="es"] .topbar .lang-switch { display: none; }
  html[lang="es"] .site-header .container { gap: 14px; }
}

/* Language suggestion (shown once to Spanish-language browsers on English pages) */
.lang-hint {
  position: fixed; left: 20px; bottom: 20px; z-index: 120; max-width: 360px;
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 18px 18px 20px; border-radius: var(--radius);
  background: var(--navy-800); color: var(--body-dark); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.65);
  opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.lang-hint.is-visible { opacity: 1; transform: none; }
.lang-hint__title { margin: 0 0 4px; color: #fff; font-weight: 600; font-size: 14.5px; }
.lang-hint p { margin: 0 0 12px; font-size: 13px; line-height: 1.55; }
.lang-hint__close { flex: none; background: none; border: 0; color: #8391a3; padding: 2px; margin: -6px -6px 0 0; line-height: 0; }
.lang-hint__close:hover { color: #fff; }
.lang-hint__close svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .lang-hint { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Translation notice on Spanish legal pages */
.legal__lang-note { font-size: 12.5px; color: #4b5563; background: var(--grey-50); border-left: 3px solid var(--blue-500); padding: 12px 16px; margin: -14px 0 30px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.legal__lang-note a { color: var(--blue-600); text-decoration: underline; }

/* Contact form: optional label + mail-app note */
.field__opt { font-weight: 400; color: #8a929c; font-size: 12px; margin-left: 4px; }
.form__status.is-info { display: block; background: #eef5fd; color: #1d4f8c; border: 1px solid #c9ddf5; }
.form__status a { text-decoration: underline; font-weight: 600; }

/* 404 */
.notfound { padding: 140px 0 120px; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(72px, 14vw, 140px); line-height: 1; color: var(--ink); margin-bottom: 10px; }
.notfound p { max-width: 520px; margin: 14px auto 30px; }
.notfound__links { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 30px; font-size: 13px; }
.notfound__links a { color: var(--blue-600); }
.nav__more { display: none; }
@media (max-width: 1180px) { html[lang="es"] .nav__more { display: inline; } }
.notfound__go { font-size: 16px; color: var(--ink); }
.notfound__go a { color: var(--blue-600); text-decoration: underline; font-weight: 600; }
