/* ============================================
   APC PRIME — Homepage Stylesheet
   Brand: #67A414 (primary green) / Black / White
   Fonts: Inter (UI) + JetBrains Mono (numbers)
   ============================================ */

:root {
  --green: #67A414;
  --green-600: #5a9111;
  --green-700: #4d7d0e;
  --green-50: #f3f8eb;
  --green-100: #e4f0d0;
  --green-tint: rgba(103, 164, 20, 0.08);
  --black: #0A0A0A;
  --ink: #131313;
  --ink-2: #2a2a2a;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --line: #e9ebee;
  --line-2: #f1f3f5;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-grid: #f7f8f9;

  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.04), 0 0 0 1px rgba(10,10,10,.04);
  --shadow-md: 0 8px 24px -8px rgba(10,10,10,.10), 0 0 0 1px rgba(10,10,10,.05);

  --container: 1240px;
  --gutter: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================
   TICKER (top strip) — TradingView widget
   ============================================ */
.ticker {
  background: #0a0a0a;
  color: #fff;
  border-bottom: 1px solid #1a1a1a;
  height: 46px;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  transition: transform .25s ease;
}
.ticker--light {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.ticker--hidden { transform: translateY(-100%); }
.ticker tv-ticker-tape {
  display: block;
  width: 100%;
  height: 76px; /* widget is taller than visible area; bottom branding gets clipped */
  margin-top: -8px; /* shift up so symbols sit vertically centered in 46px container */
}
/* Hide TradingView attribution branding line */
.ticker tv-ticker-tape::part(copyright),
.ticker tv-ticker-tape::part(logo-wrapper),
.ticker tv-ticker-tape::part(branding) {
  display: none !important;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 46px;
  left: 0; right: 0;
  z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease, top .25s ease;
  border-bottom: 1px solid transparent;
}
/* When user scrolls past ticker, ticker hides and header pins to top */
.header--scrolled { top: 0; }
/* Inner page top padding:
   - Markets (page-asset) keep ticker → 122px (ticker 46 + header 76)
   - All other inner pages → 76px (header only, no ticker) */
body.page-light,
body.page-company,
body.page-support,
body.page-platform,
body.page-partners { padding-top: 76px; }
body.page-asset { padding-top: 122px; }
/* Header position: no ticker on non-market pages → start at top:0 */
body.page-light .header,
body.page-company .header,
body.page-support .header,
body.page-platform .header,
body.page-partners .header { top: 0; }
body.page-light.scrolled,
body.page-company.scrolled,
body.page-support.scrolled,
body.page-asset.scrolled,
body.page-platform.scrolled,
body.page-partners.scrolled { padding-top: 76px; }
.header--scrolled,
body.page-light .header,
body.page-company .header,
body.page-support .header,
body.page-asset .header,
body.page-platform .header,
body.page-partners .header {
  background: #ffffff;
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 12px rgba(10,10,10,.06);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.header__logo img { height: 28px; width: auto; }
.header__logo--light { display: block; }
.header__logo--dark { display: none; }
.header--scrolled .header__logo--light,
body.page-light .header__logo--light,
body.page-company .header__logo--light,
body.page-support .header__logo--light,
body.page-asset .header__logo--light,
body.page-platform .header__logo--light,
body.page-partners .header__logo--light { display: none; }
.header--scrolled .header__logo--dark,
body.page-light .header__logo--dark,
body.page-company .header__logo--dark,
body.page-support .header__logo--dark,
body.page-asset .header__logo--dark,
body.page-platform .header__logo--dark,
body.page-partners .header__logo--dark { display: block; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__item { position: relative; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .15s;
  padding: 8px 0;
  cursor: pointer;
}
.nav__link:hover { color: var(--green); }
.nav__link svg { width: 12px; height: 12px; opacity: .7; transition: transform .2s; }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.header--scrolled .nav__link,
body.page-light .nav__link,
body.page-company .nav__link,
body.page-support .nav__link,
body.page-asset .nav__link,
body.page-platform .nav__link,
body.page-partners .nav__link { color: var(--ink-2); }
.header--scrolled .nav__link:hover,
body.page-light .nav__link:hover,
body.page-company .nav__link:hover,
body.page-support .nav__link:hover,
body.page-asset .nav__link:hover,
body.page-platform .nav__link:hover,
body.page-partners .nav__link:hover { color: var(--green); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -24px;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 16px 48px -12px rgba(10,10,10,.18), 0 0 0 1px rgba(10,10,10,.04);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, visibility .18s, transform .18s;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  z-index: 200;
}
.nav__item:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.nav__dropdown a:hover { background: var(--green-50); color: var(--green-700); }
.nav__dropdown a .num { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); }
.nav__dropdown a:hover .num { color: var(--green); }

.header__cta { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .12s ease, background .15s, color .15s, box-shadow .15s, border-color .15s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-600); box-shadow: 0 8px 20px -6px rgba(103,164,20,.45); }

.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.25); }
.btn--ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.header--scrolled .btn--ghost-light,
body.page-light .header__cta .btn--ghost-light,
body.page-company .header__cta .btn--ghost-light,
body.page-support .header__cta .btn--ghost-light,
body.page-asset .header__cta .btn--ghost-light,
body.page-platform .header__cta .btn--ghost-light,
body.page-partners .header__cta .btn--ghost-light { color: var(--ink); border-color: var(--line); }
.header--scrolled .btn--ghost-light:hover,
body.page-light .header__cta .btn--ghost-light:hover,
body.page-company .header__cta .btn--ghost-light:hover,
body.page-support .header__cta .btn--ghost-light:hover,
body.page-asset .header__cta .btn--ghost-light:hover,
body.page-platform .header__cta .btn--ghost-light:hover,
body.page-partners .header__cta .btn--ghost-light:hover { border-color: var(--ink); }

.btn--ghost-dark { color: var(--ink); border-color: var(--line); }
.btn--ghost-dark:hover { border-color: var(--ink); }

.btn--lg { padding: 15px 28px; font-size: 15px; }

.btn .arrow {
  width: 14px; height: 14px;
  transition: transform .18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 760px;
  background: #060606;
  color: #fff;
  overflow: hidden;
  padding-top: 122px; /* ticker (46) + header (76) */
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 600px at 80% 20%, rgba(103,164,20,.18), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(103,164,20,.08), transparent 60%),
    linear-gradient(180deg, #050505 0%, #0c0c0c 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero__candles {
  position: absolute;
  right: 0; bottom: 0;
  width: 60%; height: 75%;
  opacity: .55;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px var(--gutter) 100px;
  position: relative;
}


