/* ═══════════════════════════════════════════════════════════════
   The Jade Ninja — Landing Page Styles
   Trader Light theme — Mint sage palette, clean & professional
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #f7f9f8;
  --bg2: #edf2ef;
  --surface: #ffffff;
  --surface2: #dfe6e1;
  --surface3: #d0d9d3;
  --border: #c8d4cc;
  --border-light: #dfe6e1;
  --text: #2a2e33;
  --subtext: #5a6268;
  --accent: #5a9e7e;
  --accent2: #3d8b68;
  --accent-dim: rgba(90, 158, 126, 0.08);
  --accent-glow: rgba(90, 158, 126, 0.2);
  --red: #c06070;
  --red-dim: rgba(192, 96, 112, 0.08);
  --green: #5a9e7e;
  --yellow: #b8a050;
  --blue: #5880b0;
  --purple: #8870b0;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247, 249, 248, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border-light); background: rgba(247, 249, 248, 0.96); box-shadow: var(--shadow-sm); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 64px; gap: 32px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 24px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--text); }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--subtext); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { margin-left: 16px; }
.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: all 0.3s; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: all 0.25s;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff; box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent2); box-shadow: 0 4px 20px rgba(90, 158, 126, 0.35); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }

/* ─── HERO ─── */
.hero {
  position: relative; padding: 140px 0 60px; overflow: hidden; text-align: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(90, 158, 126, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(88, 128, 176, 0.05), transparent);
}
.hero-content { position: relative; z-index: 1; }
.hero-tagline {
  font-size: 16px; color: var(--subtext); letter-spacing: 0.3px;
  margin-bottom: 16px; font-weight: 400;
}
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent); font-size: 12px;
  font-weight: 600; letter-spacing: 0.5px; margin-bottom: 24px;
  border: 1px solid rgba(90, 158, 126, 0.2);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -1px; color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px; color: var(--subtext); max-width: 640px;
  margin: 0 auto 32px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-stats {
  display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
  padding: 24px 32px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-light); max-width: 700px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 28px; font-weight: 800; color: var(--accent); font-family: 'JetBrains Mono', monospace; }
.stat-label { font-size: 12px; color: var(--subtext); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; background: var(--border-light); }

/* ─── SCI-FI ORBITAL PIPELINE ─── */
.orbital-wrap {
  margin: 48px -9999px 0; padding: 48px 9999px 56px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a2a22 0%, #0d1117 50%, #080c10 100%);
  position: relative; overflow: hidden;
}
.orbital-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 85% 55%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 25% 45%, rgba(74,124,89,0.6), transparent),
    radial-gradient(1.5px 1.5px at 75% 15%, rgba(74,124,89,0.4), transparent),
    radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 60% 40%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 95% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 40% 90%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(74,124,89,0.5), transparent);
  pointer-events: none; animation: starTwinkle 8s ease-in-out infinite alternate;
}
@keyframes starTwinkle {
  0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.8; }
}
.orbital-system {
  position: relative; width: 100%; max-width: 600px; height: 400px;
  margin: 0 auto; perspective: 800px;
}
#orbitalCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
/* Core */
.orbital-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; z-index: 5; display: flex; align-items: center; justify-content: center;
}
.core-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #6ee7a0;
  text-align: center; line-height: 1.3; z-index: 2;
  text-shadow: 0 0 20px rgba(110,231,160,0.5), 0 0 40px rgba(110,231,160,0.2);
}
.core-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #4a9e6e; opacity: 0.7;
  animation: corePulse 3s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(74,158,110,0.3), 0 0 80px rgba(74,158,110,0.1), inset 0 0 30px rgba(74,158,110,0.15);
}
.core-ring-2 {
  inset: -8px; border-style: dashed; border-width: 1px; opacity: 0.4;
  border-color: #4a9e6e;
  animation: coreSpin 20s linear infinite;
}
@keyframes corePulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.9; }
}
@keyframes coreSpin { to { transform: rotate(360deg); } }

