.fxcp-page {
  --fxcp-bg: #0d1117;
  --fxcp-surface: #161b22;
  --fxcp-surface-2: #21262d;
  --fxcp-border: rgba(80, 90, 102, 0.45);
  --fxcp-border-strong: rgba(120, 132, 148, 0.68);
  --fxcp-text: #f0f6fc;
  --fxcp-body: #cdd9e5;
  --fxcp-muted: #94a3b8;
  --fxcp-cyan: #00e5ff;
  --fxcp-green: #00ff9c;
  --fxcp-pink: #ff4d9d;
  --fxcp-yellow: #ffd60a;
  background: var(--fxcp-bg);
  color: var(--fxcp-body);
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

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

.fxcp-page a {
  color: inherit;
}

.fxcp-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.fxcp-narrow {
  max-width: 940px;
}

.fxcp-hero {
  border-bottom: 1px solid var(--fxcp-border);
  background: linear-gradient(135deg, #0d1117 0%, #111820 50%, #161b22 100%);
}

.fxcp-hero-inner {
  padding-top: 3.4rem;
  padding-bottom: 3.2rem;
}

.fxcp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1.4rem;
  align-items: stretch;
}

.fxcp-kicker {
  color: var(--fxcp-green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fxcp-title {
  margin: 0.7rem 0 0;
  color: var(--fxcp-text);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.fxcp-title-article {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
}

.fxcp-lead {
  margin: 1rem 0 0;
  max-width: 820px;
  color: var(--fxcp-body);
  font-size: 1.05rem;
  line-height: 1.75;
}

.fxcp-meta-line {
  margin-top: 0.8rem;
  color: var(--fxcp-muted);
  font-size: 0.92rem;
}

.fxcp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.fxcp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--fxcp-text);
  font-weight: 780;
  text-decoration: none;
}

.fxcp-button:hover {
  border-color: rgba(0, 229, 255, 0.56);
  background: rgba(0, 229, 255, 0.14);
  text-decoration: none;
}

.fxcp-button-primary {
  border-color: var(--fxcp-green);
  background: var(--fxcp-green);
  color: #061014;
}

.fxcp-button-primary:hover {
  background: #00e88f;
  color: #061014;
}

.fxcp-hero-panel,
.fxcp-tool-panel,
.fxcp-card,
.fxcp-callout {
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: var(--fxcp-surface);
}

.fxcp-hero-panel {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.fxcp-panel-label {
  color: var(--fxcp-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fxcp-panel-value {
  margin-top: 0.45rem;
  color: var(--fxcp-text);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.fxcp-panel-copy {
  margin: 0.8rem 0 0;
  color: var(--fxcp-body);
  line-height: 1.65;
}

.fxcp-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.fxcp-stat {
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: rgba(33, 38, 45, 0.8);
  padding: 0.95rem;
}

.fxcp-stat dt {
  color: var(--fxcp-muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fxcp-stat dd {
  margin: 0.34rem 0 0;
  color: var(--fxcp-text);
  font-size: 1.35rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.fxcp-stat dd.up {
  color: var(--fxcp-green);
}

.fxcp-stat dd.down {
  color: var(--fxcp-pink);
}

.fxcp-section {
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(80, 90, 102, 0.24);
}

.fxcp-section:last-child {
  border-bottom: 0;
  padding-bottom: 4rem;
}

.fxcp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.fxcp-section h2 {
  margin: 0;
  color: var(--fxcp-text);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.25;
}

.fxcp-section-copy {
  margin: 0.45rem 0 0;
  max-width: 760px;
  color: var(--fxcp-muted);
  line-height: 1.65;
}

.fxcp-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: 1rem;
  align-items: start;
}

.fxcp-prose {
  color: var(--fxcp-body);
  line-height: 1.78;
  font-size: 1rem;
}

.fxcp-prose p {
  margin: 0 0 1rem;
}

.fxcp-prose p:last-child {
  margin-bottom: 0;
}

.fxcp-callout {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(22, 27, 34, 0.98), rgba(33, 38, 45, 0.9));
}

.fxcp-list {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.fxcp-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--fxcp-body);
  line-height: 1.55;
}

.fxcp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--fxcp-cyan);
}

.fxcp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.fxcp-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fxcp-card {
  min-height: 12rem;
  padding: 1rem;
  background: var(--fxcp-surface-2);
}

.fxcp-card h3 {
  margin: 0;
  color: var(--fxcp-text);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.28;
}

.fxcp-card p {
  margin: 0.65rem 0 0;
  color: var(--fxcp-body);
  font-size: 0.9rem;
  line-height: 1.58;
}

.fxcp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.fxcp-chip {
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.07);
  color: var(--fxcp-body);
  padding: 0.22rem 0.58rem;
  font-size: 0.75rem;
  font-weight: 760;
}

.fxcp-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.fxcp-link {
  color: var(--fxcp-cyan);
  font-weight: 780;
  text-decoration: none;
}

.fxcp-link:hover {
  text-decoration: underline;
}

.fxcp-filter {
  width: 100%;
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: #0d1117;
  color: var(--fxcp-text);
  padding: 0.85rem 1rem;
}

.fxcp-filter::placeholder {
  color: var(--fxcp-muted);
}

.fxcp-groups {
  display: grid;
  gap: 1.4rem;
  margin-top: 1rem;
}

.fxcp-group-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--fxcp-border);
  color: var(--fxcp-text);
  font-weight: 850;
}

.fxcp-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: var(--fxcp-surface);
}