.hero__slides { position: relative; min-height: 440px; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .6s ease, transform .6s ease;
}
.hero__slide--active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  padding: 6px 12px;
  background: rgba(103,164,20,.10);
  border: 1px solid rgba(103,164,20,.25);
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(103,164,20,.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.hero__title {
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero__title .accent { color: var(--green); }
.hero__sub {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 520px;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* hero right panel: data card */
.hero__panel {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 20px;
  backdrop-filter: blur(8px);
  position: relative;
}

/* === Image variant: Slide visuals === */
.hero__panel--image {
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: visible;
  border-radius: 0;
}
.hero__visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual--active {
  opacity: 1;
  pointer-events: auto;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  display: block;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.hero__visual--active img {
  animation: heroFloat 5s ease-in-out infinite;
}
.hero__visual-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(103,164,20,.08), rgba(255,255,255,.02)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
  border: 1px dashed rgba(103,164,20,.35);
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: rgba(255,255,255,.7);
  font-family: 'JetBrains Mono', monospace;
}
.hero__visual--placeholder .hero__visual-placeholder {
  display: flex;
}
.hero__visual-placeholder-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  background: rgba(155,209,74,.15);
  color: #9bd14a;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 18px;
}
.hero__visual-placeholder-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-sans);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.hero__visual-placeholder-file {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: 0.04em;
  line-height: 1.5;
  word-break: break-all;
  margin-bottom: 14px;
  max-width: 320px;
}
.hero__visual-placeholder-file code {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(155,209,74,.3);
  border-radius: 4px;
  color: #9bd14a;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}
.hero__visual-placeholder-dim {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}
.hero__panel-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 14px;
}
.hero__panel-head .live { color: var(--green); display: inline-flex; gap: 6px; align-items: center; }
.hero__panel-head .live::before {
  content: '';
  width: 6px; height: 6px; background: var(--green); border-radius: 50%;
  animation: pulse 1.6s infinite;
}
.hero__quotes { display: flex; flex-direction: column; gap: 2px; }
.hero__quote {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 11px 6px;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.hero__quote:last-child { border-bottom: none; }
.hero__quote-sym { font-weight: 600; font-size: 14px; }
.hero__quote-name {
  display: block; font-weight: 400; font-size: 11px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-sans);
  margin-top: 2px;
}
.hero__quote-price { font-family: var(--font-mono); font-size: 14px; color: #fff; }
.hero__quote-chg { font-family: var(--font-mono); font-size: 12px; padding: 3px 8px; border-radius: 3px; min-width: 64px; text-align: right; }
.up { background: rgba(103,164,20,.15); color: #9bd14a; }
.dn { background: rgba(220,38,38,.15); color: #f87171; }

.hero__chart {
  margin-top: 16px;
  height: 80px;
  position: relative;
}

/* ── Hero Navigation: absolute arrows on far edges + counter ── */
.hero__nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  backdrop-filter: blur(8px);
}
.hero__nav-btn svg { width: 22px; height: 22px; }
.hero__nav-btn:hover {
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-50%) scale(1.08);
}
.hero__nav-btn--prev { left: 16px; }
.hero__nav-btn--next { right: 16px; }
.hero__nav-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
  pointer-events: none;
}
.hero__nav-counter b { color: #fff; font-weight: 600; }

/* ============================================
   SECTION SHELL
   ============================================ */
.section { padding: 110px 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: #0a0a0a; color: #fff; }

.section__head { max-width: 760px; margin-bottom: 56px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--green);
}
.section--dark .eyebrow { color: var(--green); }

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  text-wrap: balance;
}
.section__sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.section--dark .section__sub { color: rgba(255,255,255,.65); }

/* ============================================
   "Everything You Need. One Account." SECTION
   ============================================ */
.account {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.account__features {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.account__features li {
  padding: 22px 4px;
  display: flex; gap: 18px; align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}
.account__features .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .1em;
  width: 28px;
}
.account__features .check {
  width: 22px; height: 22px;
  background: var(--green-tint);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.account__features .check svg { width: 11px; height: 11px; color: var(--green); }
.account__cta { margin-top: 36px; }

/* dashboard mock */
.account__visual {
  position: relative;
  background: #0a0a0a;
  border-radius: 10px;
  padding: 22px;
  color: #fff;
  box-shadow:
    0 24px 60px -24px rgba(10,10,10,.35),
    0 0 0 1px rgba(10,10,10,.06);
  overflow: hidden;
}
.account__visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 80% 10%, rgba(103,164,20,.18), transparent 70%),
    linear-gradient(180deg, #0e0e0e, #060606);
  z-index: 0;
}
.account__visual > * { position: relative; z-index: 1; }

.dash__bar {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.5);
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06);
  letter-spacing: .08em;
}
.dash__bar .dots { display: flex; gap: 5px; }
.dash__bar .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.15); }
.dash__bar .dots span:first-child { background: #ef4444; }
.dash__bar .dots span:nth-child(2) { background: #f59e0b; }
.dash__bar .dots span:nth-child(3) { background: var(--green); }

.dash__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin: 18px 0 14px;
}
.dash__pair { font-size: 16px; font-weight: 600; }
.dash__pair span { color: rgba(255,255,255,.45); font-weight: 400; margin-left: 6px; font-size: 12px; }
.dash__price { font-family: var(--font-mono); font-size: 28px; font-weight: 600; line-height: 1; }
.dash__chg { font-family: var(--font-mono); font-size: 12px; color: #9bd14a; }

.dash__chart {
  height: 180px;
  position: relative;
  background:
    linear-gradient(to bottom, transparent 0%, transparent calc(100% - 1px), rgba(255,255,255,.05) 100%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(255,255,255,.04) 35px, rgba(255,255,255,.04) 36px);
}

.dash__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
}
.dash__stat label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  color: rgba(255,255,255,.45); display: block; margin-bottom: 4px;
}
.dash__stat strong { font-family: var(--font-mono); font-size: 14px; font-weight: 500; }

/* ============================================
   MARKETS SECTION
   ============================================ */
.markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
a.market { text-decoration: none; color: inherit; display: block; }
.market {
  background: #fff;
  padding: 36px 28px;
  position: relative;
  transition: background .2s;
  cursor: pointer;
}
.market:hover { background: var(--green-50); }
.market__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--green);
}
.market__icon svg { width: 100%; height: 100%; }
.market__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.market__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.market__plus {
  position: absolute;
  top: 28px; right: 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: background .2s, color .2s, transform .2s;
}
.market:hover .market__plus { background: var(--green); color: #fff; transform: rotate(45deg); }

.markets-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 40px;
}
.markets-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-2);
}
.markets-tag b { color: var(--green); margin-right: 4px; }

/* ============================================
   MT5 PLATFORM SECTION (DARK)
   ============================================ */
