/* ================================================================
   NEXUS CAPITAL — DESIGN SYSTEM
   Quiet Luxury · Institutional Dark Mode · Quantitative Fintech
   Inspired by: Stripe · Vercel · Linear · Hyperliquid · Citadel
================================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  /* Colour */
  --bg:         #020202;
  --bg-alt:     #060606;
  --surface:    #0A0A0A;
  --surface-2:  #0E0E0E;
  --border:     rgba(255, 255, 255, 0.055);
  --border-2:   rgba(255, 255, 255, 0.10);
  --gold:       #00FF88;
  --gold-bg:    rgba(0, 255, 136, 0.08);
  --green:      #5BA37A;
  --green-bg:   rgba(91, 163, 122, 0.08);
  --blue-bg:    rgba(139, 158, 191, 0.08);
  --t1:         #E8E8E8;
  --t2:         #6B7280;
  --t3:         #374151;
  --t4:         #1F2937;

  /* Layout */
  --max-w:    1240px;
  --pad-x:    48px;
  --sect-py:  128px;

  /* Type */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --r:    10px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Motion */
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-f:  0.16s;
  --dur-b:  0.28s;
  --dur-s:  0.50s;

  /* Elevation */
  --shadow-lift: 0 12px 40px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.22);
  --gold-glow:   rgba(0, 255, 136, 0.10);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--t1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a       { text-decoration: none; color: inherit; }
button  { font-family: inherit; cursor: pointer; }
table   { border-collapse: collapse; }
sup     { font-size: 0.55em; vertical-align: super; font-weight: 700; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: var(--sect-py) 0; }

/* ── Global Typography ──────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
}

.section-hd {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 72px;
}

.section-hd .eyebrow { margin-bottom: 14px; }

.section-hd h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.14;
  color: var(--t1);
  margin: 12px 0 16px;
}

.section-hd p {
  font-size: 15.5px;
  color: var(--t2);
  line-height: 1.82;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--t1);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: none;
  border-radius: var(--r);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition:
    background var(--dur-f) var(--ease),
    transform   var(--dur-b) var(--spring),
    box-shadow  var(--dur-b) var(--spring);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--t2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition:
    color        var(--dur-f) var(--ease),
    border-color var(--dur-f) var(--ease),
    transform    var(--dur-b) var(--spring),
    box-shadow   var(--dur-b) var(--spring);
}

.btn-ghost:hover {
  color: var(--t1);
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-ghost:active { transform: translateY(0); }

.btn-arrow {
  transition: transform var(--dur-b) var(--spring);
  display: inline-block;
}

.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

.link-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--t2);
  transition: color var(--dur-f), gap var(--dur-b) var(--spring);
}

.link-text:hover { color: var(--t1); gap: 10px; }

/* ================================================================
   NAVBAR
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  will-change: background, border-color;
  transition:
    background    var(--dur-s) var(--ease),
    border-color  var(--dur-s) var(--ease),
    box-shadow    var(--dur-s) var(--ease);
}

.navbar.scrolled {
  background: rgba(2, 2, 2, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  color: var(--t1);
}

/* Centre the nav links */
.nav-links {
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t2);
  border-radius: var(--r);
  transition: color var(--dur-f), background var(--dur-f);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--t1);
  background: rgba(255, 255, 255, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-nav {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--t1);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--r);
  white-space: nowrap;
  transition:
    background    var(--dur-f) var(--ease),
    border-color  var(--dur-f) var(--ease),
    transform     var(--dur-b) var(--spring);
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-2);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--t1);
  border-radius: 2px;
  transition: transform 0.28s var(--ease), opacity 0.2s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 96px var(--pad-x) 80px;
}

/* Subtle dot-grid texture */
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 38%, black 5%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 38%, black 5%, transparent 100%);
  pointer-events: none;
}

/* Very faint warm top-centre glow */
.hero-glow {
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.045) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  width: 100%;
  animation: heroIn 0.8s var(--spring) both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 30px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.75;
  flex-shrink: 0;
  animation: eyebrowDot 3.5s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 800;
  letter-spacing: -3.5px;
  line-height: 1.02;
  color: var(--t1);
  margin-bottom: 26px;
}

.hero-title-dim { color: var(--t3); }

.hero-body {
  font-size: 17px;
  color: var(--t2);
  line-height: 1.82;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Stat strip */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 36px;
  background: rgba(255, 255, 255, 0.016);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.h-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 36px;
}

.h-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

.h-stat-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--t1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.h-stat-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--t3);
}

/* Scroll indicator */
.hero-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
  animation: linePulse 2.5s ease-in-out infinite;
}

/* ================================================================
   ABOUT
================================================================ */
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}

.about-left .eyebrow { margin-bottom: 16px; }

.about-left h2 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.18;
  color: var(--t1);
  margin: 12px 0 20px;
}

.about-body {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.88;
}

/* Pillars */
.about-pillars {
  display: flex;
  flex-direction: column;
}

.pillar {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
  transition: background var(--dur-f);
}

.pillar:last-child { border-bottom: 1px solid var(--border); }

.pillar-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  padding-top: 3px;
  flex-shrink: 0;
  width: 22px;
}

.pillar-body h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.1px;
  margin-bottom: 7px;
}

.pillar-body p {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.76;
}

/* ================================================================
   ALGORITHMIC SYSTEMS
================================================================ */
.systems {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.sys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.sys-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 13px;
  will-change: transform, border-color;
  transition:
    border-color var(--dur-b) var(--ease),
    background   var(--dur-b) var(--ease),
    box-shadow   var(--dur-s) var(--spring),
    transform    var(--dur-s) var(--spring);
}

.sys-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.sys-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sys-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.sys-cat {
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  letter-spacing: 0.2px;
}

.sys-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--t1);
}

.sys-card > p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.82;
  flex-grow: 1;
}

.sys-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.sys-tags span {
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 10px;
  letter-spacing: 0.2px;
  transition: color var(--dur-f) var(--ease), border-color var(--dur-f) var(--ease), background var(--dur-f) var(--ease);
}

.sys-card:hover .sys-tags span {
  color: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.09);
}

/* ================================================================
   INSTITUTIONAL ACADEMY
================================================================ */
.academy {
  border-top: 1px solid var(--border);
}

.ac-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.ac-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 13px;
  will-change: transform, border-color;
  transition:
    border-color var(--dur-b) var(--ease),
    background   var(--dur-b) var(--ease),
    box-shadow   var(--dur-s) var(--spring),
    transform    var(--dur-s) var(--spring);
}