.fxcp-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.fxcp-table th {
  padding: 0.78rem;
  border-bottom: 1px solid var(--fxcp-border);
  background: var(--fxcp-surface-2);
  color: var(--fxcp-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.fxcp-table td {
  padding: 0.85rem 0.78rem;
  border-bottom: 1px solid rgba(80, 90, 102, 0.3);
  color: var(--fxcp-body);
  vertical-align: top;
}

.fxcp-table tr:last-child td {
  border-bottom: 0;
}

.fxcp-name {
  color: var(--fxcp-text);
  font-weight: 850;
}

.fxcp-sub {
  margin-top: 0.18rem;
  color: var(--fxcp-muted);
  font-size: 0.84rem;
}

.fxcp-mono,
.fxcp-code {
  font-family: "IBM Plex Mono", Consolas, monospace;
}

.fxcp-code {
  display: block;
  margin-top: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: #0d1117;
  color: var(--fxcp-text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.fxcp-chart-wrap {
  height: 360px;
  padding: 0.75rem;
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: #0d1117;
}

.fxcp-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.fxcp-side-stack {
  display: grid;
  gap: 0.85rem;
}

.fxcp-side-item {
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: var(--fxcp-surface-2);
  padding: 0.85rem;
}

.fxcp-side-title {
  color: var(--fxcp-text);
  font-weight: 850;
  line-height: 1.35;
}

.fxcp-side-meta {
  margin-top: 0.26rem;
  color: var(--fxcp-muted);
  font-size: 0.84rem;
}

.fxcp-empty {
  border: 1px dashed var(--fxcp-border-strong);
  border-radius: 8px;
  padding: 1rem;
  color: var(--fxcp-muted);
}

.fxcp-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fxcp-json {
  margin-top: 1rem;
  overflow: auto;
  max-height: 32rem;
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: #0d1117;
  color: var(--fxcp-body);
  padding: 1rem;
  font-size: 0.82rem;
}

.fxcp-faq {
  display: grid;
  gap: 0.65rem;
}

.fxcp-faq details {
  border: 1px solid var(--fxcp-border);
  border-radius: 8px;
  background: var(--fxcp-surface);
  padding: 0.85rem 1rem;
}

.fxcp-faq summary {
  cursor: pointer;
  color: var(--fxcp-text);
  font-weight: 820;
}

.fxcp-faq p {
  margin: 0.65rem 0 0;
  color: var(--fxcp-body);
  line-height: 1.65;
}

@media (max-width: 1060px) {
  .fxcp-hero-grid,
  .fxcp-editorial-grid,
  .fxcp-main-grid {
    grid-template-columns: 1fr;
  }

  .fxcp-grid,
  .fxcp-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fxcp-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .fxcp-shell {
    padding: 0 0.85rem;
  }

  .fxcp-hero-inner {
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
  }

  .fxcp-actions {
    flex-direction: column;
  }

  .fxcp-button {
    width: 100%;
  }

  .fxcp-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .fxcp-grid,
  .fxcp-grid-3,
  .fxcp-stat-strip {
    grid-template-columns: 1fr;
  }

  .fxcp-chart-wrap {
    height: 280px;
  }
}
