/* ================================================================
   BALKANFIN — PRODUCTION CSS
   ================================================================ */

/* Custom Properties */
:root {
  --bg:          #05070f;
  --bg-mid:      #0c1120;
  --blue:        #3b7ff5;
  --cyan:        #00d4ff;
  --text:        #f0f4ff;
  --muted:       #9ba8c4;
  --dim:         #6b7a99;
  --border:      rgba(255,255,255,0.06);
  --border-blue: rgba(59,127,245,0.2);
  --dot-dark:    rgba(59,127,245,0.18);
  --dot-mid:     rgba(59,127,245,0.13);
  --dot-sz:      28px;
  --dot-sz2:     32px;
  --radius:      16px;
  --nav-h:       72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ================================================================
   LAYOUT
   ================================================================ */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
.sec {
  width: 100%;
  padding: 120px 20px;
  position: relative;
}
.sec-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 20px;
  display: block;
}
.sec-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

/* ================================================================
   SCROLL PROGRESS
   ================================================================ */
#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(59,127,245,0.9);
  z-index: 999999;
  transition: width 0.08s linear;
}

/* ================================================================
   CUSTOM CURSOR
   ================================================================ */
@media (hover: hover) {
  *, *::before, *::after { cursor: none !important; }
  .cursor-dot {
    position: fixed; width: 6px; height: 6px;
    background: #fff; border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999999;
    transition: opacity 0.2s ease;
  }
  .cursor-ring {
    position: fixed; width: 36px; height: 36px;
    border: 1.5px solid rgba(59,127,245,0.7); border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999998;
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease,
                border-color 0.3s ease, opacity 0.2s ease;
  }
  .cursor-ring.is-hovering  { width: 56px; height: 56px; background: rgba(59,127,245,0.08); border-color: var(--blue); }
  .cursor-ring.is-clicking  { width: 28px; height: 28px; background: rgba(59,127,245,0.2); }
}

/* ================================================================
   NAVBAR
   ================================================================ */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,7,15,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(5,7,15,0.98) !important;
  border-bottom-color: rgba(59,127,245,0.18) !important;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.nav-logo { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text) !important; }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
}
.nav-cta::after { display: none !important; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--bg);
  padding: 140px 20px 100px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,127,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,127,245,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
.hero__content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; width: 100%;
}
.hero__badge-wrap { margin-bottom: 36px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,127,245,0.1);
  border: 1px solid rgba(59,127,245,0.25);
  color: var(--cyan);
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 7px 18px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
}
.hero__book-wrap { margin-bottom: 0; }
.hero__title-wrap { margin-bottom: 28px; }
.hero__title {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: clamp(44px, 8vw, 104px); line-height: 1.02;
  letter-spacing: -0.04em; color: var(--text); text-transform: uppercase;
}
.hero__title .grad {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__sub-wrap { max-width: 640px; margin-bottom: 48px; }
.hero__sub { color: var(--muted); font-size: clamp(16px, 2vw, 22px); font-weight: 300; line-height: 1.65; }
.hero__actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Hero entrance */
.hero__badge-wrap  { opacity:0; transform:translateY(-16px); animation: anim-badge 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s forwards; }
.hero__book-wrap   { opacity:0; animation: anim-fade 1s cubic-bezier(0.16,1,0.3,1) 0.3s forwards; }
.hero__book-wrap > * { animation: anim-float 4.5s ease-in-out infinite 1.3s; }
.hero__title       { opacity:0; transform:translateY(32px); animation: anim-up 1s cubic-bezier(0.16,1,0.3,1) 0.45s forwards; }
.hero__sub-wrap    { opacity:0; transform:translateY(24px); animation: anim-up 0.9s cubic-bezier(0.16,1,0.3,1) 0.65s forwards; }
.hero__actions     { opacity:0; transform:translateY(20px); animation: anim-up 0.9s cubic-bezier(0.16,1,0.3,1) 0.85s forwards; }

@keyframes anim-badge { to { opacity:1; transform:translateY(0); } }
@keyframes anim-fade  { to { opacity:1; } }
@keyframes anim-up    { to { opacity:1; transform:translateY(0); } }
@keyframes anim-float { 0%,100%{transform:translateY(0) rotate(0deg);} 50%{transform:translateY(-12px) rotate(0.5deg);} }

/* Hero orbs */
.hero::before {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,127,245,0.09) 0%, transparent 65%);
  top: -100px; left: -200px; animation: orb-drift 10s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 65%);
  bottom: 0; right: -100px; animation: orb-drift 12s ease-in-out infinite 3s reverse;
}
@keyframes orb-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px,-30px) scale(1.08); }
  66%      { transform: translate(-20px,20px) scale(0.94); }
}

