/* =========================================================================
   home.css
   GoldBridge — index.html only.
   Hero (with ambient blobs + MT5 mockup), trust bar, features, how-it-works,
   comparison, performance dashboard, testimonials, correlation teaser,
   brokers band, pricing, FAQ.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: clamp(72px, 10vw, 128px);
}

/* Ambient blobs — slow drift, restrained opacity (no AI-purple feel).
   Parallax: inline JS sets --hero-parallax-y (in px) so the whole blob
   layer drifts at a fraction of the scroll speed. */
.hero__blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -3;
  transform: translate3d(0, var(--hero-parallax-y, 0px), 0);
  transition: transform 80ms linear;
  will-change: transform;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.hero__blob--1 {
  width: 700px;
  height: 700px;
  top: -18%;
  left: -12%;
  background: var(--gold);
  opacity: 0.10;
  animation: blobDrift1 28s ease-in-out infinite;
}
.hero__blob--2 {
  width: 600px;
  height: 600px;
  top: 12%;
  right: -10%;
  background: var(--copper);
  opacity: 0.08;
  animation: blobDrift2 34s ease-in-out infinite;
}
.hero__blob--3 {
  width: 500px;
  height: 500px;
  bottom: -8%;
  left: 22%;
  background: var(--amber);
  opacity: 0.05;
  animation: blobDrift3 24s ease-in-out infinite;
}
.hero__blob--4 {
  width: 360px;
  height: 360px;
  top: 38%;
  left: 8%;
  background: var(--gold-light);
  opacity: 0.05;
  animation: blobDrift4 30s ease-in-out infinite;
}

@keyframes blobDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 30px) scale(1.04); }
  66%      { transform: translate(-20px, 50px) scale(0.97); }
}
@keyframes blobDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(-50px, 20px) scale(1.06); }
  70%      { transform: translate(30px, -30px) scale(0.95); }
}
@keyframes blobDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(25px, -35px) scale(1.05); }
  60%      { transform: translate(-40px, 15px) scale(0.96); }
}
@keyframes blobDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(35px, 40px) scale(1.08); }
}

/* Vignette darkens the edges so the mockup reads cleanly */
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(7, 7, 12, 0.85) 100%);
  pointer-events: none;
  z-index: -2;
}


.hero__inner {
  position: relative;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.hero__eyebrow { color: var(--gold); }

.hero__headline {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
}

/* Line 1 — italic. SIGNATURE gradient gold-light → gold → copper.
   Slow background-position sweep (12s) acts like a metallic shimmer
   passing across the headline. background-size 220% widens the gradient
   so the sweep is visible without color-banding. */
.hero__headline-line-1 {
  display: block;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(48px, 7vw, 92px);
  background: linear-gradient(
    120deg,
    var(--gold-light) 0%,
    var(--gold) 25%,
    var(--copper) 50%,
    var(--gold) 75%,
    var(--gold-light) 100%
  );
  background-size: 300% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: headlineSweep 6s ease-in-out infinite;
}

@keyframes headlineSweep {
  0%, 100% { background-position:   0% 50%; }
  50%      { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__headline-line-1 {
    animation: none;
    background-size: 100% 100%;
  }
}

.hero__headline-line-2 {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(56px, 8vw, 108px);
  letter-spacing: -0.015em;
  color: var(--text);
}

.hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 480px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-3);
}

.hero__caption {
  margin-top: var(--space-4);
  max-width: 720px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .hero__blob { animation: none; }
}

/* -------------------------------------------------------------------------
   MT5 mockup (hero showcase)
   ------------------------------------------------------------------------- */
.mt5 {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  background: linear-gradient(180deg, #14141F 0%, #0B0B14 100%);
  border: 1px solid rgba(224, 183, 62, 0.18);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(224, 183, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  text-align: left;
  /* --mt5-tilt updated by inline parallax JS, capped to 0–4deg */
  transform: perspective(1800px) rotateX(var(--mt5-tilt, 2deg));
  transform-origin: center top;
  transition: transform 120ms linear;
  will-change: transform;
}

@media (max-width: 600px) {
  .mt5 { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__blobs { transform: none; transition: none; }
  .mt5 { transition: none; }
}

/* Title bar */
.mt5__titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(20, 20, 30, 0.8);
  border-bottom: 1px solid var(--border-dim);
}

.mt5__dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mt5__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.mt5__dot--r { background: rgba(255, 95, 86, 0.45); }
.mt5__dot--y { background: rgba(255, 189, 46, 0.45); }
.mt5__dot--g { background: rgba(39, 201, 63, 0.45); }

.mt5__title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}
.mt5__title strong {
  color: var(--gold);
  font-weight: 400;
}

.mt5__tf {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
}

/* Toolbar with timeframes */
.mt5__toolbar {
  display: flex;
  gap: 14px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.mt5__tf-item { padding: 2px 4px; }
.mt5__tf-item--active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

/* -------------------------------------------------------------------------
   Correlation canvas — sits inside the MT5 shell, replaces the old chart.
   Canvas itself paints the background, grid and legend; this wrapper only
   reserves height and lets the canvas fill its box.
   ------------------------------------------------------------------------- */
.hero__canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background: #0D0D15;
}

.hero__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  .hero__canvas-wrap { height: 160px; }
}

