/* ==========================================================================
   Pesorix AI Trade — dark jade fintech theme (geo-adapted profile, MX)
   Tokens → base → components → page blocks → responsive
   ========================================================================== */

:root {
  --bg: #0a120e;
  --surface: #101a15;
  --surface-2: #15211b;
  --border: #233429;
  --border-strong: #2e4436;
  --text: #ecf3ee;
  --text-muted: #9fb4a8;
  --accent: #21c063;
  --accent-hover: #2ad375;
  --accent-tint: rgba(33, 192, 99, 0.12);
  --accent-ink: #06170e;
  --danger: #e5484d;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(2, 12, 6, 0.5), 0 2px 8px rgba(2, 12, 6, 0.35);
  --shadow-md: 0 1px 3px rgba(2, 12, 6, 0.55), 0 10px 28px rgba(2, 12, 6, 0.45);
  --shadow-lg: 0 2px 6px rgba(2, 12, 6, 0.6), 0 24px 48px rgba(2, 12, 6, 0.55);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, svg, iframe, video, canvas { max-width: 100%; }
ul, ol { padding-left: 1.25em; }
strong { color: var(--text); }
hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 15px; height: 15px; }

.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease), color 0.16s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--secondary:hover { background: var(--accent-tint); color: var(--accent-hover); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 18, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.site-header.is-scrolled { background: rgba(10, 18, 14, 0.96); box-shadow: var(--shadow-md); }

.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand__mark { width: 40px; height: 40px; }
.brand__word { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__word small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-top: -3px; }
.brand:hover { color: var(--text); }

.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 600;
  padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-trigger:hover { background: var(--accent-tint); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 260px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease), visibility 0.15s;
  z-index: 110;
}
.dropdown::before {
  content: ""; position: absolute; top: -5px; left: 22px;
  width: 10px; height: 10px; background: var(--surface);
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.nav-item { position: relative; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.is-open .nav-caret { transform: rotate(180deg); }
.nav-caret { transition: transform 0.15s var(--ease); color: var(--text-muted); }

.dropdown__list { list-style: none; margin: 0; padding: 0; }
.dropdown__link {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--text); font-size: 0.92rem; font-weight: 500;
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--accent-tint); color: var(--text); }
.dropdown__link.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.nav-burger {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px; color: var(--text); cursor: pointer;
}
.nav-burger .icon--close { display: none; }
.nav-burger[aria-expanded="true"] .icon--burger { display: none; }
.nav-burger[aria-expanded="true"] .icon--close { display: block; }

.mobile-menu { border-top: 1px solid var(--border); background: var(--surface); padding: 16px 0 24px; max-height: 70vh; overflow-y: auto; }
.mobile-menu__trigger {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 700;
  padding: 12px 4px; cursor: pointer;
}
.mobile-menu__list { list-style: none; margin: 0 0 10px; padding: 0 0 0 8px; display: none; }
.mobile-menu__group.is-open .mobile-menu__list { display: block; }
.mobile-menu__list a { display: block; padding: 8px 4px; color: var(--text-muted); }
.mobile-menu__list a:hover { color: var(--text); }

/* ---------- ticker row spacing (beacon injects its own widget) ---------- */

.beacon-ticker-row + main, header + main { margin-top: 0; }

/* ---------- breadcrumbs ---------- */

.breadcrumbs { padding: 14px 0 0; font-size: 0.85rem; }
.breadcrumbs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--text-muted); }
.breadcrumbs__list li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumbs__list a { color: var(--text-muted); }
.breadcrumbs__list a:hover { color: var(--accent); }

/* ---------- sections ---------- */

.section { padding: clamp(48px, 7vw, 88px) 0; position: relative; }
.section--tint { background: var(--surface); border-block: 1px solid var(--border); }
.section--mesh { background: radial-gradient(1100px 420px at 85% -10%, rgba(33, 192, 99, 0.09), transparent 60%), var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-lead { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ---------- hero (home + shared page hero) ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(33, 192, 99, 0.16), transparent 62%),
    radial-gradient(700px 380px at 12% 88%, rgba(33, 192, 99, 0.07), transparent 60%),
    linear-gradient(180deg, #0d1712 0%, var(--bg) 100%);
}
.hero__bg {
  position: absolute; inset: -6% -4%;
  background: url("/assets/images/hero-bg.svg") right center / min(1100px, 130vw) auto no-repeat;
  opacity: 0.9;
  will-change: transform;
  pointer-events: none;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: clamp(28px, 4vw, 56px); align-items: center; }

.hero__title { margin-bottom: 0.5em; }
.hero__desc { color: var(--text-muted); font-size: 1.08rem; max-width: 34em; }
.hero__points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 18px 0 22px; color: var(--text-muted); font-size: 0.95rem; }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points .icon { color: var(--accent); }