/* ================================================================
   BOOK COVER COMPONENT
   ================================================================ */
.book-cover {
  width: 200px; height: 280px;
  background: linear-gradient(135deg,#1a2744 0%,#0c1628 100%);
  border-radius: 4px 12px 12px 4px;
  margin: 0 auto 48px;
  position: relative;
  box-shadow: 0 20px 80px rgba(59,127,245,0.3), 0 40px 120px rgba(0,0,0,0.5);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 30px 24px; gap: 12px;
  transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
}
.book-cover--small {
  width: 130px; height: 185px;
  padding: 22px 16px 18px;
  border-radius: 3px 10px 10px 3px;
  transform: perspective(700px) rotateY(-8deg) rotateX(3deg);
  box-shadow: 0 20px 60px rgba(59,127,245,0.35), 0 40px 80px rgba(0,0,0,0.6);
  animation: anim-float 4.5s ease-in-out infinite;
  margin: 0;
}
.book-cover__spine {
  position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--cyan) 100%);
}
.book-cover--small .book-cover__spine { width: 5px; border-radius: 3px 0 0 3px; }
.book-cover__title {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 800;
  line-height: 1.2; color: #fff; margin-top: 10px;
}
.book-cover--small .book-cover__title { font-size: 13px; margin-top: 8px; }
.book-cover__divider {
  height: 1px; background: rgba(59,127,245,0.3); margin: 4px 0;
}
.book-cover__desc {
  font-size: 11px; color: rgba(255,255,255,0.5);
  line-height: 1.5; font-family: 'DM Sans', sans-serif;
}
.book-cover--small .book-cover__desc { font-size: 9px; color: rgba(255,255,255,0.45); }
.book-cover__author {
  margin-top: auto;
  font-family: 'Inter', sans-serif; font-size: 10px;
  color: var(--cyan); letter-spacing: 0.2em; text-transform: uppercase;
}
.book-cover--small .book-cover__author { font-size: 8px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 500; border-radius: 10px; padding: 16px 36px;
  text-align: center; cursor: pointer; border: none; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn--primary {
  background: var(--blue); color: #fff;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease;
  animation: btn-breathe 3.5s ease-in-out infinite 1.5s;
}
.btn--primary::after {
  content: '';
  position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite 2s;
  pointer-events: none;
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 0 70px rgba(59,127,245,0.65), 0 10px 32px rgba(0,0,0,0.4) !important;
  animation: none;
}
.btn--ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px) !important;
}
@keyframes shimmer { 0%{left:-80%;} 40%,100%{left:150%;} }
@keyframes btn-breathe {
  0%,100% { box-shadow: 0 0 20px rgba(59,127,245,0.3), 0 4px 16px rgba(0,0,0,0.3); }
  50%      { box-shadow: 0 0 48px rgba(59,127,245,0.55), 0 4px 20px rgba(0,0,0,0.4); }
}

/* ================================================================
   STATS BAR
   ================================================================ */