/* -------------------------------------------------------------------------
   Live price ticker (below CTAs)
   ------------------------------------------------------------------------- */
.hero__ticker {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 12px 24px;
  background: rgba(13, 13, 21, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-self: center;
}

@media (max-width: 480px) {
  .hero__ticker {
    gap: 18px;
    padding: 10px 16px;
    font-size: 12px;
  }
}

.hero__ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6FE89B;
  box-shadow: 0 0 8px rgba(111, 232, 155, 0.6);
  flex-shrink: 0;
  animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.3; transform: scale(1.4); }
}

.hero__ticker-row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.hero__ticker-label {
  color: var(--muted);
  letter-spacing: 0.12em;
}

.hero__ticker-value {
  color: var(--gold);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  transition: color 300ms ease;
}

.hero__ticker-value--up   { color: #6FE89B; }
.hero__ticker-value--down { color: #FF8B7A; }

.hero__ticker-delta {
  font-size: 11px;
  letter-spacing: 0.04em;
  /* Color inherits from up/down state on parent or its own modifier */
}

.hero__ticker-delta--up   { color: #6FE89B; }
.hero__ticker-delta--down { color: #FF8B7A; }

@media (prefers-reduced-motion: reduce) {
  .hero__ticker-dot { animation: none; }
}

/* -------------------------------------------------------------------------
   Trust bar
   ------------------------------------------------------------------------- */
.trust {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-dim);
}

.trust__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: clamp(28px, 4vw, 40px);
}

.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--space-4) var(--space-3);
  text-align: center;
  border-bottom: 1px solid var(--border-dim);
}
.trust__item:last-child { border-bottom: 0; }

.trust__value {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.trust__label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 768px) {
  .trust__row {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust__item {
    border-bottom: 0;
    border-right: 1px solid var(--border-dim);
  }
  .trust__item:last-child { border-right: 0; }
}

/* -------------------------------------------------------------------------
   Features (#features) — 2-col, sticky left
   ------------------------------------------------------------------------- */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 5vw, 80px);
}

.features__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.features__intro .h1 { color: var(--text); }
.features__intro .body-lg { max-width: 420px; }

.features__list {
  display: flex;
  flex-direction: column;
}

.feature {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-4) var(--space-5);
  padding-block: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--border-dim);
}
.feature:last-child { border-bottom: 0; }

.feature__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 6px;
}

.feature__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.feature__body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 540px;
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
  .features__intro {
    position: sticky;
    top: calc(var(--nav-height) + 48px);
  }
}

/* -------------------------------------------------------------------------
   How it works (home variant — 3 columns)
   ------------------------------------------------------------------------- */
.how {
  background: var(--bg-surface);
}

.how__head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(48px, 7vw, 80px);
  max-width: 720px;
}

.how__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  color: var(--text);
}

.how__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 48px);
}

.step {
  position: relative;
  padding: clamp(28px, 3.5vw, 40px) clamp(20px, 2.5vw, 28px);
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(20px, 2.5vw, 28px);
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.step__bg-num {
  position: absolute;
  right: -10px;
  bottom: -50px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 200px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
}

.step__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

.step__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--text);
  margin-top: 12px;
  margin-bottom: var(--space-3);
}

.step__body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .how__grid { grid-template-columns: repeat(3, 1fr); }
}

/* -------------------------------------------------------------------------
   Correlation teaser
   ------------------------------------------------------------------------- */
.corr-teaser {
  position: relative;
  isolation: isolate;
  text-align: center;
}

.corr-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 60% at 50% 50%, rgba(224, 183, 62, 0.03), transparent 70%);
  z-index: -1;
}

.corr-teaser__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   Pricing (#pricing)
   ------------------------------------------------------------------------- */
.pricing__head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
  max-width: 880px;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 48px);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.plan:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.plan--featured {
  border-color: var(--border);
  box-shadow: var(--shadow-gold);
}
.plan--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold-light) 50%,
    var(--gold) 80%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 0% 0%;
  animation: planBorderSweep 3.5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(245, 210, 107, 0.4));
}

@keyframes planBorderSweep {
  0%   { background-position:    0% 0%; }
  100% { background-position: -300% 0%; }
}

