/* ============================================================
   MarketQX Trading Landing Page — style.css
   ============================================================ */

/* ── Base ── */
body {
  background: #060b18;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

/* ── Grid background ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Glow orbs ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* ── Chart line animation ── */
.chart-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: chartDraw 3s ease forwards 0.5s;
}

@keyframes chartDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ── Ticker ── */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 35s linear infinite;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ── Fade up animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}
.fade-up.visible {
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Glass card ── */
.card-glass {
  background: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 211, 238, 0.08);
}

/* ── Buttons ── */
.btn-register {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
  transition: all 0.3s ease;
}
.btn-register:hover {
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.6);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(34, 211, 238, 0.25);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.05);
  transform: translateY(-2px);
}

/* ── Stat cards ── */
.stat-card {
  background: rgba(16, 24, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-4px);
}

/* ── Candlestick colors ── */
.candle-up {
  fill: #4ade80;
}
.candle-down {
  fill: #f87171;
}

/* ── Noise texture overlay ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Market table rows ── */
.market-row {
  transition: background 0.2s;
}
.market-row:hover {
  background: rgba(34, 211, 238, 0.04);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }
}

/*===============
  Custom CSS
  ===============*/

.quotex-logo {
  display: block;
  height: 30px;
  width: 150px;
  background-repeat: no-repeat;
  background-position: top left;
  background-size: contain;
  background-image: url(../images/quotex_logo.svg);
}
