/* ==========================================================================
   HFT EDGE — Premium High-Frequency Trading Website v2
   Theme: Gold / Silver / Black (derived from logo)
   Author: Kimi Code CLI
   ========================================================================== */

/* ------------------------- CSS Variables ------------------------- */
:root {
  --gold-primary: #D4AF37;
  --gold-bright: #FFD700;
  --gold-deep: #B8860B;
  --gold-glow: rgba(212, 175, 55, 0.5);
  --gold-soft: rgba(212, 175, 55, 0.12);

  --silver-primary: #C0C0C0;
  --silver-light: #E8E8E8;
  --silver-dark: #707070;
  --silver-glow: rgba(192, 192, 192, 0.35);

  --black-deep: #050506;
  --black-soft: #07070A;
  --black-card: #0C0C10;
  --black-elevated: #141419;
  --black-border: rgba(212, 175, 55, 0.14);

  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-strong: rgba(255, 255, 255, 0.12);
  --surface-glass: rgba(12, 12, 16, 0.72);

  --cyan-tech: #00D4FF;
  --cyan-soft: rgba(0, 212, 255, 0.1);
  --red-tech: #FF5470;
  --green-tech: #16E0A3;

  --text-primary: #F7F7F8;
  --text-secondary: #AEB2BA;
  --text-muted: #6B6F78;

  --font-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-gold: 0 0 30px var(--gold-glow), 0 0 60px rgba(212, 175, 55, 0.12);
  --shadow-card: 0 18px 50px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 28px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.25);

  --focus-ring: 0 0 0 2px var(--black-deep), 0 0 0 4px var(--gold-primary);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------- Reset & Base ------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--black-deep);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(212, 175, 55, 0.10) 0%, transparent 48%),
    radial-gradient(ellipse at 90% 90%, rgba(0, 212, 255, 0.06) 0%, transparent 42%),
    radial-gradient(ellipse at 10% 95%, rgba(212, 175, 55, 0.05) 0%, transparent 38%),
    var(--black-deep);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.65;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body, input, button {
  font-feature-settings: 'cv11', 'ss01', 'kern';
}

/* Tabular figures for all numeric / mono content */
.mono,
.stat-value,
.stat-number,
.price-amount,
.data-table .latency,
.data-table .bid,
.data-table .ask,
.ticker-item,
.pipeline-step .speed {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

::selection {
  background: rgba(212, 175, 55, 0.28);
  color: #fff;
}

/* Accessible focus — signals professionalism & a11y */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.accordion-header:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 6px;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.45;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ------------------------- Typography ------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(120deg, #FFF4D2 0%, var(--gold-bright) 28%, var(--gold-primary) 58%, var(--silver-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, var(--cyan-tech) 0%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glitch-text {
  position: relative;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black-deep);
}

.glitch-text::before {
  left: 2px;
  text-shadow: -2px 0 var(--red-tech);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch-text::after {
  left: -2px;
  text-shadow: -2px 0 var(--cyan-tech);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% { clip: rect(20px, 9999px, 15px, 0); }
  20% { clip: rect(50px, 9999px, 80px, 0); }
  40% { clip: rect(10px, 9999px, 60px, 0); }
  60% { clip: rect(90px, 9999px, 30px, 0); }
  80% { clip: rect(40px, 9999px, 70px, 0); }
  100% { clip: rect(70px, 9999px, 20px, 0); }
}

@keyframes glitch-anim-2 {
  0% { clip: rect(60px, 9999px, 10px, 0); }
  20% { clip: rect(30px, 9999px, 70px, 0); }
  40% { clip: rect(80px, 9999px, 40px, 0); }
  60% { clip: rect(15px, 9999px, 90px, 0); }
  80% { clip: rect(70px, 9999px, 50px, 0); }
  100% { clip: rect(40px, 9999px, 80px, 0); }
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.10), rgba(212, 175, 55, 0.03));
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.section-label svg {
  color: var(--gold-bright);
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-gold { color: var(--gold-primary); }
.text-silver { color: var(--silver-primary); }
.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--cyan-tech); }

.mono { font-family: var(--font-mono); }

/* ------------------------- Layout ------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 6rem 0;
}

.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.strategies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.strategies-grid .card {
  position: relative;
  flex: 1 1 300px;
  max-width: 360px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

@media (min-width: 1024px) {
  .strategies-grid .card {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: none;
  }
}

.strategies-grid .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.strategies-grid .card:hover::before {
  left: 140%;
}

.strategies-grid .card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(212, 175, 55, 0.18);
}

.strategies-grid .card:hover .card-title {
  color: var(--gold-bright);
  transition: color 0.3s ease;
}

.strategies-grid .card:hover .strategy-icon {
  transform: scale(1.15) rotate(-8deg);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--black-deep);
  box-shadow: 0 0 28px var(--gold-glow);
}

.strategies-grid .strategy-icon svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.strategies-grid .card:hover .strategy-icon svg {
  transform: scale(1.1);
}

.flex {
  display: flex;
}

.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.max-w-3xl { max-width: 768px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* ------------------------- Ticker with navbar offset ------------------------- */
body.has-ticker {
  padding-top: 38px;
}

body.has-ticker .navbar {
  top: 38px;
}

/* ------------------------- Scroll progress ------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 1002;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright) 50%, var(--cyan-tech));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.1s linear;
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  padding: 0.6rem 0;
}

/* ------------------------- Inlined SVG defaults ------------------------- */
/* Symbol presentation attrs were lost during inlining; re-apply defaults */
.card-icon svg,
.section-label svg,
.btn svg,
.footer-links a svg,
.pipeline-arrow svg,
.accordion-header svg,
.read-more svg,
.cta-icon svg,
.team-location svg,
.pill svg,
.showcase-thumb svg,
.video-thumb svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stars svg {
  fill: currentColor;
  stroke: none;
}

.video-thumb svg {
  fill: currentColor;
}

.video-thumb svg circle {
  fill: none;
  stroke: currentColor;
}

.video-thumb svg polygon {
  fill: currentColor;
  stroke: none;
}