/* Orbit rings */
.orbit-ring {
  position: absolute; top: 50%; left: 50%; border-radius: 50%;
  border: 1px solid; transform: translate(-50%, -50%) rotateX(60deg);
  pointer-events: none;
}
.orbit-1 {
  width: 200px; height: 200px; border-color: rgba(110,231,160,0.15);
  animation: ringFloat 8s ease-in-out infinite;
}
.orbit-2 {
  width: 310px; height: 310px; border-color: rgba(110,231,160,0.08);
  border-style: dashed; animation: ringFloat 12s ease-in-out infinite reverse;
}
.orbit-3 {
  width: 420px; height: 420px; border-color: rgba(110,231,160,0.04);
  animation: ringFloat 16s ease-in-out infinite;
}
@keyframes ringFloat {
  0%, 100% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(0deg); }
  50% { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(8deg); }
}

/* Orbital nodes */
.orbital-node {
  position: absolute; z-index: 4; opacity: 0; transform: scale(0.3);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.orbital-node.visible { opacity: 1; transform: scale(1); }
.node-0 { top: 10%; left: 8%; }
.node-1 { top: 6%; right: 8%; }
.node-2 { bottom: 12%; left: 4%; }
.node-3 { bottom: 8%; right: 4%; }

.node-body {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 40px;
  background: rgba(15,25,20,0.85); backdrop-filter: blur(12px);
  border: 1px solid rgba(110,231,160,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(74,158,110,0.1);
  transition: all 0.3s ease; cursor: default; position: relative;
}
.node-body:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 25px rgba(74,158,110,0.2);
  border-color: rgba(110,231,160,0.3);
}
.node-body.node-active {
  border-color: rgba(110,231,160,0.4);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), 0 0 40px rgba(74,158,110,0.25), 0 0 80px rgba(74,158,110,0.1);
}
.node-icon { font-size: 20px; flex-shrink: 0; }
.node-label {
  font-size: 12px; font-weight: 700; color: rgba(220,235,225,0.9);
  letter-spacing: 0.5px; white-space: nowrap;
}
.node-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,158,110,0.4) 0%, transparent 70%);
  opacity: 0.5; filter: blur(15px); pointer-events: none;
  animation: nodeGlow 4s ease-in-out infinite;
}
.node-0 .node-glow { animation-delay: 0s; }
.node-1 .node-glow { animation-delay: 1s; }
.node-2 .node-glow { animation-delay: 2s; }
.node-3 .node-glow { animation-delay: 3s; width: 100px; height: 100px; opacity: 0.6; }
@keyframes nodeGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.3); }
}
.node-connector {
  display: none; /* drawn via canvas */
}

/* ─── SECTIONS ─── */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  background: var(--accent-dim); color: var(--accent); font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.5px; color: var(--text); }
.section-sub { color: var(--subtext); font-size: 16px; max-width: 600px; margin: 12px auto 0; }

/* ─── PROBLEM / SOLUTION ─── */
.problem-section { background: var(--bg2); }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comp-card {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--border-light);
  opacity: 0; transform: translateY(30px); transition: all 0.6s ease;
  background: var(--surface);
}
.comp-card.visible { opacity: 1; transform: translateY(0); }
.comp-bad { border-left: 3px solid var(--red); }
.comp-good { border-left: 3px solid var(--accent); }
.comp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.comp-icon { font-size: 24px; }
.comp-header h3 { font-size: 20px; font-weight: 700; }
.comp-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.comp-bad li { padding-left: 28px; position: relative; color: var(--subtext); }
.comp-bad li::before { content: '\2715'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.comp-good li { padding-left: 28px; position: relative; }
.comp-good li::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ─── STEPS ─── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card {
  padding: 28px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-light); position: relative;
  opacity: 0; transform: translateY(30px); transition: all 0.6s ease;
  box-shadow: var(--shadow-sm);
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-size: 48px; font-weight: 900; color: var(--surface2); position: absolute; top: 16px; right: 20px; font-family: 'JetBrains Mono', monospace; }
.step-icon { font-size: 32px; margin-bottom: 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--subtext); line-height: 1.6; }

/* ─── ENGINE (compact) ─── */
.engine-section { background: var(--bg2); }
.engine-compact { max-width: 700px; margin: 0 auto 56px; }
.engine-compact-header { margin-bottom: 20px; }
.engine-compact-header h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.engine-compact-header p { font-size: 14px; color: var(--subtext); }