.stats {
  display: flex; flex-direction: row;
  background-color: transparent;
  width: 100%; position: relative;
  justify-content: center; padding: 60px 20px;
  overflow: visible;
}
.stats::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,127,245,0.18) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: halo-pulse 5s ease-in-out infinite;
}
@keyframes halo-pulse {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}
.stats__inner {
  display: flex; flex-direction: row; align-items: center;
  width: 100%; max-width: 1200px;
  background: transparent; overflow: visible;
  gap: 0; position: relative; z-index: 1;
}
.stats__inner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(59,127,245,0.04) 50%, transparent 100%);
  animation: scan 5s ease-in-out infinite; pointer-events: none; z-index: 0;
  border-radius: 18px;
}
@keyframes scan { 0%{transform:translateX(-100%);} 100%{transform:translateX(100%);} }
.stat {
  flex: 0 0 30%; display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 36px 40px; position: relative;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.stat:first-child { border-radius: 16px 0 0 16px; border-right: none; }
.stat:last-child  { border-radius: 0 16px 16px 0; border-left: none; }
.stat:not(.stat--featured):hover {
  border-color: rgba(59,127,245,0.25);
  box-shadow: 0 0 30px rgba(59,127,245,0.08);
}
.stat:not(.stat--featured)::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,127,245,0.5), transparent);
  opacity: 0; transition: opacity 0.35s ease;
}
.stat:not(.stat--featured):hover::before { opacity: 1; }
.stat__num {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(36px, 4.5vw, 58px);
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: inline-block;
}
.stat__label {
  color: var(--dim); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif;
}
.stat--featured {
  flex: 0 0 40%;
  padding: 64px 40px;
  border-right: none; border-left: none;
  border-radius: 18px; z-index: 2;
  background-image:
    radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(145deg, #1e4fd8 0%, var(--blue) 45%, #1a9fff 100%);
  background-size: 18px 18px, 100% 100%;
  box-shadow: 0 0 0 1px rgba(100,160,255,0.4), 0 0 50px rgba(59,127,245,0.5),
              0 0 120px rgba(59,127,245,0.2), 0 30px 60px rgba(0,0,0,0.5);
  animation: stat-glow 4s ease-in-out infinite;
  overflow: hidden;
}
.stat--featured::before {
  content: ''; position: absolute; top: -60%; left: -40%; width: 180%; height: 180%;
  background: conic-gradient(from 200deg, transparent 0%, rgba(255,255,255,0.06) 20%, transparent 40%);
  animation: featured-sweep 8s linear infinite; pointer-events: none;
}
.stat--featured::after {
  content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}
.stat--featured .stat__num {
  color: #fff; -webkit-text-fill-color: #fff !important;
  background: none !important; -webkit-background-clip: unset !important;
  font-size: clamp(40px, 5vw, 64px);
  text-shadow: 0 2px 24px rgba(0,0,0,0.4); position: relative; z-index: 1;
}
.stat--featured .stat__label { color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
@keyframes featured-sweep { 0%{transform:rotate(0deg);} 100%{transform:rotate(360deg);} }
@keyframes stat-glow {
  0%,100% { box-shadow: 0 0 0 1px rgba(100,160,255,0.4), 0 0 50px rgba(59,127,245,0.5), 0 0 120px rgba(59,127,245,0.2), 0 30px 60px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 1px rgba(100,160,255,0.6), 0 0 80px rgba(59,127,245,0.7), 0 0 160px rgba(59,127,245,0.3), 0 30px 60px rgba(0,0,0,0.5); }
}

/* ================================================================
   MARQUEE
   ================================================================ */
.marquee {
  overflow: hidden;
  background: rgba(59,127,245,0.05);
  border-top: 1px solid rgba(59,127,245,0.12);
  border-bottom: 1px solid rgba(59,127,245,0.12);
  padding: 13px 0; white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 0 36px;
  font-family: 'DM Sans', sans-serif; font-size: 11px;
  font-weight: 500; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase;
}
.marquee__dot { color: var(--blue); font-size: 8px; }
@keyframes marquee { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ================================================================
   TRADING SECTION
   ================================================================ */
.trading { background-color: var(--bg); }
.trading .wrap { display: flex; align-items: center; gap: 60px; }
.trading__text { flex: 1; }
.trading__text .sec-heading { margin-bottom: 20px; }
.trading__text p { color: var(--muted); font-size: 18px; font-weight: 300; line-height: 1.65; max-width: 540px; }
.trading__text p + p { margin-top: 16px; }
.trading__image { flex: 1; }
.trading__image img {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 16px; display: block;
  object-fit: cover;
  border: 1px solid rgba(59,127,245,0.3);
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features {
  background-color: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: flex; flex-wrap: wrap;
  gap: 2px; margin-top: 60px;
  align-items: stretch;
}
.feature-card {
  width: calc(33.333% - 2px);
  display: flex; flex-direction: column;
  background: var(--bg);
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.3s ease, box-shadow 0.4s ease, background 0.3s ease;
  border-color: rgba(59,127,245,0.08);
  transform-style: preserve-3d;
}
.feature-card:hover {
  background: #0c1323;
  border-color: rgba(59,127,245,0.35) !important;
  box-shadow: 0 0 0 1px rgba(59,127,245,0.12), 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04) !important;
}
.feature-card__num {
  color: var(--blue); font-size: 14px; font-weight: 700;
  letter-spacing: 0.15em; font-family: 'DM Sans', sans-serif;
  display: block; margin-bottom: 20px;
}
.feature-card__icon {
  width: 44px; height: 44px;
  background: rgba(59,127,245,0.1);
  border: 1px solid rgba(59,127,245,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
}
.feature-card__title {
  font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 10px; letter-spacing: -0.02em;
}
.feature-card__desc {
  font-size: 14px; color: var(--dim); line-height: 1.65;
  margin: 0; font-family: 'DM Sans', sans-serif;
  flex: 1;
}

/* ================================================================
   ROADMAP SECTION
   ================================================================ */
.roadmap { background-color: var(--bg); }
.roadmap .sec-heading { margin-bottom: 70px; }
.roadmap__steps {
  display: flex; flex-direction: row;
  gap: 0; position: relative;
}
.roadmap__line {
  position: absolute; top: 32px; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--blue));
  background-size: 200% 100%;
  animation: line-march 3s linear infinite;
  opacity: 0.4;
}
@keyframes line-march { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }
.roadmap__step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 20px; gap: 20px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.roadmap__step:hover { transform: translateY(-4px); }
.roadmap__step:hover .step-num {
  background: rgba(59,127,245,0.12) !important;
  border-color: rgba(59,127,245,0.5) !important;
  color: var(--cyan) !important;
  box-shadow: 0 0 24px rgba(59,127,245,0.35) !important;
}
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--bg-mid); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--blue); position: relative; z-index: 1; flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}
.step-title {
  font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--text); margin-bottom: 6px;
}
.step-desc {
  font-size: 13px; color: var(--dim); line-height: 1.6;
  margin: 0; font-family: 'DM Sans', sans-serif;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about {
  background-color: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about .wrap { display: flex; align-items: center; gap: 60px; }
.about__text { flex: 1; }
.about__text .sec-heading { margin-bottom: 20px; }
.about__text p { color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.75; max-width: 540px; margin-bottom: 16px; }
.about__photo {
  flex: 1;
}
.about__photo img {
  width: 100%; aspect-ratio: 3/4;
  border-radius: 20px; display: block;
  object-fit: cover;
  border: 1px solid rgba(59,127,245,0.3);
}
.about__quote {
  position: relative;
  border-left: 2px solid var(--blue);
  padding: 16px 20px 16px 24px;
  margin: 0; margin-top: 20px;
  background: rgba(59,127,245,0.05);
  border-radius: 0 10px 10px 0;
  max-width: 540px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 400; font-style: italic;
  color: #c8d3e8; line-height: 1.7;
}
.about__quote-mark {
  font-family: 'Inter', sans-serif;
  font-size: 48px; line-height: 0; vertical-align: -18px;
  color: var(--blue); margin-right: 4px; opacity: 0.6; font-style: normal;
}

/* ================================================================
   FEATURED IN BAR
   ================================================================ */
.featured-bar {
  width: 100%;
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 40px;
  display: flex; align-items: center; justify-content: center;
  gap: 56px; position: relative; overflow: hidden;
}
.featured-bar::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(59,127,245,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.featured-label {
  font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  white-space: nowrap; flex-shrink: 0;
}
.featured-logos { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; justify-content: center; }
.featured-logo {
  opacity: 0.45; filter: grayscale(1) brightness(2);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.featured-logo:hover { opacity: 0.85; filter: grayscale(0) brightness(1.1); }
.featured-logo img { height: 28px; width: auto; display: block; object-fit: contain; }

/* ================================================================
   BOOK CTA SECTION
   ================================================================ */
.book-cta {
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.book-cta__grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.book-cta__inner {
  display: flex; flex-direction: column; align-items: center;
  max-width: 600px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.book-cta .sec-heading { margin-bottom: 20px; }
.book-cta p {
  color: var(--muted); font-size: 18px; font-weight: 300;
  line-height: 1.65; max-width: 540px; margin-bottom: 40px;
}
.book-cta::before {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,127,245,0.09) 0%, transparent 65%);
  top: -100px; right: -200px; animation: orb-drift 10s ease-in-out infinite;
}
.book-cta::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.07) 0%, transparent 65%);
  bottom: 0; left: -100px; animation: orb-drift 12s ease-in-out infinite 3s reverse;
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq { background-color: var(--bg); border-top: 1px solid var(--border); }
.faq .wrap { max-width: 820px; }
.faq__list { width: 100%; margin-top: 60px; }
.faq__item {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  margin-bottom: 6px; border-radius: 10px; overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq__item:hover { border-color: rgba(59,127,245,0.3); }
.faq__question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px; cursor: pointer; width: 100%; text-align: left;
  font-family: 'Inter', sans-serif; font-weight: 700; color: var(--text); font-size: 15px;
  user-select: none; background: none; border: none;
}
.faq__question::after {
  content: '+'; color: var(--blue); font-size: 22px; font-weight: 300; line-height: 1;
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px;
}
.faq__question.open { color: var(--blue); }
.faq__question.open::after { transform: rotate(45deg); }
.faq__answer {
  display: none; padding: 0 28px 22px;
  color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.65;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  background-color: var(--bg-mid);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 120px 20px;
}
.cta-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: linear-gradient(135deg, rgba(59,127,245,0.08), rgba(0,212,255,0.04));
  border: 1px solid rgba(59,127,245,0.2);
  border-radius: 24px; padding: 80px 60px;
  width: 100%; max-width: 700px; position: relative; overflow: hidden;
}
.cta-box .sec-label { margin-bottom: 20px; }
.cta-box .sec-heading { margin-bottom: 20px; }
.cta-box p { color: var(--muted); font-size: 18px; font-weight: 300; line-height: 1.65; margin-bottom: 40px; }
.cta-box::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(135deg, rgba(59,127,245,0.4) 0%, rgba(0,212,255,0.3) 50%, rgba(59,127,245,0.4) 100%);
  background-size: 300% 300%; border-radius: 26px; z-index: -1;
  animation: border-pulse 4s ease-in-out infinite; opacity: 0.7; filter: blur(8px);
}
@keyframes border-pulse {
  0%,100%{ background-position: 0% 50%; opacity: 0.4; }
  50%    { background-position: 100% 50%; opacity: 0.85; }
}
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 60px; background-color: var(--bg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 20px; position: relative;
}
.footer-logo { height: 28px; width: auto; }
.footer-copy { color: #6b7280; font-size: 13px; line-height: 1.6; max-width: 500px; font-family: 'DM Sans', sans-serif; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: #6b7280; font-size: 13px; font-family: 'DM Sans', sans-serif;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--text) !important; }

/* ================================================================
   BACKGROUND DOT PATTERNS
   ================================================================ */
.trading, .roadmap, .faq, .site-footer {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%,   transparent 55%, var(--bg) 100%),
    radial-gradient(ellipse 90% 50% at 50% 100%, transparent 55%, var(--bg) 100%),
    radial-gradient(var(--dot-dark) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, var(--dot-sz) var(--dot-sz) !important;
}
.features, .about, .final-cta {
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 0%,   transparent 55%, var(--bg-mid) 100%),
    radial-gradient(ellipse 90% 50% at 50% 100%, transparent 55%, var(--bg-mid) 100%),
    radial-gradient(var(--dot-mid) 1px, transparent 1px) !important;
  background-size: 100% 100%, 100% 100%, var(--dot-sz2) var(--dot-sz2) !important;
}
.hero, .book-cta {
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(59,127,245,0.07) 0%, transparent 70%),
    radial-gradient(var(--dot-dark) 1px, transparent 1px) !important;
  background-size: 100% 100%, 40px 40px !important;
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal-up    { opacity: 0; transform: translateY(48px);   transition: opacity 0.85s cubic-bezier(0.16,1,0.3,1), transform 0.85s cubic-bezier(0.16,1,0.3,1); }
.reveal-left  { opacity: 0; transform: translateX(-56px);  transition: opacity 0.9s  cubic-bezier(0.16,1,0.3,1), transform 0.9s  cubic-bezier(0.16,1,0.3,1); }
.reveal-right { opacity: 0; transform: translateX(56px);   transition: opacity 0.9s  cubic-bezier(0.16,1,0.3,1), transform 0.9s  cubic-bezier(0.16,1,0.3,1); }
.reveal-scale { opacity: 0; transform: scale(0.9) translateY(24px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.revealed     { opacity: 1 !important; transform: none !important; }

/* ================================================================
   POPUP
   ================================================================ */
#popup-overlay {
  position: fixed; inset: 0; z-index: 999998;
  background: rgba(5,7,15,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
#popup-overlay.open { opacity: 1; pointer-events: all; }
#popup {
  position: relative; display: flex; flex-direction: row; align-items: stretch;
  width: 100%; max-width: 820px;
  background: var(--bg-mid);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7), 0 0 0 1px rgba(59,127,245,0.12);
  transform: translateY(32px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
}
#popup-overlay.open #popup { transform: translateY(0) scale(1); }
#popup-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
#popup-close:hover { background: rgba(255,255,255,0.1); color: var(--text); transform: rotate(90deg); }
#popup-book {
  flex: 0 0 260px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(59,127,245,0.2) 0%, transparent 70%),
    radial-gradient(rgba(59,127,245,0.12) 1px, transparent 1px),
    linear-gradient(160deg, #0a1530 0%, #0d1a3a 100%);
  background-size: 100%, 20px 20px, 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 32px;
  border-right: 1px solid var(--border);
  position: relative; overflow: hidden;
}
#popup-book::before {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(59,127,245,0.25) 0%, transparent 65%);
  animation: orb-drift 7s ease-in-out infinite; pointer-events: none;
}
#popup-form-area { flex: 1; padding: 52px 48px; display: flex; flex-direction: column; position: relative; }
.popup-label {
  color: var(--blue); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif; margin-bottom: 14px;
}
#popup-title {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em;
  color: var(--text); line-height: 1.15; margin-bottom: 12px;
}
.popup-title-grad {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.popup-sub {
  color: var(--muted); font-size: 15px; font-weight: 300;
  font-family: 'DM Sans', sans-serif; line-height: 1.6; margin-bottom: 32px;
}
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-field label { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.02em; }
.form-field input {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 13px 16px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px; outline: none; width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-field input::placeholder { color: #4a566b; }
.form-field input:focus { border-color: rgba(59,127,245,0.6); background: rgba(59,127,245,0.05); box-shadow: 0 0 0 3px rgba(59,127,245,0.12); }
.form-field.has-error input { border-color: rgba(239,68,68,0.6); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.field-error { color: #ef4444; font-size: 12px; font-family: 'DM Sans', sans-serif; display: none; }
.form-field.has-error .field-error { display: block; }
#popup-submit {
  width: 100%; padding: 15px; background: var(--blue);
  border: none; border-radius: 10px; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer;
  position: relative; overflow: hidden;
  margin-top: 4px; margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  box-shadow: 0 0 30px rgba(59,127,245,0.4);
}
#popup-submit:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(59,127,245,0.6); }
#popup-submit.loading .btn-text { opacity: 0; }
#popup-submit.loading .btn-loader { opacity: 1; }
#popup-submit::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg); animation: shimmer 3.5s ease-in-out infinite 1s; pointer-events: none;
}
.btn-loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.btn-loader::after {
  content: ''; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.popup-fine { text-align: center; font-family: 'DM Sans', sans-serif; font-size: 12px; color: #4a566b; }
#popup-success {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 16px;
  animation: anim-up 0.6s cubic-bezier(0.16,1,0.3,1);
}
#popup-success[hidden] { display: none; }
.success-icon { animation: success-pop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes success-pop { from{transform:scale(0);opacity:0;} to{transform:scale(1);opacity:1;} }
#popup-success h3 { font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
#popup-success p { color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.65; max-width: 320px; }

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-hero {
  min-height: 40vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 160px 20px 80px;
  position: relative; overflow: hidden;
  background-color: var(--bg);
}
.contact-hero::before {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,127,245,0.08) 0%, transparent 65%);
  top: -200px; left: 50%; transform: translateX(-50%);
}
.contact-section {
  background-color: var(--bg-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Inter', sans-serif; font-size: 24px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em; margin-bottom: 16px;
}
.contact-info p { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 40px; }
.contact-detail {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  color: var(--muted); font-size: 15px; font-family: 'DM Sans', sans-serif;
}
.contact-detail__icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(59,127,245,0.08); border: 1px solid rgba(59,127,245,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px;
}
.contact-detail a { color: var(--blue); transition: color 0.2s ease; }
.contact-detail a:hover { color: var(--cyan); }
.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 48px;
}
.contact-form .form-field { margin-bottom: 20px; }
.contact-form .form-field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 13px 16px; color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 15px; outline: none; width: 100%;
  resize: vertical; min-height: 140px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.contact-form .form-field textarea::placeholder { color: #4a566b; }
.contact-form .form-field textarea:focus { border-color: rgba(59,127,245,0.6); background: rgba(59,127,245,0.05); box-shadow: 0 0 0 3px rgba(59,127,245,0.12); }
#contact-submit {
  width: 100%; padding: 16px;
  background: var(--blue); border: none; border-radius: 10px;
  color: #fff; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  box-shadow: 0 0 30px rgba(59,127,245,0.3);
}
#contact-submit:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(59,127,245,0.5); }
.form-status {
  margin-top: 16px; padding: 14px 18px; border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; display: none;
}
.form-status.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; display: block; }
.form-status.error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; display: block; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .trading .wrap { flex-direction: column; gap: 48px; }
  .trading__text, .trading__image { width: 100%; }
  .about .wrap { flex-direction: column; gap: 48px; }
  .about__text, .about__photo { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-logo { margin: auto; }
  .stats__inner { flex-direction: column; gap: 8px; }
  .stat { width: 100%; flex: unset; padding: 28px 20px; }
  .stat:first-child { border-radius: 16px; border-right: 1px solid rgba(255,255,255,0.07); }
  .stat:last-child  { border-radius: 16px; border-left: 1px solid rgba(255,255,255,0.07); }
  .stat--featured   { margin: 0; border-radius: 16px; padding: 40px 20px; }
  .stats::after { width: 100%; height: 200px; }
  .stats { padding: 40px 16px; }
  .roadmap__steps { flex-direction: column; gap: 0; padding-left: 32px; }
  .roadmap__line { display: none; }
  .roadmap__step { flex-direction: row; text-align: left; align-items: flex-start; padding: 0 0 40px 0; gap: 20px; }
  .roadmap__step:last-child { padding-bottom: 0; }
  .featured-bar { flex-direction: column; gap: 24px; padding: 32px 20px; }
  .featured-logos { gap: 28px; }
  .featured-logo img { height: 22px; }
  .final-cta .cta-box { padding: 60px 24px; }
  .site-footer { flex-direction: column; align-items: flex-start; padding: 40px 20px; gap: 16px; }
  #popup { flex-direction: column; max-height: 90vh; overflow-y: auto; }
  #popup-book { flex: none; padding: 36px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  #popup-form-area { padding: 32px 24px; }
  .hero::before, .hero::after { display: none; }
  .cursor-dot, .cursor-ring { display: none !important; }
  :root { --dot-dark: rgba(59,127,245,0.1); --dot-mid: rgba(59,127,245,0.08); }
}
@media (max-width: 620px) {
  .contact-form { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .final-cta .cta-box { padding: 60px 24px; }
  .feature-card { width: 100%; }
}
@media (max-width: 900px) {
  .feature-card { width: calc(50% - 2px); }
}
@media (max-width: 560px) {
  .feature-card { width: 100%; }
}