/* ------------------------- Navigation ------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
  border-bottom: 1px solid transparent;
  background: rgba(7, 7, 10, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.navbar.scrolled {
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--hairline);
  padding: 0.65rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.navbar .container {
  /* Full-width, edge-to-edge bar: logo at the far left, links at the far right */
  max-width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--gold-glow));
  transition: transform var(--transition-fast);
}

.logo:hover img {
  transform: scale(1.06);
}

.logo span {
  background: linear-gradient(135deg, #FFF1C6, var(--gold-primary) 55%, var(--silver-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0.82rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 2px;
  transition: width var(--transition-fast);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--gold-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 55%;
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Keep the navbar CTA button's text dark like the other primary buttons.
   Without this, .nav-links a forces a light color via higher specificity. */
.nav-cta .btn-primary,
.nav-cta .btn-primary:hover {
  color: #1a1405;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  z-index: 1001;
  color: var(--gold-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  color: var(--gold-bright);
  background: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.35);
  outline: none;
}

.mobile-menu-btn svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ------------------------- Buttons ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
              background var(--transition-fast), border-color var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: -0.01em;
  isolation: isolate;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #FFD700 0%, var(--gold-primary) 50%, var(--gold-deep) 100%);
  color: #1a1405;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 215, 0, 0.65);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::before { transform: translateX(120%); }

.btn-secondary {
  background: rgba(212, 175, 55, 0.05);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 26px var(--gold-soft);
}

.btn-silver {
  background: rgba(255, 255, 255, 0.03);
  color: var(--silver-light);
  border: 1px solid var(--hairline-strong);
}

.btn-silver:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--silver-primary);
  transform: translateY(-2px);
}

/* Subtle, static ambient glow — replaces the spinning conic ring */
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: radial-gradient(60% 140% at 50% 50%, rgba(212, 175, 55, 0.4), transparent 70%);
  z-index: -1;
  filter: blur(6px);
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.btn-glow:hover::after { opacity: 1; }

.btn-block { width: 100%; }

/* ------------------------- Cards ------------------------- */
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0) 60%),
    var(--black-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  opacity: 0.6;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-hover);
}

.card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  color: var(--gold-primary);
  border: 1px solid var(--hairline-strong);
  transition: all var(--transition-smooth);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: #1a1405;
  box-shadow: 0 0 22px var(--gold-glow);
  transform: translateY(-2px);
}

/* ------------------------- Modern Connections Page ------------------------- */
.page-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--black-border);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.page-header-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-compact {
  padding-top: 0;
  padding-bottom: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.5;
}

.stat-item:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.connection-ecosystem {
  position: relative;
}

.connection-category {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.connection-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.4;
}

.connection-category:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: var(--shadow-card);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--black-deep);
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  box-shadow: 0 0 24px var(--gold-glow);
}

.category-icon.crypto {
  background: linear-gradient(135deg, #F0B90B, #D4AF37);
}

.category-icon.fix {
  background: linear-gradient(135deg, #00E676, #00C853);
}

.category-icon.api {
  background: linear-gradient(135deg, #00D4FF, #0099CC);
}

.category-icon.protocol {
  background: linear-gradient(135deg, #FF4D4D, #C62828);
}

.category-icon svg {
  width: 26px;
  height: 26px;
}

.category-info {
  flex-grow: 1;
}

.category-info h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.category-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-count {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--black-border);
  color: var(--gold-primary);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.connection-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.connection-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem 0.7rem 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: default;
}

.connection-chip:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.08));
  border: 1px solid var(--black-border);
  color: var(--gold-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.chip-icon.chip-3 {
  font-size: 0.62rem;
  letter-spacing: 0;
}

.connection-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.connection-grid-2 .connection-category {
  margin-bottom: 0;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .connection-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .category-header {
    flex-wrap: wrap;
  }
  .category-count {
    margin-left: auto;
  }
  .connection-category {
    padding: 1.5rem;
  }
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  flex-grow: 1;
}

/* ------------------------- Hero Section ------------------------- */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

/* Wider container for the hero so the Live Terminal image reads larger */
.hero .container { max-width: 1500px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}

.hero-title span {
  display: block;
}

@media (min-width: 1024px) {
  .hero-title span {
    white-space: nowrap;
  }
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hairline);
  max-width: 680px;
  margin: 0 auto;
}

/* Hero stats read as a clean inline row — reset the card-style .stat-item
   cascade (border/bg/gold accent/hover) so the three columns align evenly. */
.hero-stats .stat-item {
  position: relative;
  text-align: center;
  padding: 0 1.25rem;
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  transition: none;
}
.hero-stats .stat-item::before { content: none; }
.hero-stats .stat-item:hover { transform: none; box-shadow: none; }
.hero-stats .stat-item:not(:last-child) { border-right: 1px solid var(--hairline); }

.stat-value {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #FFF1C6, var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.14) 0%, transparent 65%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.dashboard-frame {
  position: relative;
  width: 100%;
  padding: 1.5px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, rgba(212,175,55,0.15) 35%, rgba(0,212,255,0.25) 70%, var(--gold-bright) 100%);
  background-size: 200% 200%;
  animation: gradientBorder 9s ease infinite, floatDashboard 8s ease-in-out infinite;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 70px rgba(212, 175, 55, 0.14);
}

.dashboard-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.15) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.hero-visual img {
  width: 100%;
  max-width: 100%;
  border-radius: 20px;
  display: block;
}

.dashboard-caption {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-primary);
}

.dashboard-caption::before,
.dashboard-caption::after {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}

.dashboard-caption::after {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

@keyframes floatDashboard {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.006); }
}

@keyframes gradientBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ------------------------- Scroll Reveal ------------------------- */
.reveal {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(50px);
}

.js-enabled .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-enabled .reveal-scale {
  opacity: 0;
  transform: scale(0.92);
}

.js-enabled .reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ------------------------- Page Header ------------------------- */
.page-header {
  padding-top: 150px;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ------------------------- Section Variants ------------------------- */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 1px;
  background: radial-gradient(circle, rgba(212,175,55,0.3) 0%, transparent 70%);
  pointer-events: none;
}

/* ------------------------- Feature / Icon Grid ------------------------- */
.feature-grid .card {
  text-align: center;
  align-items: center;
}

.feature-grid .card-icon {
  margin: 0 auto 1.5rem;
}