.confluence-compact {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.conf-chip {
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm); color: var(--text);
}
/* Engine tagline — prominent */
.engine-tagline {
  font-size: 20px; color: var(--text); max-width: 640px; margin: 12px auto 0;
  text-align: center; line-height: 1.6; font-weight: 500;
}
.engine-tagline em {
  font-style: italic; color: var(--accent); font-weight: 600;
}

/* ─── DECISION FLOW (fancy pipeline) ─── */
/* Orbital Decision Pipeline */
.flow-orbital-wrap {
  margin: 0 -9999px; padding: 56px 9999px 48px;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a2a22 0%, #0d1117 50%, #080c10 100%);
  position: relative; overflow: hidden;
}
.flow-orbital-wrap::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 8% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 22% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 48% 8%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 65% 85%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 88% 25%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 12% 90%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 78% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 35% 35%, rgba(110,231,160,0.5), transparent),
    radial-gradient(1.5px 1.5px at 82% 12%, rgba(110,231,160,0.4), transparent),
    radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 3% 45%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 92% 78%, rgba(255,255,255,0.3), transparent);
  pointer-events: none; animation: starTwinkle 8s ease-in-out infinite alternate;
}
.flow-orbital-title {
  font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px;
  color: rgba(220,235,225,0.95); position: relative;
}
.flow-orbital-sub {
  font-size: 14px; text-align: center; margin-bottom: 16px;
  color: rgba(180,200,190,0.7); position: relative;
}
.flow-orbital-stat {
  text-align: center; margin: 0 auto; padding: 14px 24px; max-width: 600px;
  background: rgba(15,25,20,0.7); border: 1px solid rgba(110,231,160,0.1);
  border-radius: var(--radius-sm); font-size: 14px; color: rgba(180,200,190,0.7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); position: relative;
}
.flow-orbital-stat strong { color: #6ee7a0; }

/* Second orbital — node positions */
.orbital-system-2 { margin-top: 0; }
.o2-node-0 { top: 8%; left: 6%; }
.o2-node-1 { top: 4%; right: 4%; }
.o2-node-2 { bottom: 14%; left: 2%; }
.o2-node-3 { bottom: 10%; right: 2%; }

/* Node sub-label */
.node-info { display: flex; flex-direction: column; gap: 2px; }
.node-sub {
  font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(110,231,160,0.5);
}

/* ─── RESULTS ─── */
.results-section { }

/* Performance Overview Bar */
.perf-overview {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px 32px; margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.perf-period {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--subtext);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.perf-stats-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.perf-stat { text-align: center; flex: 1; min-width: 100px; }
.perf-val {
  display: block; font-size: 24px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; color: var(--text);
}
.perf-val.accent { color: var(--accent); }
.perf-val.win { color: var(--green); }
.perf-val.loss { color: var(--red); }
.perf-label {
  font-size: 10px; color: var(--subtext); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; margin-top: 2px;
}

/* Daily Breakdown Table */
.daily-table-wrap {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm); max-height: 480px; overflow-y: auto;
}
.daily-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--subtext); margin-bottom: 16px;
}
.daily-table { width: 100%; border-collapse: collapse; }
.daily-table th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--subtext); padding: 8px 16px;
  border-bottom: 2px solid var(--border-light);
}
.daily-table th:nth-child(2),
.daily-table th:nth-child(3),
.daily-table th:nth-child(4) { text-align: center; }
.daily-table td {
  padding: 10px 16px; font-family: 'JetBrains Mono', monospace; font-size: 13px;
  border-bottom: 1px solid var(--border-light); color: var(--text);
}
.daily-table td:nth-child(2),
.daily-table td:nth-child(3),
.daily-table td:nth-child(4) { text-align: center; }
.daily-table td.win { color: var(--green); font-weight: 600; }
.daily-table td.loss { color: var(--red); font-weight: 600; }
.daily-table tr:last-child td { border-bottom: none; }
.daily-table tr:hover { background: var(--bg2); }