.hero__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.flag-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px 7px 8px; font-size: 0.88rem; color: var(--text-muted);
}
.flag-chip__flag { width: 30px; height: 21px; border-radius: 4px; overflow: hidden; display: block; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero__meta-label { width: 100%; color: var(--text-muted); font-size: 0.88rem; margin: 2px 0 0; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.badge-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 10px 16px; color: var(--text); font-weight: 600; font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
.badge-link .icon { color: var(--accent); }
.badge-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }

.hero__form-note { color: var(--text-muted); font-size: 0.86rem; margin: 12px 2px 0; display: flex; gap: 8px; align-items: flex-start; }
.hero__form-note .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* form heading above registration form */
.form-heading { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }

/* ---------- form block wrapper (formFactory renders its own internals) ---------- */

.form-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(20px, 3vw, 30px);
  position: relative;
}
.form-block--primary::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(140deg, rgba(33, 192, 99, 0.35), transparent 34%, transparent 70%, rgba(33, 192, 99, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.form-block__intro { color: var(--text-muted); font-size: 0.94rem; margin: 0 0 14px; }
.form-legal { font-size: 0.8rem; color: var(--text-muted); margin: 12px 0 0; }
.form-legal a { color: var(--text-muted); text-decoration: underline; }
.form-legal a:hover { color: var(--accent); }

/* ---------- cards & grids ---------- */

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(18px, 2.6vw, 26px);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.card__top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid--2x2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--asym { display: grid; gap: 18px; grid-template-columns: 1.25fr 1fr; }

.icon-badge {
  width: 50px; height: 50px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-tint); border: 1px solid rgba(33, 192, 99, 0.25);
  border-radius: 13px; color: var(--accent);
}
.icon-badge .icon { width: 25px; height: 25px; }
.icon-badge--sm { width: 42px; height: 42px; border-radius: 11px; }
.icon-badge--sm .icon { width: 21px; height: 21px; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; padding: 0; margin: 0; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 22px; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step__num {
  counter-increment: step;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 0.95rem; margin-bottom: 14px;
}
.step__num::before { content: counter(step); }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ---------- comparison table ---------- */

.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.94rem; }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { background: var(--surface-2); font-weight: 700; }
.compare-table thead th:first-child { border-top-left-radius: var(--radius-md); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-md); }
.compare-table tbody tr:nth-child(even) { background: rgba(21, 33, 27, 0.5); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-col { color: var(--accent); font-weight: 700; white-space: nowrap; }
.yes { color: var(--accent); font-weight: 800; }
.no { color: var(--danger); font-weight: 800; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap thead th { background: var(--surface-2); font-weight: 700; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) { background: rgba(21, 33, 27, 0.45); }

/* ---------- exchange logos ---------- */

.exchange-strip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.exchange-chip {
  width: 168px; height: 60px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: #ffffff;
}
.exchange-chip--dark { background: #0f172a; }
.exchange-chip img { height: 28px; width: auto; max-width: 84%; display: block; }

/* ---------- reviews ---------- */

.reviews-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.review { display: flex; flex-direction: column; gap: 12px; }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__photo { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; border: 2px solid var(--border-strong); flex: none; }
.review__name { font-weight: 700; margin: 0; }
.review__role { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.review__body { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.review__stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.86rem; border-top: 1px solid var(--border); padding-top: 12px; }
.review__stats dt { color: var(--text-muted); font-weight: 600; }
.review__stats dd { margin: 0; font-family: var(--font-mono); color: var(--text); }
.reviews-note { text-align: center; color: var(--text-muted); font-size: 0.83rem; margin: 22px auto 0; max-width: 620px; }

/* ---------- company block ---------- */

.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.company-grid > * { min-width: 0; }
.company-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.company-facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-muted); font-size: 0.95rem; }
.company-facts .icon { color: var(--accent); margin-top: 2px; }
.company-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }

.link-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: var(--text); }
.link-card span { color: var(--text-muted); font-weight: 400; font-size: 0.86rem; }