.ac-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.ac-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ac-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.ac-level {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.ac-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
}

.ac-card > p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.82;
  flex-grow: 1;
}

.ac-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t3);
  margin-top: 2px;
}

.ac-sep { color: var(--t4); }

/* ================================================================
   ANALYTICS
================================================================ */
.analytics {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

/* Stat row — connected blocks with 1px dividers */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 20px;
}

.stat-block {
  padding: 36px 28px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background var(--dur-b) var(--ease);
}

.stat-block:last-child { border-right: none; }
.stat-block:hover { background: var(--surface-2); }

.stat-val {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -3px;
  color: var(--t1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.1px;
}

.stat-desc {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.65;
}

/* System status table */
.sys-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.sys-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.sys-table-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--t3);
  text-transform: uppercase;
}

.sys-table-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--t4);
  letter-spacing: 0.3px;
}

.sys-table-scroll { overflow-x: auto; }

.sys-table {
  width: 100%;
  background: var(--surface);
}

.sys-table thead tr {
  border-bottom: 1px solid var(--border);
}

.sys-table th {
  padding: 11px 24px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t3);
  white-space: nowrap;
}

.sys-table td {
  padding: 17px 24px;
  font-size: 13.5px;
  color: var(--t2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.sys-table tbody tr:last-child td { border-bottom: none; }

.sys-table tbody tr {
  transition: background var(--dur-f);
}

.sys-table tbody tr:hover { background: var(--surface-2); }

.t-name {
  font-weight: 600;
  color: var(--t1) !important;
}

.s-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 40px;
  letter-spacing: 0.2px;
}

.s-badge.s-active {
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(91, 163, 122, 0.18);
}

.s-badge.s-live {
  color: #8B9EBF;
  background: var(--blue-bg);
  border: 1px solid rgba(139, 158, 191, 0.18);
}

.s-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.s-active .s-dot { background: var(--green); }
.s-live   .s-dot { background: #8B9EBF; }

/* ================================================================
   MASTERCLASSES
================================================================ */
.masterclasses {
  border-top: 1px solid var(--border);
}

.mc-wrap {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.mc-hd { margin-bottom: 52px; }

.mc-hd .eyebrow { margin-bottom: 14px; }

.mc-hd h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.14;
  color: var(--t1);
  margin: 12px 0 18px;
}

.mc-hd > p {
  font-size: 15.5px;
  color: var(--t2);
  line-height: 1.82;
  max-width: 540px;
  margin: 0 auto;
}

.mc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 44px;
  text-align: left;
}

.mc-card {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 11px;
  will-change: transform;
  transition:
    border-color var(--dur-b) var(--ease),
    background   var(--dur-b) var(--ease),
    box-shadow   var(--dur-s) var(--spring),
    transform    var(--dur-s) var(--spring);
}

.mc-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.mc-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  border-radius: var(--r);
  color: var(--gold);
  flex-shrink: 0;
}

.mc-card h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.1px;
}

.mc-card > p {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.78;
  flex-grow: 1;
}

.mc-freq {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.75;
  letter-spacing: 0.2px;
}

.mc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ================================================================
   ECOSYSTEM OVERVIEW
================================================================ */
.ecosystem {
  border-top: 1px solid var(--border);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.eco-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 22px;
  background: var(--surface);
  transition: background var(--dur-b) var(--ease);
}

.eco-card:hover { background: var(--surface-2); }

.eco-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  border-radius: var(--r);
  color: var(--gold);
  flex-shrink: 0;
  transition: background var(--dur-b) var(--ease), transform var(--dur-b) var(--spring);
}

.eco-card:hover .eco-icon {
  background: rgba(0, 255, 136, 0.15);
  transform: scale(1.08);
}

.eco-card h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.1px;
  line-height: 1.3;
}

.eco-card p {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.72;
  flex-grow: 1;
}

.eco-arrow {
  font-size: 13px;
  color: var(--t3);
  display: inline-block;
  transition: color var(--dur-f), transform var(--dur-b) var(--spring);
}

.eco-card:hover .eco-arrow {
  color: var(--gold);
  transform: translateX(4px);
}

/* ================================================================
   COPYTRADING INFRASTRUCTURE
================================================================ */
.copytrading {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.ct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.ct-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-b) var(--ease), box-shadow var(--dur-s) var(--spring);
}

.ct-panel:hover {
  border-color: var(--border-2);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.32);
}

.ct-panel-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 28px 0;
}

.ct-panel-hd h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--t1);
  margin-bottom: 5px;
}

.ct-type {
  font-size: 12px;
  color: var(--t2);
  font-weight: 500;
}

.ct-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(91, 163, 122, 0.2);
  border-radius: 40px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ct-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: ctDotPulse 1.8s ease-in-out infinite;
}

.ct-chart-wrap {
  position: relative;
  padding: 20px 0 0;
}

.ct-ytd {
  position: absolute;
  top: 24px;
  right: 28px;
  text-align: right;
  z-index: 2;
  pointer-events: none;
}

.ct-ytd-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--t1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ct-ytd-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--t3);
}

.ct-chart {
  display: block;
  width: 100%;
  height: 112px;
}

/* Equity curve draw animation */
#ctLine1,
#ctLine2 {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 2.0s cubic-bezier(0.4, 0, 0.2, 1);
}

#ctLine1.animated,
#ctLine2.animated {
  stroke-dashoffset: 0;
}

.ct-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ct-metric {
  padding: 14px 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-m-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--t3);
}

.ct-m-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.4px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.ct-connect {
  padding: 18px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.ct-connect-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t3);
}

.ct-brokers {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ct-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--r);
  font-family: var(--sans);
  transition: background var(--dur-f), color var(--dur-f), border-color var(--dur-f);
}

.ct-btn-primary {
  background: var(--t1);
  color: var(--bg);
  border: none;
}

.ct-btn-primary:hover { background: #fff; }

.ct-btn-ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border);
}

.ct-btn-ghost:hover {
  color: var(--t1);
  border-color: var(--border-2);
}

/* ================================================================
   SECTION NOTE (compliance disclaimers)
================================================================ */
.section-note {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.2);
  line-height: 1.72;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

/* ================================================================
   SIGNALS ECOSYSTEM
================================================================ */
.signals {
  border-top: 1px solid var(--border);
}

.sig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.sig-card {
  padding: 28px 22px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: background var(--dur-b) var(--ease);
}

.sig-card:hover { background: var(--surface-2); }

.sig-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--t2);
  flex-shrink: 0;
  transition: color var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease), background var(--dur-b) var(--ease);
}