.mt5 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.mt5__title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
}
.mt5__sub {
  font-size: 18px;
  color: rgba(255,255,255,.65);
  margin-bottom: 36px;
  max-width: 460px;
}
.mt5__list {
  list-style: none;
  margin-bottom: 36px;
}
.mt5__list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 16px;
  color: rgba(255,255,255,.9);
}
.mt5__list svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.mt5__visual {
  position: relative;
  border-radius: 10px;
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,.06);
  padding: 18px;
  box-shadow: 0 30px 80px -20px rgba(103,164,20,.18);
}
/* Image variant — transparent background + float animation */
.mt5__visual--img {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
@keyframes mt5Float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-16px); }
}
.mt5__float-img {
  width: 100%;
  height: auto;
  display: block;
  animation: mt5Float 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(103,164,20,.22));
}
.mt5__chart-wrap {
  position: relative;
  background: #060606;
  border-radius: 6px;
  height: 380px;
  overflow: hidden;
}
.mt5__toolbar {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,.5);
  padding: 10px 14px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,.05);
  letter-spacing: .08em;
}
.mt5__toolbar .tab {
  padding: 4px 10px; border-radius: 3px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.7);
}
.mt5__toolbar .tab--active { background: var(--green-tint); color: var(--green); }
.mt5__toolbar .pair { color: #fff; font-weight: 600; margin-left: auto; }
.mt5__toolbar .pair em { color: #9bd14a; font-style: normal; margin-left: 6px; }

/* ============================================
   WHY APC PRIME
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.why-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(103,164,20,.18);
}
.why-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .15em;
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 10px;
}
.why-card__num::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.why-card__icon {
  width: 36px; height: 36px;
  color: var(--green);
  margin-bottom: 22px;
}
.why-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.why-card__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.why__cta { text-align: center; margin-top: 56px; }

/* ============================================
   STEPS SECTION
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  margin-top: 56px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 36px; left: 16%; right: 16%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
}
.step {
  text-align: center;
  padding: 0 24px;
  position: relative;
}
.step__num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  z-index: 2;
  transition: background .2s, color .2s, border-color .2s;
}
.step:hover .step__num { background: var(--green); color: #fff; border-color: var(--green); }
.step__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.step__desc {
  font-size: 15px;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
}

.steps-cta { text-align: center; margin-top: 56px; }

/* ============================================
   HELP SECTION
   ============================================ */
.help {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  color: #fff;
  border-radius: 12px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.help::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(103,164,20,.18), transparent 70%);
}
.help__title {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
.help__sub { color: rgba(255,255,255,.65); font-size: 17px; margin-bottom: 32px; }
.help__channels { display: flex; flex-direction: column; gap: 14px; }
.help__channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  transition: background .2s, border-color .2s;
}
.help__channel:hover { background: rgba(103,164,20,.08); border-color: rgba(103,164,20,.4); }
.help__channel-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(103,164,20,.12);
  border-radius: 6px;
  color: var(--green);
  flex-shrink: 0;
}
.help__channel-icon svg { width: 20px; height: 20px; }
.help__channel-text strong { display: block; font-size: 15px; font-weight: 600; }
.help__channel-text span { font-size: 13px; color: rgba(255,255,255,.55); font-family: var(--font-mono); }
.help__channel .arrow {
  margin-left: auto;
  width: 16px; height: 16px;
  color: rgba(255,255,255,.4);
  transition: transform .2s, color .2s;
}
.help__channel:hover .arrow { color: var(--green); transform: translateX(3px); }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  text-align: center;
  padding: 130px 0;
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(103,164,20,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(103,164,20,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 80%);
}
.final-cta > * { position: relative; }
.final-cta h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 18px;
  text-wrap: balance;
}
.final-cta p {
  font-size: 19px;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #060606;
  color: rgba(255,255,255,.7);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand img { height: 30px; margin-bottom: 24px; }
.footer__about { line-height: 1.65; color: rgba(255,255,255,.6); font-size: 14px; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}
.footer__contact { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.footer__contact li {
  display: flex; gap: 12px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}
.footer__contact svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.footer__contact a:hover { color: var(--green); }

.footer__legal {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px;
  padding: 20px 22px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
}
.footer__legal h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.footer__legal h5::before {
  content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 1px;
}
.footer__legal p { margin-bottom: 8px; }

.footer__risk {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  background: rgba(220,38,38,.04);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.6);
  display: flex; gap: 16px; align-items: flex-start;
}
.footer__risk-icon {
  width: 22px; height: 22px; flex-shrink: 0;
  color: #f87171;
}
.footer__risk strong { color: #fff; display: block; margin-bottom: 4px; font-size: 13px; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-family: var(--font-mono);
  letter-spacing: .03em;
}
.footer__bottom a:hover { color: var(--green); }

/* ============================================
   INNER HERO (sub-pages)
   ============================================ */
.inner-hero {
  position: relative;
  background: #060606;
  color: #fff;
  overflow: hidden;
  padding: 200px 0 110px;
}
.inner-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 80% 30%, rgba(103,164,20,.18), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(103,164,20,.07), transparent 60%),
    linear-gradient(180deg, #050505 0%, #0c0c0c 100%);
}
.inner-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.inner-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.inner-hero__inner--center { grid-template-columns: 1fr; text-align: center; max-width: 880px; margin: 0 auto; }

.crumbs {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 28px;
}
.crumbs a { color: rgba(255,255,255,.7); }
.crumbs a:hover { color: var(--green); }
.crumbs .sep { opacity: .35; }
.crumbs .current { color: var(--green); }

.inner-hero__title {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 20px;
  text-wrap: balance;
}
.inner-hero__title .accent { color: var(--green); }
.inner-hero__sub {
  font-size: 19px;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
  margin-bottom: 32px;
  text-wrap: pretty;
}
.inner-hero__inner--center .inner-hero__sub { margin-left: auto; margin-right: auto; max-width: 640px; }
.inner-hero__inner--center .crumbs { justify-content: center; }
.inner-hero__inner--center .inner-hero__actions { justify-content: center; }
.inner-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* mini ticker badge for inner hero */
.inner-hero__badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.inner-hero__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  color: rgba(255,255,255,.85);
  display: inline-flex; align-items: center; gap: 8px;
}
.inner-hero__badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(103,164,20,.15);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   ASSET TABLE (per-market quotes)
   ============================================ */
.asset-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.asset-table__head, .asset-table__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 80px;
  align-items: center;
  padding: 16px 24px;
  gap: 12px;
}
.asset-table__head {
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.asset-table__row {
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  transition: background .15s;
}
.asset-table__row:last-child { border-bottom: none; }
.asset-table__row:hover { background: var(--green-50); }
.asset-table__sym { font-weight: 600; font-size: 15px; }
.asset-table__sym span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.asset-table__num { font-family: var(--font-mono); font-size: 14px; }
.asset-table__chg { font-family: var(--font-mono); padding: 4px 10px; border-radius: 3px; display: inline-block; font-size: 12px; }
.asset-table__chg--up { background: rgba(103,164,20,.12); color: var(--green-600); }
.asset-table__chg--dn { background: rgba(220,38,38,.10); color: #b91c1c; }
.asset-table__spark { width: 80px; height: 28px; }
.asset-table__btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  transition: background .15s;
}
.asset-table__btn:hover { background: var(--green); }

/* ============================================
   FAQ
   ============================================ */
.faqs {
  max-width: 820px;
  margin: 0 auto;
}
.faq {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: -0.005em;
}
.faq__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .2s, color .2s;
  color: var(--ink);
}
.faq__icon svg { width: 14px; height: 14px; transition: transform .25s; }
.faq[open] .faq__icon { background: var(--green); color: #fff; }
.faq[open] .faq__icon svg { transform: rotate(45deg); }
.faq__a {
  padding: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}

/* ============================================
   CROSS-MARKETS BAND (used at bottom of asset pages)
   ============================================ */
.cross-markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.cross-markets__item {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color .15s, background .15s, transform .15s;
}
.cross-markets__item:hover { border-color: var(--green); background: var(--green-50); transform: translateY(-1px); }
.cross-markets__item.cross-markets__item--active { border-color: var(--green); background: var(--green-tint); color: var(--green-700); }
.cross-markets__item svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.cross-markets__item .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); margin-left: auto; }