.feature-grid .card-title {
  text-align: center;
}

.feature-grid .card-text {
  text-align: center;
}

/* ------------------------- Why HFT EDGE pitch ------------------------- */
.why-pitch {
  margin-top: 3.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.why-pitch-line {
  position: relative;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  padding: 1.6rem 0;
}
.why-pitch-line::before,
.why-pitch-line::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 1px;
  background: radial-gradient(circle, var(--gold-primary) 0%, transparent 75%);
}
.why-pitch-line::before { top: 0; }
.why-pitch-line::after { bottom: 0; }

/* ------------------------- API Documentation (LDX Feed) ------------------------- */
.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 2.25rem;
  max-width: 580px;
}
.doc-tab {
  background: var(--black-card);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-fast);
}
.doc-tab:hover { color: var(--text-primary); border-color: var(--black-border); }
.doc-tab.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: #050506;
  border-color: transparent;
  box-shadow: 0 4px 20px var(--gold-glow);
}
.doc-panel { display: none; text-align: left; }
.doc-panel.is-open { display: block; animation: docFade 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes docFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.doc-body {
  background: var(--surface-glass);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}
.doc-head { margin-bottom: 1.5rem; }
.doc-head h3 { font-size: 1.35rem; margin-bottom: 0.4rem; color: var(--text-primary); }
.doc-head p { color: var(--text-secondary); font-size: 0.96rem; }

.doc-spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.doc-spec-row {
  background: var(--black-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}
.doc-spec-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.doc-spec-value {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  word-break: break-all;
}

.doc-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.doc-msgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.doc-msg {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--black-elevated);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  white-space: nowrap;
}
.doc-msg span { color: var(--cyan-tech); margin-right: 0.35rem; }

.doc-code {
  background: #050507;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.doc-code-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: var(--black-elevated);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.doc-code-head .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot-r { background: #FF5470; }
.dot-y { background: #FFB454; }
.dot-g { background: #16E0A3; }
.doc-code-file { margin-left: 0.5rem; }
.doc-code pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
}
.doc-code pre code { font-family: inherit; white-space: pre; color: var(--silver-light); }

/* ------------------------- Docs Page ------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.docs-side { position: sticky; top: 90px; }
.docs-side-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted); margin-bottom: 0.6rem; padding-left: 0.5rem;
}
.docs-side a {
  display: block; color: var(--text-secondary);
  padding: 0.42rem 0.6rem; border-radius: 8px;
  font-size: 0.9rem; transition: var(--transition-fast);
}
.docs-side a:hover { color: var(--text-primary); background: var(--black-elevated); }
.docs-content { min-width: 0; }

.lang-tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  position: sticky; top: 72px; z-index: 5;
  padding: 0.75rem 0; margin-bottom: 1.25rem;
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.lang-tab {
  background: var(--black-card); border: 1px solid var(--hairline);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: var(--transition-fast);
}
.lang-tab:hover { color: var(--text-primary); border-color: var(--black-border); }
.lang-tab.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: #050506; border-color: transparent; box-shadow: 0 4px 20px var(--gold-glow);
}
.lang-block { display: none; }
.lang-block.is-open { display: block; }

.docs-section { margin-bottom: 3rem; scroll-margin-top: 96px; }
.docs-section > h2 { font-size: 1.45rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.docs-section > p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }
.docs-section > p code,
.docs-section ul code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--black-elevated); border: 1px solid var(--hairline);
  padding: 0.1em 0.4em; border-radius: 6px; color: var(--cyan-tech);
}
.docs-section ul { color: var(--text-secondary); margin: 0 0 1rem 1.25rem; line-height: 1.7; }
.docs-section li { margin-bottom: 0.4rem; }
.docs-section .doc-sub { margin-top: 1.25rem; }

.docs-table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.9rem; }
.docs-table th, .docs-table td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--hairline); }
.docs-table th { color: var(--text-muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.docs-table td { color: var(--text-secondary); }
.docs-table td:first-child { color: var(--gold-primary); font-weight: 600; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 1rem; }
  .docs-side { position: static; margin-bottom: 0.5rem; }
  .docs-side nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }
  .docs-side a { padding: 0.3rem 0.6rem; }
  .docs-side-title { display: none; }
}

/* ------------------------- Showcase / Screenshots ------------------------- */
/* Showcase — stacked, full-width images matching the Live Terminal treatment */
.showcase-stack {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.showcase-row { text-align: center; }
.showcase-row .dashboard-frame {
  animation: gradientBorder 9s ease infinite; /* keep gold border shimmer, drop the float */
}
.showcase-row .dashboard-frame img {
  width: 100%;
  display: block;
  border-radius: 18px;
}
.showcase-row .dashboard-caption {
  margin-top: 1.1rem;
  justify-content: center;
}

.showcase-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--black-border);
  background: var(--black-card);
  transition: all var(--transition-smooth);
}

.showcase-item:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 40px var(--gold-soft);
}

.showcase-item img,
.showcase-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  opacity: 0.85;
  transition: all var(--transition-fast);
}

.showcase-thumb {
  background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-thumb svg {
  width: 64px;
  height: 64px;
  color: var(--gold-primary);
  filter: drop-shadow(0 0 12px var(--gold-glow));
  transition: all var(--transition-smooth);
}

.showcase-item:hover .showcase-thumb svg {
  transform: scale(1.15);
  color: var(--gold-bright);
}

.showcase-item:hover img,
.showcase-item:hover .showcase-thumb {
  opacity: 1;
}

.showcase-item h4 {
  padding: 1.25rem;
  font-size: 1.05rem;
  text-align: center;
  color: var(--silver-light);
}

/* ------------------------- Video Cards ------------------------- */
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-card), 0 0 40px var(--gold-soft);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}
.video-card:hover .video-thumb img { transform: scale(1.07); }

.video-play {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 8, 12, 0.62);
  border: 2px solid rgba(255, 215, 0, 0.85);
  color: var(--gold-bright);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.45);
  transition: transform var(--transition-smooth), background var(--transition-fast), color var(--transition-fast);
}
.video-card:hover .video-play {
  transform: scale(1.12);
  background: var(--gold-primary);
  color: #0a0a0c;
}
.video-play svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  stroke: none;
}