/* Equity Curve */
.equity-curve-wrap {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.equity-curve-wrap canvas {
  width: 100%; height: 340px; display: block; border-radius: var(--radius-sm);
}

/* Quarterly Table extras */
.quarterly-table th:nth-child(4),
.quarterly-table th:nth-child(5),
.quarterly-table th:nth-child(6) { text-align: center; }
.quarterly-table td:nth-child(4),
.quarterly-table td:nth-child(5),
.quarterly-table td:nth-child(6) { text-align: center; }
.quarterly-table td.accent { color: var(--accent); font-weight: 600; }
.quarterly-table td.strong { font-weight: 800; }
.quarterly-table td.accent.strong { color: var(--accent2); font-weight: 800; font-size: 14px; }
.quarterly-table td.win.strong { font-weight: 800; font-size: 14px; }
.quarterly-table .highlight-row { background: var(--accent-dim); }
.quarterly-table .highlight-row td { border-bottom: 2px solid var(--accent); }
.quarterly-table tfoot .total-row td {
  font-weight: 700; border-top: 2px solid var(--border);
  border-bottom: none; padding-top: 14px; font-size: 14px;
}

.results-disclaimer {
  font-size: 13px; color: var(--subtext); max-width: 600px; margin: 8px auto 0;
}
.section-callout {
  text-align: center; font-size: 14px; color: var(--subtext); margin: 20px 0;
}
.results-note { text-align: center; }
.results-note p { font-size: 12px; color: var(--subtext); font-style: italic; max-width: 600px; margin: 0 auto; }

/* ─── SIGNAL HISTORY ─── */
.signal-history-section { background: var(--bg2); }
.signal-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; margin: 0 auto; }
.signal-row {
  display: grid; grid-template-columns: 70px 65px 1fr 90px 60px; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--surface); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); font-size: 14px; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px); transition: all 0.5s ease;
}
.signal-row.visible { opacity: 1; transform: translateY(0); }
.signal-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--subtext); }
.signal-dir { font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 4px; text-align: center; }
.signal-dir.bull { background: rgba(90, 158, 126, 0.1); color: var(--green); }
.signal-dir.bear { background: rgba(192, 96, 112, 0.1); color: var(--red); }
.signal-detail { font-size: 13px; color: var(--subtext); }
.signal-detail strong { color: var(--text); }
.signal-pnl { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; text-align: right; }
.signal-pnl.win { color: var(--green); }
.signal-pnl.loss { color: var(--red); }
.signal-result { font-size: 12px; text-align: center; font-weight: 600; }
.signal-result.win { color: var(--green); }
.signal-result.loss { color: var(--red); }
.signal-header {
  display: grid; grid-template-columns: 70px 65px 1fr 90px 60px; gap: 12px;
  padding: 8px 20px; font-size: 11px; color: var(--subtext); text-transform: uppercase;
  letter-spacing: 0.5px; font-weight: 600; max-width: 800px; margin: 0 auto 8px;
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  justify-items: center;
}
.features-grid .feature-card:nth-child(4),
.features-grid .feature-card:nth-child(5) {
  /* Center the bottom row of 2 cards */
}
/* For 5 cards: use a 6-col grid trick to center last 2 */
@supports (grid-template-columns: repeat(6, 1fr)) {
  .features-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .features-grid .feature-card { grid-column: span 2; }
  .features-grid .feature-card:nth-child(4) { grid-column: 2 / span 2; }
  .features-grid .feature-card:nth-child(5) { grid-column: 4 / span 2; }
}
.feature-card {
  padding: 28px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-light); text-align: center; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(30px); transition: all 0.6s ease;
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--subtext); line-height: 1.6; }