.sig-card:hover .sig-icon {
  color: var(--gold);
  border-color: rgba(0, 255, 136, 0.22);
  background: var(--gold-bg);
}

.sig-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.1px;
  line-height: 1.3;
}

.sig-card p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.78;
}

/* ================================================================
   LIVE TRADING OPERATIONS
================================================================ */
.live-ops {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.live-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.live-days {
  display: flex;
  gap: 6px;
}

.live-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  min-width: 44px;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.live-day span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
}

.ld-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--t4);
}

.live-day.active {
  border-color: var(--border-2);
  background: rgba(255, 255, 255, 0.025);
}

.live-day.active span:first-child { color: var(--t1); }
.live-day.active .ld-label { color: var(--t3); }

.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--dur-b), background var(--dur-b);
}

.ls-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--t3);
  flex-shrink: 0;
  transition: background var(--dur-b);
}

.ls-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.2px;
  transition: color var(--dur-b);
}

.live-status-badge.is-live {
  border-color: rgba(91, 163, 122, 0.28);
  background: var(--green-bg);
  box-shadow: 0 0 0 3px rgba(91, 163, 122, 0.07);
}

.live-status-badge.is-live .ls-dot {
  background: var(--green);
  animation: ctDotPulse 1.8s ease-in-out infinite;
}

.live-status-badge.is-live .ls-text { color: var(--green); }

.live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.live-card {
  padding: 28px 26px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--dur-b) var(--ease);
}

.live-card:hover { background: var(--surface-2); }

.live-time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.live-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.2px;
}

.live-card p {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.78;
  flex-grow: 1;
}

.live-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 4px 10px;
  width: fit-content;
}

/* ================================================================
   ACADEMY — COMMUNITY BLOCK
================================================================ */
.ac-community {
  margin-top: 18px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.ac-comm-text .eyebrow { margin-bottom: 10px; }

.ac-comm-text h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--t1);
  margin: 10px 0 12px;
}

.ac-comm-text p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.78;
  max-width: 480px;
}

.ac-comm-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ================================================================
   CAPITAL SCALING PROGRAM
================================================================ */
.scaling {
  border-top: 1px solid var(--border);
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 24px;
}

.scale-step {
  padding: 28px 24px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 13px;
  transition: background var(--dur-b) var(--ease);
}

.scale-step:hover { background: var(--surface-2); }

.scale-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold);
}

.scale-step h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: -0.2px;
}

.scale-step > p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.78;
  flex-grow: 1;
}

.scale-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.scale-feats li {
  font-size: 12.5px;
  color: var(--t3);
  padding-left: 14px;
  position: relative;
}

.scale-feats li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ================================================================
   NEXUS FUND
================================================================ */
.fund {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.fund-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 48px;
  background: var(--surface);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: var(--r-xl);
  box-shadow: 0 0 80px rgba(0, 255, 136, 0.04), 0 0 0 1px rgba(0, 255, 136, 0.04) inset;
}

.fund-badge-wrap { margin-bottom: 28px; }

.fund-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 40px;
  padding: 5px 14px;
}

.fund-inner h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--t1);
  margin-bottom: 22px;
}

.fund-body {
  font-size: 15.5px;
  color: var(--t2);
  line-height: 1.82;
  max-width: 540px;
  margin: 0 auto 36px;
}

.fund-criteria {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 36px;
}

.fund-crit {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--t2);
}

.fc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
}

.fund-actions { margin-bottom: 24px; }

.fund-note {
  font-size: 11.5px;
  color: var(--t4);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
  border-top: 1px solid var(--border);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  padding: 60px 0 52px;
  flex-wrap: wrap;
}

.footer-tag {
  font-size: 13.5px;
  color: var(--t3);
  line-height: 1.72;
  margin-top: 18px;
}

.footer-nav {
  display: flex;
  gap: 52px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 2px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--t3);
  transition: color var(--dur-f);
}

.footer-col a:hover { color: var(--t2); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-copy {
  font-size: 12px;
  color: var(--t3);
}

.footer-legal {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1.7;
  max-width: 880px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--t3);
  text-decoration: none;
  transition: color var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease);
}

.footer-social a:hover {
  color: var(--gold);
  border-color: rgba(0, 255, 136, 0.22);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-links a {
  font-size: 12px;
  color: var(--t4);
  text-decoration: none;
  transition: color var(--dur-f);
}

.footer-legal-links a:hover { color: var(--t2); }
.footer-legal-links span { font-size: 12px; color: var(--t4); }

/* ================================================================
   SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  will-change: opacity, transform;
  transition:
    opacity   var(--dur-s) var(--spring),
    transform var(--dur-s) var(--spring);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.15; transform: translateX(-50%) scaleY(0.7); }
  50%       { opacity: 0.5;  transform: translateX(-50%) scaleY(1); }
}

@keyframes ctDotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

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

/* ================================================================
   CREDIBILITY LAYER — Validation Strip, CT Enhancements, Sig Tags
================================================================ */

/* Research Validation Strip */
.val-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.vs-item {
  padding: 14px 20px;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background var(--dur-b) var(--ease);
}

.vs-item:hover { background: var(--surface); }

.vs-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: -0.1px;
}

.vs-desc {
  font-size: 10px;
  font-weight: 500;
  color: var(--t4);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* CT Chart Label (axis) */
.ct-chart-label {
  position: absolute;
  top: 24px;
  left: 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}

/* CT Chart Meta Row */
.ct-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
}

.ct-period-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.18);
}

.ct-slippage-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

/* CT Metrics Section Header */
.ct-metrics-hd {
  padding: 7px 18px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border);
}

/* Signal Delivery Tags */
.sig-delivery {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.18);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ================================================================
   RESPONSIVE — 1100px