/* compact why grid for inner pages — 4 cols */
.why-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-grid--4 .why-card { padding: 28px 24px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__panel { max-width: 520px; }
  .account, .mt5, .help, .inner-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .markets, .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid--4, .cross-markets { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
  .help { padding: 40px; }
  .help__title { font-size: 28px; }
  .section { padding: 80px 0; }
  .inner-hero { padding: 160px 0 80px; }
  .asset-table__head, .asset-table__row { grid-template-columns: 1.2fr 1fr 1fr 70px; }
  .asset-table__head .col-hide, .asset-table__row .col-hide { display: none; }
}

@media (max-width: 640px) {
  .markets, .why-grid, .steps, .dash__stats { grid-template-columns: 1fr; }
  .why-grid, .markets { gap: 12px; background: transparent; border: none; }
  .market { border: 1px solid var(--line); border-radius: 8px; }
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 60px; }
  .hero__slides { min-height: 380px; }
  .hero__title { font-size: 38px; }
  .header__cta .btn:first-child { display: none; }
  .footer { padding: 56px 0 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .help { padding: 32px 24px; }
  .final-cta { padding: 90px 0; }
}

/* Mobile hero safe spacing: keep homepage text away from screen edges */
@media (max-width: 640px) {
  .hero__inner {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* ============================================
   ASSET HERO (light, distinct from homepage dark hero)
   used on shares/indices/metals/energy/crypto/currencies/commodities/futures
   ============================================ */
.asset-hero {
  position: relative;
  background: #fafaf9;
  color: var(--ink);
  overflow: hidden;
  padding: 160px 0 90px;
  border-bottom: 1px solid var(--line);
}
.asset-hero__decor {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to left, #000 0%, transparent 80%);
  pointer-events: none;
}
.asset-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.asset-hero .crumbs { color: var(--muted); margin-bottom: 24px; }
.asset-hero .crumbs a { color: var(--ink); }
.asset-hero .crumbs a:hover { color: var(--green); }
.asset-hero .crumbs .current { color: var(--green); }

.asset-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 24px;
}
.asset-hero__cat::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--green);
}
.asset-hero__title {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 20px;
  text-wrap: balance;
  color: var(--ink);
}
.asset-hero__title .accent {
  color: var(--green);
  position: relative;
}
.asset-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 540px;
  text-wrap: pretty;
}
.asset-hero__actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 28px;
}
.asset-hero__badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.asset-hero__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.asset-hero__badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(103,164,20,.6);
  animation: pulse 1.6s infinite;
}

