/* =========================================================
   FXCENTRUM24 — GLOBAL + HEADER + HERO LOCK
   Hero-first build. Lower sections intentionally kept dark.
   ========================================================= */

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

html { scroll-behavior: smooth; }

html,
body { margin: 0; padding: 0; }

body {
  min-width: 320px;
  overflow-x: hidden;
  background: #020913;
  color: #f5f8ff;
  font-family: Inter, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 82px;
  background: rgba(3, 13, 24, .86);
  border-bottom: 1px solid rgba(62, 111, 143, .28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1320px, 92%);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 31px;
  height: 28px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
}

.brand-mark i {
  width: 5px;
  display: block;
  border-radius: 2px 2px 0 0;
  background: #159ff0;
}
.brand-mark i:nth-child(1) { height: 10px; background: #ff3850; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 22px; }
.brand-mark i:nth-child(4) { height: 28px; background: #22a8ff; }

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  color: #f3f8ff;
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.7px;
}
.brand-name strong { color: #ff344d; }
.brand-tagline {
  margin-top: 4px;
  color: #71879b;
  font-size: 6.5px;
  line-height: 1;
  letter-spacing: .55px;
}

.main-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-item { position: relative; }

.nav-trigger,
.nav-link {
  border: 0;
  background: transparent;
  color: #dce8f4;
  padding: 30px 12px;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.nav-trigger:hover,
.nav-link:hover { color: #16a9ff; }
.nav-trigger em {
  margin-left: 4px;
  color: #718ba0;
  font-style: normal;
  font-size: 9px;
}

.dropdown {
  position: absolute;
  top: 68px;
  left: 0;
  width: 215px;
  padding: 7px;
  border: 1px solid rgba(55, 103, 133, .7);
  border-radius: 8px;
  background: rgba(4, 17, 30, .98);
  box-shadow: 0 22px 55px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 10px 11px;
  border-radius: 5px;
  color: #b6c9da;
  font-size: 10px;
}
.dropdown a:hover { background: #0c2941; color: #fff; }
.dropdown a span,
.dropdown a small { display: block; }
.dropdown a small { margin-top: 3px; color: #647f96; font-size: 8px; }

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.btn-primary {
  background: #ff344d;
  color: #fff;
  box-shadow: 0 9px 28px rgba(255,52,77,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,52,77,.35); }

.btn-login,
.btn-outline {
  background: rgba(2, 13, 24, .28);
  border-color: rgba(145, 176, 199, .62);
  color: #fff;
}
.btn-login:hover,
.btn-outline:hover { background: rgba(12,40,62,.7); border-color: #16a9ff; transform: translateY(-2px); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(100,140,166,.4);
  border-radius: 6px;
  background: rgba(4,17,29,.8);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; }

/* =========================================================
   HERO — FULL VIDEO BACKGROUND
   ========================================================= */

.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  background: #020913;
}

.hero-video-layer {
  position: absolute;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  background: #020913;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  opacity: .94;
  filter: brightness(.91) contrast(1.06) saturate(1.05);
  transform: scale(1.01);
  pointer-events: none;
}

/* Left side protection: text stays crystal clear. */
.hero-overlay-left {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(2,9,19,.97) 0%,
      rgba(2,10,20,.93) 19%,
      rgba(2,10,20,.72) 37%,
      rgba(2,10,20,.32) 54%,
      rgba(2,10,20,.07) 69%,
      rgba(2,10,20,0) 82%);
}

/* Keep the central/right globe area alive while protecting the bottom. */
.hero-overlay-bottom {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(1,7,13,.10) 0%,
    rgba(1,7,13,0) 58%,
    rgba(1,7,13,.42) 84%,
    rgba(1,7,13,.86) 100%);
}

.hero-overlay-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 68% 48%, rgba(0,154,255,.025) 0%, transparent 38%, rgba(0,0,0,.28) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25,104,145,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,104,145,.075) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 43%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.65) 43%, transparent 78%);
  opacity: .65;
}

.hero-container {
  position: relative;
  z-index: 5;
  width: min(1320px, 90%);
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(480px, 610px) 1fr;
  align-items: center;
}

.hero-content {
  width: 100%;
  padding: 70px 0 74px;
}

.hero-eyebrow {
  margin: 0 0 14px;
  color: #08aaff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.55px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,165,255,.18);
}

