/* ============================================================
   AI TURBO TRADE — SITE ENHANCEMENTS
   Purely visual layer: animations, new sections, micro-interactions.
   Loaded AFTER page stylesheets. No logic dependencies.
   ============================================================ */

:root {
  --primary: #00e5ff;
  --primary-2: #0077ff;
  --primary-gradient: linear-gradient(90deg, #00e5ff, #0077ff);
  --dark: #0d111a;
  --green: #00d67d;
  --red: #ff3b6b;
  --text-muted: #b5b9c9;
  --radius: 12px;
  --display-font: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
  --glass: rgba(24, 27, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.07);
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(0, 229, 255, 0.35);
  color: #ffffff;
}

/* Elegant thin scrollbar (WebKit) */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #0a0c12; }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1d2432, #141926);
  border-radius: 8px;
  border: 2px solid #0a0c12;
}
body::-webkit-scrollbar-thumb:hover { background: #253048; }

/* ------------------------------------------------------------
   SCROLL PROGRESS BAR (element injected by site-enhancements.js)
   ------------------------------------------------------------ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary-gradient);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
  z-index: 10001;
  pointer-events: none;
  transition: width 0.1s linear;
}

/* ------------------------------------------------------------
   HEADER — shrink + deepen on scroll
   ------------------------------------------------------------ */
header {
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}
header .logo img {
  transition: width 0.35s ease, height 0.35s ease;
}
header.scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
  background: rgba(10, 12, 18, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
header.scrolled .logo img {
  width: 54px !important;
  height: 54px !important;
}

/* ------------------------------------------------------------
   SCROLL REVEAL SYSTEM  —  [data-reveal]
   Variants: (default up) | left | right | zoom | fade
   Delay:    data-reveal-delay="200"  (ms, set as --reveal-delay by JS)
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-44px); }
[data-reveal="right"] { transform: translateX(44px); }
[data-reveal="zoom"]  { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   FX TICKER TAPE
   ------------------------------------------------------------ */
.fx-ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(13, 16, 24, 0.75);
  backdrop-filter: blur(8px);
  margin: -30px -24px 60px; /* stretch across main's side padding */
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-marquee 42s linear infinite;
  padding-left: 24px;
}
.fx-ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes ticker-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.ticker-item .pair { color: #dfe3f0; }
.ticker-item .price {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
.ticker-item .chg {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.ticker-item .chg.up   { color: var(--green); }
.ticker-item .chg.down { color: var(--red); }
.ticker-item .price.flash-up   { color: var(--green); }
.ticker-item .price.flash-down { color: var(--red); }

/* ------------------------------------------------------------
   HERO UPGRADES
   ------------------------------------------------------------ */
.hero-bg-image { isolation: isolate; }

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.07);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 214, 125, 0.7);
  animation: badge-pulse 2s ease-out infinite;
}
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 214, 125, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 214, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 214, 125, 0); }
}

/* Shimmering gradient headline */
.hero-content h1 {
  font-family: var(--display-font);
  line-height: 1.15;
  background: linear-gradient(110deg, #ffffff 20%, #00e5ff 40%, #0077ff 55%, #ffffff 75%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 6s linear infinite;
}
@keyframes text-shimmer {
  to { background-position: -220% center; }
}

.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
}

/* Floating hero image with glow ring */
.hero-image {
  position: relative;
  animation: hero-float 7s ease-in-out infinite;
  transition: transform 0.2s ease-out;
}
@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -14px; }
}
.hero-glow {
  position: absolute;
  z-index: 0;
  right: 4%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(0, 229, 255, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  animation: glow-breathe 6s ease-in-out infinite;
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; scale: 1; }
  50%      { opacity: 1;   scale: 1.08; }
}

/* Scroll-down indicator */
.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.scroll-indicator a {
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: border-color 0.3s ease;
}
.scroll-indicator a:hover { border-color: var(--primary); }
.scroll-indicator a::after {
  content: '';
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--primary);
  animation: scroll-wheel 1.8s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* ------------------------------------------------------------
   SECTION HEADINGS (shared by new sections)
   ------------------------------------------------------------ */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

/* spacing formerly set inline on index.html */
.benefits-wrap .section-head {
  margin-top: 130px;
}
.benefits-wrap .benefits {
  margin-top: 0;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #b8ecff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------
   STATS BAND — animated counters
   ------------------------------------------------------------ */
.stats-band {
  max-width: 1100px;
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 38px 32px;
  border-radius: 18px;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(120deg, rgba(0, 229, 255, 0.45), rgba(0, 119, 255, 0.08), rgba(0, 229, 255, 0.45)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.stat {
  text-align: center;
  padding: 6px 0;
}
.stat .value {
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat .label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ------------------------------------------------------------
   BENEFITS CARDS — 3D tilt + mouse-tracked glow  [data-tilt]
   ------------------------------------------------------------ */
[data-tilt] {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
[data-tilt]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 229, 255, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
[data-tilt]:hover::before { opacity: 1; }

.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 22px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .card-icon { transform: scale(1.12) rotate(-4deg); }

/* ------------------------------------------------------------
   HOW IT WORKS — numbered steps with connector
   ------------------------------------------------------------ */
.how-it-works {
  max-width: 1100px;
  margin: 130px auto 0;
  padding: 0 12px;
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.45), rgba(0, 119, 255, 0.45), transparent);
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}
.step-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  background: #10141f;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 0 6px rgba(0, 229, 255, 0.06), 0 0 26px rgba(0, 229, 255, 0.18);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.step:hover .step-num {
  transform: scale(1.1);
  box-shadow: 0 0 0 9px rgba(0, 229, 255, 0.1), 0 0 40px rgba(0, 229, 255, 0.35);
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: #ffffff;
}
.step p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps::before {
    left: 50%;
    right: auto;
    top: 5%;
    bottom: 5%;
    height: auto;
    width: 2px;
    background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.45), transparent);
  }
}