/* big asset visual on right */
.asset-hero__visual {
  position: relative;
}
.asset-hero__big {
  font-family: var(--font-mono);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: rgba(0,0,0,.04);
  position: absolute;
  top: -40px; left: -20px;
  pointer-events: none;
  z-index: 0;
}
.asset-hero__quote-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.asset-hero__quote-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.asset-hero__live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green);
}
.asset-hero__live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s infinite;
}
.asset-hero__featured {
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}
.asset-hero__featured-sym {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.asset-hero__featured-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}
.asset-hero__featured-price {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 20px;
}
.asset-hero__featured-price .price {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.asset-hero__featured-price .chg {
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 4px 10px;
  background: rgba(103,164,20,.1);
  color: var(--green-700);
}
.asset-hero__featured-price .chg.dn {
  background: rgba(220,38,38,.1);
  color: #b91c1c;
}
.asset-hero__minichart {
  height: 60px;
  margin-top: 4px;
}
.asset-hero__quote-list {
  padding: 0;
}
.asset-hero__quote-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--line-2);
  align-items: center;
  transition: background .15s;
}
.asset-hero__quote-row:last-child { border-bottom: none; }
.asset-hero__quote-row:hover { background: #fafaf9; }
.asset-hero__quote-row .sym {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.asset-hero__quote-row .price {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.asset-hero__quote-row .chg {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 0;
}
.asset-hero__quote-row .chg.up { background: rgba(103,164,20,.1); color: var(--green-700); }
.asset-hero__quote-row .chg.dn { background: rgba(220,38,38,.1); color: #b91c1c; }

/* Stats strip below hero on asset pages */
.asset-stats {
  background: var(--ink);
  color: #fff;
  padding: 24px 0;
}
.asset-stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.asset-stats__item {
  display: flex; flex-direction: column;
  border-left: 2px solid var(--green);
  padding-left: 16px;
}
.asset-stats__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.asset-stats__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .asset-hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .asset-hero__big { display: none; }
  .asset-hero { padding: 140px 0 70px; }
  .asset-stats__inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .asset-stats__inner { grid-template-columns: 1fr; }
}

/* ===== Image bands (placeholders for 3D PNGs) =====
   Each band carries a unique data-img-name. Replace placeholder
   visual with: <img src="../assets/img/<filename>"/> inside .img-band__media.
   Placeholder layer fades out when an <img> successfully loads. */
.img-band {
  margin: 0 auto;
  max-width: 1200px;
  padding: 24px;
}
.img-band--full { max-width: 100%; padding: 0; }
.img-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #fafbf8 0%, #f4f6ee 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
}
.img-band--reverse .img-band__inner { grid-template-columns: 1fr 1.1fr; }
.img-band--reverse .img-band__copy { order: 2; }
.img-band--reverse .img-band__media { order: 1; }
.img-band--dark .img-band__inner {
  background: linear-gradient(135deg, #0e1410 0%, #1a2520 100%);
  border-color: #1a2520;
  color: #fff;
}
.img-band__copy .eyebrow { display: inline-block; }
.img-band__copy h3 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 12px 0 14px;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}
.img-band--dark .img-band__copy h3 { color: #fff; }
.img-band__copy p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.img-band--dark .img-band__copy p { color: rgba(255,255,255,.7); }
.img-band__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 30%, rgba(103,164,20,.12), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(103,164,20,.08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(103,164,20,.04) 0 12px, transparent 12px 24px),
    #fff;
  border: 1px dashed rgba(103,164,20,.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-band--dark .img-band__media {
  background:
    radial-gradient(circle at 30% 30%, rgba(155,209,74,.18), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(155,209,74,.1), transparent 60%),
    repeating-linear-gradient(45deg, rgba(155,209,74,.05) 0 12px, transparent 12px 24px),
    #0a0a0a;
  border-color: rgba(155,209,74,.3);
}
.img-band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}
.img-band__placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.img-band--dark .img-band__placeholder { color: rgba(255,255,255,.7); }
.img-band__placeholder-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(103,164,20,.12);
  color: var(--green-700);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
  font-weight: 700;
}
.img-band--dark .img-band__placeholder-tag {
  background: rgba(155,209,74,.15);
  color: #9bd14a;
}
.img-band__placeholder-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: var(--font-sans);
}
.img-band--dark .img-band__placeholder-name { color: #fff; }
.img-band__placeholder-file {
  font-size: 12px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  word-break: break-all;
  opacity: .8;
}
.img-band__placeholder-file code {
  background: rgba(0,0,0,.05);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.img-band--dark .img-band__placeholder-file code { background: rgba(255,255,255,.08); }
.img-band__placeholder-dim {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: .55;
}
.img-band__media:has(img) .img-band__placeholder { display: none; }

@media (max-width: 900px) {
  .img-band__inner {
    grid-template-columns: 1fr !important;
    padding: 32px 24px;
    gap: 28px;
  }
  .img-band--reverse .img-band__copy { order: 1; }
  .img-band--reverse .img-band__media { order: 2; }
  .img-band__copy h3 { font-size: 24px; }
}

/* ===== CTA Band (used on partner & company pages) ===== */
.cta-band {
  background: linear-gradient(135deg, var(--green-50), #fff);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  color: var(--ink);
  text-wrap: balance;
}
.cta-band p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
}
.cta-band .eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-700);
}
.cta-band--dark {
  background: linear-gradient(135deg, #0e1410 0%, #1a2520 100%);
  border-color: #1a2520;
}
.cta-band--dark h2 { color: #fff; }
.cta-band--dark p { color: rgba(255,255,255,.7); }
.cta-band--dark .eyebrow { color: #9bd14a; }

@media (max-width: 800px) {
  .cta-band { padding: 32px 24px; }
  .cta-band h2 { font-size: 26px; }
}

/* ===== Clients strip (partners pages) ===== */
.clients-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 32px;
}
.client-cell {
  background: #fff;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: background .2s;
}
.client-cell:hover { background: var(--green-50); }
.client-cell__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background .2s, transform .2s;
}
.client-cell__icon svg { width: 22px; height: 22px; stroke-width: 1.6; }
.client-cell:hover .client-cell__icon { background: var(--green); color: #fff; transform: scale(1.05); }
.client-cell h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.client-cell p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .clients-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .clients-strip { grid-template-columns: 1fr; }
}



/* ============================================
   SCROLL & IMAGE ANIMATIONS
   Driven by assets/site.js (scroll-anim section)
   ============================================ */

/* Reveal-on-scroll baseline */
.anim-on .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .85s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .85s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.anim-on .reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Direction variants */
.anim-on .reveal--left  { transform: translate3d(-28px, 0, 0); }
.anim-on .reveal--right { transform: translate3d( 28px, 0, 0); }
.anim-on .reveal--up    { transform: translate3d(0, 28px, 0); }
.anim-on .reveal--down  { transform: translate3d(0,-28px, 0); }
.anim-on .reveal--left.is-visible,
.anim-on .reveal--right.is-visible,
.anim-on .reveal--up.is-visible,
.anim-on .reveal--down.is-visible { transform: translate3d(0, 0, 0); }

/* Image polish — fade + soft zoom on first paint */
.anim-on img.img-anim {
  --img-scale: 1.04;
  opacity: 0;
  transform: scale(var(--img-scale));
  filter: saturate(.92);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform 1.1s cubic-bezier(.2,.7,.2,1),
    filter 1.1s ease;
  will-change: opacity, transform, filter;
}
.anim-on img.img-anim--ready {
  --img-scale: 1;
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
}

/* Parallax images use the same translate channel — keep transition tight */
.anim-on img.parallax-img {
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    filter 1.1s ease;
  /* transform handled by JS for parallax; no CSS transform-transition */
}

/* Reduced-motion: kill everything */
@media (prefers-reduced-motion: reduce) {
  .anim-on .reveal,
  .anim-on img.img-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* ============================================
   MOBILE NAVIGATION MENU
   ============================================ */

/* Hamburger button — shown only on mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  cursor: pointer;
  gap: 5px;
  padding: 0;
  transition: border-color .2s;
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark pages: burger adapts */
body.page-light .nav__burger,
body.page-company .nav__burger,
body.page-support .nav__burger,
body.page-asset .nav__burger,
body.page-platform .nav__burger,
body.page-partners .nav__burger {
  border-color: var(--line);
}
body.page-light .nav__burger span,
body.page-company .nav__burger span,
body.page-support .nav__burger span,
body.page-asset .nav__burger span,
body.page-platform .nav__burger span,
body.page-partners .nav__burger span {
  background: var(--ink);
}
/* After scroll — always dark header */
.header--scrolled .nav__burger { border-color: var(--line); }
.header--scrolled .nav__burger span { background: var(--ink); }

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}
.mobile-nav.is-open {
  pointer-events: all;
}

/* Overlay */
.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  transition: opacity .3s ease;
}
.mobile-nav.is-open .mobile-nav__overlay { opacity: 1; }

/* Drawer panel */
.mobile-nav__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 92vw);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
}
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

/* Panel header */
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__head img { height: 24px; width: auto; }
.mobile-nav__close {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background .2s;
}
.mobile-nav__close:hover { background: #f5f5f3; }

/* Panel links */
.mobile-nav__body { padding: 16px 0; flex: 1; }

.mobile-nav__section { border-bottom: 1px solid var(--line); }
.mobile-nav__section:last-child { border-bottom: none; }

.mobile-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: color .2s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.mobile-nav__top:hover { color: var(--green); }
.mobile-nav__top svg {
  width: 16px; height: 16px;
  transition: transform .25s;
  flex-shrink: 0;
  color: var(--muted);
}
.mobile-nav__section.is-open .mobile-nav__top svg { transform: rotate(180deg); }

.mobile-nav__sub {
  display: none;
  padding: 4px 24px 12px;
  background: #f9f9f7;
}
.mobile-nav__section.is-open .mobile-nav__sub { display: block; }
.mobile-nav__sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
}
.mobile-nav__sub a:last-child { border-bottom: none; }
.mobile-nav__sub a:hover { color: var(--green); }
.mobile-nav__sub .num {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  min-width: 18px;
}

/* Plain link (no sub-menu) */
.mobile-nav__link {
  display: block;
  padding: 14px 24px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s;
}
.mobile-nav__link:hover { color: var(--green); }