.video-content {
  padding: 1.75rem;
}

.video-content h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.video-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ------------------------- Testimonials ------------------------- */
.ratings-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin: 0 auto 3rem;
  max-width: 820px;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), rgba(0, 212, 255, 0.03));
  border: 1px solid var(--black-border);
}

.rb-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.rb-item strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
}

.rb-stars {
  display: flex;
  gap: 2px;
  color: var(--gold-primary);
}

.rb-stars svg {
  width: 15px;
  height: 15px;
}

.rb-sep {
  width: 1px;
  height: 24px;
  background: var(--black-border);
}

.testimonial-card {
  background: linear-gradient(180deg, var(--black-card) 0%, var(--black-deep) 100%);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem 1.7rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-smooth);
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -1.6rem;
  right: 1.1rem;
  z-index: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8.5rem;
  line-height: 1;
  color: rgba(212, 175, 55, 0.11);
  pointer-events: none;
}

.testimonial-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-soft);
}

.testimonial-card:hover::after {
  opacity: 1;
}

.stars {
  color: var(--gold-primary);
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.stars svg {
  width: 16px;
  height: 16px;
}

.testimonial-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.testimonial-result {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin: 1.2rem 0 0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  position: relative;
  z-index: 1;
}

.testimonial-result svg {
  width: 13px;
  height: 13px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--black-border);
  position: relative;
  z-index: 1;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5), 0 0 0 4px rgba(12, 12, 16, 0.7);
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
}

.testimonial-verified svg {
  width: 12px;
  height: 12px;
}

/* Featured (full-width) testimonial */
.testimonial-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.6rem 2.8rem;
  border-color: rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(212, 175, 55, 0.10), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(0, 212, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--black-card), var(--black-deep));
}

.testimonial-featured::before {
  font-size: 13rem;
  top: -2.8rem;
}

.testimonial-featured .stars svg {
  width: 20px;
  height: 20px;
}

.testimonial-featured .testimonial-text {
  font-size: 1.32rem;
  line-height: 1.65;
  color: var(--text-primary);
  font-weight: 500;
}

.t-feat-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  min-width: 210px;
}

.t-feat-side .testimonial-avatar {
  width: 62px;
  height: 62px;
  font-size: 1.15rem;
}

.t-feat-side .testimonial-name {
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .testimonial-featured {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .testimonial-featured .testimonial-text {
    font-size: 1.12rem;
  }
  .t-feat-side {
    flex-direction: row;
    align-items: center;
  }
}

/* ==========================================================================
   Testimonials — Column-wise Slider
   ========================================================================== */
.testimonials-slider {
  position: relative;
  margin-top: 2.75rem;
}

.testimonials-viewport {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0.25rem;
}

.testimonials-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  cursor: grab;
  user-select: none;
}

.testimonials-track:active { cursor: grabbing; }
.testimonials-track.no-transition { transition: none; }

/* Each review is a fixed-width column inside the sliding track */
.testimonials-track .testimonial-card {
  flex: 0 0 calc((100% - 3rem) / 3); /* 3 columns with 2 gaps */
  min-width: 0;                       /* allow content to shrink */
}

/* Nav arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--black-elevated);
  border: 1px solid var(--black-border);
  color: var(--gold-bright);
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-smooth),
              opacity var(--transition-fast),
              color var(--transition-fast);
}

.slider-btn:hover {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 24px var(--gold-glow), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.slider-btn:active { transform: translateY(-50%) scale(0.94); }
.slider-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
.slider-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.slider-prev { left: -8px; }
.slider-next { right: -8px; }

/* Page dots */
.slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.9rem;
}

.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--hairline-strong);
  cursor: pointer;
  transition: width var(--transition-smooth), background var(--transition-smooth);
}

.slider-dot.active {
  width: 30px;
  background: linear-gradient(90deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 0 12px var(--gold-glow);
}

.slider-dot:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Tablet — 2 columns */
@media (max-width: 992px) {
  .testimonials-track .testimonial-card { flex: 0 0 calc((100% - 1.5rem) / 2); }
  .slider-prev { left: -6px; }
  .slider-next { right: -6px; }
}

/* Mobile — 1 column */
@media (max-width: 640px) {
  .testimonials-track .testimonial-card { flex: 0 0 100%; }
  .slider-btn { width: 42px; height: 42px; }
  .slider-prev { left: 2px; }
  .slider-next { right: 2px; }
  .slider-dots { display: none; } /* swipe is primary on mobile */
}

/* ------------------------- Pricing ------------------------- */
/* ------------------------- Pricing — Lifetime License ------------------------- */
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

/* sticky offer card */
.pricing-offer {
  position: sticky;
  top: 92px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(212, 175, 55, 0.13), transparent 55%),
    linear-gradient(180deg, var(--black-elevated) 0%, var(--black-card) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.06), 0 0 60px rgba(212,175,55,0.10);
  animation: offerGlow 4.5s ease-in-out infinite;
}
@keyframes offerGlow {
  0%, 100% { box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.06), 0 0 60px rgba(212,175,55,0.10); }
  50%      { box-shadow: 0 30px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(212,175,55,0.10), 0 0 84px rgba(212,175,55,0.20); }
}

.offer-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-tech), #c62828);
  color: #fff;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(255, 84, 112, 0.4);
  animation: pulseBadge 2s ease-in-out infinite;
  margin-bottom: 1.1rem;
}
@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 6px 24px rgba(255, 84, 112, 0.4); }
  50%      { box-shadow: 0 6px 32px rgba(255, 84, 112, 0.65); }
}