================================================================ */
@media (max-width: 1100px) {
  :root { --pad-x: 32px; }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-block {
    border-bottom: 1px solid var(--border);
  }

  .stat-block:nth-child(2) { border-right: none; }
  .stat-block:nth-child(3) { border-bottom: none; }
  .stat-block:nth-child(4) { border-right: none; border-bottom: none; }

  /* Un-centre nav on medium screens */
  .nav-links {
    position: static;
    transform: none;
    gap: 0;
  }

  /* Ecosystem */
  .eco-grid { grid-template-columns: repeat(3, 1fr); }

  /* Signals */
  .sig-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   RESPONSIVE — 900px
================================================================ */
@media (max-width: 900px) {
  :root {
    --sect-py: 80px;
    --pad-x: 24px;
  }

  .navbar {
    padding: 0 24px;
    height: 60px;
  }

  /* Mobile dropdown — opacity slide instead of display:none */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    padding: 6px 16px 20px;
    background: rgba(2, 2, 2, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    gap: 2px;
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.26s var(--spring);
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Systems + Academy */
  .sys-grid,
  .ac-grid {
    grid-template-columns: 1fr;
  }

  /* Stats */
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Masterclasses */
  .mc-grid { grid-template-columns: 1fr; }
  .mc-wrap { text-align: left; }
  .mc-hd > p { margin: 0; }
  .mc-cta { justify-content: flex-start; }

  /* Ecosystem */
  .eco-grid { grid-template-columns: repeat(2, 1fr); }

  /* Validation strip — 2 columns at 900px */
  .val-strip { grid-template-columns: repeat(2, 1fr); }

  /* CopyTrading */
  .ct-grid { grid-template-columns: 1fr; }

  /* Signals */
  .sig-grid { grid-template-columns: repeat(2, 1fr); }

  /* Live ops */
  .live-schedule { flex-direction: column; align-items: flex-start; }
  .live-grid { grid-template-columns: 1fr; }

  /* Academy community */
  .ac-community {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 28px 24px;
  }

  /* Scaling */
  .scale-grid { grid-template-columns: repeat(2, 1fr); }

  /* Fund */
  .fund-inner { padding: 48px 28px; }

  /* Footer */
  .footer-main {
    flex-direction: column;
    gap: 36px;
    padding: 48px 0 40px;
  }

  .footer-nav { gap: 32px; }

  /* Hero */
  .hero-stats {
    flex-direction: column;
    gap: 18px;
    padding: 22px 28px;
  }

  .h-stat { padding: 0; }

  .h-stat-sep {
    width: 60px;
    height: 1px;
  }
}

/* ================================================================
   RESPONSIVE — 640px
================================================================ */
@media (max-width: 640px) {
  .hero-title { letter-spacing: -2px; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .stat-row {
    grid-template-columns: 1fr;
    border-radius: var(--r-lg);
  }

  .stat-block {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .stat-block:last-child { border-bottom: none !important; }

  .stat-val { font-size: 40px; }

  /* Hide less-critical table columns on very small screens */
  .sys-table th:nth-child(3),
  .sys-table td:nth-child(3) { display: none; }

  .footer-bottom { padding: 20px 0 28px; }

  /* Ecosystem */
  .eco-grid { grid-template-columns: 1fr; }

  /* Validation strip — 1 column at 640px */
  .val-strip { grid-template-columns: 1fr; }

  /* Signals */
  .sig-grid { grid-template-columns: 1fr; }

  /* Scaling */
  .scale-grid { grid-template-columns: 1fr; }

  /* Live days wrap on small screens */
  .live-days { flex-wrap: wrap; }
}

/* ================================================================
   SYSTEM DETAIL PAGES
================================================================ */

/* Back navigation */
.sp-back-link { margin-bottom: 36px; }
.sp-back-link a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t3);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--dur-b) var(--ease);
}
.sp-back-link a:hover { color: var(--t1); }

/* Status + system number row */
.sp-status-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.sp-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--t4);
  text-transform: uppercase;
}
.sp-live-indicator.is-live { color: var(--green); }
.sp-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t4);
  flex-shrink: 0;
}
.sp-live-indicator.is-live .sp-live-dot {
  background: var(--green);
  box-shadow: 0 0 8px rgba(91, 163, 122, 0.55);
  animation: ctDotPulse 2s ease-in-out infinite;
}
.sp-sys-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--t4);
  text-transform: uppercase;
}

/* System Hero */
.sp-hero {
  padding-top: calc(var(--sect-py) + 72px);
  padding-bottom: var(--sect-py);
  background: var(--bg);
}
.sp-title {
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -3.5px;
  color: var(--t1);
  margin: 0 0 20px;
  line-height: 1.0;
}
.sp-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--t2);
  line-height: 1.75;
  margin: 0 0 52px;
  max-width: 640px;
}

/* Hero stat strip */
.sp-stat-strip {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 44px;
}
.sp-stat {
  padding: 22px 36px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-right: 1px solid var(--border);
}
.sp-stat:last-child { border-right: none; }
.sp-stat-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: var(--t1);
  line-height: 1;
}
.sp-stat-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--t3);
  text-transform: uppercase;
}
.sp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Sys-card "View System" link */
.sp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--t3);
  text-decoration: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  transition: color var(--dur-b) var(--ease);
}
.sp-card-link:hover { color: var(--gold); }
.sp-card-link .btn-arrow { color: var(--gold); }

/* Profile grid — chart + meta */
.sp-profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* Chart panel */
.sp-chart-panel {
  background: var(--surface);
  padding: 32px 28px 0;
  display: flex;
  flex-direction: column;
}
.sp-chart-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sp-chart-period {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--t3);
}
.sp-chart-wrap {
  position: relative;
  background: var(--bg-alt);
  border-radius: var(--r);
  overflow: hidden;
  flex: 1;
}
.sp-chart-label {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}
.sp-ytd-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  text-align: right;
}
.sp-ytd-val {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--gold);
  line-height: 1;
}
.sp-ytd-label {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t3);
  margin-top: 4px;
}
.sp-equity-chart {
  display: block;
  width: 100%;
  height: 150px;
}
.sp-equity-line {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  transition: stroke-dashoffset 2.2s var(--ease);
}
.sp-equity-line.animated { stroke-dashoffset: 0; }
.sp-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0 28px;
}
.sp-chart-meta-tag,
.sp-chart-meta-period {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.18);
}

/* Meta panel (strategy profile table) */
.sp-meta-panel {
  background: var(--surface);
  padding: 32px 28px;
}
.sp-meta-panel > .eyebrow { display: block; margin-bottom: 20px; }
.sp-meta-table { display: flex; flex-direction: column; }
.sp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.sp-meta-row:last-child { border-bottom: none; }
.sp-meta-key {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--t3);
  flex-shrink: 0;
  min-width: 130px;
}
.sp-meta-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  text-align: right;
}
.sp-status-live { color: var(--green) !important; font-weight: 600 !important; }

/* Performance analytics grid */
.spa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.spa-card {
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: background var(--dur-b) var(--ease);
}
.spa-card:hover { background: var(--surface-2); }
.spa-val {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--t1);
  line-height: 1;
}
.spa-val.green { color: var(--green); }
.spa-val.gold  { color: var(--gold); }
.spa-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
}
.spa-context {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: var(--t4);
}

