/* onyx-trader.com. Static, no build. Tokens first; every colour used in text passes WCAG AA on --bg. */
:root {
  color-scheme: dark;
  --bg: #050608;
  --bg-2: #08090c;
  --panel: #0d0f13;
  --panel-2: #12151a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #eceef1;
  --text-2: #b6bac2;
  --muted: #8a8f99;
  --gold: #e2b25e;
  --gold-hi: #f7dfa3;
  --gold-lo: #a8701f;
  --silver: #c9ccd2;
  --buy: #3ad6a3;
  --sell: #ff6b78;
  --grad-gold: linear-gradient(100deg, #a8701f 0%, #e2b25e 28%, #f8e3aa 50%, #d6a04b 72%, #95601a 100%);
  --grad-silver: linear-gradient(180deg, #fbfbfc 0%, #c8cbd1 48%, #8d8c93 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(226, 178, 94, 0.35); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--gold); color: #120d05; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.gold-text {
  background: var(--grad-gold);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}
.silver-text { background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 200% 0; } }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.solid, .nav:has(details[open]) {
  background: rgba(5, 6, 8, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 82px; height: 48px; }
.navlinks { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; color: var(--text-2); }
.navlinks a { position: relative; padding: 6px 0; transition: color 0.2s; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--text); }
.navlinks a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--grad-gold); }
.navright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.signin { font-size: 14.5px; color: var(--text-2); padding: 8px 10px; transition: color 0.2s; }
.signin:hover { color: var(--text); }
.navmenu { display: none; position: relative; }
.navmenu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary i, .navmenu summary i::before, .navmenu summary i::after { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; position: relative; transition: transform 0.25s var(--ease), background 0.2s; }
.navmenu summary i::before, .navmenu summary i::after { content: ""; position: absolute; left: 0; }
.navmenu summary i::before { top: -5px; }
.navmenu summary i::after { top: 5px; }
.navmenu[open] summary i { background: transparent; }
.navmenu[open] summary i::before { transform: translateY(5px) rotate(45deg); }
.navmenu[open] summary i::after { transform: translateY(-5px) rotate(-45deg); }
.navmenu-panel {
  position: fixed; left: 0; right: 0; top: 72px;
  padding: 10px var(--gutter) 22px;
  background: rgba(5, 6, 8, 0.96);
  border-bottom: 1px solid var(--line);
  display: grid;
}
.navmenu-panel a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text-2); }
.navmenu-panel a:last-child { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
  position: relative; isolation: isolate;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-gold { color: #140e05; background: var(--grad-gold); background-size: 160% 100%; box-shadow: 0 0 0 1px rgba(248, 227, 170, 0.35) inset, 0 10px 30px -10px rgba(226, 178, 94, 0.55); }
.btn-gold::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; z-index: -1; }
.btn-gold:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 0 0 1px rgba(248, 227, 170, 0.55) inset, 0 16px 40px -12px rgba(226, 178, 94, 0.75); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(226, 178, 94, 0.55); background: rgba(226, 178, 94, 0.06); transform: translateY(-1px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: center; padding: 120px 0 72px; overflow: hidden; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art canvas { width: 100%; height: 100%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.97) 0%, rgba(5, 6, 8, 0.9) 34%, rgba(5, 6, 8, 0.55) 52%, rgba(5, 6, 8, 0.1) 70%, rgba(5, 6, 8, 0) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.85) 0%, rgba(5, 6, 8, 0) 22%, rgba(5, 6, 8, 0) 70%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; left: -320px; top: -260px;
  background: radial-gradient(closest-side, rgba(226, 178, 94, 0.14), rgba(226, 178, 94, 0));
}
.hero-copy { max-width: 920px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
  padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid rgba(226, 178, 94, 0.28); background: rgba(226, 178, 94, 0.06);
}
.eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(226, 178, 94, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(226, 178, 94, 0); } }
.hero h1 { font-size: clamp(40px, 6vw, 80px); margin: 26px 0 22px; font-weight: 600; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero .lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--text-2); max-width: 600px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 34px; font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.platforms span { display: inline-flex; align-items: center; gap: 8px; }
.platforms span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(226, 178, 94, 0.6); margin-right: 10px; }
.art-note { position: absolute; right: var(--gutter); bottom: 22px; font: 500 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(138, 143, 153, 0.75); }

