/* BAQ Trading — Design System CSS */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&family=JetBrains+Mono:wght@400;500&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #010080;
  --color-secondary: #F05A2A;
  --color-dark: #0a0a0b;
  --color-light: #f8f9fa;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background-color: #f8f9fa;
  color: #0a0a0b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bricolage Grotesque', 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  font-optical-sizing: auto;
}
h1 { letter-spacing: -0.045em; }

.font-grotesk { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif !important; }
.font-mono    { font-family: 'JetBrains Mono', 'Menlo', monospace !important; }

.outlined-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-primary);
}

.futuristic-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 100%);
  border: 1px solid rgba(1, 0, 128, 0.08);
  backdrop-filter: blur(2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 12px 40px -16px rgba(1, 0, 128, 0.18),
    0 2px 8px -4px rgba(1, 0, 128, 0.05);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.futuristic-card:hover {
  border-color: rgba(240, 90, 42, 0.35);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 18px 50px -16px rgba(240, 90, 42, 0.22),
    0 0 0 1px rgba(240, 90, 42, 0.1);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin-border { to { --angle: 360deg; } }

.gradient-border { position: relative; isolation: isolate; }
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    rgba(240,90,42,0.6) 90deg,
    transparent 180deg,
    rgba(1,0,128,0.6) 270deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  animation: spin-border 6s linear infinite;
}
.gradient-border:hover::before { opacity: 1; }

.text-glow {
  text-shadow:
    0 0 18px rgba(240, 90, 42, 0.45),
    0 0 60px rgba(240, 90, 42, 0.2);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(1, 0, 128, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 0, 128, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: -1px -1px;
}

.dot-pattern {
  background-image: radial-gradient(rgba(1,0,128,0.12) 1px, transparent 1px);
  background-size: 16px 16px;
}

.neon-dot {
  box-shadow:
    0 0 0 2px rgba(240, 90, 42, 0.15),
    0 0 12px 0 rgba(240, 90, 42, 0.5);
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.shimmer-text {
  background: linear-gradient(90deg, #0a0a0b 0%, #F05A2A 50%, #0a0a0b 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 30s linear infinite; }

@keyframes orbit-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-orbit-slow { animation: orbit-slow 30s linear infinite; }
.animate-orbit-rev  { animation: orbit-slow 45s linear infinite reverse; }

@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.animate-ping { animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }

.tilt-hover { transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.tilt-hover:hover { transform: perspective(800px) rotateX(2deg) rotateY(-2deg) translateY(-4px); }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(1,0,128,0.18), rgba(240,90,42,0.18), transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-x {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-x.visible { opacity: 1; transform: translateX(0); }

.d1 { transition-delay: 0.0s !important; }
.d2 { transition-delay: 0.08s !important; }
.d3 { transition-delay: 0.16s !important; }
.d4 { transition-delay: 0.24s !important; }
.d5 { transition-delay: 0.32s !important; }
.d6 { transition-delay: 0.40s !important; }

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
#navbar.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.22s ease;
}
#mobile-overlay.open { opacity: 1; }

#mobile-sidebar {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: min(340px, 90vw);
  background: white;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 60px rgba(0,0,0,0.18);
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}
#mobile-sidebar.open { transform: translateX(0); }

.btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
}
.btn span.label { padding: 0.625rem 1.25rem; white-space: nowrap; }
.btn span.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  flex-shrink: 0;
  align-self: stretch;
}

.btn-dark { background-color: #0a0a14; color: white; }
.btn-dark .arrow { background-color: #F05A2A; border-left: 1px solid rgba(255,255,255,0.1); }
.btn-dark:hover { background-color: #010080; }

.btn-orange { background-color: #F05A2A; color: white; border-color: rgba(240,90,42,0.3); }
.btn-orange .arrow { border-left: 1px solid rgba(255,255,255,0.2); }
.btn-orange:hover { background-color: rgba(240,90,42,0.85); }

.btn-outline { background-color: transparent; color: #0a0a14; border-color: rgba(0,0,0,0.15); }
.btn-outline .arrow { background-color: #0a0a14; color: white; border-left: 1px solid transparent; }
.btn-outline:hover { background-color: #0a0a14; color: white; border-color: transparent; }
.btn-outline:hover .arrow { background-color: #F05A2A; }

.btn-ghost { background-color: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.btn-ghost .arrow { border-left: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.btn-white { background-color: white; color: #F05A2A; border-color: rgba(255,255,255,0.3); }
.btn-white .arrow { color: #F05A2A; border-left: 1px solid rgba(240,90,42,0.15); }
.btn-white:hover { background-color: rgba(255,255,255,0.9); }


.img-zoom { transition: transform 1.2s ease; }
.img-zoom-wrap:hover .img-zoom { transform: scale(1.08); }

/* Inner page hero */
.inner-hero {
  background: linear-gradient(135deg, #02014a 0%, #010080 50%, #03036a 100%);
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}
.inner-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Prose content styling */
.baq-prose { color: rgba(10,10,11,0.7); line-height: 1.75; }
.baq-prose h1, .baq-prose h2, .baq-prose h3, .baq-prose h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #0a0a14;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.baq-prose p { margin-bottom: 1rem; }
.baq-prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.baq-prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.baq-prose a { color: #010080; text-decoration: underline; }
.baq-prose img { border-radius: 1rem; max-width: 100%; height: auto; margin: 1rem 0; }
.baq-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.baq-prose th, .baq-prose td { border: 1px solid rgba(1,0,128,0.12); padding: 0.5rem 0.75rem; text-align: left; }
.baq-prose th { background: rgba(1,0,128,0.05); font-weight: 600; }