/* ------------------------------------------------------------
   MARKETS SHOWCASE — live sparkline cards
   ------------------------------------------------------------ */
.markets {
  max-width: 1100px;
  margin: 130px auto 0;
  padding: 0 12px;
}
.markets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.market-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 22px 22px 14px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.market-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 16px 44px rgba(0, 229, 255, 0.12);
}
.market-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.market-pair {
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 17px;
  color: #ffffff;
  letter-spacing: 0.4px;
}
.market-price {
  font-size: 15px;
  font-weight: 600;
  color: #e8ebf5;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}
.market-price.flash-up   { color: var(--green); }
.market-price.flash-down { color: var(--red); }
.market-chg {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.market-chg.up   { color: var(--green); background: rgba(0, 214, 125, 0.1); }
.market-chg.down { color: var(--red);   background: rgba(255, 59, 107, 0.1); }
.market-card canvas {
  display: block;
  width: 100%;
  height: 64px;
}
.markets-note {
  text-align: center;
  margin-top: 18px;
  font-size: 12.5px;
  color: #7e849b;
}

/* ------------------------------------------------------------
   TESTIMONIALS — rotating quotes
   ------------------------------------------------------------ */
.testimonials {
  max-width: 860px;
  margin: 130px auto 0;
  padding: 0 12px;
}
.testimonial-slider {
  position: relative;
  min-height: 240px;
}
.testimonial {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 40px;
  border-radius: 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}
.testimonial.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.testimonial .quote-mark {
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 0.6;
  color: var(--primary);
  margin-bottom: 18px;
  opacity: 0.85;
}
.testimonial blockquote {
  font-size: 1.12rem;
  color: #e4e7f2;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 22px;
}
.testimonial .who {
  font-size: 14px;
  color: var(--text-muted);
}
.testimonial .who strong { color: var(--primary); font-weight: 600; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.testimonial-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, transform 0.3s ease;
  padding: 0;
}
.testimonial-dots button.active {
  background: var(--primary);
  transform: scale(1.35);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

@media (max-width: 640px) {
  .testimonial-slider { min-height: 340px; }
  .testimonial { padding: 28px 20px; }
}

/* ------------------------------------------------------------
   CTA BAND — rotating conic gradient border
   ------------------------------------------------------------ */
@property --cta-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.cta-band {
  max-width: 1000px;
  margin: 130px auto 0;
  padding: 2px;
  border-radius: 22px;
  background: conic-gradient(
    from var(--cta-angle, 0deg),
    rgba(0, 229, 255, 0.9),
    rgba(0, 119, 255, 0.25),
    rgba(0, 229, 255, 0.05),
    rgba(0, 119, 255, 0.25),
    rgba(0, 229, 255, 0.9)
  );
  animation: cta-rotate 6s linear infinite;
}
@keyframes cta-rotate {
  to { --cta-angle: 360deg; }
}
.cta-inner {
  border-radius: 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.08), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(0, 119, 255, 0.1), transparent 45%),
    #0e1220;
  text-align: center;
  padding: 64px 36px;
}
.cta-inner h2 {
  font-family: var(--display-font);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: -0.4px;
}
.cta-inner p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 34px;
}
.cta-inner .btn-primary {
  padding: 14px 40px;
  font-size: 16px;
}

/* ------------------------------------------------------------
   BUTTON MICRO-INTERACTIONS — shine sweep
   ------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -80%;
  width: 45%;
  height: 140%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn:active { transform: scale(0.97); }

/* ------------------------------------------------------------
   UPGRADED FOOTER
   ------------------------------------------------------------ */
footer.site-footer {
  text-align: left;
  padding: 70px 24px 28px;
  margin-top: 130px;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(10, 13, 20, 0.85));
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--display-font);
  font-weight: 700;
  font-size: 19px;
  color: var(--primary);
}
.footer-brand .logo-row img { width: 46px; height: 46px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 11px;
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 13px;
  color: #7e849b;
  line-height: 1.8;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .footer-brand .logo-row { justify-content: center; }
  .footer-brand p { margin: 0 auto; }
  .footer-col a { margin-left: auto; margin-right: auto; }
}

/* ------------------------------------------------------------
   BACK TO TOP (element injected by site-enhancements.js)
   ------------------------------------------------------------ */
#back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.4);
  background: rgba(13, 17, 26, 0.85);
  backdrop-filter: blur(8px);
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------------ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