/* ---------- sections ---------- */
section { position: relative; }
.band { padding: clamp(64px, 8vw, 112px) 0; }
.band-tight { padding: clamp(56px, 7vw, 88px) 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--grad-gold); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .kicker::after { content: ""; width: 26px; height: 1px; background: var(--grad-gold); }
.head h2 { font-size: clamp(32px, 4.6vw, 56px); margin: 18px 0 16px; }
.head p { color: var(--text-2); font-size: clamp(16px, 1.4vw, 18px); max-width: 640px; }
.head.center p { margin-left: auto; margin-right: auto; }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 178, 94, 0.35), transparent); border: 0; margin: 0; }

/* ---------- glass card with a cursor-following gold rim ---------- */
.card {
  --mx: 50%; --my: 0%;
  position: relative; border-radius: var(--radius); padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--panel);
  border: 1px solid var(--line);
  overflow: hidden; isolation: isolate;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(247, 223, 163, 0.55), rgba(226, 178, 94, 0.12) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(226, 178, 94, 0.07), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card h3 { font-size: 21px; margin: 18px 0 10px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.card .tag { display: inline-flex; font: 500 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding: 6px 9px; border-radius: 999px; border: 1px solid rgba(226, 178, 94, 0.3); background: rgba(226, 178, 94, 0.06); }
.card .tag.silver { color: var(--silver); border-color: rgba(201, 204, 210, 0.25); background: rgba(201, 204, 210, 0.05); }
.icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(247, 223, 163, 0.16), rgba(168, 112, 31, 0.06));
  border: 1px solid rgba(226, 178, 94, 0.28);
  color: var(--gold-hi);
}
.icon svg { width: 22px; height: 22px; }
.card-art { margin: -28px -28px 6px; height: 200px; border-bottom: 1px solid var(--line); background: #07080b; position: relative; overflow: hidden; }
.card-art canvas { width: 100%; height: 100%; }

.card-art.tall { height: 270px; }
.card-art .ladder { height: 100%; }
.card-art .ladder-rows { padding: 2px 0; }
.card-art .ladder-row { height: 22px; }

/* ---------- connection hub ---------- */
.hub { position: relative; height: 150px; margin-bottom: 4px; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub path { fill: none; stroke: rgba(226, 178, 94, 0.28); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hub path.flow { stroke: url(#hubGold); stroke-width: 2; stroke-dasharray: 10 190; animation: flow 3.2s linear infinite; }
.hub path.flow:nth-of-type(odd) { animation-delay: -1.1s; }
@keyframes flow { to { stroke-dashoffset: -200; } }
.hub-core { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 132px; height: 78px; border-radius: 22px; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(226, 178, 94, 0.18), rgba(226, 178, 94, 0) 100%), var(--panel); border: 1px solid rgba(226, 178, 94, 0.4); box-shadow: 0 0 60px -10px rgba(226, 178, 94, 0.45); }
.hub-core img { width: 88px; height: 52px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento > .card { grid-column: span 2; }
.bento > .card.wide { grid-column: span 3; }
.bento > .card.xl { grid-column: span 4; }

/* ---------- terminal showcase ---------- */
.showcase { position: relative; margin-top: clamp(-40px, -3vw, -20px); }
.terminal {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line-2);
  background: #07080b;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(226, 178, 94, 0.08), 0 30px 90px -50px rgba(226, 178, 94, 0.35);
}
.terminal::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%); }
.t-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0a0c10; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.t-dots { display: flex; gap: 7px; }
.t-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a2d33; }
.t-url { flex: 1; display: flex; justify-content: center; }
.t-url span { padding: 7px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.t-body { display: grid; grid-template-columns: 1fr 268px; min-height: 470px; }
.t-chart { position: relative; border-right: 1px solid var(--line); min-height: 470px; }
.t-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-chart .t-sym { position: absolute; left: 16px; top: 14px; z-index: 2; font: 500 12px/1.4 var(--font-mono); color: var(--text-2); }
.t-chart .t-sym b { color: var(--text); font-weight: 600; margin-right: 8px; }
.t-side { display: flex; flex-direction: column; background: #090a0e; }
.t-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.t-actions span { height: 38px; border-radius: 9px; display: grid; place-items: center; font: 600 12.5px/1 var(--font-mono); letter-spacing: 0.04em; }
.t-actions .b { background: rgba(58, 214, 163, 0.14); color: var(--buy); border: 1px solid rgba(58, 214, 163, 0.35); }
.t-actions .s { background: rgba(255, 107, 120, 0.12); color: var(--sell); border: 1px solid rgba(255, 107, 120, 0.35); }
.t-actions .f { grid-column: span 2; background: rgba(255, 255, 255, 0.04); color: var(--text-2); border: 1px solid var(--line-2); }
.callouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.callouts div { background: var(--bg-2); padding: 18px 20px; }
.callouts b { display: block; font: 600 14px/1.3 var(--font-display); color: var(--text); margin-bottom: 4px; }
.callouts span { font-size: 13.5px; color: var(--muted); }

/* ---------- DOM ladder (illustration) ---------- */
.ladder { font: 500 12.5px/1 var(--font-mono); flex: 1; display: flex; flex-direction: column; }
.ladder-head, .ladder-row { display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; }
.ladder-head { height: 32px; padding: 0 10px; color: var(--muted); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.ladder-head span:nth-child(1) { text-align: left; }
.ladder-head span:nth-child(2) { text-align: center; }
.ladder-head span:nth-child(3) { text-align: right; }
.ladder-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 0; }
.ladder-row { height: 25px; padding: 0 10px; position: relative; }
.ladder-row .px { text-align: center; color: var(--text-2); position: relative; z-index: 1; }
.ladder-row .bid, .ladder-row .ask { position: relative; z-index: 1; color: var(--text); transition: opacity 0.3s; }
.ladder-row .bid { text-align: left; }
.ladder-row .ask { text-align: right; }
.ladder-row .bar { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; transition: width 0.45s var(--ease), opacity 0.3s; }
.ladder-row .bar.b { left: 6px; background: linear-gradient(90deg, rgba(58, 214, 163, 0.32), rgba(58, 214, 163, 0.06)); }
.ladder-row .bar.a { right: 6px; background: linear-gradient(270deg, rgba(255, 107, 120, 0.3), rgba(255, 107, 120, 0.05)); }
.ladder-row.inside .px { color: var(--gold-hi); }
.ladder-row.inside { background: rgba(226, 178, 94, 0.06); }
.ladder-row.last .px::before { content: ""; position: absolute; left: 6px; right: 6px; top: -4px; bottom: -4px; border: 1px solid rgba(226, 178, 94, 0.55); border-radius: 5px; }
.ladder.l1 .ladder-row:not(.best) .bid, .ladder.l1 .ladder-row:not(.best) .ask { opacity: 0; }
.ladder.l1 .ladder-row:not(.best) .bar { opacity: 0; }
.ladder-row .flash { animation: flash 0.6s ease-out; }
@keyframes flash { from { color: var(--gold-hi); } to { color: inherit; } }

/* ---------- order-flow upgrade band ---------- */
.upgrade {
  position: relative; border-radius: 28px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(226, 178, 94, 0.28);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(226, 178, 94, 0.18), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(201, 204, 210, 0.07), transparent 60%),
    linear-gradient(180deg, #0f0d09, #08080a);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
}
.upgrade h2 { font-size: clamp(30px, 4vw, 50px); margin: 18px 0 16px; }
.upgrade p { color: var(--text-2); font-size: 17px; }
.upgrade ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.upgrade li { display: flex; gap: 12px; color: var(--text); font-size: 15.5px; }
.upgrade li svg { flex: none; width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hi); }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--buy); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 14px var(--buy); }
.upgrade-art { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: #07080b; overflow: hidden; }
.upgrade-art .ladder { min-height: 380px; }
.toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); }
.toggle button { appearance: none; border: 0; background: transparent; color: var(--text-2); font: 600 12.5px/1 var(--font-mono); letter-spacing: 0.06em; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background 0.25s, color 0.25s; }
.toggle button[aria-pressed="true"] { background: var(--grad-gold); color: #140e05; }
.art-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.art-top small { font: 500 11px/1.3 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.art-foot { padding: 12px 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); min-height: 58px; }

/* ---------- connections, apps, firms ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.conn { padding: 24px; }
.conn .mark { font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; }
.conn p { margin-top: 10px; font-size: 14.5px; }
.app-tile { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.app-tile .row { display: flex; align-items: center; justify-content: space-between; }
.app-tile h3 { margin: 0; font-size: 19px; }
.app-tile .go { font-size: 14px; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.app-tile .go svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.app-tile:hover .go svg { transform: translateX(3px); }
.marquee { position: relative; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.firm { flex: none; display: flex; align-items: center; gap: 12px; padding: 18px 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font: 600 17px/1 var(--font-display); color: var(--text); letter-spacing: -0.01em; white-space: nowrap; }
.firm i { width: 9px; height: 9px; border-radius: 3px; background: var(--grad-gold); transform: rotate(45deg); }
.note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.center { text-align: center; }

/* ---------- stats strip ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 30px 24px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font: 600 clamp(30px, 3.6vw, 44px)/1 var(--font-display); letter-spacing: -0.03em; margin-bottom: 10px; }
.facts span { color: var(--text-2); font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px 28px; }
.step::marker { content: none; }
.step .num { font: 600 13px/1 var(--font-mono); color: var(--gold); letter-spacing: 0.1em; }
.step h3 { margin-top: 18px; }

/* ---------- footprint stage ---------- */
.fp-stage { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #06070a; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 30px 90px -60px rgba(226, 178, 94, 0.4); }
.fp-stage canvas { width: 100%; height: clamp(360px, 46vw, 560px); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 16px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.detectors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.detectors h3 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; font-size: 18px; }
.detectors h3 small { font: 500 12px/1 var(--font-mono); color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-size: 12.5px; color: var(--text-2); padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 500 11.5px/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
td { color: var(--text-2); }
.yes { color: var(--buy); font-weight: 600; }

/* ---------- feature rows (features page) ---------- */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; }
.frow.flip > :first-child { order: 2; }
.frow h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 16px 0 14px; }
.frow p { color: var(--text-2); font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; }
.ticks a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(247, 223, 163, 0.35); text-underline-offset: 3px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.visual { position: relative; border-radius: 20px; border: 1px solid var(--line-2); background: #07080b; overflow: hidden; min-height: 320px; }
.visual canvas { width: 100%; height: 340px; }
.visual .ladder { min-height: 340px; }

/* ---------- features page mocks ---------- */
.profiles { display: grid; gap: 10px; padding: 22px; }
.profile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.profile b { font: 600 14.5px/1.2 var(--font-display); }
.profile small { display: block; color: var(--muted); font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .04em; margin-top: 3px; }
.profile .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 4px rgba(58,214,163,.14); }
.profile .feed { margin-left: auto; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.profile.on { border-color: rgba(226,178,94,.45); background: rgba(226,178,94,.06); }
.risk { padding: 26px; display: grid; gap: 22px; }
.meter span { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); margin-bottom: 9px; }
.meter span b { font: 600 12px/1 var(--font-mono); color: var(--text); letter-spacing: .06em; }
.meter i { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter i::after { content: ""; display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--c); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { font: 600 12px/1 var(--font-mono); letter-spacing: .04em; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text-2); }
.pills span.sel { border-color: rgba(226,178,94,.55); color: var(--gold-hi); background: rgba(226,178,94,.08); }
.cal { padding: 24px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal i { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.cal i.g { background: rgba(58,214,163,.22); border-color: rgba(58,214,163,.35); }
.cal i.r { background: rgba(255,107,120,.18); border-color: rgba(255,107,120,.3); }
.cal i.x { opacity: .35; }
.cal-head { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 2px; font: 600 clamp(17px, 1.6vw, 19px)/1.35 var(--font-display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .a { padding: 0 2px 24px; color: var(--text-2); max-width: 760px; }
.faq .a p:last-child { margin: 0; }
.faq a, .prose a, .legal a { color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(247, 223, 163, 0.35); text-underline-offset: 3px; }

/* ---------- final CTA ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: 32px; border: 1px solid rgba(226, 178, 94, 0.25);
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  background: radial-gradient(70% 120% at 50% 0%, rgba(226, 178, 94, 0.22), transparent 60%), linear-gradient(180deg, #0f0d0a, #070709);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask: radial-gradient(60% 80% at 50% 30%, #000, transparent); mask: radial-gradient(60% 80% at 50% 30%, #000, transparent); }
.cta h2 { font-size: clamp(34px, 5.4vw, 66px); margin: 0 auto 18px; max-width: 900px; }
.cta p { color: var(--text-2); font-size: 18px; max-width: 620px; margin: 0 auto; }
.cta .actions { justify-content: center; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(140px, 16vw, 200px) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 60% at 50% 0%, rgba(226, 178, 94, 0.16), transparent 70%); }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: 0.45; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(70% 70% at 50% 0%, #000, transparent); mask: radial-gradient(70% 70% at 50% 0%, #000, transparent); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 78px); letter-spacing: -0.035em; margin: 22px 0 20px; max-width: 980px; }
.page-hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 680px; }
.crumbs { font: 500 12px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: rgba(226, 178, 94, 0.6); }

/* ---------- legal ---------- */
.legal { max-width: 820px; margin: 0 auto; color: var(--text-2); font-size: 15.5px; }
.legal h2 { font-size: 20px; color: var(--text); margin: 40px 0 14px; letter-spacing: -0.01em; }
.legal h3 { font-size: 17px; color: var(--text); margin: 28px 0 10px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin: 6px 0; }
.legal .updated { font: 500 12.5px/1 var(--font-mono); color: var(--muted); letter-spacing: 0.06em; }
.legal-note { max-width: 820px; margin: 0 auto 36px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; color: var(--text-2); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 120px); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(226, 178, 94, 0.025)); }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot img { width: 96px; height: 56px; }
.foot p { color: var(--muted); font-size: 14px; max-width: 340px; margin-top: 16px; }
.foot h4 { font: 500 11.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 14.5px; }
.foot ul a { color: var(--muted); transition: color 0.2s; }
.foot ul a:hover { color: var(--text); }
.fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.fine p { margin: 0; }

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost h1 { font-size: clamp(90px, 18vw, 200px); letter-spacing: -0.06em; line-height: 0.9; }
.lost p { color: var(--text-2); font-size: 18px; margin: 18px auto 30px; max-width: 520px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .navlinks { gap: 20px; }
  .bento > .card, .bento > .card.wide { grid-column: span 3; }
  .bento > .card.xl { grid-column: span 6; }
  .detectors { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .navlinks, .signin { display: none; }
  .navmenu { display: block; }
  .t-body { grid-template-columns: 1fr; }
  .t-chart { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .t-side .ladder-rows { max-height: 260px; overflow: hidden; }
  .hub { display: none; }
  .callouts, .grid-4, .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .upgrade { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; }
  .frow.flip > :first-child { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav .wrap { height: 64px; gap: 12px; }
  .navmenu-panel { top: 64px; }
  .brand img { width: 68px; height: 40px; }
  .navright .btn-sm { padding: 0 14px; }
  .hero { padding-top: 104px; padding-bottom: 230px; min-height: auto; }
  .hero::before { background: linear-gradient(180deg, rgba(5, 6, 8, 0.9) 0%, rgba(5, 6, 8, 0.84) 58%, rgba(5, 6, 8, 0.2) 80%, rgba(5, 6, 8, 0.35) 92%, var(--bg) 100%); }
  .actions .btn { flex: 1 1 100%; }
  .bento > .card, .bento > .card.wide, .bento > .card.xl { grid-column: span 6; }
  .grid-2, .detectors { grid-template-columns: 1fr; }
  .callouts { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .card-art { margin: -24px -24px 6px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .art-note { left: var(--gutter); right: auto; }
  .upgrade { border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---- Real product imagery (scripts/onyx-site/build-product-shots.mjs: captures from demo accounts). The frame tilts
   back and settles flat as it scrolls into view where the browser supports scroll-driven animation; everywhere else,
   and under reduced motion, it simply sits flat. ---- */
.terminal.shot { perspective: none; }
.shot-img { display: block; width: 100%; height: auto; background: #07080b; }
.shot-stage { perspective: 1600px; }
.shot-tilt { transform-origin: 50% 100%; will-change: transform; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shot-tilt { animation: shot-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
  }
}
@keyframes shot-settle {
  from { transform: rotateX(18deg) scale(0.94) translateY(30px); opacity: 0.35; filter: saturate(0.7); }
  to { transform: none; opacity: 1; filter: none; }
}
.shot-glow { position: absolute; inset: auto 8% -60px; height: 160px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(226, 178, 94, 0.28), transparent 70%); filter: blur(20px); }
.shot-caption { margin: 12px 0 0; text-align: center; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.visual.has-shot { min-height: 0; background: #07080b; }
.visual.has-shot img { width: 100%; height: auto; }

/* ---- Pricing (assets/pricing.js fills [data-plans] from the Onyx app; amounts come from Stripe) ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 34px; }
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-size: 20px; }
.plan .ticks { flex: 1; margin: 14px 0 22px; }
.plan .btn { align-self: stretch; justify-content: center; }
.plan-price { margin: 6px 0 0; color: var(--text-2); }
.plan-price b { font: 600 clamp(34px, 4vw, 44px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--text); }
.plan-featured { border-color: rgba(226, 178, 94, 0.45); box-shadow: 0 30px 80px -40px rgba(226, 178, 94, 0.45); }
.plan-flag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; font: 600 11px/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #120d05; background: var(--grad-gold); }
.plan-static { text-align: center; max-width: 640px; margin: 0 auto; }
#pricing.has-plans .plan-static { display: none; }
.test-banner { display: none; margin: 18px auto 0; max-width: 560px; padding: 10px 14px; border-radius: 10px; text-align: center; font: 500 13px/1.4 var(--font-mono); color: #120d05; background: var(--gold-hi); }
#pricing.test-mode .test-banner { display: block; }
.firm-route { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.firm-route p { margin: 0; max-width: 660px; color: var(--text-2); }

/* ---- About / parent company ---- */
.about { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel), var(--bg-2)); }
.about .kicker { margin-bottom: 10px; }
.about h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.about p { color: var(--text-2); margin: 0; }
.about-mark { font: 600 13px/1.2 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; text-align: center; }
.about-mark b { display: block; margin-top: 6px; font: 700 22px/1 var(--font-display); letter-spacing: 0.02em; color: var(--text); }

/* ---- For prop firms ---- */
.firm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.firm-grid .card h3 { font-size: 18px; margin: 14px 0 8px; }
.firm-grid .card p { color: var(--text-2); font-size: 15px; margin: 0; }
.api-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.api-split .card h3 { font-size: 20px; margin: 10px 0 10px; }
.api-split .card p { color: var(--text-2); }
.contact-card { text-align: center; }
.contact-card .actions { justify-content: center; }
@media (max-width: 900px) {
  .firm-grid { grid-template-columns: 1fr 1fr; }
  .api-split { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .firm-grid { grid-template-columns: 1fr; }
}
a.inline { color: var(--gold-hi); text-decoration: underline; text-decoration-color: rgba(247, 223, 163, 0.35); text-underline-offset: 3px; }

/* ---- The hero corridor behind a page hero (For prop firms): dimmer, and faded out under the headline ---- */
.page-hero.has-art { min-height: min(86svh, 760px); display: flex; align-items: center; }
.page-art { position: absolute; inset: 0 0 0 46%; z-index: -2; opacity: 0.9; -webkit-mask: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 46%); mask: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 22%, #000 46%); }
.page-art canvas { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .page-hero.has-art { min-height: 0; padding-bottom: 220px; }
  .page-art { inset: 0; -webkit-mask: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 55%, #000 78%); mask: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 55%, #000 78%); }
}