.offer-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 0.35rem; }
.offer-sub { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* price block */
.price-block { margin-bottom: 0.4rem; }
.price-old { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.3rem; }
.price-old .original {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-cut {
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-tech);
  background: rgba(22, 224, 163, 0.1);
  border: 1px solid rgba(22, 224, 163, 0.3);
  padding: 0.15rem 0.5rem; border-radius: 999px;
}
.price-now { display: flex; align-items: flex-start; justify-content: center; line-height: 1; }
.price-sym {
  font-family: var(--font-mono); font-weight: 800; font-size: 1.9rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-top: 0.55rem; margin-right: 0.1rem;
}
.price-amount {
  font-family: var(--font-mono); font-weight: 900;
  font-size: clamp(3rem, 7vw, 4.4rem);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.price-tag { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.5rem; }

.save-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin: 0.9rem 0 1.4rem;
  font-size: 0.85rem; color: var(--text-secondary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
.save-pill svg { color: var(--gold-primary); }
.save-pill strong { color: var(--gold-bright); font-family: var(--font-mono); }

/* live countdown */
.countdown { margin: 0 0 1.5rem; }
.countdown-label {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-muted); margin-bottom: 0.6rem;
}
.countdown-boxes { display: flex; align-items: stretch; justify-content: center; gap: 0.4rem; }
.cd-box {
  background: var(--black-deep);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.35rem;
  min-width: 50px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.cd-num {
  font-family: var(--font-mono); font-size: 1.45rem; font-weight: 800; color: var(--gold-bright);
  line-height: 1; font-variant-numeric: tabular-nums;
}
.cd-unit { font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.cd-sep { display: flex; align-items: center; color: var(--gold-deep); font-weight: 800; font-family: var(--font-mono); font-size: 1.1rem; }

.offer-cta { margin-top: 0.25rem; }
.offer-note { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.9rem; }
.offer-trust {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center;
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--hairline);
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}

/* feature list */
.features-wrap { padding-top: 0.25rem; }
.js-enabled .features-wrap.reveal { opacity: 1; transform: none; } /* wrapper stays visible; items animate themselves */
.features-head { margin-bottom: 1.25rem; }
.features-head h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.features-head p { color: var(--text-secondary); font-size: 0.95rem; }

.feat-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.feat-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.js-enabled .feat-item { opacity: 0; }
.features-wrap.active .feat-item {
  animation: featIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 42ms);
}
@keyframes featIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.feat-item:hover {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.07), var(--black-card));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.feat-item svg { width: 18px; height: 18px; color: var(--gold-primary); flex-shrink: 0; margin-top: 2px; }
.feat-item.is-featured {
  border-color: rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.09), var(--black-card));
}
.feat-item.is-featured svg { color: var(--gold-bright); }
.feat-val { color: var(--gold-bright); font-weight: 700; }

@media (max-width: 1024px) {
  .pricing-layout { grid-template-columns: 1fr; max-width: 640px; }
  .pricing-offer { position: static; }
}
@media (max-width: 640px) {
  .feat-list { grid-template-columns: 1fr; }
  .pricing-offer { padding: 2rem 1.25rem; }
  .cd-box { min-width: 44px; }
}

/* ------------------------- FAQ Accordion ------------------------- */
.accordion {
  width: 100%;
}

.accordion-item {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.accordion-item:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.5rem;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--gold-primary);
}

.accordion-header svg {
  width: 22px;
  height: 22px;
  color: var(--gold-primary);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.open .accordion-header svg {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.accordion-item.open .accordion-body {
  max-height: 400px;
  padding: 0 1.5rem 1.5rem;
}

.accordion-body p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ------------------------- Tables ------------------------- */
.data-table-wrapper {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 1.1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-primary);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table td { color: var(--text-secondary); }

.data-table .latency { color: var(--cyan-tech); font-family: var(--font-mono); }
.data-table .bid { color: var(--green-tech); font-family: var(--font-mono); }
.data-table .ask { color: var(--red-tech); font-family: var(--font-mono); }

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.04);
}

/* ------------------------- Team / Connections / Feeds ------------------------- */
.team-card {
  text-align: center;
  padding: 2rem 1rem;
  align-items: center;
}

.team-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--silver-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--black-deep);
  border: 3px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 30px var(--gold-soft);
  transition: all var(--transition-smooth);
}

.team-card:hover .team-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--gold-glow);
}

.team-name {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.team-role {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.team-location {
  color: var(--text-muted);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.team-location svg {
  width: 14px;
  height: 14px;
}

/* Team profile photos — circular, animated gold/cyan ring (About · Leadership Core) */
.team-photo {
  position: relative;
  width: 235px;
  height: 235px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
}
.team-photo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--gold-bright), var(--gold-deep) 28%,
    var(--cyan-tech) 50%, var(--gold-primary) 72%, var(--gold-bright));
  animation: teamRingSpin 6s linear infinite;
  z-index: 0;
}
.team-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--black-card);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.08);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
}
.team-card:hover .team-photo::before { animation-duration: 2s; }
@keyframes teamRingSpin { to { transform: rotate(360deg); } }

/* Staggered pop-in entrance for each photo when its card reveals */
.js-enabled .team-photo { opacity: 0; }
.team-card.active .team-photo {
  animation: teamPhotoIn 0.9s cubic-bezier(0.22, 1.25, 0.4, 1) both;
}
.team-card:nth-child(1) .team-photo { animation-delay: 0.10s; }
.team-card:nth-child(2) .team-photo { animation-delay: 0.22s; }
.team-card:nth-child(3) .team-photo { animation-delay: 0.34s; }
.team-card:nth-child(4) .team-photo { animation-delay: 0.46s; }
@keyframes teamPhotoIn {
  0%   { opacity: 0; transform: scale(0.55) translateY(18px); }
  60%  { opacity: 1; transform: scale(1.07) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 768px) {
  .team-photo { width: 200px; height: 200px; }
}
@media (max-width: 480px) {
  .team-photo { width: 165px; height: 165px; }
}

.platform-card {
  text-align: center;
  align-items: center;
}

.platform-card .card-icon svg {
  width: 34px;
  height: 34px;
}

/* ------------------------- Blog ------------------------- */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card .card-title {
  font-size: 1.2rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-meta .author {
  color: var(--gold-primary);
  font-weight: 700;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: auto;
  padding-top: 1.25rem;
  transition: all var(--transition-fast);
}

.read-more svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--gold-bright);
}

.read-more:hover svg {
  transform: translateX(4px);
}

/* ------------------------- Blog Cards (with thumbnails) ------------------------- */
.blog-card {
  overflow: hidden;
}

.blog-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  margin: -1.5rem -1.5rem 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(212, 175, 55, 0.20), transparent 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(0, 212, 255, 0.18), transparent 55%),
    linear-gradient(135deg, #0c0c10 0%, #15151d 55%, #0a0a0e 100%);
  border-bottom: 1px solid var(--black-border);
  isolation: isolate;
}