.hero-title {
  margin: 0 0 20px;
  max-width: 600px;
  font-size: clamp(52px, 5.25vw, 76px);
  line-height: .94;
  letter-spacing: -3.8px;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 6px 28px rgba(0,0,0,.42);
}
.hero-title span { display: block; }
.hero-title-white { color: #fff; }
.hero-title-blue { color: #12a4f4; text-shadow: 0 0 28px rgba(0,157,255,.14); }

.hero-description {
  max-width: 555px;
  margin: 0;
  color: rgba(229,239,249,.9);
  font-size: 14px;
  line-height: 1.62;
  text-shadow: 0 2px 14px rgba(0,0,0,.72);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 27px;
}

.btn-hero { min-width: 145px; min-height: 49px; padding: 13px 21px; font-size: 12px; }
.btn-arrow { font-size: 16px; line-height: 0; }

.hero-benefits {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 35px;
  max-width: 590px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  color: #d8e4ef;
}

.benefit-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #0baeff;
  flex: 0 0 25px;
}
.benefit-icon svg { width: 22px; height: 22px; }
.hero-benefit strong,
.hero-benefit small { display: block; }
.hero-benefit strong { font-size: 10px; line-height: 1.2; }
.hero-benefit small { margin-top: 2px; color: #9db2c5; font-size: 9px; line-height: 1.2; }

.hero-visual-space { min-height: 1px; }

/* Keep optional market panel hidden during the hero-lock stage. */
.hero-market-panel { display: none; }

/* =========================================================
   REVEAL
   ========================================================= */

.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-ready .reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   LOWER PAGE — INTENTIONALLY DARK FOR THIS PHASE
   ========================================================= */
main > section:not(.hero),
section:not(.hero) { background: #020913; }

/* Existing lower components stay visually suppressed until their turn. */
main > section:not(.hero) { min-height: 360px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1120px) {
  .header-inner { width: 94%; gap: 18px; }
  .brand-name { font-size: 17px; }
  .nav-trigger, .nav-link { padding-left: 8px; padding-right: 8px; font-size: 10px; }
  .hero-container { width: 92%; grid-template-columns: minmax(430px, 560px) 1fr; }
  .hero-title { font-size: 58px; }
}

@media (max-width: 820px) {
  .site-header { height: 70px; }
  .header-inner { width: 92%; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 10px 5%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(3,13,24,.98);
    border-bottom: 1px solid rgba(62,111,143,.3);
  }
  .main-nav.open { display: flex; }
  .nav-trigger, .nav-link { width: 100%; padding: 13px 5px; text-align: left; }
  .dropdown { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .nav-item.open .dropdown { display: block; }
  .header-actions { margin-left: auto; }
  .btn-login { display: none; }
  .menu-toggle { display: block; }

  .hero { min-height: 680px; }
  .hero-container { width: 90%; min-height: 680px; display: block; }
  .hero-content { padding: 95px 0 55px; max-width: 620px; }
  .hero-title { font-size: 52px; letter-spacing: -2.8px; }
  .hero-description { font-size: 13px; }
  .hero-benefits { flex-wrap: wrap; gap: 18px 25px; }
  .hero-overlay-left { background: linear-gradient(90deg, rgba(2,9,19,.96) 0%, rgba(2,10,20,.82) 45%, rgba(2,10,20,.28) 72%, rgba(2,10,20,.05) 100%); }
  .hero-video { object-position: 66% center; }
}

@media (max-width: 520px) {
  .brand-mark { width: 25px; height: 24px; }
  .brand-mark i { width: 4px; }
  .brand-mark i:nth-child(1) { height: 9px; }
  .brand-mark i:nth-child(2) { height: 14px; }
  .brand-mark i:nth-child(3) { height: 19px; }
  .brand-mark i:nth-child(4) { height: 24px; }
  .brand-name { font-size: 15px; }
  .brand-tagline { font-size: 5px; }
  .header-actions .btn-primary { padding: 9px 12px; font-size: 10px; }

  .hero { min-height: 690px; }
  .hero-container { min-height: 690px; width: 90%; }
  .hero-content { padding: 78px 0 45px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: 1.15px; }
  .hero-title { font-size: 42px; line-height: .97; letter-spacing: -2.2px; }
  .hero-description { font-size: 12px; line-height: 1.55; }
  .hero-actions { flex-wrap: wrap; gap: 9px; margin-top: 23px; }
  .btn-hero { min-width: 136px; min-height: 46px; padding: 12px 16px; font-size: 11px; }
  .hero-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 10px; margin-top: 28px; }
  .hero-benefit { min-width: 0; }
  .hero-benefit strong { font-size: 9px; }
  .hero-benefit small { font-size: 8px; }
  .hero-video { object-position: 72% center; }
  .hero-overlay-left { background: linear-gradient(90deg, rgba(2,9,19,.98) 0%, rgba(2,10,20,.91) 53%, rgba(2,10,20,.45) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   FXCENTRUM24 — HERO LIVE MARKET TAPE
   Additive patch only. The existing hero remains intact.
   ========================================================= */

.hero-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: 68px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: rgba(3, 18, 32, .97);
  border-top: 1px solid rgba(38, 128, 173, .55);
  border-bottom: 1px solid rgba(16, 90, 126, .48);
  box-shadow: 0 -12px 34px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-ticker-label {
  position: relative;
  z-index: 3;
  flex: 0 0 158px;
  display: flex;
  align-items: center;
  padding: 0 34px;
  color: #f3f8ff;
  background: #04182a;
  border-right: 1px solid rgba(43, 119, 155, .35);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.15px;
  white-space: nowrap;
}

.hero-ticker-label::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #00e0a4;
  box-shadow: 0 0 0 4px rgba(0,224,164,.09), 0 0 12px rgba(0,224,164,.35);
}

.hero-ticker-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-ticker-track::before,
.hero-ticker-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55px;
  z-index: 2;
  pointer-events: none;
}

.hero-ticker-track::before {
  left: 0;
  background: linear-gradient(90deg, #031220, transparent);
}

.hero-ticker-track::after {
  right: 0;
  background: linear-gradient(270deg, #031220, transparent);
}

.hero-ticker-fallback-track {
  --hero-ticker-distance: 1200px;
  display: flex;
  align-items: center;
  flex: 0 0 max-content;
  gap: 0;
  min-width: max-content;
  animation: fxHeroTickerScroll 32s linear infinite;
  will-change: transform;
}

.hero-ticker-item {
  height: 68px;
  min-width: 205px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  border-right: 1px solid rgba(57, 111, 140, .24);
  color: #dce8f3;
  font-size: 12px;
  white-space: nowrap;
}

.hero-ticker-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 24px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font-size: 16px;
  line-height: 1;
}

.hero-ticker-item strong {
  color: #e9f3fb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1px;
}

.hero-ticker-item b {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hero-ticker-item i {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}

.hero-ticker-item .positive { color: #00dca3; }
.hero-ticker-item .negative { color: #ff5267; }

.hero-tradingview-ticker {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

@keyframes fxHeroTickerScroll {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(calc(var(--hero-ticker-distance) * -1),0,0); }
}

.hero-ticker:hover .hero-ticker-fallback-track { animation-play-state: paused; }

@media (max-width: 820px) {
  .hero-ticker { height: 58px; }
  .hero-ticker-label {
    flex-basis: 116px;
    padding: 0 17px;
    font-size: 11px;
  }
  .hero-ticker-label::before { width: 6px; height: 6px; margin-right: 7px; }
  .hero-ticker-item { min-width: 185px; height: 58px; padding: 0 16px; }
}

@media (max-width: 520px) {
  .hero-ticker { height: 54px; }
  .hero-ticker-label {
    flex-basis: 92px;
    padding: 0 12px;
    font-size: 9px;
  }
  .hero-ticker-label::before { width: 5px; height: 5px; margin-right: 6px; }
  .hero-ticker-item { min-width: 170px; height: 54px; gap: 5px; padding: 0 12px; }
  .hero-ticker-icon { width: 21px; height: 21px; flex-basis: 21px; font-size: 14px; }
  .hero-ticker-item strong { font-size: 9px; }
  .hero-ticker-item b { font-size: 9px; }
  .hero-ticker-item i { font-size: 8px; }
}

/* FXC MOBILE NAV CSS FINAL */
@media (max-width:850px){
  .site-header{z-index:5000 !important;position:sticky !important;top:0 !important;}
  .main-nav{z-index:5100 !important;background:#04101d !important;opacity:1 !important;isolation:isolate;}
  .main-nav.is-open,.main-nav.open{transform:translateX(0) !important;}
  .main-nav .dropdown{display:none !important;}
  .main-nav .nav-item.is-open>.dropdown,.main-nav .nav-item.open>.dropdown{display:block !important;opacity:1 !important;visibility:visible !important;transform:none !important;}
  .menu-toggle,.nav-trigger{touch-action:manipulation;-webkit-tap-highlight-color:transparent;}
  body.menu-open{overflow:hidden !important;}
}