/* Validation cards */
.spv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.spv-card {
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.spv-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.spv-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
}
.spv-result {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}
.spv-result.pass        { color: var(--green); background: var(--green-bg); }
.spv-result.conditional { color: var(--gold);  background: var(--gold-bg); }
.spv-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--t2);
  margin: 0;
}
.spv-bar-track {
  height: 2px;
  background: var(--border-2);
  border-radius: 2px;
  overflow: hidden;
}
.spv-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 2px;
  transition: width 1.4s var(--spring) 0.4s;
}
.spv-card.visible .spv-bar-fill { width: var(--fill, 0%); }
.spv-bar-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--t4);
}

/* MT5 Live Panel */
.mt5-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.mt5-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mt5-label-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--t3);
}
.mt5-connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mt5-conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t4);
  flex-shrink: 0;
}
.mt5-panel[data-connected="true"] .mt5-conn-dot {
  background: var(--green);
  animation: ctDotPulse 2s ease-in-out infinite;
}
.mt5-conn-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--t4);
}
.mt5-panel[data-connected="true"] .mt5-conn-text { color: var(--green); }
.mt5-metrics-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
}
.mt5-metric-block {
  padding: 26px 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mt5-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--t4);
  line-height: 1;
  transition: color var(--dur-b) var(--ease);
}
.mt5-panel[data-connected="true"] .mt5-val { color: var(--t1); }
.mt5-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--t4);
  text-transform: uppercase;
}
.mt5-integration-note {
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.16);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mt5-note-icon {
  font-size: 13px;
  color: var(--t4);
  flex-shrink: 0;
}

/* Broker connection grid */
.broker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.broker-card {
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--dur-b) var(--ease);
}
.broker-card:hover { background: var(--surface-2); }
.broker-card-hd { display: flex; flex-direction: column; gap: 5px; }
.broker-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
}
.broker-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}
.broker-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--t2);
  margin: 0;
  flex: 1;
}
.broker-cta {
  margin-top: auto;
  text-align: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

/* ================================================================
   RESEARCH & VALIDATION PAGE
================================================================ */

.rp-hero {
  padding-top: calc(var(--sect-py) + 72px);
  padding-bottom: var(--sect-py);
}

.rp-method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.rp-method-card {
  padding: 40px 36px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--dur-b) var(--ease);
}
.rp-method-card:hover { background: var(--surface-2); }
.rp-method-n {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--t4);
  text-transform: uppercase;
}
.rp-method-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.5px;
  margin: 0;
}
.rp-method-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--t2);
  margin: 0;
  flex: 1;
}
.rp-method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.rp-method-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 9px;
  border-radius: 4px;
}

.rp-robustness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.rp-robustness-card {
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--dur-b) var(--ease);
}
.rp-robustness-card:hover { background: var(--surface-2); }
.rp-robustness-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
}
.rp-robustness-body {
  font-size: 12px;
  line-height: 1.65;
  color: var(--t2);
  margin: 0;
}

.rp-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.rp-system-matrix {
  width: 100%;
  border-collapse: collapse;
}
.rp-system-matrix th {
  padding: 13px 20px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--t3);
  background: var(--bg-alt);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.rp-system-matrix td {
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--t2);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.rp-system-matrix tbody tr:last-child td { border-bottom: none; }
.rp-system-matrix td.td-pass  { color: var(--green); font-weight: 600; }
.rp-system-matrix td.td-cond  { color: var(--gold);  font-weight: 600; }
.rp-system-matrix td.td-name  { color: var(--t1);    font-weight: 700; }

/* ================================================================
   ACADEMY PAGE
================================================================ */

/* Hero */
.acad-hero {
  padding-top: calc(var(--sect-py) + 72px);
  padding-bottom: var(--sect-py);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.acad-hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.acad-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.acad-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: eyebrowDot 2.5s ease-in-out infinite;
}

.acad-title {
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: -3.5px;
  color: var(--t1);
  margin: 0 0 18px;
  line-height: 1.0;
  max-width: 820px;
}

.acad-sub {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 20px;
  letter-spacing: -0.2px;
  max-width: 680px;
  line-height: 1.5;
}

.acad-body {
  font-size: 16px;
  font-weight: 400;
  color: var(--t2);
  line-height: 1.75;
  margin: 0 0 44px;
  max-width: 600px;
}

.acad-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* WhatsApp CTA button (outline, neon green) */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: var(--r);
  text-decoration: none;
  transition:
    background var(--dur-f) var(--ease),
    border-color var(--dur-f) var(--ease),
    transform var(--dur-b) var(--spring),
    box-shadow var(--dur-b) var(--spring);
}

.btn-wa:hover {
  background: rgba(0, 255, 136, 0.06);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.08);
}

/* Mentor Card */
.acad-mentor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.acad-mentor-aside {
  background: var(--bg-alt);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--border);
}

.acad-mentor-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.acad-mentor-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
  margin: 0 0 4px;
  line-height: 1.2;
}

.acad-mentor-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.acad-mentor-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.acad-mentor-stat { display: flex; flex-direction: column; gap: 3px; }

.acad-stat-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--t1);
  line-height: 1;
}

.acad-stat-key {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--t4);
}

.acad-mentor-body {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}

.acad-mentor-body > .eyebrow { display: block; margin-bottom: 6px; }

.acad-mentor-body-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--t1);
  margin: 0;
}

.acad-mentor-quote {
  font-size: 15px;
  line-height: 1.78;
  color: var(--t2);
  margin: 0;
}

.acad-mentor-creds { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }

.acad-cred {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t3);
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Curriculum Pillars */
.ac-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.ac-pillar-card {
  background: var(--surface);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background var(--dur-b) var(--ease);
}

.ac-pillar-card:hover { background: var(--surface-2); }

.ac-pillar-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t4);
}

.ac-pillar-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.14);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: background var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease);
}

.ac-pillar-card:hover .ac-pillar-icon {
  background: rgba(0, 255, 136, 0.10);
  border-color: rgba(0, 255, 136, 0.26);
}

.ac-pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.3px;
  margin: 0;
  line-height: 1.2;
}

.ac-pillar-body {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--t2);
  margin: 0;
  flex: 1;
}

/* Academy Contact Section */
.acad-contact { background: var(--bg-alt); }

.acad-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.acad-form-panel {
  background: var(--surface);
  padding: 52px 48px;
}

.acad-form-panel > .eyebrow { display: block; margin-bottom: 14px; }