.blog-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
  filter: saturate(1.05) contrast(1.03);
}

/* brand color tint */
.blog-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.22), transparent 45%),
    radial-gradient(130% 90% at 88% -10%, rgba(0, 212, 255, 0.20), transparent 55%);
  pointer-events: none;
}

/* depth + legibility gradient (dark bottom) */
.blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.08) 0%, rgba(12, 12, 16, 0.42) 55%, rgba(8, 8, 11, 0.90) 100%);
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.07);
  filter: saturate(1.15) contrast(1.05);
}

.blog-cat {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

/* large faded category watermark icon */
.blog-watermark {
  position: absolute;
  right: 0.85rem;
  bottom: 0.7rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  opacity: 0.92;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}

.blog-watermark svg {
  width: 100%;
  height: 100%;
}

.blog-card:hover .blog-watermark {
  transform: translateY(-3px) scale(1.08);
  opacity: 1;
}

/* Author avatar (card meta + post meta) */
.author-avatar {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--black-elevated);
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 0 0 2px rgba(12, 12, 16, 0.7), 0 0 10px rgba(212, 175, 55, 0.35);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article hero banner */
.post-hero-banner {
  position: relative;
  margin-top: 2.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 21 / 8;
  border: 1px solid var(--black-border);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(212, 175, 55, 0.18), transparent 55%),
    radial-gradient(120% 100% at 100% 100%, rgba(0, 212, 255, 0.16), transparent 55%),
    linear-gradient(135deg, #0c0c10, #15151d);
}

.post-hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 16, 0.15) 0%, rgba(8, 8, 11, 0.55) 100%);
  pointer-events: none;
}

.blog-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card .card-title a:hover {
  color: var(--gold-primary);
}

/* ------------------------- Article / Single Post ------------------------- */
.post-hero {
  position: relative;
  padding: 7rem 0 3.5rem;
  border-bottom: 1px solid var(--black-border);
  overflow: hidden;
}

.post-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(50% 70% at 90% 10%, rgba(212, 175, 55, 0.16), transparent 60%);
  pointer-events: none;
}

.post-hero .container {
  position: relative;
  max-width: 860px;
}

.post-hero .blog-cat {
  position: static;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.post-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-meta .author {
  color: var(--gold-primary);
  font-weight: 700;
}

.post-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color var(--transition-fast);
}

.post-back:hover {
  color: var(--gold-primary);
}

.post-back svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.post-back:hover svg {
  transform: translateX(-4px);
}

/* Article body typography */
.article-body {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.075rem;
  line-height: 1.85;
  color: #ced2da;
}

.article-body > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--text-primary);
  font-weight: 500;
}

.article-body p {
  margin-bottom: 1.4rem;
}

.article-body a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.25;
  margin: 3rem 0 1.1rem;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.85rem;
  color: var(--text-primary);
  font-weight: 700;
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.6rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  list-style: none;
}

.article-body ul > li,
.article-body ol > li {
  position: relative;
  padding-left: 1.85rem;
  color: #c3c7d0;
}

.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.45);
}

.article-body ol {
  counter-reset: step;
}

.article-body ol > li {
  padding-left: 2.6rem;
}

.article-body ol > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  border-radius: 50%;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--cyan-tech);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.22);
  padding: 0.12em 0.45em;
  border-radius: 6px;
}

.article-body .article-flow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 2;
  color: var(--cyan-tech);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06), rgba(212, 175, 55, 0.04));
  border: 1px solid var(--black-border);
  border-left: 3px solid var(--cyan-tech);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 1.6rem;
  white-space: pre-wrap;
}

.article-body .article-callout {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), rgba(0, 212, 255, 0.04));
  border: 1px solid var(--black-border);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  margin: 2rem 0;
}

.article-body .article-callout h3 {
  margin-top: 0;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.article-body .article-callout p:last-child {
  margin-bottom: 0;
}

/* Article tables */
.article-body .table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 1.8rem;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

.article-body table thead th {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.16), rgba(0, 212, 255, 0.1));
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
  padding: 0.95rem 1.1rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.article-body table tbody td {
  padding: 0.85rem 1.1rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}

.article-body table tbody tr:hover td {
  background: rgba(212, 175, 55, 0.04);
  color: var(--text-primary);
}

.article-body .t-good { color: #4ade80; font-weight: 600; }
.article-body .t-bad { color: #f87171; }
.article-body .t-neut { color: var(--gold-primary); }

.article-signature {
  max-width: 860px;
  margin: 3rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-signature .sig-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-mono);
  font-weight: 800;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  box-shadow: 0 0 0 1px var(--gold-primary), 0 0 0 4px rgba(12, 12, 16, 0.8), 0 0 24px rgba(212, 175, 55, 0.35);
  flex-shrink: 0;
}

.article-signature .sig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-signature .sig-name {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

.article-signature .sig-role {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.post-nav {
  max-width: 860px;
  margin: 0 auto;
  padding-top: 2rem;
}

.post-nav .btn {
  width: 100%;
  justify-content: center;
}

/* ------------------------- CTA Section ------------------------- */
.cta-section {
  position: relative;
  text-align: center;
}

.cta-card {
  background: linear-gradient(180deg, var(--black-elevated) 0%, var(--black-card) 100%);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--cyan-tech), var(--gold-primary), transparent);
  animation: shimmerLine 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmerLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.cta-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold-primary);
  box-shadow: 0 0 30px var(--gold-soft);
}

.cta-icon svg {
  width: 36px;
  height: 36px;
}

.cta-card h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-card p {
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 1.75rem;
  line-height: 1.75;
}

/* ------------------------- Footer ------------------------- */
.footer {
  background: var(--black-soft);
  border-top: 1px solid var(--black-border);
  padding: 2.5rem 0 1.25rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0.4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  font-size: 1.25rem;
}

