/* =========================================================
   X-Latency — low-latency financial infrastructure
   Institutional / HFT aesthetic: near-monochrome + one accent
   ========================================================= */

:root {
  /* grounds */
  --ground:    #08090C;
  --elevated:  #0E1015;
  --surface:   #14161D;
  --surface-2: #191C24;
  /* hairlines */
  --line:      #22252E;
  --line-2:    #2C3039;
  /* text */
  --text:      #EDEEF1;
  --muted:     #9AA0AD;
  --dim:       #5E636E;
  /* one accent + optional data-blue (charts only) */
  --accent:    #38F2C0;
  --accent-dim: rgba(56,242,192,.12);
  --accent-line: rgba(56,242,192,.30);
  --blue:      #4C9BFF;
  --red:       #FF5D6C;
  --amber:     #FFB454;

  --maxw: 1220px;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Archivo', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--ground);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #04110d; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 999;
  background: var(--accent); color: #04110d; padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { left: 16px; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- background: fixed grid + single restrained glow ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(140,150,170,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,150,170,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% -5%, #000 30%, transparent 78%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(150px); }
.bg-glow--a {
  width: 720px; height: 520px; top: -280px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56,242,192,.14), transparent 70%);
}
.bg-glow--b { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { transition: transform .2s var(--ease); }
.btn--primary {
  background: var(--accent); color: #04110d;
  box-shadow: 0 0 0 1px var(--accent), 0 10px 30px -14px rgba(56,242,192,.7);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--accent), 0 14px 40px -12px rgba(56,242,192,.75); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: transparent; border-color: var(--line-2); color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8,9,12,.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.brand__mark { border-radius: var(--radius-sm); }
.brand__name { font-size: 18px; }
.brand__x { color: var(--accent); }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; position: relative; padding: 4px 0; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 9px 16px; }

.nav__burger { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: .3s var(--ease); }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- shared type helpers ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent-line);
}
.accent { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(44px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.hero__eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent); animation: ping 2s ease-out infinite;
}
@keyframes ping { 0%{ box-shadow: 0 0 0 0 rgba(56,242,192,.55);} 100%{ box-shadow: 0 0 0 9px rgba(56,242,192,0);} }
.hero__title {
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02;
  font-size: clamp(40px, 6.2vw, 74px); margin: 22px 0 24px;
}
.hero__title .accent { color: var(--accent); }
.hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 46ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 22px; }
.hero__trust {
  font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px;
}
.hero__trust::before { content: ""; width: 22px; height: 1px; background: var(--line-2); }