.acad-form-heading {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--t1);
  margin: 0 0 6px;
}

.acad-form-desc {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.65;
  margin: 0 0 32px;
}

.acad-form { display: flex; flex-direction: column; gap: 14px; }

.acad-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.acad-field { display: flex; flex-direction: column; gap: 7px; }

.acad-field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--t3);
}

.acad-field input,
.acad-field select,
.acad-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--t1);
  outline: none;
  width: 100%;
  transition: border-color var(--dur-f) var(--ease), box-shadow var(--dur-f) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.acad-field input::placeholder,
.acad-field textarea::placeholder { color: var(--t4); }

.acad-field input:focus,
.acad-field select:focus,
.acad-field textarea:focus {
  border-color: rgba(0, 255, 136, 0.35);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.06);
}

.acad-field select option { background: var(--surface); color: var(--t1); }
.acad-field textarea { min-height: 88px; resize: vertical; }

.acad-form-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.18);
  margin-top: 2px;
}

/* WhatsApp CTA panel (right of form) */
.acad-wa-panel {
  background: var(--surface);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.acad-wa-panel > .eyebrow { display: block; }

.acad-wa-heading {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--t1);
  margin: 0;
  line-height: 1.3;
}

.acad-wa-body {
  font-size: 13px;
  line-height: 1.72;
  color: var(--t2);
  margin: 0;
}

.acad-wa-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition:
    background var(--dur-b) var(--ease),
    border-color var(--dur-b) var(--ease),
    transform var(--dur-b) var(--spring);
}

.acad-wa-btn:hover {
  background: rgba(0, 255, 136, 0.10);
  border-color: rgba(0, 255, 136, 0.32);
  transform: translateY(-2px);
}

.acad-wa-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.acad-wa-btn-text { display: flex; flex-direction: column; gap: 3px; }

.acad-wa-btn-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.1px;
}

.acad-wa-btn-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--t3);
}

.acad-response-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--t4);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.acad-response-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: ctDotPulse 2s ease-in-out infinite;
}

/* Academy page responsive */
@media (max-width: 1100px) {
  .acad-mentor-card { grid-template-columns: 1fr; }
  .acad-mentor-aside { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .acad-mentor-stats { flex-direction: row; padding-top: 0; border-top: none; border-left: 1px solid var(--border); padding-left: 24px; }
}

@media (max-width: 900px) {
  .ac-pillar-grid { grid-template-columns: 1fr; }
  .acad-contact-grid { grid-template-columns: 1fr; }
  .acad-mentor-aside { flex-direction: column; }
  .acad-mentor-stats { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; flex-direction: row; }
}

@media (max-width: 640px) {
  .acad-form-row { grid-template-columns: 1fr; }
  .acad-title { letter-spacing: -2.5px; }
  .acad-mentor-body { padding: 36px 28px; }
}

/* ================================================================
   LEADERSHIP — DIRECTING BOARD
================================================================ */

.leadership { background: var(--bg-alt); }

.lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.lead-card {
  background: var(--surface);
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: background var(--dur-b) var(--ease);
}

.lead-card:hover { background: var(--surface-2); }

.lead-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lead-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
  flex-shrink: 0;
}

.lead-info { display: flex; flex-direction: column; gap: 5px; }

.lead-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--t1);
  margin: 0;
  line-height: 1.15;
}

.lead-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.lead-bio {
  font-size: 14px;
  line-height: 1.78;
  color: var(--t2);
  margin: 0;
  flex: 1;
}

.lead-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.lead-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--t3);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease);
  white-space: nowrap;
}

.lead-social a:hover {
  color: var(--gold);
  border-color: rgba(0, 255, 136, 0.22);
}

@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 36px 28px; }
}

/* ================================================================
   RESPONSIVE — SYSTEM / RESEARCH PAGES
================================================================ */
@media (max-width: 1100px) {
  .sp-profile-grid { grid-template-columns: 1fr; }
  .mt5-metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .sp-stat-strip { width: 100%; }
  .sp-stat { padding: 18px 22px; flex: 1; }
  .spa-grid { grid-template-columns: repeat(2, 1fr); }
  .broker-grid { grid-template-columns: 1fr; }
  .rp-method-grid { grid-template-columns: 1fr; }
  .rp-robustness-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sp-stat-strip { flex-wrap: wrap; border-radius: var(--r); }
  .sp-stat { border-right: none !important; border-bottom: 1px solid var(--border); }
  .sp-stat:last-child { border-bottom: none; }
  .spa-grid { grid-template-columns: 1fr; }
  .spv-grid { grid-template-columns: 1fr; }
  .mt5-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-title { letter-spacing: -2.5px; }
}

/* ================================================================
   ACADEMY — TRACK SYLLABUS (Maestrías & Diplomados)
================================================================ */

/* Track wrapper */
.track-section {
  padding: 80px 0;
}

.track-section + .track-section {
  border-top: 1px solid var(--border);
}

/* Track header */
.track-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px 5px 8px;
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.22);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.track-badge-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 255, 136, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
}

.track-title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--t1);
  margin: 0 0 14px;
  line-height: 1.2;
}

.track-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 0 40px;
}

/* ── Maestría: Syllabus table rows ───────────────────────────── */
.syllabus-table {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.syllabus-row {
  display: grid;
  grid-template-columns: 60px 48px 1fr;
  align-items: start;
  gap: 0;
  background: var(--surface);
  padding: 28px 32px;
  transition: background var(--dur-b) var(--ease);
  text-decoration: none;
}

.syllabus-row:hover { background: var(--surface-2); }

.syllabus-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  padding-top: 4px;
  line-height: 1;
}

.syllabus-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: -1px;
  background: rgba(0, 255, 136, 0.03);
}

.syllabus-body {
  padding-left: 22px;
}

.syllabus-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 4px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.syllabus-focus {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin: 0 0 9px;
  display: block;
}

.syllabus-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.68;
  margin: 0;
}

/* ── Maestría: Tools certification banner ────────────────────── */
.tools-cert {
  margin-top: 20px;
  padding: 20px 28px;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tools-cert-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.tools-cert-divider {
  width: 1px;
  height: 24px;
  background: var(--border-2);
  flex-shrink: 0;
}

.tools-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: 0.02em;
}

.tool-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Diplomado: 2×2 card grid ────────────────────────────────── */
.diploma-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.diploma-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background var(--dur-b) var(--ease);
}

.diploma-card:hover { background: var(--surface-2); }

.diploma-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 16px;
}