.footer-brand .logo img {
  width: 36px;
  height: 36px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-size: 0.88rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.25rem;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
}
.footer-social a:hover {
  color: var(--black-deep);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.footer-social svg { width: 16px; height: 16px; }

.footer-title {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a svg {
  width: 12px;
  height: 12px;
  color: var(--gold-primary);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
  transform: translateX(3px);
}

.footer-links a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ------------------------- Pipeline / Flow ------------------------- */
.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 3rem 0;
  position: relative;
}

.pipeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--cyan-tech), var(--gold-primary));
  background-size: 200% 100%;
  transform: translateY(-50%);
  opacity: 0.25;
  z-index: -1;
  animation: flowLine 3s linear infinite;
}

@keyframes flowLine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pipeline-step {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)),
    var(--black-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: center;
  min-width: 170px;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth),
              box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipeline-step::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold-primary), transparent, var(--cyan-tech));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pipeline-step:hover::before {
  opacity: 1;
}

.pipeline-step:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.12);
}

.pipeline-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold-primary);
  border: 1px solid var(--black-border);
  transition: all var(--transition-smooth);
}

.pipeline-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipeline-step:hover .pipeline-icon {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
  color: var(--black-deep);
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 0 24px var(--gold-glow);
}

.pipeline-step h4 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pipeline-step .speed {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--cyan-tech);
  font-family: var(--font-mono);
  animation: pulseSpeed 2s ease-in-out infinite;
}

.pipeline-arrow {
  color: var(--gold-primary);
  animation: pulseArrow 1.5s ease-in-out infinite;
  position: relative;
}

.pipeline-arrow:nth-child(2) { animation-delay: 0.2s; }
.pipeline-arrow:nth-child(4) { animation-delay: 0.7s; }
.pipeline-arrow:nth-child(6) { animation-delay: 1.2s; }

.pipeline-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.35), transparent);
  transform: translateY(-50%);
  z-index: -1;
  opacity: 0.6;
}

.pipeline-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-tech);
  box-shadow: 0 0 12px var(--cyan-tech), 0 0 24px rgba(0, 212, 255, 0.4);
  transform: translateY(-50%);
  animation: dataPacket 1.5s linear infinite;
}

.pipeline-arrow:nth-child(2)::after { animation-delay: 0.2s; }
.pipeline-arrow:nth-child(4)::after { animation-delay: 0.7s; }
.pipeline-arrow:nth-child(6)::after { animation-delay: 1.2s; }

.pipeline-arrow svg {
  width: 28px;
  height: 28px;
}

@keyframes pulseArrow {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}

@keyframes dataPacket {
  0% { left: 0; opacity: 0; transform: translateY(-50%) scale(0.6); }
  15% { opacity: 1; transform: translateY(-50%) scale(1); }
  85% { opacity: 1; transform: translateY(-50%) scale(1); }
  100% { left: calc(100% - 8px); opacity: 0; transform: translateY(-50%) scale(0.6); }
}

@keyframes pulseStep {
  0%, 100% {
    border-color: var(--black-border);
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  40% {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.18);
  }
  60% {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.18);
  }
}

@keyframes pulseSpeed {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; text-shadow: 0 0 14px rgba(0, 212, 255, 0.45); }
}

/* ------------------------- Badges & Pills ------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.pill:hover {
  background: rgba(212, 175, 55, 0.18);
  box-shadow: 0 0 20px var(--gold-soft);
}

/* ------------------------- Ticker Tape ------------------------- */

.ticker {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-right: 1px solid var(--hairline);
}

.ticker-item .pair {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ticker-item .up { color: var(--green-tech); }
.ticker-item .down { color: var(--red-tech); }

.ticker-item .up::before { content: '▲ '; font-size: 0.6rem; }
.ticker-item .down::before { content: '▼ '; font-size: 0.6rem; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------------------------- Decorative ------------------------- */
.corner-accent {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid var(--gold-primary);
  opacity: 0.2;
}

.corner-accent.tl {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.corner-accent.br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

/* ------------------------- Animations ------------------------- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
  50% { box-shadow: 0 0 45px var(--gold-glow), 0 0 70px rgba(212,175,55,0.12); }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes dataStream {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

.data-stream {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 50%, transparent 100%);
  background-size: 100% 100px;
  animation: dataStream 2s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 3rem;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pipeline::before {
    display: none;
  }
}

@media (max-width: 1100px) {
  /* Collapse the full nav into the slide-in drawer below 1100px so it never
     overflows or spreads to the centre on tablets / smaller laptops. */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 85%);
    height: 100vh;
    background: rgba(3, 3, 3, 0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.5rem;
    border-left: 1px solid var(--black-border);
    transition: right var(--transition-smooth);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .dashboard-frame {
    border-radius: 16px;
    padding: 2px;
  }

  .dashboard-frame::before {
    border-radius: 16px;
    padding: 2px;
  }

  .hero-visual img {
    border-radius: 14px;
  }

  .dashboard-caption {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .footer {
    padding-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.85rem;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 320px;
  }
  .hero-stats .stat-item { padding: 1.25rem 0; }
  .hero-stats .stat-item:first-child { padding-top: 0; }
  .hero-stats .stat-item:last-child { padding-bottom: 0; }
  .hero-stats .stat-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }

  .card {
    padding: 1.75rem;
  }

  .pricing-offer {
    padding: 1.75rem 1.1rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   v3 — Professional refinements & new components
   ========================================================================== */

/* Live status badge */
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(22, 224, 163, 0.08);
  border: 1px solid rgba(22, 224, 163, 0.25);
  color: var(--green-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-tech);
  box-shadow: 0 0 0 0 rgba(22, 224, 163, 0.6);
  animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 224, 163, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(22, 224, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 224, 163, 0); }
}

/* Trust strip — credible logos / standards row */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.trust-strip .trust-label {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  opacity: 0.75;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.trust-item:hover { opacity: 1; color: var(--text-primary); }

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
}

/* Feature checklist (used in pricing/why-us) */
.check-list { display: flex; flex-direction: column; gap: 0.85rem; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.check-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold-primary);
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}

/* KPI strip for page headers */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.kpi {
  text-align: center;
  padding: 1.1rem 0.5rem;
  border-left: 1px solid var(--hairline);
}

.kpi:first-child { border-left: none; }

.kpi .num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #FFF1C6, var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.kpi .lbl {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-left: none; border-top: 1px solid var(--hairline); padding-top: 1rem; }
  .kpi:nth-child(-n+2) { border-top: none; padding-top: 0.5rem; }
}

