.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: rgba(4, 10, 20, 0.98);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.is-complete {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-box {
  width: min(320px, calc(100% - 40px));
  text-align: center;
}

.preloader-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 22px;
  font-family: var(--font-heading);
  font-size: 4rem;
  letter-spacing: 0.08em;
}

.logo-l {
  color: var(--primary);
}

.logo-rc {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  color: transparent;
}

.preloader-bar {
  height: 10px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.preloader-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-gold);
  box-shadow: var(--shadow-gold);
}

.preloader-percent {
  margin-top: 14px;
  color: var(--text);
  font-family: var(--font-subheading);
  letter-spacing: 0.16em;
}

.ticker-bar {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 14px 0;
  border-top: 1px solid rgba(34, 197, 94, 0.16);
  border-bottom: 1px solid rgba(255, 107, 114, 0.16);
  background: rgba(10, 15, 30, 0.94);
  box-shadow: 0 10px 42px rgba(0, 0, 0, 0.24);
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 24s linear infinite;
}

.ticker-item {
  color: var(--success);
  font-family: var(--font-subheading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.38);
}

.ticker-down {
  color: var(--danger);
  text-shadow: 0 0 18px rgba(255, 107, 114, 0.38);
}

.ticker-up {
  color: var(--success);
}

.hero,
.inner-hero {
  position: relative;
  overflow: hidden;
  background: #0a0f1e;
}

.hero {
  min-height: 100vh;
  padding: 148px 0 90px;
}

.trading-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.95;
  pointer-events: none;
}

.trading-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 15, 30, 0.86) 0%, rgba(10, 15, 30, 0.62) 44%, rgba(10, 15, 30, 0.34) 100%),
    radial-gradient(circle at 24% 30%, rgba(34, 197, 94, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 107, 114, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 15, 30, 0.2), rgba(10, 15, 30, 0.74));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(4.8rem, 10vw, 8rem);
  line-height: 0.9;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted-text);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: wordRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--word-delay);
}

.hero-word.is-accent {
  background: linear-gradient(135deg, #f9dd68, #ff9d00);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.hero-side {
  position: relative;
  width: 100%;
}

.chart-shell {
  padding: 28px;
  width: 100%;
}

.chart-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.chart-shell-header strong {
  font-family: var(--font-subheading);
  font-size: 1rem;
}

.hero-chart {
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-chart .chart-draw {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-metrics {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.chart-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(186, 230, 253, 0.08);
}

.chart-metric span {
  color: var(--muted-text);
}

.chart-metric strong {
  font-family: var(--font-subheading);
}

.profit-text {
  color: var(--accent);
}

.primary-text {
  color: var(--primary);
}

.scroll-chip {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--blue-light);
  transform: translateX(-50%);
}

.scroll-chip span:first-child {
  font-family: var(--font-subheading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(245, 197, 24, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  animation: bounceArrow 1.7s ease-in-out infinite;
}

.inner-hero {
  position: relative;
  padding: 150px 0 80px;
  min-height: 420px;
  background: #0a0f1e;
}

.inner-hero.sky-hero {
  background: #0a0f1e;
}

.inner-hero > .container {
  position: relative;
  z-index: 1;
}

/* CMS Hero Media overrides */
.hero-media-image img,
.hero-media-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 620 / 550;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