/* CTA buttons in drawer */
.mobile-nav__cta {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.mobile-nav__cta .btn { justify-content: center; width: 100%; }

@media (max-width: 1024px) {
  .nav__burger { display: flex; }
  .mobile-nav { display: block; }
  /* Hide the Open Account button on mobile (show only in drawer) */
  .header__cta .btn--primary { display: none; }
}

@media (max-width: 640px) {
  /* Sign In was already hidden at 640px, keep that */
  .header__cta .btn--ghost-light { display: none; }
}

/* ============================================
   TV INSTRUMENTS GRID — markets pages
   Text LEFT · TradingView Widget RIGHT
   ============================================ */
.tv-instruments-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}
.tv-instruments-grid__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 8px;
}
.tv-instruments-grid__text .eyebrow { margin-bottom: 12px; }
.tv-instruments-grid__text .section__title { margin-bottom: 16px; font-size: 36px; }
.tv-instruments-grid__text .section__sub { max-width: 440px; }
.tv-instruments-grid__widget {
  min-width: 0;
  width: 100%;
}
@media (max-width: 1024px) {
  .tv-instruments-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================
   MARKET HERO FLOATING IMAGE
   ============================================ */
.asset-hero__visual--img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  overflow: visible;
}
@keyframes marketFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(0.5deg); }
  66%       { transform: translateY(-7px) rotate(-0.5deg); }
}
.market-float-img {
  width: 90%;
  max-width: 420px;
  height: auto;
  display: block;
  animation: marketFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(103,164,20,.18));
}


/* ============================================
   LANGUAGE SWITCHER DROPDOWN
   ============================================ */
.lang-dropdown {
  position: relative;
  display: inline-block;
}
.lang-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
  display: block;
}
.lang-dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}
.lang-dropdown:hover .lang-dropdown__btn,
.lang-dropdown.is-open .lang-dropdown__btn {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-tint);
}
.lang-dropdown__btn svg {
  width: 11px; height: 11px;
  flex-shrink: 0;
  transition: transform .2s;
}
.lang-dropdown:hover .lang-dropdown__btn svg,
.lang-dropdown.is-open .lang-dropdown__btn svg { transform: rotate(180deg); }
/* Dropdown opens on hover */
.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 130px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 6px;
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .16s, transform .16s;
}
.lang-dropdown:hover .lang-dropdown__menu,
.lang-dropdown.is-open .lang-dropdown__menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lang-dropdown__item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
  transition: background .15s, color .15s;
  text-align: left;
}
.lang-dropdown__item:hover {
  background: var(--green-tint);
  color: var(--green);
}
.lang-dropdown__item.active {
  color: var(--green);
  font-weight: 700;
  background: var(--green-tint);
}