.diploma-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(0, 255, 136, 0.03);
  margin-bottom: 18px;
}

.diploma-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
  margin: 0 0 5px;
  line-height: 1.2;
}

.diploma-focus {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin: 0 0 12px;
  display: block;
}

.diploma-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.68;
  margin: 0;
  flex: 1;
}

/* ================================================================
   LEGAL PAGES (Privacy & Terms)
================================================================ */

.legal-hero {
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--border);
}

.legal-hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.legal-hero-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--t1);
  margin: 0 0 16px;
  line-height: 1.1;
}

.legal-hero-meta {
  font-size: 12px;
  color: var(--t4);
  margin: 0;
}

.legal-body {
  padding: 72px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}

/* Sticky TOC sidebar */
.legal-toc {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-heading {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--t4);
  margin: 0 0 12px;
  padding-left: 12px;
}

.legal-toc a {
  font-size: 12px;
  font-weight: 500;
  color: var(--t3);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  border-left: 1px solid transparent;
  transition: color var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease), background var(--dur-b) var(--ease);
  line-height: 1.4;
}

.legal-toc a:hover {
  color: var(--t1);
  background: var(--surface);
  border-left-color: var(--gold);
}

/* Article content */
.legal-article {
  max-width: 720px;
}

.legal-section {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-section-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin: 0 0 8px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
  margin: 0 0 18px;
  line-height: 1.2;
}

.legal-section p {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.8;
  margin: 0 0 14px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  margin: 12px 0 14px 0;
  padding-left: 20px;
}

.legal-section li {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-section strong { color: var(--t1); font-weight: 600; }

.legal-disclaimer-box {
  padding: 20px 24px;
  background: rgba(0, 255, 136, 0.03);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: var(--r);
  margin: 18px 0;
}

.legal-disclaimer-box p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.75;
  margin: 0;
}

/* Legal responsive */
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-toc-heading { display: none; }
  .legal-toc a { padding: 5px 12px; border: 1px solid var(--border); border-left: 1px solid var(--border); border-radius: 100px; font-size: 11px; }
  .legal-toc a:hover { border-color: rgba(0,255,136,0.3); border-left-color: rgba(0,255,136,0.3); background: rgba(0,255,136,0.04); }
}

/* Track responsive */
@media (max-width: 900px) {
  .diploma-grid { grid-template-columns: 1fr; }
  .syllabus-row { grid-template-columns: 50px 40px 1fr; padding: 22px 24px; }
  .syllabus-body { padding-left: 16px; }
}

@media (max-width: 640px) {
  .syllabus-row { grid-template-columns: 44px 1fr; gap: 14px; }
  .syllabus-icon { display: none; }
  .syllabus-body { padding-left: 0; }
  .tools-cert { gap: 14px; }
  .tools-cert-divider { display: none; }
  .diploma-card { padding: 28px 24px; }
}

/* ================================================================
   QUANT LAB — INFRASTRUCTURE PAGE
================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.ql-hero {
  padding: 148px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.ql-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 35%, transparent 100%);
  pointer-events: none;
}

.ql-hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 460px;
  background: radial-gradient(ellipse, rgba(0,255,136,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.ql-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  position: relative;
}

.ql-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: ctDotPulse 2s ease-in-out infinite;
}

.ql-hero-title {
  font-size: clamp(32px, 5.5vw, 66px);
  font-weight: 800;
  letter-spacing: -2.5px;
  color: var(--t1);
  line-height: 1.0;
  margin: 0 0 20px;
  position: relative;
}

.ql-hero-sub {
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 400;
  color: var(--gold);
  margin: 0 0 20px;
  letter-spacing: -0.1px;
  position: relative;
}

.ql-hero-body {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 0 36px;
  position: relative;
}

/* Tech stack pills */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0.03em;
}

.tech-pill::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Metrics strip */
.ql-metrics {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.ql-metric {
  flex: 1;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ql-metric:last-child { border-right: none; }

.ql-metric-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--gold);
  line-height: 1;
}

.ql-metric-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--t4);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ── Robustness Cards ─────────────────────────────────────────── */
.rob-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.rob-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-b) var(--ease);
}

.rob-card:hover { background: var(--surface-2); }

.rob-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.rob-card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(0, 255, 136, 0.03);
}

.rob-card-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.18);
  border-radius: 100px;
}

.rob-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--t1);
  margin: 0 0 12px;
  line-height: 1.2;
}

.rob-card-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.72;
  margin: 0;
  flex: 1;
}

.rob-card-stat {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rob-card-stat-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gold);
}

.rob-card-stat-label {
  font-size: 11px;
  color: var(--t4);
  line-height: 1.35;
}

/* ── Mathematical Components List ────────────────────────────── */
.math-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.math-item {
  background: var(--surface);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 28px;
  align-items: start;
  transition: background var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease);
  border-left: 2px solid transparent;
}

.math-item:hover {
  background: var(--surface-2);
  border-left-color: var(--gold);
}

.math-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(0, 255, 136, 0.03);
  flex-shrink: 0;
  margin-top: 2px;
}

.math-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--t1);
  margin: 0 0 7px;
  line-height: 1.2;
}

.math-formula {
  font-family: 'Menlo', 'Consolas', 'Monaco', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.75;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.math-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.72;
  margin: 0;
}

/* ── SQX / Portfolio Section ─────────────────────────────────── */
.sqx-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 88px 0;
}

.sqx-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sqx-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.sqx-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--t1);
  line-height: 1.08;
  margin: 0 0 20px;
}

.sqx-body {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.82;
  margin: 0 0 28px;
}

.sqx-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sqx-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.sqx-feature {
  background: var(--bg);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  transition: background var(--dur-b) var(--ease);
}

.sqx-feature:hover { background: var(--surface); }

.sqx-feature-num {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold);
  opacity: 0.55;
  padding-top: 3px;
  font-family: 'Menlo', 'Consolas', monospace;
}

.sqx-feature-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
  margin: 0 0 4px;
  line-height: 1.2;
}

.sqx-feature-desc {
  font-size: 12px;
  color: var(--t3);
  line-height: 1.65;
  margin: 0;
}

/* ================================================================
   TRACK RECORD MATRIX — MYFXBOOK AUDITED PORTFOLIO
================================================================ */

.mfx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.mfx-card {
  background: var(--surface);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-b) var(--ease);
}

.mfx-card:hover { background: var(--surface-2); }

.mfx-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mfx-card-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--t1);
  margin: 0 0 4px;
  line-height: 1.2;
}