/* hero visual — execution monitor card (keeps .card3d for parallax hook) */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.card3d {
  position: relative; width: min(400px, 100%);
  background: linear-gradient(180deg, var(--elevated), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: 20px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.03);
}
.card3d::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(140,150,170,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140,150,170,.04) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.card3d__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; position: relative; }
.card3d__chip { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dot-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.dot-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 1.8s ease-out infinite; }
.card3d__metric { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; position: relative; }
.card3d__label { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.card3d__value { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.card3d__value small { font-size: .4em; color: var(--muted); font-weight: 500; margin-left: 4px; letter-spacing: 0; }
.card3d__unit { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.spark { margin: 12px 0 14px; height: 54px; position: relative; }
.spark svg { width: 100%; height: 100%; }
.spark__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.2s var(--ease) forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.card3d__rows { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; position: relative; }
.card3d__rows div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.card3d__rows b { font-weight: 500; color: var(--muted); }
.card3d__rows .ok { color: var(--accent); }

/* ---------- metric anchor band ---------- */
.metrics { border-block: 1px solid var(--line); background: var(--elevated); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 34px 26px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric__val {
  font-family: var(--mono); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em;
  color: var(--accent); display: block;
}
.metric__val small { font-size: .5em; color: var(--muted); font-weight: 400; }
.metric__label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px;
}

/* ---------- generic section ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--elevated); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 60px); }
.section__head--row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; max-width: none; }
.section__title { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(28px, 3.8vw, 46px); }
.section__lead { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); margin-top: 18px; max-width: 60ch; }

/* ---------- services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  position: relative; background: var(--surface); padding: 30px 26px; overflow: hidden;
  transition: background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx,50%) var(--my,0%), rgba(56,242,192,.07), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover { background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center;
  color: var(--accent); margin-bottom: 20px; border: 1px solid var(--line-2); background: var(--elevated);
}
.card__icon svg { width: 22px; height: 22px; }
.card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: block; margin-bottom: 10px; }
.card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; position: relative; }
.card p { color: var(--muted); font-size: 14.5px; position: relative; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio { display: grid; gap: 22px; }
.pcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color .3s;
}
.pcard:hover { border-color: var(--line-2); }
.pcard__grid { display: grid; grid-template-columns: 1fr 1fr; }
.pcard__shot {
  position: relative; padding: 26px; background:
    radial-gradient(120% 120% at 20% 0%, #0b0d13, var(--ground));
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.pcard__body { padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; }
.pcard__eyebrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px;
}
.pcard__index { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; }
.pcard__title { font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.pcard__desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.pcard__tags li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--muted);
  border: 1px solid var(--line-2); padding: 4px 9px; border-radius: var(--radius-sm); background: var(--elevated);
}
.pcard__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pcard__link {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .02em; color: var(--accent); border: 1px solid var(--accent-line);
  padding: 8px 14px; border-radius: var(--radius); background: var(--accent-dim); transition: background .2s, transform .2s var(--ease);
}
.pcard__link:hover { background: rgba(56,242,192,.2); transform: translateY(-1px); }
.pcard__link svg { width: 12px; height: 12px; }
.pcard__badge {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line-2); padding: 7px 12px; border-radius: var(--radius); background: var(--elevated);
}
.pcard__chip {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim);
}
.pcard__chip--live { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.pcard__chip--live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }

/* feature (SPECTRA) spans wider shot */
.pcard--feature .pcard__grid { grid-template-columns: 1.35fr 1fr; }
.pcard--feature .pcard__shot { min-height: 380px; }

/* stacked reverse variant so shots alternate side visually on desktop */
.pcard--rev .pcard__shot { border-right: 0; border-left: 1px solid var(--line); order: 2; }

/* =========================================================
   SCREENSHOT MOCKUPS — shared chrome
   ========================================================= */
.frame {
  width: 100%; background: var(--elevated); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -34px rgba(0,0,0,.85);
  font-family: var(--font);
}
.frame__bar {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.frame__dots { display: inline-flex; gap: 6px; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.frame__dots i:nth-child(1) { background: #2c3039; }
.frame__url {
  flex: 1; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .02em;
  background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame__url .lock { color: var(--accent); margin-right: 5px; }
.frame__screen { padding: 14px; background: var(--elevated); }
.frame__screen--img, .phone__screen--img { padding: 0; line-height: 0; }
.shot { display: block; width: 100%; height: auto; }

/* phone frame */
.phone {
  width: 172px; background: #05060a; border: 6px solid #1a1d25; border-radius: 26px;
  overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9);
}
.phone__notch { height: 22px; position: relative; background: #05060a; }
.phone__notch::after { content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 52px; height: 5px; border-radius: 999px; background: #1a1d25; }
.phone__screen { background: var(--elevated); padding: 10px; }

/* mockup atoms */
.mk { font-size: 11px; color: var(--muted); line-height: 1.45; }
.mk__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mk__mono { font-family: var(--mono); }
.mk__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.mk__brand { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: -.01em; color: var(--text); }
.mk__brand b { color: var(--accent); }
.mk__tabs { display: flex; gap: 12px; font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.mk__tabs .on { color: var(--text); }
.mk__pos { font-family: var(--mono); color: var(--accent); }
.mk__neg { font-family: var(--mono); color: var(--red); }
.mk__label { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.mk__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.mk__divide { height: 1px; background: var(--line); margin: 10px 0; }

/* leaderboard rows (SPECTRA) */
.lb { display: grid; gap: 7px; }
.lb__row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; padding: 7px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lb__row--on { border-color: var(--accent-line); background: rgba(56,242,192,.06); }
.lb__ava { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--blue)); }
.lb__ava--2 { background: linear-gradient(135deg, #a78bfa, #7c5cff); }
.lb__ava--3 { background: linear-gradient(135deg, var(--amber), #ff8a3c); }
.lb__ava--4 { background: linear-gradient(135deg, var(--blue), #2b7cff); }
.lb__name { font-size: 10.5px; color: var(--text); font-weight: 600; }
.lb__sub { font-family: var(--mono); font-size: 8.5px; color: var(--dim); }
.lb__roi { font-family: var(--mono); font-size: 11px; color: var(--accent); font-weight: 600; }
.lb__toggle { width: 30px; height: 16px; border-radius: 999px; background: var(--accent); position: relative; }
.lb__toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #04110d; }
.lb__toggle--off { background: var(--line-2); }
.lb__toggle--off::after { left: 2px; right: auto; background: var(--muted); }

/* generic value grid */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vcell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 10px; }
.vcell b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }
.vcell .up { color: var(--accent); }
.vcell span { font-family: var(--mono); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }

/* venue connectivity table (connectors) */
.venue { display: grid; gap: 6px; }
.venue__row { display: grid; grid-template-columns: 14px 1fr auto auto auto; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.venue__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.venue__dot--warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.venue__name { font-size: 10.5px; color: var(--text); font-weight: 600; }
.venue__lat { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.venue__lat--warn { color: var(--amber); }
.venue__proto { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 5px; }
.venue__tp { font-family: var(--mono); font-size: 8.5px; color: var(--dim); }

/* politician chart legend */
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9px; color: var(--muted); }
.legend i { width: 12px; height: 2px; border-radius: 2px; display: inline-block; }

/* AML queue */
.queue { display: grid; gap: 6px; }
.qrow { display: grid; grid-template-columns: 18px 1fr auto auto; align-items: center; gap: 9px; padding: 8px 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.qava { width: 18px; height: 18px; border-radius: 50%; background: var(--line-2); }
.qname { font-size: 10px; color: var(--text); font-weight: 600; }
.qmeta { font-family: var(--mono); font-size: 8px; color: var(--dim); }
.qscore { font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.qscore--hi { color: var(--red); }
.qscore--md { color: var(--amber); }
.qscore--lo { color: var(--accent); }
.qbadge { font-family: var(--mono); font-size: 8px; letter-spacing: .05em; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.qbadge--hit { color: var(--red); border: 1px solid rgba(255,93,108,.4); background: rgba(255,93,108,.1); }
.qbadge--clr { color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-dim); }
.qbadge--rev { color: var(--amber); border: 1px solid rgba(255,180,84,.4); background: rgba(255,180,84,.1); }
.gauge { display: grid; place-items: center; text-align: center; }
.gauge b { font-family: var(--mono); font-size: 18px; color: var(--amber); }
.gauge span { font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }

/* rail ledger */
.acct { display: grid; gap: 6px; }
.acct__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.acct__iban { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.acct__cur { font-family: var(--mono); font-size: 8px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.acct__bal { font-family: var(--mono); font-size: 11px; color: var(--text); font-weight: 600; text-align: right; }
.rails { display: flex; gap: 6px; flex-wrap: wrap; }
.rail-pill { font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--dim); }
.rail-pill--on { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }
.ledger { font-family: var(--mono); font-size: 9.5px; }
.ledger__row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 3px 0; color: var(--muted); border-bottom: 1px dashed var(--line); }
.ledger__row .dr { color: var(--blue); text-align: right; }
.ledger__row .cr { color: var(--accent); text-align: right; }
.ledger__head { color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }

/* card issuing */
.vcard {
  position: relative; aspect-ratio: 1.586; border-radius: 10px; padding: 14px;
  background: linear-gradient(135deg, #12303a, #0c1620 60%); border: 1px solid var(--accent-line);
  overflow: hidden;
}
.vcard::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 90% 10%, rgba(56,242,192,.22), transparent 55%); }
.vcard__brand { position: absolute; top: 12px; right: 14px; font-family: var(--display); font-weight: 800; font-size: 12px; color: var(--accent); letter-spacing: -.01em; }
.vcard__chip { width: 26px; height: 19px; border-radius: 4px; background: linear-gradient(135deg,#d9c27a,#a9863c); }
.vcard__pan { position: absolute; bottom: 30px; left: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--text); }
.vcard__meta { position: absolute; bottom: 12px; left: 14px; display: flex; gap: 16px; font-family: var(--mono); font-size: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ctrl { display: grid; gap: 8px; }
.ctrl__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--mono); font-size: 10px; color: var(--muted); }
.ctrl__row b { color: var(--text); font-weight: 600; }
.tgl { width: 30px; height: 16px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.tgl::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #04110d; }
.tgl--off { background: var(--line-2); }
.tgl--off::after { left: 2px; right: auto; background: var(--muted); }

/* SPECTRA composite: desktop + overlapping phone */
.combo { position: relative; width: 100%; max-width: 480px; }
.combo__phone { position: absolute; right: 6px; bottom: 6px; width: 132px; z-index: 3; }

/* ---------- process / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.step { position: relative; padding: 28px 22px; background: var(--surface); transition: background .3s; }
.step:hover { background: var(--surface-2); }
.step__num { font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 18px; letter-spacing: .1em; }
.step h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); padding: 9px 14px; border-radius: var(--radius);
  transition: border-color .25s, color .25s, background .25s;
}
.chip:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-dim); }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.member { background: var(--surface); padding: 28px 26px; transition: background .3s; }
.member:hover { background: var(--surface-2); }
.avatar {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 15px; color: #04110d; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.avatar--photo, .q-avatar--photo { overflow: hidden; background: var(--surface-2); border: 1px solid var(--line-2); }
.avatar img, .q-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.member h3 { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.member__role { display: block; font-family: var(--mono); color: var(--accent); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin: 5px 0 12px; }
.member p { color: var(--muted); font-size: 14px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; transition: border-color .3s;
}
.quote:hover { border-color: var(--line-2); }
.quote__mark { width: 34px; height: 27px; color: var(--accent); opacity: .5; }
.quote blockquote { font-size: 15.5px; color: var(--text); line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.q-avatar {
  width: 42px; height: 42px; border-radius: var(--radius-sm); flex: none; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; font-size: 14px; color: #04110d;
  background: linear-gradient(135deg, var(--a), var(--b));
}
.quote figcaption b { display: block; font-size: 14.5px; }
.quote figcaption i { font-style: normal; font-family: var(--mono); color: var(--muted); font-size: 12px; letter-spacing: .02em; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact__meta { display: grid; gap: 0; margin-top: 34px; border-top: 1px solid var(--line); }
.contact__meta li { display: flex; flex-direction: column; gap: 3px; border-bottom: 1px solid var(--line); padding: 16px 0; }
.contact__metaLabel { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact__meta a { font-family: var(--mono); font-size: 14px; }
.contact__meta a:hover { color: var(--accent); }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--ground); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s; width: 100%; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA0AD' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form__submit { justify-self: start; margin-top: 4px; }
.form__note { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .01em; }
.form__note.is-ok { color: var(--accent); }
.field input:invalid:not(:placeholder-shown) { border-color: var(--red); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--elevated); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; max-width: 40ch; }
.socials { display: flex; gap: 10px; }
.social {
  width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: .25s var(--ease);
}
.social svg { width: 17px; height: 17px; }
.social:hover { color: var(--accent); border-color: var(--accent-line); }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid var(--line); padding: 22px 0; font-family: var(--mono); font-size: 12px; color: var(--dim);
}
.footer__legal { display: flex; gap: 20px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__eyebrow .pulse, .dot-live span, .spark__line { animation: none !important; }
  .spark__line { stroke-dashoffset: 0; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 320px; }
  .cards, .team { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section__head--row { grid-template-columns: 1fr; }
  .pcard__grid, .pcard--feature .pcard__grid { grid-template-columns: 1fr; }
  .pcard__shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .pcard--rev .pcard__shot { border-left: 0; order: 0; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(8,9,12,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); padding: 8px 26px 20px;
  }
  .nav.is-open .nav__links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a::after { display: none; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--line); }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .cards, .team, .quotes, .steps, .metrics__grid { grid-template-columns: 1fr; }
  .metric { border-left: 0 !important; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .combo__phone { display: none; }
  .pcard__shot { padding: 18px; min-height: 260px; }
}