/* ─── PRICING ─── */
.pricing-section { background: var(--bg2); }
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; }
.toggle-label { font-size: 14px; color: var(--subtext); font-weight: 500; cursor: pointer; transition: color 0.2s; }
.toggle-label.active { color: var(--text); font-weight: 700; }
.save-badge { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--accent); color: #fff; font-weight: 700; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--surface2); border-radius: 26px; transition: 0.3s;
}
.toggle-slider:before {
  content: ''; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background: #fff; border-radius: 50%; transition: 0.3s;
}
input:checked + .toggle-slider { background: var(--accent); }
input:checked + .toggle-slider:before { transform: translateX(22px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  padding: 32px; background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border-light); position: relative; box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(30px); transition: all 0.6s ease;
}
.price-card.visible { opacity: 1; transform: translateY(0); }
.price-card.popular { border-color: var(--accent); box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent); transform: scale(1.02); }
.price-card.popular.visible { transform: scale(1.02); }
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.price-tier { font-size: 14px; font-weight: 700; color: var(--subtext); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.price-amount { margin-bottom: 8px; }
.price-dollar { font-size: 42px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.price-period { font-size: 14px; color: var(--subtext); }
.price-desc { font-size: 14px; color: var(--subtext); margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.price-features li { padding-left: 28px; position: relative; font-size: 14px; }
.price-features li.included::before { content: '\2713'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.price-features li.excluded { color: var(--subtext); opacity: 0.5; }
.price-features li.excluded::before { content: '\2014'; position: absolute; left: 0; color: var(--subtext); }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(20px); transition: all 0.5s ease;
}
.faq-item.visible { opacity: 1; transform: translateY(0); }
.faq-q {
  width: 100%; padding: 18px 20px; background: transparent; border: none;
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit; text-align: left;
}
.faq-q:hover { background: var(--bg2); }
.faq-arrow { font-size: 12px; color: var(--subtext); transition: transform 0.3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 20px 18px; font-size: 14px; color: var(--subtext); line-height: 1.7; }

/* ─── CTA ─── */
.cta-section {
  text-align: center; padding: 80px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
}
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-section p { color: var(--subtext); font-size: 16px; max-width: 560px; margin: 0 auto 32px; }

/* ─── FOOTER ─── */
.footer { background: var(--bg2); border-top: 1px solid var(--border-light); padding: 48px 0 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { flex: 1; min-width: 200px; }
.footer-tagline { color: var(--subtext); font-size: 13px; margin-top: 8px; }
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--subtext); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.footer-col a { color: var(--subtext); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: var(--subtext); margin-bottom: 4px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .perf-stats-row { gap: 12px; }
  .perf-val { font-size: 20px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .price-card.popular { transform: none; }
  .price-card.popular.visible { transform: none; }
  .footer-links { gap: 32px; }
  .orbital-system { height: 320px; max-width: 100%; }
  .node-0 { top: 6%; left: 2%; }
  .node-1 { top: 2%; right: 2%; }
  .node-2 { bottom: 8%; left: 0%; }
  .node-3 { bottom: 4%; right: 0%; }
  .o2-node-0 { top: 6%; left: 1%; }
  .o2-node-1 { top: 2%; right: 1%; }
  .o2-node-2 { bottom: 10%; left: 0%; }
  .o2-node-3 { bottom: 6%; right: 0%; }
  .node-label { font-size: 10px; }
  .node-sub { font-size: 8px; }
  .node-body { padding: 8px 12px; gap: 6px; }
  .node-icon { font-size: 16px; }
  .orbital-core { width: 70px; height: 70px; }
  .core-label { font-size: 9px; }
  .orbit-1 { width: 150px; height: 150px; }
  .orbit-2 { width: 230px; height: 230px; }
  .orbit-3 { width: 310px; height: 310px; }
  .signal-row { grid-template-columns: 60px 50px 1fr 80px; gap: 8px; }
  .signal-header { grid-template-columns: 60px 50px 1fr 80px; gap: 8px; }
  .signal-result { display: none; }
  /* Flow pipeline stacks vertically on tablet */
  .flow-pipeline { flex-direction: column; gap: 0; }
  .flow-connector { width: auto; height: 40px; flex-direction: row; }
  .flow-connector-line { width: 2px; height: 100%; background: linear-gradient(180deg, var(--border), var(--accent), var(--border)); }
  .flow-connector-line::after {
    right: auto; top: auto; bottom: -4px; left: -4px;
    border-left: 5px solid transparent; border-right: 5px solid transparent;
    border-top: 8px solid var(--accent); border-bottom: none;
  }
  .flow-reject-tag { margin-top: 0; margin-left: 12px; }
  .flow-stage { min-width: 200px; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--bg); padding: 16px 24px; flex-direction: column; gap: 16px;
    border-bottom: 1px solid var(--border-light); box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .mobile-menu { display: block; margin-left: auto; }
  .btn-nav { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr !important; }
  .features-grid .feature-card { grid-column: auto !important; }
  .hero { padding: 120px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .section { padding: 64px 0; }
  .orbital-system { height: 280px; }
  .orbit-3 { display: none; }
  .signal-row { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px; }
  .signal-header { display: none; }
  .signal-date { grid-column: 1 / -1; }
  .flow-stage { min-width: 160px; padding: 18px 16px; }
  .flow-stage-icon { font-size: 28px; }
}
