/* ============================================================
   Quotex Pro — Landing page professional polish (v2026.11)
   Scroll progress, sticky glass navbar, scroll-reveal motion,
   How-It-Works, Risk Guards & Disclaimer sections, back-to-top.
   Uses the theme CSS variables so it follows every colour theme.
   ============================================================ */

/* ---- Scroll progress bar ---- */
#qp-scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 10001;
  background: linear-gradient(90deg, var(--orange, #d05a00), var(--gold, #b87808), var(--green, #108a32));
  box-shadow: 0 0 10px rgba(208, 90, 0, 0.45);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---- Navbar: glassy + compact once scrolled ---- */
.navbar { transition: padding .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
@media (min-width: 901px) {
  .navbar .container { padding-right: 156px !important; }
  .nav-links { gap: 18px !important; }
}
.navbar.qp-scrolled {
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important;
}
.nav-links a.qp-nav-active { color: var(--orange) !important; font-weight: 800; }
.nav-links a.qp-nav-link { position: relative; }
.nav-links a.qp-nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease; border-radius: 2px;
}
.nav-links a.qp-nav-link:hover::after,
.nav-links a.qp-nav-link.qp-nav-active::after { transform: scaleX(1); }

/* ---- Hero accent shimmer ---- */
.hero-title-accent {
  background-size: 200% auto;
  animation: qpAccentShimmer 6s ease-in-out infinite;
}
@keyframes qpAccentShimmer {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}
.hero-cta-btn { transition: transform .2s ease, box-shadow .2s ease; }
.hero-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(208, 90, 0, 0.28); }

/* ---- Scroll reveal (only applied by JS when supported) ---- */
.qp-reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--qp-delay, 0ms);
  will-change: opacity, transform;
}
.qp-reveal.qp-in { opacity: 1; transform: none; }

/* Card hover lift for a more tactile feel */
.feature-card-pro, .price-card, .qp-step, .qp-guard {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card-pro:hover, .price-card:hover, .qp-step:hover, .qp-guard:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* ---- Section shell ---- */
.qp-section { padding: 72px 0; position: relative; }
.qp-section .qp-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
  background: rgba(208, 90, 0, 0.08); border: 1px solid rgba(208, 90, 0, 0.25);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.qp-section h2 { font-size: 34px; font-weight: 900; color: var(--heading, var(--text)); margin: 0 0 10px; line-height: 1.2; }
.qp-section .qp-lead { font-size: 16px; color: var(--muted); max-width: 720px; margin: 0 auto; line-height: 1.7; }
.qp-center { text-align: center; }

/* ---- How it works ---- */
.qp-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px; margin-top: 40px; counter-reset: qpstep;
}
.qp-step {
  background: var(--card-bg, #fff); border: 1px solid var(--border);
  border-radius: 18px; padding: 26px 22px 22px; position: relative; overflow: hidden;
}
.qp-step::before {
  counter-increment: qpstep; content: "0" counter(qpstep);
  position: absolute; top: 12px; right: 16px; font-size: 42px; font-weight: 900;
  color: var(--orange); opacity: .12; line-height: 1;
}
.qp-step-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(208,90,0,.14), rgba(184,120,8,.14));
  border: 1px solid rgba(208,90,0,.25);
}
.qp-step h3 { font-size: 17px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.qp-step p { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }
.qp-steps-line {
  height: 3px; margin: 26px auto 0; max-width: 860px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), var(--green), transparent);
  background-size: 200% 100%; animation: qpFlow 4s linear infinite; opacity: .55;
}
@keyframes qpFlow { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* ---- Risk guards ---- */
.qp-guards {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px; margin-top: 34px;
}
@media (max-width: 980px) { .qp-guards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .qp-guards { grid-template-columns: 1fr !important; } }
.qp-guard {
  background: var(--card-bg, #fff); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; display: flex; gap: 12px; align-items: flex-start;
}
.qp-guard-ic { font-size: 22px; line-height: 1; margin-top: 2px; }
.qp-guard h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--text); }
.qp-guard p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---- Risk disclaimer ---- */
.qp-risk-box {
  margin: 36px auto 0; max-width: 980px; border-radius: 16px; padding: 18px 22px;
  background: rgba(196, 30, 30, 0.06); border: 1px solid rgba(196, 30, 30, 0.35);
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
}
.qp-risk-box .qp-risk-ic { font-size: 26px; line-height: 1; }
.qp-risk-box h4 { margin: 0 0 6px; font-size: 15px; font-weight: 900; color: var(--red, #c41e1e) !important; }
.qp-risk-box p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.65; }

/* ---- CTA band ---- */
.qp-cta-band {
  margin-top: 44px; border-radius: 22px; padding: 30px 26px; text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--gold));
  color: #fff; position: relative; overflow: hidden;
}
.qp-cta-band::after {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), transparent 40%);
  animation: qpGlowMove 8s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes qpGlowMove { from { transform: translate(-10%, -10%); } to { transform: translate(15%, 10%); } }
html.theme-light .qp-cta-band h3,
html.theme-dark .qp-cta-band h3,
.qp-cta-band h3 { margin: 0 0 8px; font-size: 24px; font-weight: 900; color: #ffffff !important; position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0,0,0,.22); }
html.theme-light .qp-cta-band p,
html.theme-dark .qp-cta-band p,
.qp-cta-band p { margin: 0 0 18px; font-size: 15px; color: rgba(255,255,255,.96) !important; position: relative; z-index: 1; }
.qp-cta-band .qp-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.qp-cta-band a.qp-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.qp-cta-band a.qp-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.2); }
.qp-cta-band a.qp-btn-light { background: #fff; color: var(--orange) !important; }
.qp-cta-band a.qp-btn-ghost { background: rgba(255,255,255,.14); color: #fff !important; border: 1px solid rgba(255,255,255,.6); }

/* ---- Back to top ---- */
#qp-to-top {
  position: fixed; left: 22px; bottom: 24px; z-index: 9990;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card-bg, #fff); color: var(--orange); font-size: 20px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(0,0,0,.15); cursor: pointer;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
#qp-to-top.qp-show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 768px) {
  .qp-section { padding: 52px 0; }
  .qp-section h2 { font-size: 26px; }
  .qp-risk-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .qp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-title-accent, .qp-steps-line, .qp-cta-band::after { animation: none !important; }
}