@media (prefers-reduced-motion: reduce) {
  .plan--featured::before {
    animation: none;
    background-size: 100% 100%;
  }
}

.plan__badge {
  position: absolute;
  top: 18px;
  right: 18px;
}

.plan__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: var(--space-3);
  margin-bottom: 4px;
}

.plan__price-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  color: var(--text);
}

.plan__price-period {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.plan__sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-5);
}

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-dim);
}

.plan__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.plan__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--gold);
}

.plan__cta { margin-top: auto; }

@media (min-width: 768px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .plan:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   Comparison table — "Built differently"
   ------------------------------------------------------------------------- */
.compare__head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 72px);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* SIGNATURE gradient #2 — only on this section title. */
.compare__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

.compare__table {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.compare__row + .compare__row { border-top: 1px solid var(--border-dim); }

.compare__cell {
  padding: 22px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compare__cell + .compare__cell { border-left: 1px solid var(--border-dim); }

.compare__row--head .compare__cell {
  padding: 18px 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-surface);
}
.compare__row--head .compare__cell--gold {
  color: var(--gold);
  background: rgba(224, 183, 62, 0.05);
}

.compare__cell--label {
  color: var(--text);
  font-weight: 500;
}
.compare__cell--con { color: var(--muted); }
.compare__cell--pro {
  color: var(--text);
  background: rgba(224, 183, 62, 0.025);
}

.compare__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.compare__icon--x {
  background: rgba(255, 139, 122, 0.1);
  color: #FF8B7A;
}
.compare__icon--check {
  background: rgba(224, 183, 62, 0.15);
  color: var(--gold);
}

@media (max-width: 767px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__cell + .compare__cell {
    border-left: 0;
    border-top: 1px solid var(--border-dim);
  }
  .compare__row--head { display: none; }
  .compare__cell--label {
    background: var(--bg-surface);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 14px 24px;
  }
}

/* -------------------------------------------------------------------------
   Performance dashboard (replaces dashed-border placeholder on home)
   ------------------------------------------------------------------------- */
.perfd {
  background: var(--bg-surface);
  border-block: 1px solid var(--border-dim);
  position: relative;
  overflow: hidden;
}

.perfd::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 100, 50, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.perfd__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}

.perfd__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: var(--text);
}

.perfd__sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
}

.perfd__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  position: relative;
  max-width: 920px;
  margin-inline: auto;
}

.perfd__chart {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.perfd__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.perfd__chart-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.perfd__chart-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.perfd__chart-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6FE89B;
  margin-top: 4px;
}

.perfd__tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
}

.perfd__tab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.perfd__tab:hover { color: var(--gold-light); }
.perfd__tab--active {
  color: var(--gold);
  background: rgba(224, 183, 62, 0.1);
}

.perfd__svg {
  width: 100%;
  height: 220px;
  display: block;
}

/* "Coming soon" framing for the equity curve while backtest is unverified */
.perfd__chart--soon { position: relative; }
.perfd__chart--soon .perfd__svg { opacity: 0.55; }

/* Dashed curve "flows" — feels like data being plotted live.
   stroke-dashoffset animates continuously. */
.perfd__curve {
  animation: curveFlow 1.6s linear infinite;
}

@keyframes curveFlow {
  to { stroke-dashoffset: -20; }
}

/* Trailing dot at the end of the curve pulses */
.perfd__curve-dot {
  filter: drop-shadow(0 0 6px rgba(245, 210, 107, 0.7));
  animation: curveDot 2s ease-in-out infinite;
  transform-origin: 600px 40px;
}

@keyframes curveDot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .perfd__curve, .perfd__curve-dot { animation: none; }
}

.perfd__chart-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  pointer-events: none;
}

.perfd__chart-overlay-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--text);
  text-align: center;
}

.perfd__chart-overlay-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.perfd__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-content: start;
}

.perfd__stat {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.perfd__stat:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.perfd__stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

.perfd__stat-value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 4px;
}

.perfd__stat-value--gold {
  background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.perfd__stat-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.perfd__disclaimer {
  text-align: center;
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .perfd__stat:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   Testimonials — "From the closed beta"
   ------------------------------------------------------------------------- */
.testi__head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(48px, 6vw, 64px);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.testi__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.05;
  color: var(--text);
}

.testi__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .testi__grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }
}

.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transform-style: preserve-3d;
  transform: perspective(1200px) translateY(0) rotateX(0) rotateY(0);
  transition:
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}
.testi-card:hover {
  border-color: var(--border);
  transform: perspective(1200px) translateY(-4px) rotateX(2deg) rotateY(-1.5deg);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(224, 183, 62, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .testi-card:hover {
    transform: none;
    box-shadow: none;
  }
}

.testi-card__mark {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.4;
  color: var(--gold);
  opacity: 0.3;
  height: 24px;
}

.testi-card__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-dim);
}