/* Footer legal row */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-legal .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-legal .legal-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-legal .legal-links a:hover { color: var(--gold-primary); }

/* Refined page header */
.page-header {
  padding-top: 150px;
  padding-bottom: 3.5rem;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.035em;
}

.page-header p {
  color: var(--text-secondary);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.65;
}

/* CTA polish */
.cta-card {
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(212, 175, 55, 0.10), transparent 60%),
    linear-gradient(180deg, var(--black-elevated) 0%, var(--black-card) 100%);
  border: 1px solid var(--hairline-strong);
}

.cta-card h2 { letter-spacing: -0.03em; }

/* ==========================================================================
   FAQ page — live search, category layout, group styling
   ========================================================================== */
.faq-section { padding-top: 1rem; }

/* Search bar */
.faq-searchbar {
  position: relative;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.faq-searchbar__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.faq-searchbar__input {
  width: 100%;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1rem 1.4rem 1rem 3rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-searchbar__input::placeholder { color: var(--text-muted); }
.faq-searchbar__input:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.faq-searchbar__input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* 2-col layout: sticky category nav + content */
.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

/* category sidebar */
.faq-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.faq-nav-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0.5rem;
}
.faq-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.faq-nav-item svg { color: var(--text-muted); flex-shrink: 0; transition: color var(--transition-fast); }
.faq-nav-item:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.faq-nav-item:hover svg { color: var(--gold-primary); }
.faq-nav-item[aria-pressed="true"] {
  color: var(--gold-bright);
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.3);
}
.faq-nav-item[aria-pressed="true"] svg { color: var(--gold-bright); }

/* content column */
.faq-content { min-width: 0; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}
.faq-group-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-primary);
}
.faq-group-head h2 { font-size: 1.25rem; letter-spacing: -0.02em; }
.faq-group-sub { display: block; font-size: 0.82rem; color: var(--text-muted); }

/* accordion refinements on this page */
.faq-content .accordion-item { margin-bottom: 0.75rem; }
.faq-content .accordion-item.open { border-color: rgba(212, 175, 55, 0.4); }
.faq-content .accordion-item.open .accordion-body { max-height: 600px; }
.faq-content .accordion-body strong { color: var(--text-primary); }
.faq-content .accordion-body a { color: var(--gold-primary); text-decoration: underline; text-underline-offset: 2px; }
.faq-content .accordion-body a:hover { color: var(--gold-bright); }

/* no-results state */
.faq-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.faq-empty svg { color: var(--text-muted); margin-bottom: 0.3rem; }
.faq-empty h3 { font-size: 1.2rem; color: var(--text-primary); }
.faq-empty p { max-width: 360px; }
.faq-empty .btn { margin-top: 0.6rem; }

/* responsive */
@media (max-width: 880px) {
  .faq-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .faq-nav {
    position: relative;
    top: 0;
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .faq-nav-title { display: none; }
  .faq-nav-item { white-space: nowrap; flex-shrink: 0; }
}
@media (max-width: 560px) {
  .faq-group-head h2 { font-size: 1.1rem; }
}

/* ==========================================================================
   Telegram CTA — clean, static premium treatment (enhances every .cta-card)
   ========================================================================== */
.cta-card {
  position: relative;
  padding: 4.5rem 2.5rem;
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(212, 175, 55, 0.16), transparent 60%),
    radial-gradient(60% 100% at 85% 120%, rgba(0, 212, 255, 0.10), transparent 65%),
    linear-gradient(180deg, var(--black-elevated) 0%, var(--black-card) 100%);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(212, 175, 55, 0.10);
}
.cta-card::before { animation: none; } /* keep the top accent line, drop the motion */
.cta-icon {
  background: radial-gradient(circle at 35% 30%, rgba(255, 230, 130, 0.28), var(--gold-soft));
  border: 1px solid rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@media (max-width: 640px) {
  .cta-card { padding: 3rem 1.5rem; }
}

/* ==========================================================================
   Legal / policy pages — privacy policy & terms
   ========================================================================== */
.legal-container {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-meta {
  margin: 0 auto 2rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--black-elevated) 0%, var(--black-card) 100%);
  grid-column: 1 / -1;
}
.legal-meta p { margin: 0.2rem 0; font-size: 0.9rem; color: var(--text-secondary); }
.legal-meta strong { color: var(--text-primary); }
.legal-meta a { color: var(--gold-primary); text-decoration: none; }
.legal-meta a:hover { color: var(--gold-bright); }

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 100px;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--black-elevated) 0%, var(--black-card) 100%);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}
.legal-toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-primary);
  margin: 0 0 0.9rem;
}
.legal-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc li a {
  display: block;
  padding: 0.45rem 0.4rem 0.45rem 1.9rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.legal-toc li a::before {
  content: counter(toc);
  position: absolute;
  left: 0.35rem;
  top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.legal-toc li a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.03); }
.legal-toc li a:hover::before { color: var(--gold-primary); }

/* Main prose column */
.legal-body { min-width: 0; }
.legal-body section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
  scroll-margin-top: 100px;
}
.legal-body section:last-of-type { border-bottom: none; }
.legal-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text-primary);
}
.legal-body h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.6rem;
  color: var(--silver-light);
  font-weight: 600;
}
.legal-body p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  list-style: none;
}
.legal-body ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}
.legal-body strong { color: var(--text-primary); font-weight: 600; }
.legal-body a { color: var(--gold-primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color var(--transition-fast); }
.legal-body a:hover { color: var(--gold-bright); }

.legal-callout {
  padding: 1.15rem 1.3rem;
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--silver-light) !important;
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-callout strong { color: #FFF4D2; }

.legal-footer-note {
  margin-top: 2.5rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--text-muted) !important;
}

/* Responsive — stack the TOC above the content */
@media (max-width: 980px) {
  .legal-container { grid-template-columns: 1fr; gap: 2rem; }
  .legal-toc { position: static; max-height: none; order: 3; }
}
@media (max-width: 640px) {
  .legal-body section { margin-bottom: 2rem; padding-bottom: 2rem; }
  .legal-callout { font-size: 0.92rem; }
}