/* ─── Lang dropdown colors follow nav context ─── */
/* Homepage dark hero: white button */
body:not(.page-light):not(.page-company):not(.page-support):not(.page-asset):not(.page-platform):not(.page-partners) .header:not(.header--scrolled) .lang-dropdown__btn {
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.07);
}
body:not(.page-light):not(.page-company):not(.page-support):not(.page-asset):not(.page-platform):not(.page-partners) .header:not(.header--scrolled) .lang-dropdown:hover .lang-dropdown__btn,
body:not(.page-light):not(.page-company):not(.page-support):not(.page-asset):not(.page-platform):not(.page-partners) .header:not(.header--scrolled) .lang-dropdown.is-open .lang-dropdown__btn {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
/* After scroll OR inner pages — dark text */
.header--scrolled .lang-dropdown__btn,
body.page-light .lang-dropdown__btn,
body.page-company .lang-dropdown__btn,
body.page-support .lang-dropdown__btn,
body.page-asset .lang-dropdown__btn,
body.page-platform .lang-dropdown__btn,
body.page-partners .lang-dropdown__btn {
  color: var(--ink-2) !important;
  border-color: var(--line) !important;
  background: transparent !important;
}
.header--scrolled .lang-dropdown:hover .lang-dropdown__btn,
.header--scrolled .lang-dropdown.is-open .lang-dropdown__btn,
body.page-light .lang-dropdown:hover .lang-dropdown__btn,
body.page-light .lang-dropdown.is-open .lang-dropdown__btn,
body.page-company .lang-dropdown:hover .lang-dropdown__btn,
body.page-company .lang-dropdown.is-open .lang-dropdown__btn,
body.page-support .lang-dropdown:hover .lang-dropdown__btn,
body.page-support .lang-dropdown.is-open .lang-dropdown__btn,
body.page-asset .lang-dropdown:hover .lang-dropdown__btn,
body.page-asset .lang-dropdown.is-open .lang-dropdown__btn,
body.page-platform .lang-dropdown:hover .lang-dropdown__btn,
body.page-platform .lang-dropdown.is-open .lang-dropdown__btn,
body.page-partners .lang-dropdown:hover .lang-dropdown__btn,
body.page-partners .lang-dropdown.is-open .lang-dropdown__btn {
  color: var(--green) !important;
  border-color: var(--green) !important;
  background: var(--green-tint) !important;
}



/* HOSTING HOTFIX: stable language dropdown even when cached CSS order differs */
.lang-dropdown{position:relative!important;display:inline-block!important}
.lang-dropdown::after{content:""!important;position:absolute!important;left:0!important;right:0!important;top:100%!important;height:16px!important;display:block!important}
.lang-dropdown__btn{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.lang-dropdown__btn svg{width:14px!important;height:14px!important;max-width:14px!important;max-height:14px!important;flex:0 0 14px!important}
.lang-dropdown__btn svg:last-child{width:12px!important;height:12px!important;max-width:12px!important;max-height:12px!important;flex-basis:12px!important}
.lang-dropdown__menu{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;min-width:140px!important;background:#fff!important;border:1px solid #e5e5e3!important;border-radius:10px!important;box-shadow:0 8px 24px rgba(0,0,0,.12)!important;padding:6px!important;z-index:99999!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-4px)!important;transition:opacity .18s ease,transform .18s ease,visibility 0s linear .22s!important}
.lang-dropdown:hover .lang-dropdown__menu,.lang-dropdown:focus-within .lang-dropdown__menu,.lang-dropdown.is-open .lang-dropdown__menu{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;transition-delay:0s!important}
.lang-dropdown__item{display:block!important;width:100%!important;box-sizing:border-box!important;padding:8px 12px!important;white-space:nowrap!important;text-decoration:none!important;text-align:left!important;font-size:13px!important;line-height:1.35!important;color:#0a0a0a!important;border-radius:7px!important}
.lang-dropdown__item:hover,.lang-dropdown__item.active{background:rgba(103,164,20,.10)!important;color:#67a414!important}
html[dir="rtl"] .lang-dropdown__menu{left:0!important;right:auto!important}
html[dir="rtl"] .lang-dropdown__item{text-align:right!important}


/* Hotfix: keep Sign In visible on English inner pages before scroll */
body.page-company .header:not(.header--scrolled) .header__cta .btn--ghost-light,
body.page-support .header:not(.header--scrolled) .header__cta .btn--ghost-light,
body.page-asset .header:not(.header--scrolled) .header__cta .btn--ghost-light,
body.page-platform .header:not(.header--scrolled) .header__cta .btn--ghost-light,
body.page-partners .header:not(.header--scrolled) .header__cta .btn--ghost-light {
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
body.page-company .header:not(.header--scrolled) .header__cta .btn--ghost-light:hover,
body.page-support .header:not(.header--scrolled) .header__cta .btn--ghost-light:hover,
body.page-asset .header:not(.header--scrolled) .header__cta .btn--ghost-light:hover,
body.page-platform .header:not(.header--scrolled) .header__cta .btn--ghost-light:hover,
body.page-partners .header:not(.header--scrolled) .header__cta .btn--ghost-light:hover {
  border-color: var(--ink) !important;
  background: rgba(0,0,0,.04) !important;
}


/* APC v7 dropdown/signin hotfix */
.lang-dropdown{position:relative!important;display:inline-block!important}
.lang-dropdown::after{content:""!important;position:absolute!important;left:0!important;right:0!important;top:100%!important;height:16px!important;display:block!important}
.lang-dropdown__btn{display:inline-flex!important;align-items:center!important;gap:6px!important;white-space:nowrap!important}
.lang-dropdown__btn svg{width:14px!important;height:14px!important;max-width:14px!important;max-height:14px!important;flex:0 0 14px!important}
.lang-dropdown__btn svg:last-child{width:12px!important;height:12px!important;max-width:12px!important;max-height:12px!important;flex-basis:12px!important}
.lang-dropdown__menu{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;min-width:140px!important;background:#fff!important;border:1px solid #e5e5e3!important;border-radius:10px!important;box-shadow:0 8px 24px rgba(0,0,0,.12)!important;padding:6px!important;z-index:99999!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-4px)!important;transition:opacity .18s ease,transform .18s ease,visibility 0s linear .28s!important}
.lang-dropdown:hover .lang-dropdown__menu,.lang-dropdown:focus-within .lang-dropdown__menu,.lang-dropdown.is-open .lang-dropdown__menu{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important;transition-delay:0s!important}
.lang-dropdown__item{display:block!important;width:100%!important;box-sizing:border-box!important;padding:8px 12px!important;white-space:nowrap!important;text-decoration:none!important;text-align:left!important;font-size:13px!important;line-height:1.35!important;color:#0a0a0a!important;border-radius:7px!important}
.lang-dropdown__item:hover,.lang-dropdown__item.active{background:rgba(103,164,20,.10)!important;color:#67a414!important}
html[dir="rtl"] .lang-dropdown__menu{left:0!important;right:auto!important}
html[dir="rtl"] .lang-dropdown__item{text-align:right!important}
body.page-company .header:not(.header--scrolled) .btn--ghost-light,body.page-support .header:not(.header--scrolled) .btn--ghost-light,body.page-asset .header:not(.header--scrolled) .btn--ghost-light,body.page-platform .header:not(.header--scrolled) .btn--ghost-light,body.page-partners .header:not(.header--scrolled) .btn--ghost-light{color:var(--ink)!important;border-color:var(--line)!important}


/* Portuguese language addition / stable language dropdown */
.lang-dropdown{position:relative;}
.lang-dropdown__menu{min-width:160px;z-index:10000;}
.lang-dropdown:hover .lang-dropdown__menu,
.lang-dropdown:focus-within .lang-dropdown__menu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;}
.lang-dropdown__menu::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px;}
.lang-dropdown__btn svg{width:16px;height:16px;flex:0 0 auto;}

/* Vietnamese language support */
html[lang="vi"] body { font-family: Inter, "Segoe UI", Arial, sans-serif; }
html[lang="vi"] .lang-dropdown__menu { min-width: 150px; }


/* Spanish language addition / robust language dropdown */
.lang-dropdown__menu{min-width:170px!important;}
.lang-dropdown::after{height:18px!important;}
.lang-dropdown__item{direction:auto!important;unicode-bidi:plaintext!important;}




/* Final mobile header alignment fix: logo stays left, language button sits next to menu on the right */
@media (max-width: 1024px) {
  .header__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    direction: ltr !important;
  }
  .header__logo {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    flex: 0 0 auto !important;
  }
  .header__cta {
    order: 2 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex: 0 0 auto !important;
  }
  .header__cta .lang-dropdown {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }
  .nav__burger {
    order: 3 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }
  .lang-dropdown__menu {
    right: 0 !important;
    left: auto !important;
  }
}
@media (max-width: 480px) {
  .header__inner { gap: 8px !important; }
  .header__logo img { height: 24px !important; max-width: 150px !important; }
  .lang-dropdown__btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
    line-height: 1.1 !important;
  }
  .nav__burger {
    width: 42px !important;
    height: 42px !important;
  }
}
@media (max-width: 380px) {
  .header__logo img { max-width: 128px !important; }
  .lang-dropdown__btn { padding: 7px 10px !important; font-size: 12px !important; }
  .nav__burger { width: 40px !important; height: 40px !important; }
}


/* APC FINAL MOBILE HEADER ALIGNMENT
   Logo stays on the left; language switcher and hamburger sit together on the right. */
@media (max-width: 1024px) {
  .header .container.header__inner {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto !important;
    align-items: center !important;
    justify-content: initial !important;
    column-gap: 8px !important;
    direction: ltr !important;
    width: 100% !important;
  }
  .header .header__logo {
    grid-column: 1 !important;
    order: 1 !important;
    justify-self: start !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
  .header .nav {
    display: none !important;
  }
  .header .header__cta {
    grid-column: 3 !important;
    order: 2 !important;
    justify-self: end !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
  }
  .header .header__cta .btn,
  .header .header__cta .btn--primary,
  .header .header__cta .btn--ghost-light {
    display: none !important;
  }
  .header .header__cta .lang-dropdown {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }
  .header .lang-dropdown__btn {
    margin: 0 !important;
  }
  .header .nav__burger {
    grid-column: 4 !important;
    order: 3 !important;
    display: flex !important;
    justify-self: end !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
  }
  .header .lang-dropdown__menu {
    right: 0 !important;
    left: auto !important;
  }
}
@media (max-width: 480px) {
  .header .container.header__inner { column-gap: 6px !important; }
  .header .header__logo img { height: 24px !important; max-width: 150px !important; }
  .header .lang-dropdown__btn { padding: 8px 12px !important; font-size: 13px !important; }
  .header .nav__burger { width: 42px !important; height: 42px !important; }
}
@media (max-width: 380px) {
  .header .header__logo img { max-width: 128px !important; }
  .header .lang-dropdown__btn { padding: 7px 10px !important; font-size: 12px !important; }
  .header .nav__burger { width: 40px !important; height: 40px !important; }
}
/* END APC FINAL MOBILE HEADER ALIGNMENT */


/* APC FINAL DESKTOP/MOBILE LANGUAGE SELECTOR — flag + 2-letter code */
.header .header__cta{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  direction:ltr!important;
}
@media (min-width:1025px){
  .header .header__cta .btn--ghost-light{order:1!important;}
  .header .header__cta .btn--primary{order:2!important;}
  .header .header__cta .lang-dropdown{order:3!important;}
}
.header .lang-dropdown{position:relative!important;display:inline-flex!important;align-items:center!important;z-index:1000!important;}
.header .lang-dropdown__btn.apc-lang-compact{
  height:46px!important;
  min-width:86px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:0 14px!important;
  border:1px solid rgba(255,255,255,.22)!important;
  border-radius:4px!important;
  background:#4e7c0d!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:700!important;
  line-height:1!important;
  letter-spacing:.02em!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
.header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
.header .lang-dropdown.is-open .lang-dropdown__btn.apc-lang-compact,
.header--scrolled .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
.header--scrolled .lang-dropdown.is-open .lang-dropdown__btn.apc-lang-compact,
body.page-light .header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
body.page-company .header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
body.page-support .header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
body.page-asset .header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
body.page-platform .header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact,
body.page-partners .header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact{
  background:#426a0b!important;
  color:#fff!important;
  border-color:#4e7c0d!important;
}
.header .lang-dropdown__btn.apc-lang-compact .lang-flag,
.header .lang-dropdown__item .lang-flag{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  height:28px!important;
  font-size:24px!important;
  line-height:1!important;
  flex:0 0 28px!important;
}
.header .lang-dropdown__btn.apc-lang-compact .lang-code,
.header .lang-dropdown__item .lang-code{
  display:inline-block!important;
  font-weight:800!important;
  letter-spacing:.02em!important;
}
.header .lang-dropdown__btn.apc-lang-compact .lang-chev{
  width:14px!important;
  height:14px!important;
  flex:0 0 14px!important;
  color:#fff!important;
  transition:transform .18s ease!important;
}
.header .lang-dropdown:hover .lang-dropdown__btn.apc-lang-compact .lang-chev,
.header .lang-dropdown.is-open .lang-dropdown__btn.apc-lang-compact .lang-chev{transform:rotate(180deg)!important;}
.header .lang-dropdown__menu{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:0!important;
  left:auto!important;
  min-width:110px!important;
  width:max-content!important;
  background:#fff!important;
  border:1px solid #e5e5e3!important;
  border-radius:8px!important;
  box-shadow:0 12px 30px rgba(0,0,0,.16)!important;
  padding:6px!important;
  z-index:99999!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateY(-4px)!important;
  transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s!important;
}
.header .lang-dropdown:hover .lang-dropdown__menu,
.header .lang-dropdown:focus-within .lang-dropdown__menu,
.header .lang-dropdown.is-open .lang-dropdown__menu{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateY(0)!important;
  transition-delay:0s!important;
}
.header .lang-dropdown__item{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-width:96px!important;
  padding:8px 10px!important;
  color:#0a0a0a!important;
  background:transparent!important;
  border-radius:6px!important;
  text-decoration:none!important;
  font-size:14px!important;
  line-height:1!important;
  direction:ltr!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.header .lang-dropdown__item:hover,
.header .lang-dropdown__item.active{
  background:rgba(78,124,13,.10)!important;
  color:#4e7c0d!important;
}
html[dir="rtl"] .header .lang-dropdown__menu{right:0!important;left:auto!important;}
html[dir="rtl"] .header .lang-dropdown__item{text-align:left!important;}
@media (max-width:1024px){
  .header .container.header__inner{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    direction:ltr!important;
    width:100%!important;
  }
  .header .header__logo{
    order:1!important;
    margin:0 auto 0 0!important;
    flex:0 0 auto!important;
    justify-self:auto!important;
  }
  .header .nav{display:none!important;}
  .header .header__cta{
    order:2!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:0!important;
    width:auto!important;
    flex:0 0 auto!important;
  }
  .header .header__cta .btn,
  .header .header__cta .btn--primary,
  .header .header__cta .btn--ghost-light{display:none!important;}
  .header .header__cta .lang-dropdown{display:inline-flex!important;margin:0!important;order:1!important;}
  .header .nav__burger{
    order:3!important;
    display:flex!important;
    margin:0 0 0 8px!important;
    flex:0 0 auto!important;
    justify-self:auto!important;
  }
  .header .lang-dropdown__btn.apc-lang-compact{
    height:44px!important;
    min-width:78px!important;
    padding:0 11px!important;
    font-size:14px!important;
    border-radius:8px!important;
  }
  .header .lang-dropdown__btn.apc-lang-compact .lang-flag{width:24px!important;height:24px!important;font-size:22px!important;flex-basis:24px!important;}
  .header .lang-dropdown__menu{right:0!important;left:auto!important;}
}
@media (max-width:480px){
  .header .container.header__inner{gap:6px!important;}
  .header .header__logo img{height:24px!important;max-width:150px!important;}
  .header .lang-dropdown__btn.apc-lang-compact{height:42px!important;min-width:72px!important;padding:0 9px!important;font-size:13px!important;gap:6px!important;}
  .header .lang-dropdown__btn.apc-lang-compact .lang-flag{width:22px!important;height:22px!important;font-size:20px!important;flex-basis:22px!important;}
  .header .nav__burger{width:42px!important;height:42px!important;margin-left:6px!important;}
}
@media (max-width:380px){
  .header .header__logo img{max-width:128px!important;}
  .header .lang-dropdown__btn.apc-lang-compact{min-width:68px!important;padding:0 8px!important;font-size:12px!important;}
  .header .nav__burger{width:40px!important;height:40px!important;}
}
/* APC V38 REAL FLAG IMAGES FIX START */
.header .lang-dropdown__btn.apc-lang-compact .lang-flag,
.header .lang-dropdown__item .lang-flag{
  display:inline-block!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  flex:0 0 28px!important;
  border-radius:50%!important;
  overflow:hidden!important;
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
  background-color:transparent!important;
  background-size:100% 100%!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.35), 0 0 0 1px rgba(0,0,0,.10) inset!important;
}
.header .lang-dropdown__item .lang-flag{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  flex-basis:30px!important;
  box-shadow:0 0 0 1px rgba(0,0,0,.12) inset!important;
}
.header .lang-flag--gb{background-image:url("flags/gb.svg")!important;}
.header .lang-flag--ae{background-image:url("flags/ae.svg")!important;}
.header .lang-flag--th{background-image:url("flags/th.svg")!important;}
.header .lang-flag--pt{background-image:url("flags/pt.svg")!important;}
.header .lang-flag--vn{background-image:url("flags/vn.svg")!important;}
.header .lang-flag--es{background-image:url("flags/es.svg")!important;}
.header .lang-flag--fr{background-image:url("flags/fr.svg")!important;}
.header .lang-flag--tw{background-image:url("flags/tw.svg")!important;}
.header .lang-flag--cn{background-image:url("flags/cn.svg")!important;}
.header .lang-flag--kr{background-image:url("flags/kr.svg")!important;}
.header .lang-flag--jp{background-image:url("flags/jp.svg")!important;}
@media (max-width:1024px){
  .header .lang-dropdown__btn.apc-lang-compact .lang-flag{width:24px!important;height:24px!important;min-width:24px!important;flex-basis:24px!important;}
  .header .lang-dropdown__item .lang-flag{width:30px!important;height:30px!important;min-width:30px!important;flex-basis:30px!important;}
}
@media (max-width:480px){
  .header .lang-dropdown__btn.apc-lang-compact .lang-flag{width:22px!important;height:22px!important;min-width:22px!important;flex-basis:22px!important;}
}
/* APC V38 REAL FLAG IMAGES FIX END */