/* ---------- FAQ ---------- */

.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item__q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; text-align: left;
  padding: 16px 18px; cursor: pointer;
}
.faq-item__q .icon { color: var(--accent); transition: transform 0.16s var(--ease); flex: none; }
.faq-item.is-open .faq-item__q .icon { transform: rotate(180deg); }
.faq-item__a { display: none; padding: 0 18px 16px; color: var(--text-muted); }
.faq-item.is-open .faq-item__a { display: block; }

/* ---------- map ---------- */

.map-embed {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden; max-width: 860px; aspect-ratio: 16 / 9; min-height: 320px; margin: 0 auto;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- calculator section ---------- */

.calc-section { background: radial-gradient(900px 400px at 18% 0%, rgba(33, 192, 99, 0.08), transparent 60%), var(--surface); border-block: 1px solid var(--border); }

/* below-the-fold sections skip layout/render work until needed */
.section { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.hero, .breadcrumbs { content-visibility: visible; }

/* calculator modal submit: dark ink on the green accent for AA contrast
   (the module passes a light text color we must not edit inside the module) */
.calc-modal input[type="submit"] { color: #06170e !important; }

/* ---------- articles ---------- */

.article-card { display: flex; flex-direction: column; gap: 12px; }
.article-card h3 { font-size: 1.2rem; }
.article-card footer { margin-top: auto; }

/* ---------- prose (legal / docs pages) ---------- */

.prose { max-width: 860px; }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

/* ---------- footer ---------- */

.site-footer { background: #081009; border-top: 1px solid var(--border); padding: clamp(44px, 6vw, 72px) 0 28px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(140px, 1fr)); gap: 32px 24px; }
.footer-tagline { color: var(--text-muted); font-size: 0.92rem; margin: 16px 0 18px; max-width: 30em; }
.footer-contact { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.9rem; margin: 0 0 8px; }
.footer-contact .icon { color: var(--accent); }
.footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-disclaimer { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 18px 20px; margin: 36px 0 24px; }
.footer-disclaimer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer-disclaimer p { color: var(--text-muted); font-size: 0.8rem; margin: 8px 0 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-muted); font-size: 0.83rem; border-top: 1px solid var(--border); padding-top: 20px; }
.footer-bottom p { margin: 0; }
.footer-legal-links a { color: var(--text-muted); }
.footer-legal-links a:hover { color: var(--accent); }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.error-page .error-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--accent); letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }

/* ---------- special offer ---------- */

.so-urgency {
  background: linear-gradient(90deg, rgba(33, 192, 99, 0.16), rgba(33, 192, 99, 0.05));
  border-bottom: 1px solid var(--border-strong);
  font-size: 0.85rem;
}
.so-urgency__inner { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 10px 0; }
.so-urgency__inner span { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.so-urgency__inner .icon { color: var(--accent); }

.so-hero { background: radial-gradient(1000px 500px at 70% 10%, rgba(33, 192, 99, 0.18), transparent 60%), linear-gradient(180deg, #0d1712, var(--bg)); }
.so-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-tint); border: 1px solid rgba(33, 192, 99, 0.35);
  color: var(--accent); border-radius: 999px; padding: 7px 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 16px;
}

.so-cta-band { background: linear-gradient(120deg, #0f2417, #123122); border-block: 1px solid var(--border-strong); text-align: center; }

.countdown { display: inline-flex; gap: 8px; margin: 16px 0; }
.countdown__cell {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  min-width: 58px; padding: 8px 6px; text-align: center;
}
.countdown__digits { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--text); display: block; line-height: 1.1; }
.countdown__label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }

.so-modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.so-modal.is-open { display: flex; }
.so-modal__overlay { position: absolute; inset: 0; background: rgba(4, 10, 7, 0.78); backdrop-filter: blur(3px); }
.so-modal__card {
  position: relative; max-width: 460px; width: 100%;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 30px 26px 26px; text-align: center;
  animation: soModalIn 0.18s var(--ease);
}
@keyframes soModalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.so-modal__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 6px;
}
.so-modal__close:hover { color: var(--text); }
.so-modal__art { margin: 4px auto 14px; width: 132px; height: auto; display: block; }
.so-modal__title { font-size: 1.5rem; margin-bottom: 10px; }
.so-modal__body p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- reveal ---------- */

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- decorative motifs ---------- */

.motif-band { position: relative; overflow: hidden; }
.motif-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%2321c063' stroke-opacity='0.10'%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-burger { display: inline-flex; align-items: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__form { max-width: 560px; }
  .card-grid--asym { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .exchange-chip { width: 148px; height: 54px; }
  .exchange-chip img { height: 26px; }
  .countdown__cell { min-width: 52px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}

.hero--home-photo {
  background: linear-gradient(90deg, rgba(10, 22, 16, .88), rgba(10, 22, 16, .34)),
    url("../images/hero-home-full-hd.webp") center 52% / cover no-repeat;
  background-color: rgb(10, 22, 16);
}
.hero--home-photo > .hero__bg { display: none; }

@media (max-width: 720px) {
  .hero--home-photo {
    background-image: linear-gradient(180deg, rgba(10, 22, 16, .79), rgba(10, 22, 16, .64)),
      url("../images/hero-home-full-hd.webp");
    background-position: center, 70% center;
  }
}

@media (min-width: 1000px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tv-ticker-wrapper {
  padding-top: 0 !important;
  height: 58px !important;
}

.iti__selected-country,
.iti__selected-dial-code { color: rgb(24, 33, 47) !important; }

.review-photo-note { margin: 0 0 1rem; font-size: .875rem; }

.hero--home-photo .hero__canvas { display: none; }

/* Homepage composition */

.hero--home-photo h1,.hero--home-photo ~ .section h2 {letter-spacing:-.045em;font-weight:850}
.hero--home-photo .hero__form {padding:18px;background:#152a20;border:2px solid #92da90;box-shadow:7px 7px 0 #264936;border-radius:3px}
.hero--home-photo ~ .section .section-head {text-align:left;padding-left:18px;border-left:8px solid #72ce84}
.hero--home-photo ~ .section :is(.card,.step,.faq-item,.table-wrap){border-radius:2px;border:1px solid #42674e;box-shadow:4px 4px 0 #233b2b}
.hero--home-photo ~ .section .exchange-strip {justify-content:flex-start}
.hero--home-photo ~ .section .review {border-top:5px solid #6fba78}
@media(min-width:1000px){.hero--home-photo ~ .section .card-grid:not(.reviews-grid){grid-template-columns:repeat(2,minmax(0,1fr))}.hero--home-photo ~ .section .steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.hero--home-photo ~ .section:has(.faq-list) .container{max-width:860px}}
.hero--home-photo h1 { font-size:clamp(2.1rem,4.2vw,4.25rem); line-height:1.05; text-wrap:balance; }
.hero--home-photo ~ .section { padding-block:clamp(44px,6vw,88px); }
.hero--home-photo ~ .section h2 { text-wrap:balance; }
header .btn--sm { border-radius:3px; background:#abf497; color:#102417; border:1px solid transparent; gap:.55em; font-weight:750; text-decoration:none; }
header .btn--sm::after { content:"↗"; display:inline-block; transition:transform .18s; }
header .btn--sm:hover, header .btn--sm:focus-visible { background:#abf497; color:#102417; box-shadow:0 3px 12px #0003; }
header .btn--sm:hover::after { transform:translate(2px,-2px); }
@media(max-width:950px) {
  .hero--home-photo .hero__inner { display:flex; flex-direction:column; align-items:stretch; gap:16px; }
  .hero--home-photo .hero__copy { display:contents; }
  .hero--home-photo .hero__inner h1 { order:-3; margin:0; max-width:100%; font-size:clamp(1.95rem,6vw,3.15rem); }
  .hero--home-photo .hero__inner .hero__form { order:-2; width:100%; max-width:100%; min-width:0; margin:0; box-sizing:border-box; }
  .hero--home-photo .hero__copy > :not(h1) { order:0; }
}
@media(max-width:640px) {
 .hero--home-photo ~ .section :is(.steps,.step-list,.steps-grid,.step-grid){grid-template-columns:1fr}
}

@media (max-width: 950px) {
  header .header-inner { gap: 8px; }
  header .header-actions { display: flex; align-items: center; gap: 6px; }
  header .header-inner a.btn:is([href*="auth"],[href="#start-registration"]) { display: inline-flex; font-size: clamp(11px, 2.85vw, 14px); line-height: 1.12; padding: 8px 10px; min-height: 38px; max-width: 44vw; align-items: center; justify-content: center; white-space: normal; text-align: center; }
  header .header-inner :is(.brand,.header-logo) { min-width: 0; }
}

.hero.intro-redesign {--tone:#c1ef9e;--ink:#11271c;background:linear-gradient(125deg,#11271c,#0b141e);padding:clamp(30px,5vw,76px) 0;isolation:isolate}
.intro-redesign::before,.intro-redesign::after{display:none}
.intro-layout{display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"head photo" "form details";gap:clamp(20px,3vw,48px);align-items:start}
.intro-layout>*{min-width:0}
.intro-head{grid-area:head;color:var(--tone)}
.intro-redesign .intro-head h1{margin:0;max-width:none;font-size:clamp(2.35rem,4.1vw,4.75rem);line-height:1.04;text-wrap:balance}
.intro-photo{grid-area:photo;position:relative;margin:0;overflow:hidden}
.intro-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.intro-photo figcaption{position:absolute;bottom:10px;left:14px;color:white;background:#0e182bc9;padding:3px 10px;font-size:.8rem}
.intro-form{grid-area:form;padding:clamp(17px,2.3vw,34px);background:var(--tone);color:var(--ink);scroll-margin-top:85px;align-self:start}
.intro-form :is(.form-heading,.form-hero-title,.hero-form-title){color:var(--ink);font-size:1.35rem;font-weight:750;margin:0 0 14px}
.intro-form > p:last-child{color:var(--ink);font-size:.88rem}
.intro-details{grid-area:details}.intro-details p{max-width:75ch}
.intro-help{margin-top:20px;border-top:1px solid currentColor;padding:14px 0 0}.intro-help summary{cursor:pointer;font-weight:700}.intro-help a{text-decoration:underline}
.intro-head h1{font-weight:900;letter-spacing:-.065em}.intro-head{align-self:end}.intro-photo{height:185px;clip-path:polygon(7% 0,100% 0,100% 100%,0 100%)}.intro-form{border-radius:0;border-left:9px solid #81c860}.intro-details{padding:16px 0;border-top:3px solid #92ce72}.intro-details .hero__points{display:grid}
@media(max-width:950px){.intro-redesign .intro-layout{display:flex;flex-direction:column;align-items:stretch;gap:18px}.intro-layout>.intro-head{order:0;text-align:left;margin:0}.intro-redesign .intro-head h1{font-size:clamp(2rem,6.5vw,3.4rem)}.intro-layout>.intro-form{order:1;width:100%;box-sizing:border-box}.intro-layout>.intro-photo{order:2;min-height:0;height:clamp(130px,35vw,220px)}.intro-layout>.intro-details{order:3}.intro-details .hero__copy,.intro-details .hero__rest{display:block}}

.intro-details .intro-return {display:inline-flex;align-items:center;gap:.65em;margin-top:18px;font-weight:750;text-decoration:underline;text-underline-offset:5px;color:inherit}
.intro-redesign .intro-form:target {outline:3px solid var(--accent);outline-offset:4px}
@media(max-width:950px){header .header-inner a.btn[href="#start-registration"]{display:inline-flex;align-items:center;justify-content:center;font-size:clamp(11px,2.85vw,14px);padding:8px 10px;min-height:38px;max-width:44vw;white-space:normal;text-align:center}}

.hero.hero-contact {--scene:#102f24;--highlight:#baed9a;--panel:6px 24px 6px 6px;--headline:inherit;--weight:740}

.hero.hero-contact {position:relative;isolation:isolate;background:var(--scene);color:white;padding:clamp(40px,5vw,80px) 0}
.hero-contact .intro-layout {position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(350px,440px);grid-template-areas:"head form" "details form";align-items:start;gap:16px clamp(40px,7vw,110px);min-height:440px}
.hero-contact .intro-photo {position:absolute;inset:0;z-index:-1;margin:0;width:100%;height:100%;max-width:none;min-height:0;border:0;border-radius:0;clip-path:none;pointer-events:none}
.hero-contact .intro-photo::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--scene) 95%,transparent),color-mix(in srgb,var(--scene) 82%,transparent) 42%,color-mix(in srgb,var(--scene) 24%,transparent) 83%),linear-gradient(0deg,#07111980,transparent 55%)}
.hero-contact .intro-photo figcaption {display:none}
.hero-contact .intro-head {align-self:end;justify-self:start;text-align:left;max-width:100%;margin:0;padding:0;border:0}
.hero-contact .intro-head h1 {font-family:var(--headline);font-size:clamp(2.3rem,3.65vw,4.25rem);line-height:1.06;font-weight:var(--weight);font-style:normal;letter-spacing:-.036em;color:white;margin:0;text-shadow:none;text-align:left}
.hero-contact h1 :is(.hl,.accent) {color:var(--highlight);-webkit-text-fill-color:currentColor;background:none}
.hero-contact .intro-details {align-self:start;text-align:left;color:white;padding:0;margin:0;border:0}
.hero-contact .intro-summary {max-width:52ch;margin:0;font-size:clamp(1rem,1.25vw,1.18rem);line-height:1.55;color:#f5f7f8}
.hero-contact .intro-overview {margin-top:20px;max-width:58ch}
.hero-contact .intro-overview > summary {cursor:pointer;display:list-item;width:fit-content;color:var(--highlight);font-weight:650;padding:5px 2px}
.hero-contact .overview-body {background:white;color:#253343;border-radius:10px;padding:18px;margin-top:10px}
.hero-contact .overview-body :is(p,li,.hero__sub,.hero-lead,.hero__lead,.hero__desc,.hero-meta-label,.hero__flags,.hero__flags-label,.hero-flags-caption,.hero__meta-label) {color:#263541}
.hero-contact .intro-form {align-self:center;width:100%;max-width:none;margin:0;box-sizing:border-box;padding:clamp(22px,2.4vw,36px);color:#172432;background:white;border:0;border-top:4px solid var(--highlight);border-radius:var(--panel);box-shadow:0 16px 52px #06101945}
.hero-contact .intro-form :is(.hero-form-title,.form-heading,.form-block__title,.form-block__intro,.form-hero-title) {text-align:left;color:#182b34;font:700 clamp(1.45rem,2vw,1.85rem)/1.18 system-ui,sans-serif;letter-spacing:-.035em;margin:0 0 18px}
.hero-contact .intro-form .form-block {background:transparent;color:#263541;border:0;margin:0;padding:0;box-shadow:none}
.hero-contact .intro-form :is(.form-legal,.hero__note,.hero-note,.hero-form-note,.hero__manager-note,.hero__form-note) {color:#435360;line-height:1.45}
.hero-contact .intro-form .form-legal a {color:#225670;text-decoration:underline}
.hero-contact .intro-form > p:last-child {margin:14px 0 0;padding-top:12px;border-top:1px solid #dee5e9}
@media(max-width:800px){
.hero.hero-contact {padding:28px 0 32px}
.hero-contact .intro-layout {display:flex;flex-direction:column;gap:18px;min-height:0;align-items:stretch}
.hero-contact .intro-head,.hero-contact .intro-details {align-self:stretch}
.hero-contact .intro-head h1 {font-size:clamp(1.9rem,6.8vw,3rem)}
.hero-contact .intro-form {padding:22px 18px}
.hero-contact .intro-photo {height:100%;min-height:0}
}
.hero-contact .intro-form input:is([type=text],[type=email],[type=tel]) {background:#f7f9fb!important;color:#182532!important;border:1px solid #aebcc7!important;box-sizing:border-box}
.hero-contact .intro-form input::placeholder {color:#536373!important;opacity:1}
.hero-contact .intro-form input:focus-visible {outline:2px solid #206490;outline-offset:1px}
.hero-contact .intro-form .iti input[type=tel] {padding-inline-start:96px!important}
header .nav-invite {--invite-fill:#bcf5a4;--invite-ink:#12351f;--invite-shape:3px;--mark-shape:2px;--invite-edge:inset 4px 0 0 #619b51}

/* Header action */
header .btn.nav-invite {
  display:inline-flex; align-items:center; justify-content:space-between; gap:.72em;
  min-height:44px; max-width:100%; padding:5px 6px 5px 16px; box-sizing:border-box;
  border:0; border-radius:var(--invite-shape); background:var(--invite-fill); color:var(--invite-ink);
  box-shadow:var(--invite-edge); text-decoration:none; line-height:1.15;
  font-size:14px; font-weight:750; letter-spacing:0; white-space:normal; text-align:start;
}
header .btn.nav-invite::after, header .btn.nav-invite::before {content:none}
header .nav-invite .invite-mark {
  display:grid; place-items:center; flex:none; width:29px; height:29px;
  border-radius:var(--mark-shape); background:var(--invite-ink); color:var(--invite-fill);
}
header .invite-mark svg {display:block;width:17px;height:17px;transition:transform .18s ease}
header .btn.nav-invite:is(:hover,:focus-visible) {color:var(--invite-ink);background:var(--invite-fill);box-shadow:var(--invite-edge),0 4px 12px #1112}
header .btn.nav-invite:focus-visible {outline:2px solid currentColor;outline-offset:3px}
header .nav-invite:is(:hover,:focus-visible) .invite-mark svg {transform:translateX(2px)}
@media (max-width:950px) {
  header .header-inner a.btn.nav-invite {display:inline-flex;gap:6px;padding:4px 5px 4px 10px;min-height:40px;font-size:clamp(11px,3vw,14px);max-width:44vw}
  header .nav-invite .invite-mark {width:22px;height:22px}
  header .invite-mark svg {width:15px;height:15px}
}
@media (prefers-reduced-motion:reduce) {header .nav-invite .invite-mark svg {transition:none;transform:none}}

/* Always-visible platform information in the homepage hero. */
.hero-contact .platform-brief {max-width:58ch;margin:18px 0 0;padding:12px 0 0;border-top:1px solid color-mix(in srgb,var(--highlight) 52%,transparent);text-align:start}
.hero-contact .platform-brief h2 {display:flex;align-items:center;gap:8px;color:var(--highlight);font-family:inherit;font-size:1rem;font-weight:700;line-height:1.25;letter-spacing:0;margin:0}
.platform-brief h2::before {content:"";width:6px;height:6px;background:var(--highlight);border-radius:50%;flex:none}
.hero-contact .platform-brief p {margin:6px 0 10px;font-size:.94rem;line-height:1.45;color:#f6f8fa}
.hero-contact .brief-offices,.hero-contact .brief-links {display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;color:white;font-size:.82rem;line-height:1.3}
.hero-contact .brief-offices :is(.flag-chip,.flag-item,.flag) {display:inline-flex;align-items:center;gap:4px;position:static;height:auto;width:auto;margin:0;padding:0;background:transparent;border:0;box-shadow:none;color:inherit}
.hero-contact .brief-offices svg {width:19px;height:13px;position:static}
.hero-contact .brief-links {margin-top:8px;gap:3px 14px}
.hero-contact .brief-links a {color:var(--highlight);text-decoration:underline;text-underline-offset:3px;padding-block:3px}
.hero-contact .brief-links a:is(:hover,:focus-visible) {color:white}

.sequence .platform-brief {border:0;padding:0}
.sequence .platform-steps {counter-reset:stage;display:flex;flex-wrap:wrap;gap:5px 14px;margin:9px 0;padding:0;list-style:none}
.sequence .platform-steps li {counter-increment:stage;display:flex;gap:7px;align-items:center;font-size:.92rem;color:white}
.sequence .platform-steps li::before {content:counter(stage);display:grid;place-items:center;width:1.55em;height:1.55em;background:var(--highlight);color:#153123;border-radius:4px;font-weight:750}
.sequence .platform-brief strong {color:var(--highlight)}

.sequence .platform-brief h2::before {display:none}

.home-jump {background:#173724;color:#c8f6ab;border-block:1px solid #173724}
.home-jump .container {display:flex;flex-wrap:wrap;align-items:center;gap:0 clamp(14px,3vw,36px)}
.home-jump a {display:inline-flex;align-items:center;min-height:44px;padding:4px 0;color:inherit;font-weight:650;font-size:.92rem;text-decoration:underline;text-underline-offset:4px}
.home-jump a:visited {color:inherit}
.home-jump a:is(:hover,:focus-visible) {color:#fff;text-decoration-thickness:2px}
.home-jump a::after {content:"↓";padding-inline-start:.4em}
.home-jump ~ section[id] {scroll-margin-top:85px}
.hero-contact ~ section [role=region][tabindex] {max-width:100%;overflow-x:auto}
.home-jump a:focus-visible,.hero-contact ~ section [role=region][tabindex]:focus-visible {outline:2px solid currentColor;outline-offset:-2px}