.mfx-card-meta {
  font-size: 10px;
  font-weight: 500;
  color: var(--t4);
  letter-spacing: 0.03em;
  margin: 0;
}

/* Status badges */
.mfx-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.mfx-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mfx-badge.live {
  color: var(--gold);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.22);
}

.mfx-badge.live .mfx-badge-dot {
  background: var(--gold);
  animation: ctDotPulse 2s ease-in-out infinite;
}

.mfx-badge.pending {
  color: var(--t4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.mfx-badge.pending .mfx-badge-dot {
  background: var(--t4);
  opacity: 0.4;
}

/* Live widget container */
.mfx-widget {
  flex: 1;
  margin-bottom: 16px;
  border-radius: var(--r);
  overflow: hidden;
}

.mfx-widget a { display: block; }

.mfx-widget img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r);
  border: 1px solid rgba(0, 255, 136, 0.15);
  transition: border-color var(--dur-b) var(--ease);
  filter: brightness(1.04) saturate(0.95);
}

.mfx-widget a:hover img {
  border-color: rgba(0, 255, 136, 0.45);
}

/* Pending placeholder */
.mfx-pending {
  flex: 1;
  margin-bottom: 16px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 148px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Scanning animation across pending placeholder */
.mfx-pending::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.025), transparent);
  animation: mfxScan 3.5s ease-in-out infinite;
}

@keyframes mfxScan {
  0%   { left: -60%; }
  100% { left: 160%; }
}

.mfx-pending-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  opacity: 0.55;
  position: relative;
  z-index: 1;
}

.mfx-pending-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
  text-align: center;
  opacity: 0.7;
  position: relative;
  z-index: 1;
}

.mfx-pending-sub {
  font-size: 10px;
  color: var(--t4);
  text-align: center;
  line-height: 1.6;
  margin: 0;
  opacity: 0.55;
  position: relative;
  z-index: 1;
}

/* Progress bar on pending */
.mfx-progress {
  width: 80%;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.mfx-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), transparent);
  animation: mfxBar 2s ease-in-out infinite;
}

@keyframes mfxBar {
  0%   { left: -40%; }
  100% { left: 140%; }
}

/* Card footer */
.mfx-card-footer {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mfx-audit-source {
  font-size: 10px;
  color: var(--t4);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.mfx-audit-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.mfx-cta {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.03em;
  transition: opacity var(--dur-b) var(--ease);
  white-space: nowrap;
}

.mfx-cta:hover { opacity: 0.7; }

/* MFX responsive */
@media (max-width: 1024px) {
  .mfx-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   SUCCESS PAGE — FUNNEL CLOSE
================================================================ */

.success-page {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  border-top: 1px solid var(--border);
}

.success-container {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Animated check SVG */
.success-check {
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
}

.success-check svg {
  width: 96px;
  height: 96px;
  overflow: visible;
}

.check-circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-dasharray: 277;
  stroke-dashoffset: 277;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
  animation: checkCircleAnim 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.check-mark {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 65;
  stroke-dashoffset: 65;
  animation: checkMarkAnim 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.95s forwards;
}

@keyframes checkCircleAnim {
  to { stroke-dashoffset: 0; }
}

@keyframes checkMarkAnim {
  to { stroke-dashoffset: 0; }
}

@keyframes successFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Text elements — staggered fade-up */
.success-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  opacity: 0;
  animation: successFadeUp 0.5s ease-out 1.1s forwards;
}

.success-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--t1);
  line-height: 1.08;
  margin: 0 0 20px;
  opacity: 0;
  animation: successFadeUp 0.5s ease-out 1.25s forwards;
}

.success-title-dim {
  color: var(--t3);
  display: block;
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-top: 6px;
}

.success-sub {
  font-size: 15px;
  color: var(--t2);
  line-height: 1.75;
  margin: 0 0 12px;
  opacity: 0;
  animation: successFadeUp 0.5s ease-out 1.4s forwards;
}

.success-body {
  font-size: 13px;
  color: var(--t3);
  line-height: 1.7;
  margin: 0 0 40px;
  opacity: 0;
  animation: successFadeUp 0.5s ease-out 1.5s forwards;
}

.success-body strong { color: var(--gold); font-weight: 600; }

/* Action cards */
.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  opacity: 0;
  animation: successFadeUp 0.5s ease-out 1.65s forwards;
}

.success-action {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background var(--dur-b) var(--ease), border-color var(--dur-b) var(--ease), transform var(--dur-b) var(--spring);
}

.success-action:hover { transform: translateY(-2px); }

.success-action.wa {
  background: rgba(0, 255, 136, 0.04);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.success-action.wa:hover {
  background: rgba(0, 255, 136, 0.09);
  border-color: rgba(0, 255, 136, 0.5);
}

.success-action.community {
  background: var(--surface);
  border: 1px solid var(--border-2);
}

.success-action.community:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.success-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-action.wa .success-action-icon {
  background: rgba(0, 255, 136, 0.08);
  color: var(--gold);
}

.success-action.community .success-action-icon {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--t3);
}

.success-action-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.success-action-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  line-height: 1;
}

.success-action.wa .success-action-label { color: var(--gold); }

.success-action.community .success-action-label { color: var(--t1); }

.success-action-desc {
  font-size: 11px;
  color: var(--t4);
  line-height: 1;
}

.success-action-arrow {
  margin-left: auto;
  color: var(--t4);
  font-size: 14px;
  flex-shrink: 0;
  transition: color var(--dur-b) var(--ease);
}

.success-action:hover .success-action-arrow { color: var(--t2); }

/* Back link */
.success-back {
  margin-top: 32px;
  font-size: 12px;
  color: var(--t4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--dur-b) var(--ease);
  opacity: 0;
  animation: successFadeUp 0.5s ease-out 1.8s forwards;
}

.success-back:hover { color: var(--t2); }

@media (max-width: 560px) {
  .mfx-grid { grid-template-columns: 1fr; }
  .mfx-card { padding: 22px 20px; }
}

/* Quant Lab responsive */
@media (max-width: 1100px) {
  .sqx-inner { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 900px) {
  .rob-grid { grid-template-columns: 1fr; }
  .ql-metrics { flex-wrap: wrap; }
  .ql-metric { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
  .ql-metric:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
  .math-item { grid-template-columns: 1fr; gap: 14px; }
  .math-icon { display: none; }
  .ql-hero-title { letter-spacing: -1.5px; }
  .math-formula { white-space: normal; }
  .ql-metrics { flex-direction: column; }
  .ql-metric { border-right: none; }
}