.testi-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--gold);
  background: radial-gradient(circle at 30% 30%, rgba(224, 183, 62, 0.2), rgba(224, 183, 62, 0.04));
  border: 1px solid rgba(224, 183, 62, 0.3);
  flex-shrink: 0;
}

.testi-card__name {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
}

.testi-card__meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .testi-card:hover { transform: none; }
}

/* -------------------------------------------------------------------------
   Brokers band
   ------------------------------------------------------------------------- */
.brokers {
  padding-block: clamp(48px, 6vw, 72px);
  border-block: 1px solid var(--border-dim);
  text-align: center;
  overflow: hidden;
}

.brokers__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: var(--space-5);
}

/* Marquee viewport — masks the edges so the loop fades in/out instead of
   chopping. The track inside scrolls infinitely to the left. The items are
   duplicated in HTML once so the loop is seamless. */
.brokers__list {
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.brokers__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
  padding-right: clamp(40px, 5vw, 72px);
  flex-shrink: 0;
  animation: brokersMarquee 22s linear infinite;
  will-change: transform;
}

/* Pause on hover so users can read */
.brokers__list:hover .brokers__track { animation-play-state: paused; }

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

.brokers__item {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.brokers__item:hover {
  color: var(--gold);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .brokers__track { animation: none; }
}

/* -------------------------------------------------------------------------
   FAQ wrapper
   ------------------------------------------------------------------------- */
.faq-section__head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.faq-section__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
}

/* =========================================================================
   PERFORMANCE — Unified backtest + live result card
   One bordered card containing two areas separated by a gold hairline with
   a floating "LIVE RESULT" label centered on the line.
   ========================================================================= */
.perf__unified {
  background: var(--bg-card);
  border: 1px solid rgba(224, 183, 62, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.perf__area {
  padding: clamp(24px, 4vw, 40px);
}

.perf__area-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin: 0 0 28px;
}

/* Stats grid — 3-column default. 1px gap over a white-faint backdrop draws
   the internal hairlines; outer edge is handled by the grid's own border. */
.perf__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.perf__stats-grid--live {
  grid-template-columns: repeat(4, 1fr);
}

.perf__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px;
  background: var(--bg-card);
  transition: background 200ms ease;
}

.perf__stat:hover {
  background: rgba(224, 183, 62, 0.04);
}

.perf__stat-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.perf__stat-value--positive {
  color: #6FE89B;
}

.perf__stat-value--lg {
  font-size: 48px;
}

.perf__stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Divider — full-width gold hairline with the "LIVE RESULT" label punched
   through. Zero-height container so areas above/below sit naturally; the
   label is absolutely positioned and translated to center on the line. */
.perf__divider {
  position: relative;
  height: 0;
  border-top: 1px solid rgba(224, 183, 62, 0.15);
}

.perf__divider-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-block;
  padding: 0 16px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.4;
  white-space: nowrap;
}

.perf__live-footnote {
  margin: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.5;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .perf__stats-grid,
  .perf__stats-grid--live {
    grid-template-columns: repeat(2, 1fr);
  }

  .perf__divider-label {
    font-size: 8px;
    letter-spacing: 0.22em;
    padding: 0 12px;
  }
}

@media (max-width: 480px) {
  .perf__stat {
    padding: 18px 14px;
  }

  .perf__stat-value {
    font-size: 26px;
  }

  .perf__stat-value--lg {
    font-size: 34px;
  }
}

/* ─────────────────────────────────────────────────────────────────────
   Performance section — entry stagger + live label pulse.
   Cards start hidden; JS adds .is-revealed with a 120ms stagger when
   the section enters view, then eases each numeric value from 0 to its
   final reading over 1.2s. The "LIVE RESULT" divider chip gets a soft
   green border that pulses on a 2s loop. Honors reduced-motion.
   ───────────────────────────────────────────────────────────────────── */
.perf__stat {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.perf__stat.is-revealed {
  opacity: 1;
  transform: none;
}

.perf__divider-label {
  border: 1px solid rgba(111, 232, 155, 0.32);
  border-radius: var(--radius-pill);
  padding-block: 4px;
  animation: perfLivePulse 2s ease-in-out infinite;
}

@keyframes perfLivePulse {
  0%, 100% {
    border-color: rgba(111, 232, 155, 0.28);
    box-shadow: 0 0 0 0 rgba(111, 232, 155, 0);
  }
  50% {
    border-color: rgba(111, 232, 155, 0.62);
    box-shadow: 0 0 10px 0 rgba(111, 232, 155, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .perf__stat {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .perf__divider-label {
    animation: none;
  }
}
