/* FX Ethics. Colors, type and cover texture match the FXCPE brand (fxcpe src/styles/homeV2.css, src/pages/overview.css). */
:root {
  --blue: #0088cc; --blue-rgb: 0,136,204; --blue-dk: #006699; --blue-lt: #33aadd; --blue-sky: #5cc0f5; --blue-xl: #e6f4fb;
  --navy: #071120; --ink: #0d1117; --slate: #5a7080; --body: #3a4954; --mist: #f0f6fa; --line: #dde3ed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-dk); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .14em; }
h1, h2, h3, h4 { font-family: 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
h4 { font-size: 17px; font-weight: 800; }
.eyebrow { font-size: 12px; color: var(--blue-lt); margin: 0 0 14px; }
.eyebrow.dk { color: var(--blue-dk); }
.sub { color: var(--slate); font-size: 17px; max-width: 720px; margin: 14px 0 0; }

/* hero */
.util { background: #040b16; color: rgba(255,255,255,.7); font-size: 12.5px; }
.util-in { max-width: 1224px; margin: 0 auto; padding: 7px 24px; display: flex; justify-content: space-between; gap: 12px; }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(7,17,32,.96); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar-in { max-width: 1224px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.brand span { color: var(--blue-lt); }
.foot .brand { color: #fff; }
.brand.sm { font-size: 22px; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav-links a:not(.btn) { color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links .btn { margin-left: 10px; }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(var(--blue-rgb),.09) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--blue-rgb),.09) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero { position: relative; background: linear-gradient(180deg, #f5f9fc 0%, #ffffff 100%); color: var(--ink); text-align: center; border-bottom: 1px solid var(--line); }
.hero-mid { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { font-size: 12px; letter-spacing: .2em; color: var(--blue-dk); margin-bottom: 20px; }
.hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; color: var(--ink); }
.hero h1 span { color: var(--blue); }
.lede { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--body); max-width: 620px; margin: 22px auto 0; }
.hero-search { margin-top: 34px; width: 100%; max-width: 680px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #c9d6e2; border-radius: 14px; padding: 8px 8px 8px 18px; box-shadow: 0 12px 32px rgba(13,17,23,.08); }
.hero-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-xl), 0 12px 32px rgba(13,17,23,.08); }
.hero-search > svg { width: 20px; height: 20px; fill: none; stroke: var(--slate); stroke-width: 2; stroke-linecap: round; flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 17px Inter, sans-serif; color: var(--ink); background: transparent; padding: 10px 0; }
.hero-search .btn { min-height: 48px; padding: 0 26px; font-size: 16px; }
.hero-alt { margin: 14px 0 0; font-size: 15px; color: var(--slate); }
.hero-alt a { color: var(--blue-dk); font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dk); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.line { color: var(--blue-dk); border-color: var(--line); background: #fff; }
.btn.line:hover { border-color: var(--blue); }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin-top: 24px; }
.fig { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 22px; display: flex; flex-direction: column; align-items: center; }
.fig-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-xl); color: var(--blue-dk); display: grid; place-items: center; }
.fig-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fig-n { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 14px; color: var(--ink); }
.fig-l { font-size: 15px; color: var(--body); margin-top: 4px; }
.map-box { margin-top: 28px; background: var(--mist); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
#map { display: block; width: 100%; height: auto; }
#map .dot circle { fill: rgba(0,136,204,.78); stroke: #fff; stroke-width: 1.5; }
.reglist { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px 32px; margin-top: 28px; }
.rg h4 { font-size: 11px; color: var(--blue-dk); letter-spacing: .14em; font-weight: 500; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rg h4 span { color: var(--slate); }
.rg ul { list-style: none; margin: 0 0 18px; padding: 0; }
.rg li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 14.5px; }
.rg li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.rg li a:hover { color: var(--blue-dk); text-decoration: underline; }
.rg .pl { grid-column: 1; color: var(--slate); font-size: 13px; }
.rg .ct { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink); }
.train { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 28px; align-items: start; }
.train-card { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: #fff; }
.train-top { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 10.5px; letter-spacing: .12em; color: var(--blue-dk); background: var(--blue-xl); border-radius: 999px; padding: 5px 10px; }
.tag.soft { color: var(--slate); background: var(--mist); }
.train-card h3 { font-size: 24px; margin-top: 14px; }
.train-sub { color: var(--slate); margin: 6px 0 14px; font-size: 15px; }
.train-card .ticks { margin-bottom: 20px; }
.train-note { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.train-note h3 { font-size: 18px; margin-bottom: 12px; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
ul.plain li { font-size: 15px; color: var(--body); line-height: 1.55; }
ul.plain b { color: var(--ink); }
.two-col.three-col { grid-template-columns: repeat(3, 1fr); }
.panel.aims { background: var(--blue-xl); border-color: #cfe6f3; }
.mini-h { font-size: 13px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .14em; color: var(--slate); font-weight: 500; margin: 30px 0 -8px; }
.steps.sm li { font-size: 15px; }
.stats-src { font-size: 10.5px; color: var(--slate); margin: 16px auto 0; letter-spacing: .1em; }
.flags-band { margin-top: 44px; background: #fff; border-top: 1px solid var(--line); padding: 34px 0 38px; }
.flags-h { font-size: 11px; letter-spacing: .18em; color: var(--slate); margin: 0 0 18px; }
.flags { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1060px; }
.flags li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); background: #fff; }
.flags .fi { width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(13,17,23,.1); background-size: cover; }
.flags .globe { width: 24px; height: 18px; display: grid; place-items: center; color: var(--blue-dk); }
.flags .globe svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.flags-more { display: inline-block; margin-top: 20px; color: var(--blue-dk); font-weight: 600; font-size: 15px; }

/* sections */
.sec { padding: 80px 0; position: relative; }
.sec.alt { background: var(--mist); }
.sec.dark { background: var(--navy); color: #fff; overflow: hidden; }
.sec.dark .sub { color: rgba(255,255,255,.72); }
.rel { position: relative; z-index: 1; }
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.prose p { margin: 0 0 14px; color: var(--body); font-size: 17px; }

/* register */
.status { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 26px 0 0; color: var(--body); font-size: 15px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); margin-top: 7px; flex: none; box-shadow: 0 0 0 4px var(--blue-xl); }
.filters { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-top: 22px; }
.filters label { display: flex; flex-direction: column; gap: 6px; }
.filters label > span { font-size: 11px; color: var(--slate); }
input, select { font: 15px Inter, sans-serif; color: var(--ink); min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.count { font-size: 12px; color: var(--slate); margin: 14px 0 8px; letter-spacing: .08em; }
.table-box { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 720px; }
th { text-align: left; background: #f8fafc; border-bottom: 1px solid var(--line); padding: 0; }
th button, th.plain { font: 500 11px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); background: none; border: 0; padding: 12px 14px; text-align: left; }
th button { cursor: pointer; width: 100%; }
th:nth-child(1) { width: 36%; } th:nth-child(2) { width: 20%; } th:nth-child(3) { width: 22%; } th:nth-child(4) { width: 12%; }
td:nth-child(4) { white-space: nowrap; }
th button.on { color: var(--blue-dk); }
th button.on::after { content: ' \2193'; }
th button.on.asc::after { content: ' \2191'; }
td { padding: 11px 14px; border-bottom: 1px solid #eef2f6; vertical-align: top; color: var(--body); }
td:first-child { color: var(--ink); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td .reg { color: var(--slate); font-size: 13px; }
.empty td { text-align: center; color: var(--slate); padding: 28px; }
.more-row { text-align: center; margin-top: 16px; }
.mix { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.bars { display: grid; gap: 10px; margin-top: 16px; }
.bar { display: grid; grid-template-columns: 260px 1fr 64px; gap: 14px; align-items: center; font-size: 14px; color: var(--body); }
.bar .track { height: 12px; background: #eef2f6; border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--blue); border-radius: 6px; }
.bar.hi .fill { background: #c26a00; }
.bar.hi .lab { color: var(--ink); font-weight: 600; }
.bar .v { text-align: right; font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink); }
.mix-note { font-size: 14px; color: var(--body); margin: 14px 0 0; }
.credit { font-size: 13px; color: var(--slate); margin: 22px 0 0; }

/* cards */
.cards { display: grid; gap: 16px; margin-top: 34px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; }
.card p { margin: 8px 0 0; font-size: 15px; color: var(--body); line-height: 1.55; }
.card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-xl); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .ic svg { width: 24px; height: 24px; }
.cards.dk .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.cards.dk .card p { color: rgba(255,255,255,.75); }
.card .n { font-size: 13px; color: var(--blue-sky); margin-bottom: 10px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--mist); border-radius: 14px; padding: 24px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; color: var(--body); font-size: 15.5px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 14px; height: 8px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.founding { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; color: var(--body); }

/* roadmap */
.road-h { margin-top: 48px; }
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.step { border-top: 3px solid var(--blue); padding-top: 14px; }
.step .when { font-size: 12px; color: var(--blue-sky); }
.step ul { margin: 10px 0 0; padding-left: 18px; color: rgba(255,255,255,.8); font-size: 15px; }
.step li { margin: 5px 0; }

/* list your firm */
.sec#list .btn { margin-top: 24px; }
.steps { margin: 0; padding-left: 22px; color: var(--body); font-size: 16px; }
.steps li { margin: 0 0 14px; padding-left: 4px; }
.steps b { color: var(--ink); }
.fine { font-size: 13.5px; color: var(--slate); margin: 6px 0 0; }

/* footer */
.foot { background: var(--navy); color: rgba(255,255,255,.7); padding: 36px 0; }
.foot-row { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.foot-sub { font-size: 13px; margin-top: 4px; }
.foot-note { max-width: 560px; font-size: 13px; margin: 0; }
.foot a:not(.brand) { color: var(--blue-sky); }

@media (max-width: 960px) {
  .stats, .cards.four { grid-template-columns: repeat(2, 1fr); }
  .two, .two-col, .road { grid-template-columns: 1fr; gap: 28px; }
  .filters { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr 64px; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
  .reglist { grid-template-columns: 1fr 1fr; }
  .train { grid-template-columns: 1fr; }
  .two-col.three-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats, .cards.four { grid-template-columns: 1fr; }
  .sec { padding: 56px 0; }
  .hero-mid { padding-top: 28px; }
  .nav-links a:not(.btn) { padding: 8px 6px; font-size: 14px; }
  .nav-links .btn { margin-left: 4px; }
  .nav-links a[href="#strategy"] { display: none; }
  .reglist { grid-template-columns: 1fr; }
  .figures { grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: none; }
  .fig { padding: 16px 6px 14px; border-radius: 12px; }
  .fig-ic { display: none; }
  .fig-n { font-size: 28px; margin-top: 0; }
  .fig-l { font-size: 12.5px; line-height: 1.35; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .12em; }
  .util-r { display: none; }
  .hero-search .btn { padding: 0 16px; }
  .nav-links a[href="#registers"], .nav-links a[href="#about"], .nav-links a[href="#training"] { display: none; }
  .cta { width: 100%; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
