/* =====================================================================
   AlgoDeltaFX — design system
   Dark fintech theme derived from the logo gradient (#ADFF85 → #5CC927 → #2E8D00)
   ===================================================================== */

@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #060f11;
  --bg-2: #081619;
  --card: #0b1a1e;
  --card-2: #0f242a;
  --card-3: #143038;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eaf3ef;
  --muted: #a3b5af;
  --dim: #6f847e;
  --g: #6fdc3c;
  --g-hi: #adff85;
  --g-lo: #2e8d00;
  --g-soft: rgba(124, 227, 74, .12);
  --cyan: #4fe3d0;
  --blue: #6aa8ff;
  --amber: #ffcf5c;
  --red: #ff6f6f;
  --grad: linear-gradient(135deg, #adff85 0%, #5cc927 55%, #2e8d00 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .65);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(92, 201, 39, .14), transparent 60%),
    radial-gradient(700px 400px at -10% 10%, rgba(79, 227, 208, .06), transparent 60%);
  pointer-events: none; z-index: -1;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--g-hi); text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }
strong { color: #fff; font-weight: 600; }
code, kbd, pre { font-family: var(--font-mono); }
:not(pre) > code { font-size: .88em; background: var(--card-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; color: var(--g-hi); }
::selection { background: rgba(124, 227, 74, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--g-hi); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: #fff; margin: 0 0 .6em; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4vw, 3.35rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -.03em; }
h3, .h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .78rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--g-hi); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .018) 15%, rgba(255, 255, 255, .018) 85%, transparent); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }

.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 28px; height: 28px; }

.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: -9999px; top: 8px; z-index: 100; background: var(--g); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --b: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.2rem; border-radius: 12px; border: 1px solid var(--b);
  font: 600 .95rem/1.1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn-lg { padding: .95rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-primary { background: var(--grad); color: #041004; box-shadow: 0 8px 30px -8px rgba(124, 227, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:hover { color: #041004; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(124, 227, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-ghost { --b: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { --b: rgba(173, 255, 133, .45); color: #fff; background: rgba(173, 255, 133, .06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--g-hi); }
.link-arrow .ico { transition: transform .2s; }
a:hover .link-arrow .ico, .link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(6, 15, 17, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(6, 15, 17, .9); }
.nav-bar { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand img { height: 31px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 16px; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 10px;
  color: var(--muted); font: 500 .95rem/1 var(--font); background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"], .has-menu.open > .nav-link { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-cta { display: flex; gap: 8px; }
.has-menu { position: relative; }
.menu-btn .ico { transition: transform .2s; }
.has-menu.open .menu-btn .ico { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 8px; padding: 14px;
  background: rgba(11, 26, 30, .98); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.mega-sm { grid-template-columns: 1fr; min-width: 220px; padding: 8px; }
.has-menu.open > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1025px) {
  .has-menu:hover > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover > .menu-btn .ico { transform: rotate(180deg); }
}
.mega-label { font: 600 .7rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 8px 10px 10px; }
.mega-item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; color: var(--text); }
.mega-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.mega-item strong { display: block; font-size: .95rem; }
.mega-item small { display: block; color: var(--muted); font-size: .83rem; line-height: 1.4; margin-top: 2px; }
.mega-ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--g-soft); color: var(--g-hi); border: 1px solid rgba(173, 255, 133, .15); }
.mega-link { display: block; padding: .6rem .8rem; border-radius: 10px; color: var(--muted); font-size: .95rem; }
.mega-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: 16px 16px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .mega, .mega-sm { position: static; transform: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none; box-shadow: none; background: transparent; border: 0; padding: 0 0 8px; }
  .has-menu.open > .mega { display: grid; transform: none; }
  .nav-cta { flex-direction: column; margin-top: 16px; }
  .nav-cta .btn { width: 100%; padding: 14px; }
}

.crumbs { padding-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(48px, 7vw, 90px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid.single { grid-template-columns: 1fr; text-align: center; }
.hero-grid.single .lead, .hero-grid.single .btn-row, .hero-grid.single .hero-proof { margin-inline: auto; justify-content: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 1.8rem; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem .4rem .45rem; margin-bottom: 1.4rem;
  border: 1px solid rgba(173, 255, 133, .22); border-radius: 999px; background: rgba(124, 227, 74, .07);
  font-size: .85rem; color: var(--text);
}
.pill b { background: var(--grad); color: #041004; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof .ico { color: var(--g); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 0 rgba(124, 227, 74, .6); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 227, 74, .55); } 70% { box-shadow: 0 0 0 10px rgba(124, 227, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 227, 74, 0); } }

/* ---------- Generic cards ---------- */
.card {
  position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px);
}
.card:hover { border-color: var(--line-2); }
.glass { background: linear-gradient(180deg, rgba(20, 48, 56, .55), rgba(11, 26, 30, .75)); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature .mega-ico { margin-bottom: 16px; width: 44px; height: 44px; border-radius: 12px; }
.feature h3 { font-size: 1.12rem; margin-bottom: .45em; }
.feature p { color: var(--muted); font-size: .97rem; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.checklist { list-style: none; display: grid; gap: 12px; margin: 1.4rem 0 1.8rem; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.checklist li strong { color: #fff; }
.checklist .ico { color: var(--g); margin-top: 3px; flex: none; }

/* ---------- Answer box ---------- */
.answer { margin-top: -10px; margin-bottom: 10px; }
.answer-card { border: 1px solid rgba(173, 255, 133, .2); background: linear-gradient(135deg, rgba(124, 227, 74, .08), rgba(11, 26, 30, .6) 60%); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.answer-q { display: flex; align-items: center; gap: .5rem; font: 600 .8rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--g-hi); }
.answer-a { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--text); margin: 0; }
.answer-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.answer-facts dt { font-size: .78rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.answer-facts dd { margin: 4px 0 0; color: #fff; font-weight: 600; font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 28px 24px; }
.stat-num { font: 800 clamp(2rem, 3.6vw, 2.8rem)/1 var(--font-head); letter-spacing: -.03em; }
.stat p { color: var(--muted); margin: 8px 0 0; font-size: .92rem; }

/* ---------- Pillar tabs (home) ---------- */
.tabs { display: flex; gap: 8px; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; width: fit-content; margin: 0 auto 36px; flex-wrap: wrap; justify-content: center; }
.tab { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font: 600 .95rem/1 var(--font); cursor: pointer; position: relative; overflow: hidden; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--card-3); color: #fff; box-shadow: inset 0 0 0 1px rgba(173, 255, 133, .25); }
.tab[aria-selected="true"] .ico { color: var(--g-hi); }
.tab .tab-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.tab[aria-selected="true"] .tab-progress { animation: tabprog var(--tab-ms, 9000ms) linear forwards; }
.tabs.paused .tab-progress { animation: none !important; width: 0; }
@keyframes tabprog { to { width: 100%; } }
.tab-panel[hidden] { display: none; }
.pillar { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.pillar h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.pillar .checklist { margin: 1rem 0 1.6rem; }

/* ---------- Flow engine (signal → core → accounts) ---------- */
.flow { position: relative; padding: clamp(16px, 2.2vw, 26px); container-type: inline-size; }
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.flow-svg .wire { fill: none; stroke: rgba(173, 255, 133, .16); stroke-width: 1.5; stroke-dasharray: 4 6; }
.flow-svg .wire.on { stroke: rgba(173, 255, 133, .45); }
.flow-svg .packet { fill: var(--g-hi); filter: drop-shadow(0 0 6px rgba(173, 255, 133, .9)); }
.flow-svg .packet.sell { fill: var(--red); filter: drop-shadow(0 0 6px rgba(255, 111, 111, .9)); }
.flow-svg .packet.api { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(79, 227, 208, .9)); }
.flow-svg .packet.tv { fill: var(--blue); filter: drop-shadow(0 0 6px rgba(106, 168, 255, .9)); }
.flow-cols { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.flow-cols.two { grid-template-columns: auto 1fr; }
.flow-col { display: grid; gap: 12px; }
.node {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: rgba(8, 22, 25, .92); border: 1px solid var(--line-2); border-radius: 14px;
  font-size: .85rem; min-width: 0; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.node .n-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .05); color: var(--muted); }
.node .n-ico .ico { width: 18px; height: 18px; }
.node b { display: block; color: #fff; font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node small { display: block; color: var(--dim); font-size: .74rem; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .n-meta { min-width: 0; flex: 1; }
.node .n-lot { font: 600 .8rem/1 var(--font-mono); color: var(--g-hi); padding: .35rem .5rem; border-radius: 8px; background: var(--g-soft); white-space: nowrap; transition: transform .3s; }
.node.hit { border-color: rgba(173, 255, 133, .6); box-shadow: 0 0 0 4px rgba(124, 227, 74, .1), 0 0 30px -6px rgba(124, 227, 74, .5); }
.node.hit .n-lot { transform: scale(1.08); }
.node.hit-sell { border-color: rgba(255, 111, 111, .6); box-shadow: 0 0 0 4px rgba(255, 111, 111, .1); }
.node.paused { opacity: .45; }
.node.src-tv .n-ico { color: var(--blue); background: rgba(106, 168, 255, .1); }
.node.src-api .n-ico { color: var(--cyan); background: rgba(79, 227, 208, .1); }
.node.src-hook .n-ico { color: var(--amber); background: rgba(255, 207, 92, .1); }
.node.master { border-color: rgba(173, 255, 133, .35); }
.node.master .n-ico { color: var(--g-hi); background: var(--g-soft); }
.core {
  position: relative; width: clamp(108px, 12vw, 140px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 50% 35%, rgba(173, 255, 133, .28), rgba(46, 141, 0, .12) 55%, rgba(8, 22, 25, .9) 72%);
  border: 1px solid rgba(173, 255, 133, .4); box-shadow: 0 0 60px -10px rgba(124, 227, 74, .5);
}
.core::before, .core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed rgba(173, 255, 133, .25); animation: spin 24s linear infinite; }
.core::after { inset: -30px; border-style: solid; border-color: rgba(173, 255, 133, .08); animation-duration: 40s; animation-direction: reverse; }
.core img { width: 46%; height: auto; border-radius: 50%; }
.core small { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 .7rem/1 var(--font-mono); letter-spacing: .1em; color: var(--g-hi); text-transform: uppercase; }
.core.flash { animation: corepulse .6s ease; }
@keyframes corepulse { 50% { box-shadow: 0 0 90px 0 rgba(124, 227, 74, .75); transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-log { position: relative; z-index: 1; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; font: 400 .78rem/1.5 var(--font-mono); color: var(--dim); height: 74px; overflow: hidden; }
.flow-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .4s ease; }
.flow-log div:first-child { color: var(--muted); }
.flow-log .ok { color: var(--g); }
.flow-log .sell { color: var(--red); }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }
.flow-head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; font: 600 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.flow-head span { display: inline-flex; align-items: center; gap: .5rem; }

@container (max-width: 620px) {
  .flow-cols { gap: 22px; }
  .core { width: 92px; }
  .core small { font-size: .62rem; bottom: -24px; }
  .node { padding: 8px 9px; gap: 8px; }
  .accounts .n-ico { display: none; }
  .node small { font-size: .66rem; }
  .node .n-lot { font-size: .72rem; padding: .3rem .4rem; }
}
@media (max-width: 700px) {
  .flow-cols, .flow-cols.two { grid-template-columns: 1fr; justify-items: stretch; gap: 34px; }
  .flow-cols .core { justify-self: center; }
  .flow-col.sources { grid-template-columns: repeat(3, 1fr); }
  .flow-col.sources .node { flex-direction: column; text-align: center; padding: 10px 6px; }
  .flow-col.sources .node small { display: none; }
  .flow-col.accounts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Terminal / code ---------- */
.term { background: #050c0e; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font: 400 .84rem/1.6 var(--font-mono); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3b3f; display: block; }
.term-bar i:nth-child(1) { background: #ff6159; } .term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #28c941; }
.term-bar span { margin-left: 8px; font-size: .75rem; color: var(--dim); }
.term-body { padding: 16px 18px; min-height: 260px; color: #cfe3dc; white-space: pre-wrap; word-break: break-word; }
.term-body .c-k { color: var(--g-hi); } .term-body .c-s { color: #ffd88a; } .term-body .c-n { color: var(--cyan); } .term-body .c-d { color: var(--dim); } .term-body .c-m { color: #c7a6ff; }
.cursor { display: inline-block; width: 8px; height: 1.1em; background: var(--g-hi); vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow-x: auto; }
.code-tab { padding: 8px 12px; border: 0; background: none; color: var(--dim); font: 500 .8rem/1 var(--font-mono); cursor: pointer; border-bottom: 2px solid transparent; }
.code-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--g); }
pre.code { margin: 0; padding: 18px; overflow-x: auto; font-size: .82rem; line-height: 1.65; color: #cfe3dc; background: #050c0e; }
.code-wrap { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 6px 10px; font: 500 .75rem/1 var(--font-mono); color: var(--muted); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.copy-btn:hover { color: #fff; border-color: var(--g); }
.copy-btn.done { color: var(--g-hi); border-color: var(--g); }

/* ---------- Webhook builder ---------- */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--card); }
.builder-form { padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; align-content: start; border-right: 1px solid var(--line); }
.builder-out { background: #050c0e; display: flex; flex-direction: column; }
.builder-out pre.code { flex: 1; min-height: 300px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 .85rem/1 var(--font); cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: var(--g-soft); border-color: rgba(173, 255, 133, .5); color: #fff; }
.seg button.buy[aria-pressed="true"] { background: rgba(124, 227, 74, .16); }
.seg button.sell[aria-pressed="true"] { background: rgba(255, 111, 111, .14); border-color: rgba(255, 111, 111, .5); }
.field { display: grid; gap: 6px; }
.field > label, .field > .label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.field small { color: var(--dim); font-size: .78rem; }
.input, select.input, textarea.input {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 12, 14, .8);
  color: #fff; font: 400 .95rem/1.3 var(--font); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(124, 227, 74, .18); }
textarea.input { min-height: 130px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input-combo { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.toggle { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; color: var(--muted); }
.toggle input { appearance: none; width: 40px; height: 22px; border-radius: 99px; background: var(--card-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked { background: var(--g); }
.toggle input:checked::after { transform: translateX(18px); }

/* ---------- Copy simulator ---------- */
.sim { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--card); }
.sim-controls { padding: 24px; border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.sim-stage { position: relative; }
.range { width: 100%; accent-color: var(--g); }
.range-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--muted); }
.range-row output { font: 600 .9rem/1 var(--font-mono); color: #fff; }
.child-rule { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(5, 12, 14, .6); border: 1px solid var(--line); }
.child-rule b { font-size: .85rem; }
.child-rule select { padding: .4rem .5rem; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-2); color: #fff; font-size: .8rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
table.cmp caption { text-align: left; padding: 16px 20px; color: var(--muted); font-size: .88rem; caption-side: bottom; border-top: 1px solid var(--line); }
table.cmp th, table.cmp td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { font: 600 .82rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(255, 255, 255, .02); }
table.cmp thead th.hl { color: var(--g-hi); }
table.cmp tbody th { font-weight: 600; color: #fff; }
table.cmp td.hl { background: rgba(124, 227, 74, .05); color: #fff; }
table.cmp tr:last-child td, table.cmp tr:last-child th { border-bottom: 0; }
.yes, .no, .part { display: inline-flex; align-items: center; gap: .4rem; }
.yes .ico { color: var(--g); } .no .ico { color: var(--red); } .part .ico { color: var(--amber); }

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #041004; font: 800 1.05rem/1 var(--font-head); margin-bottom: 16px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Audience / use cases ---------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aud { display: flex; gap: 14px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.aud:hover { border-color: rgba(173, 255, 133, .3); transform: translateY(-2px); }
.aud h3 { font-size: 1.02rem; margin-bottom: .3em; }
.aud p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); padding: 8px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: grid; place-items: center; width: 150px; height: 64px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 10px 16px; transition: border-color .2s; }
.marquee-item:hover { border-color: var(--line-2); }
.marquee-item img { max-height: 34px; width: auto; object-fit: contain; }
.marquee-item img.mono { filter: brightness(0) invert(1); opacity: .78; transition: opacity .2s; }
.marquee-item:hover img.mono { opacity: 1; }
.marquee-item img.solid { max-height: 40px; border-radius: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.broker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.broker-cell { display: grid; gap: 8px; text-align: center; font-size: .85rem; color: var(--muted); }
.broker-cell .marquee-item { width: 100%; }

/* ---------- Testimonials ---------- */
.testi-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 380px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--card-3) transparent; }
.testi { scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.testi blockquote { margin: 0; color: var(--text); font-size: .98rem; flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.testi figcaption small { display: block; color: var(--dim); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #041004; font-weight: 800; }
.stars { display: flex; gap: 2px; color: var(--amber); }
.stars .ico { width: 16px; height: 16px; }
.rating-sum { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.rating-sum strong { font: 800 2rem/1 var(--font-head); }

/* ---------- Pricing ---------- */
.price-card { position: relative; padding: clamp(26px, 3.5vw, 40px); border-radius: 24px; border: 1px solid rgba(173, 255, 133, .35); background: radial-gradient(500px 240px at 50% 0, rgba(124, 227, 74, .14), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); box-shadow: 0 30px 80px -30px rgba(124, 227, 74, .35); }
.price-tag { display: flex; align-items: flex-end; gap: 8px; margin: 10px 0 6px; }
.price-tag .amt { font: 800 clamp(3.4rem, 7vw, 5rem)/.9 var(--font-head); letter-spacing: -.04em; }
.price-tag .per { color: var(--muted); padding-bottom: 8px; line-height: 1.3; font-size: .95rem; }
.calc { display: grid; gap: 20px; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px; border-radius: 14px; background: rgba(5, 12, 14, .7); border: 1px solid var(--line); }
.calc-total strong { font: 800 2rem/1 var(--font-head); }
.calc-total small { color: var(--muted); }
.num-stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.num-stepper button { background: var(--card-2); border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }
.num-stepper button:hover { background: var(--card-3); }
.num-stepper input { text-align: center; border: 0; background: rgba(5, 12, 14, .8); color: #fff; font: 600 1.1rem/1 var(--font-mono); padding: .7rem 0; width: 100%; -moz-appearance: textfield; }
.num-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- White label demo ---------- */
.wl { --brand: #7ce34a; --brand-ink: #041004; display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; background: var(--card); }
.wl-controls { padding: 24px; border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: #fff; }
.wl-app { padding: 18px; background: #f3f5f7; color: #111; font-size: .85rem; min-height: 420px; display: grid; grid-template-rows: auto 1fr; gap: 14px; transition: background .4s; }
.wl-app.dark { background: #0d1117; color: #e6edf3; }
.wl-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.wl-app.dark .wl-top, .wl-app.dark .wl-card { background: #161b22; box-shadow: none; }
.wl-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; }
.wl-logo i { width: 26px; height: 26px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: var(--brand-ink); font-style: normal; font-size: .8rem; transition: background .4s; }
.wl-url { font-family: var(--font-mono); font-size: .72rem; opacity: .6; }
.wl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.wl-card { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.wl-card h4 { color: inherit; font-size: .8rem; margin: 0 0 8px; opacity: .65; font-family: var(--font); font-weight: 600; letter-spacing: 0; }
.wl-big { font: 800 1.5rem/1 var(--font-head); }
.wl-btn { display: inline-block; margin-top: 10px; padding: .5rem .8rem; border-radius: 8px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: .78rem; transition: background .4s; }
.wl-bar { height: 8px; border-radius: 8px; background: rgba(0, 0, 0, .07); overflow: hidden; margin-top: 10px; }
.wl-app.dark .wl-bar { background: rgba(255, 255, 255, .08); }
.wl-bar span { display: block; height: 100%; background: var(--brand); transition: background .4s, width 1s; }
.wl-list { display: grid; gap: 6px; }
.wl-list div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.wl-app.dark .wl-list div { border-color: rgba(255, 255, 255, .06); }
.wl-list b { color: var(--brand); filter: brightness(.85); }
.wl-span2 { grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 28px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .2s, background .2s; }
.faq-item[open] { border-color: rgba(173, 255, 133, .25); background: var(--card-2); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: 600 1.02rem/1.4 var(--font); margin: 0; letter-spacing: 0; }
.faq-plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--g-hi); transform: translate(-50%, -50%); transition: transform .25s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body { padding: 0 22px 20px; color: var(--muted); }
.faq-body p { margin: 0; }
.faq-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.faq-cats a { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .88rem; }
.faq-cats a:hover { color: #fff; border-color: var(--g); }

/* ---------- Related & CTA ---------- */
.related { padding-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 20px; }
.related-card { display: grid; gap: 8px; padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: rgba(173, 255, 133, .35); transform: translateY(-3px); color: var(--text); }
.related-card small { color: var(--muted); font-size: .88rem; }
.cta-band { padding: clamp(40px, 6vw, 80px) 0; }
.cta-inner { position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 60px); border-radius: 28px; border: 1px solid rgba(173, 255, 133, .25); background: linear-gradient(180deg, var(--card-2), var(--bg-2)); }
.cta-inner .lead { margin: 0 auto 28px; }
.cta-inner .btn-row, .cta-inner .eyebrow { justify-content: center; }
.cta-glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(124, 227, 74, .25), transparent); pointer-events: none; }
.cta-inner > * { position: relative; }
.cta-points { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.cta-points li { display: inline-flex; align-items: center; gap: .4rem; }
.cta-points .ico { color: var(--g); }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #000; cursor: pointer; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .5s; }
.video:hover img { opacity: .9; transform: scale(1.02); }
.video .play { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #041004; border: 0; cursor: pointer; box-shadow: 0 0 0 10px rgba(124, 227, 74, .2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; border: 1px solid; margin-bottom: 18px; }
.notice.ok { border-color: rgba(124, 227, 74, .4); background: rgba(124, 227, 74, .08); }
.notice.err { border-color: rgba(255, 111, 111, .4); background: rgba(255, 111, 111, .08); }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.contact-card:hover { border-color: rgba(173, 255, 133, .35); color: #fff; }
.contact-card small { display: block; color: var(--muted); }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 8px; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 64px; margin-top: 40px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1fr 1.3fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 18px 0; max-width: 320px; }
.f-head { font: 600 .78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); font-size: .93rem; }
.site-footer ul a:hover { color: #fff; }
.footer-contact small { display: block; color: var(--dim); font-size: .78rem; }
.f-phone { display: inline-flex; align-items: center; gap: 8px; }
.f-phone .ico { width: 18px; height: 18px; color: #25d366; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); }
.social a:hover { color: #fff; border-color: var(--g); }
.social .ico { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim); }
.footer-bottom p { margin: 0; }
.f-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.f-legal a { color: var(--muted); }
.disclaimer { font-size: .78rem; color: var(--dim); padding-bottom: 32px; line-height: 1.6; }

/* ---------- Misc ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: 999px; font: 600 .72rem/1 var(--font-mono); letter-spacing: .04em; background: var(--g-soft); color: var(--g-hi); border: 1px solid rgba(173, 255, 133, .2); }
.badge.cyan { background: rgba(79, 227, 208, .1); color: var(--cyan); border-color: rgba(79, 227, 208, .25); }
.badge.blue { background: rgba(106, 168, 255, .1); color: var(--blue); border-color: rgba(106, 168, 255, .25); }
.endpoint { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 400 .85rem/1.4 var(--font-mono); }
.endpoint:last-child { border-bottom: 0; }
.endpoint .m { font-weight: 600; font-size: .72rem; padding: .3rem .45rem; border-radius: 6px; text-align: center; }
.m-get { background: rgba(79, 227, 208, .12); color: var(--cyan); }
.m-post { background: rgba(124, 227, 74, .12); color: var(--g-hi); }
.endpoint span { color: var(--muted); font-family: var(--font); font-size: .85rem; display: block; }
.updated { font-size: .82rem; color: var(--dim); margin-top: 18px; display: inline-flex; align-items: center; gap: .4rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list li { padding: .4rem .75rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.big-404 { font: 800 clamp(6rem, 18vw, 12rem)/1 var(--font-head); letter-spacing: -.06em; }

/* ---------- Reveal on scroll (JS only; content is visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .split, .pillar, .builder, .sim, .wl { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .audience { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .builder-form, .sim-controls, .wl-controls { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4, .audience { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .tabs { width: 100%; }
  .tab { flex: 1 1 100%; justify-content: center; }
  .wl-body { grid-template-columns: 1fr; }
  .wl-span2 { grid-column: auto; }
  .endpoint { grid-template-columns: 56px 1fr; }
  .nav-cta .btn-ghost { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* =====================================================================
   v2 — feature illustrations, bento grid, modernised motion
   ===================================================================== */
.ico-xs { width: 12px; height: 12px; }

/* Eyebrow as a soft pill */
.eyebrow { padding: .42rem .75rem; border-radius: 999px; background: rgba(124, 227, 74, .07); border: 1px solid rgba(173, 255, 133, .16); font-size: .7rem; letter-spacing: .1em; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 10px var(--g); }

/* Softer, blur-in reveal */
.js .reveal { filter: blur(6px); transform: translateY(14px) scale(.985); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), filter .8s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { filter: none; transform: none; }

/* Feature cards with illustration */
.card.fx { padding: 0; display: flex; flex-direction: column; overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s, opacity .8s, filter .8s; }
.card.fx:hover { transform: translateY(-3px); border-color: rgba(173, 255, 133, .22); box-shadow: 0 24px 50px -28px rgba(124, 227, 74, .35); }
.fx-text { padding: 18px 22px 22px; }
.fx-text h3 { font-size: 1.1rem; margin-bottom: .4em; }
.fx-text p { color: var(--muted); font-size: .95rem; margin: 0; }
.bento { grid-auto-flow: dense; }
.span-2 { grid-column: span 2; flex-direction: row; align-items: stretch; }
.span-2 .viz { flex: 1.15; min-height: 180px; height: auto; margin: 10px 0 10px 10px; }
.span-2 .fx-text { flex: 1; align-self: center; padding: 26px; }
.span-2 .fx-text h3 { font-size: 1.3rem; }

.viz {
  position: relative; height: 150px; margin: 10px 10px 0; padding: 14px; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(124, 227, 74, .09), transparent 60%), linear-gradient(180deg, #08171a, #061113);
  border: 1px solid var(--line); font: 500 .72rem/1.25 var(--font-mono); color: var(--muted);
}
.viz::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 18px 18px; pointer-events: none; -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%); }
.viz > * { position: relative; z-index: 1; }
.vz-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vz-foot { font-size: .62rem; color: var(--dim); letter-spacing: .04em; }
.vz-foot .up { color: var(--g); }
.vz-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); white-space: nowrap; }
.vz-chip.on { color: var(--g-hi); border-color: rgba(173, 255, 133, .3); background: rgba(124, 227, 74, .08); }
.vz-chip.off { opacity: .5; text-decoration: line-through; }
.vz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g); box-shadow: 0 0 8px var(--g); animation: pulse 2s infinite; }

/* uptime */
.vz-ticks { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 34px; }
.vz-ticks i { border-radius: 3px; background: var(--g); opacity: .22; animation: vzTick 3s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); }
@keyframes vzTick { 0%, 100% { opacity: .22; transform: scaleY(.7); } 30% { opacity: 1; transform: scaleY(1); } }

/* brokers */
.viz .vz-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.vz-lines path { fill: none; stroke: rgba(173, 255, 133, .35); stroke-width: 1.4; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; animation: vzDash 1.2s linear infinite; }
@keyframes vzDash { to { stroke-dashoffset: -18; } }
.viz .vz-b { position: absolute; padding: 5px 9px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--text); font-size: .66rem; white-space: nowrap; }
.b1 { top: 12px; left: 12px; } .b2 { top: 12px; right: 12px; } .b3 { bottom: 12px; left: 12px; } .viz .b4 { bottom: 12px; right: 12px; color: var(--g-hi); border-style: dashed; border-color: rgba(173, 255, 133, .45); }
.viz .vz-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 12px; border-radius: 999px; background: var(--grad); color: #041004; font-weight: 700; box-shadow: 0 0 30px -4px rgba(124, 227, 74, .7); animation: vzHub 2.4s ease-in-out infinite; }
@keyframes vzHub { 50% { box-shadow: 0 0 44px 0 rgba(124, 227, 74, .9); } }

/* sliders */
.vz-slider { display: grid; grid-template-columns: 68px 1fr 64px; align-items: center; gap: 10px; font-size: .66rem; }
.vz-slider em { font-style: normal; color: var(--g-hi); text-align: right; }
.vz-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.vz-track i { position: relative; display: block; height: 100%; width: var(--a); border-radius: 6px; background: var(--grad); animation: vzSlide 3.2s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.9s); }
.vz-track i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(124, 227, 74, .25); }
@keyframes vzSlide { from { width: var(--a); } to { width: var(--b); } }

/* sync */
.vz-order { display: grid; grid-template-columns: 74px 1fr auto 16px; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: .66rem; }
.vz-order b { font-weight: 500; color: var(--dim); font-size: .6rem; letter-spacing: .04em; }
.vz-order em { font-style: normal; color: #fff; }
.vz-order.master { border-color: rgba(173, 255, 133, .35); background: rgba(124, 227, 74, .07); }
.vz-order.child { animation: vzRow 4.5s ease infinite; animation-delay: calc(.4s + var(--i) * .35s); }
.vz-check { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--g); color: #041004; animation: vzCheck 4.5s ease infinite; animation-delay: calc(.4s + var(--i) * .35s); }
@keyframes vzRow { 0% { opacity: .25; transform: translateX(-6px); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: .25; } }
@keyframes vzCheck { 0%, 8% { transform: scale(0); } 16%, 88% { transform: scale(1); } 100% { transform: scale(0); } }

/* code */
.vz-code { display: grid; gap: 5px; font-size: .7rem; color: #cfe3dc; }
.vz-code div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: vzLine 5s ease infinite; animation-delay: calc(var(--i) * .45s); }
.vz-code i { font-style: normal; }
.vz-code .k { color: var(--g-hi); } .vz-code .s { color: #ffd88a; } .vz-code .n { color: var(--cyan); } .vz-code .ok { color: var(--g); }
@keyframes vzLine { 0% { opacity: 0; transform: translateY(4px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* chart */
.vz-chart { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.vz-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: linear-gradient(to top, rgba(124, 227, 74, .15), var(--g)); transform-origin: bottom; animation: vzBar 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .08s); }
@keyframes vzBar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

/* price */
.vz-eq { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .78rem; flex-wrap: wrap; }
.vz-tag { font: 800 1.7rem/1 var(--font-head); padding: 6px 12px; border-radius: 12px; color: #041004; background: linear-gradient(110deg, #adff85 20%, #fff 40%, #adff85 60%, #5cc927); background-size: 250% 100%; animation: vzShine 3s linear infinite; }
@keyframes vzShine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.vz-zero { justify-content: center; gap: 14px; font-size: .64rem; color: var(--dim); }
.vz-zero b { color: var(--g-hi); }

/* brand */
.vz-app { width: 78%; margin: 0 auto; border-radius: 10px; background: #f3f5f7; padding: 8px; display: grid; gap: 6px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.vz-app-top { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 6px; padding: 5px 6px; }
.vz-app-top i, .vz-app-body b { width: 14px; height: 14px; border-radius: 4px; animation: vzBrand 8s infinite; }
.vz-app-top span { height: 6px; width: 40%; border-radius: 3px; background: #d6dbe0; }
.vz-app-top em { margin-left: auto; height: 6px; width: 18%; border-radius: 3px; background: #e5e8ec; }
.vz-app-body { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.vz-app-body span { height: 22px; border-radius: 5px; background: #fff; }
.vz-app-body span.w { grid-column: span 2; height: 14px; }
.vz-app-body b { width: 46%; height: 12px; border-radius: 4px; }
.vz-swatches { display: flex; justify-content: center; gap: 8px; }
.vz-swatches i { width: 12px; height: 12px; border-radius: 50%; animation: vzSw 8s infinite; }
.vz-swatches i:nth-child(1) { background: #7ce34a; } .vz-swatches i:nth-child(2) { background: #2f6bff; animation-delay: 2s; } .vz-swatches i:nth-child(3) { background: #7c3aed; animation-delay: 4s; } .vz-swatches i:nth-child(4) { background: #f59e0b; animation-delay: 6s; }
@keyframes vzBrand { 0%, 22% { background: #7ce34a; } 25%, 47% { background: #2f6bff; } 50%, 72% { background: #7c3aed; } 75%, 97% { background: #f59e0b; } 100% { background: #7ce34a; } }
@keyframes vzSw { 0%, 22% { transform: scale(1.4); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); } 25%, 100% { transform: scale(1); box-shadow: none; } }

/* shield */
.viz-shield { flex-direction: row; align-items: center; justify-content: center; gap: 10px; }
.vz-box { display: grid; justify-items: center; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(173, 255, 133, .3); color: var(--g-hi); min-width: 92px; text-align: center; }
.vz-box b { color: #fff; font-size: .7rem; font-weight: 600; }
.vz-box small { color: var(--dim); font-size: .6rem; }
.vz-box.broker { border-color: rgba(255, 207, 92, .35); color: var(--amber); }
.vz-wire { position: relative; flex: 1; max-width: 120px; height: 2px; background: rgba(255, 255, 255, .1); }
.vz-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--g-hi); box-shadow: 0 0 10px var(--g); animation: vzMove 2s ease-in-out infinite; }
.vz-wire span { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); font-size: .58rem; color: var(--dim); white-space: nowrap; }
@keyframes vzMove { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }

/* users */
.vz-avatars { display: flex; align-items: center; justify-content: center; padding-left: 9px; }
.vz-avatars i { width: 32px; height: 32px; margin-left: -9px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #041004; background: var(--grad); border: 2px solid #071416; animation: vzPop 4s ease infinite; animation-delay: calc(var(--i) * .15s); }
.vz-avatars i:nth-child(even) { background: linear-gradient(135deg, #8ef0e2, #2bb7a5); }
.vz-avatars em { margin-left: 10px; font-style: normal; padding: 5px 9px; border-radius: 999px; border: 1px dashed rgba(173, 255, 133, .4); color: var(--g-hi); white-space: nowrap; }
.viz-users .vz-foot { justify-content: center; gap: 6px; }
@keyframes vzPop { 0%, 100% { transform: translateY(0); } 10% { transform: translateY(-5px); } 20% { transform: translateY(0); } }

/* toggles */
.vz-tog { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.vz-tog i { position: relative; width: 30px; height: 16px; border-radius: 99px; background: var(--g); }
.vz-tog i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.vz-tog.flip i { animation: vzFlipBg 3.4s infinite; }
.vz-tog.flip i::after { animation: vzFlip 3.4s infinite; }
.vz-tog.flip span { animation: vzFlipTxt 3.4s infinite; }
@keyframes vzFlipBg { 0%, 35%, 85%, 100% { background: var(--g); } 45%, 75% { background: #3a4a4e; } }
@keyframes vzFlip { 0%, 35%, 85%, 100% { right: 2px; } 45%, 75% { right: 16px; } }
@keyframes vzFlipTxt { 0%, 35%, 85%, 100% { opacity: 1; } 45%, 75% { opacity: .4; } }

/* webhook */
.viz-webhook { align-items: center; }
.vz-alert { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(106, 168, 255, .12); border: 1px solid rgba(106, 168, 255, .35); color: var(--blue); }
.vz-path { position: relative; width: 2px; height: 26px; background: rgba(255, 255, 255, .1); }
.vz-path i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: vzDrop 2.2s ease-in infinite; }
@keyframes vzDrop { from { top: -4px; opacity: 0; } 20% { opacity: 1; } to { top: 22px; opacity: 0; } }
.vz-fills { display: flex; gap: 6px; }
.vz-fills span { padding: 5px 9px; border-radius: 8px; background: rgba(124, 227, 74, .08); border: 1px solid rgba(173, 255, 133, .3); color: var(--g-hi); animation: vzFill 2.2s ease infinite; }
.vz-fills span:nth-child(2) { animation-delay: .12s; } .vz-fills span:nth-child(3) { animation-delay: .24s; }
@keyframes vzFill { 0%, 70% { opacity: .35; } 85% { opacity: 1; transform: translateY(-2px); } 100% { opacity: .35; } }

/* ---- Flow: light beams instead of dots, conic ring instead of spinning dashes ---- */
.flow-svg .wire { stroke: rgba(255, 255, 255, .09); stroke-dasharray: none; stroke-width: 1.2; }
.flow-svg .wire.on { stroke: rgba(173, 255, 133, .2); }
.flow-svg .beam { fill: none; stroke: var(--g-hi); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(173, 255, 133, .9)); }
.flow-svg .beam.sell { stroke: var(--red); filter: drop-shadow(0 0 5px rgba(255, 111, 111, .9)); }
.flow-svg .beam.api { stroke: var(--cyan); filter: drop-shadow(0 0 5px rgba(79, 227, 208, .9)); }
.flow-svg .beam.tv { stroke: var(--blue); filter: drop-shadow(0 0 5px rgba(106, 168, 255, .9)); }
.core { background: radial-gradient(circle at 50% 30%, rgba(173, 255, 133, .22), rgba(8, 22, 25, .95) 68%); border: 1px solid rgba(173, 255, 133, .18); box-shadow: 0 0 80px -20px rgba(124, 227, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .08); }
.core::before { inset: -3px; border: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 65%, rgba(173, 255, 133, .95) 88%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: spin 3.5s linear infinite; }
.core::after { inset: -22px; border: 0; background: radial-gradient(closest-side, rgba(124, 227, 74, .14), transparent); animation: none; }
.flow-more { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 10px; border-radius: 14px; border: 1px dashed rgba(173, 255, 133, .3); color: var(--g-hi); font: 500 .74rem/1.2 var(--font-mono); text-align: center; background: rgba(124, 227, 74, .04); }
.node { background: rgba(10, 26, 30, .85); }

/* ---- Answer box: symmetric layout ---- */
.answer-card { display: grid; gap: 16px; }
.answer-q { margin: 0; }
.answer-code { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #050c0e; border: 1px solid var(--line-2); }
.answer-code code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: .85rem; color: var(--g-hi); background: none !important; border: 0 !important; padding: 0 !important; scrollbar-width: thin; }
.answer-code .copy-btn { position: static; flex: none; }
.answer-facts { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; border: 0; }
.answer-facts > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.answer-facts dd { margin: 0; font-size: .93rem; line-height: 1.35; }

@media (max-width: 960px) {
  .answer-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 640px) {
  .span-2 { grid-column: auto; flex-direction: column; }
  .span-2 .viz { margin: 10px 10px 0; min-height: 150px; }
  .span-2 .fx-text { padding: 18px 22px 22px; }
  .answer-facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { filter: none; }
}
.flow-col.accounts .flow-more { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .viz *, .viz *::after { animation: none !important; } }

/* =====================================================================
   v3 — bento fix + mobile-first responsive pass
   ===================================================================== */
.card.fx.span-2 { flex-direction: row; }
.vz-app-top i, .vz-app-body b { background: #7ce34a; }
html, body { overflow-x: clip; }
img, video, iframe { height: auto; }
.wrap > *, .split > *, .hero-grid > *, .pillar > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* Sticky mobile CTA bar */
.m-cta { display: none; }
@media (max-width: 768px) {
  .m-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(6, 15, 17, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .35s ease;
  }
  .m-cta.show { transform: none; }
  .m-cta .btn { flex: 1; min-height: 48px; }
  .m-cta .btn-wa { flex: 0 0 52px; padding: 0; color: #25d366; }
  .nav-open .m-cta { display: none; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 76px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero { padding-top: 32px; }
  .section { padding: clamp(56px, 8vw, 96px) 0; }
  .span-2 .fx-text { padding: 22px; }
}
@media (max-width: 960px) {
  .hero-grid > :last-child { max-width: 640px; width: 100%; margin-inline: auto; }
  .split .table-wrap, .split .card { max-width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 28px 20px; }
}

/* Phones */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .brand img { height: 26px; }
  h1 { font-size: clamp(2rem, 8.4vw, 2.6rem); letter-spacing: -.03em; }
  h2 { font-size: clamp(1.6rem, 6.6vw, 2rem); }
  .lead { font-size: 1.02rem; }
  .section-head { margin-bottom: 28px; }
  .section-head.center { text-align: left; }
  .section-head.center .eyebrow { justify-content: flex-start; }
  .section-head.center .lead { margin-inline: 0; }
  .hero-proof { gap: 8px 16px; font-size: .88rem; }
  .pill { font-size: .8rem; }
  .answer-card { padding: 18px; }
  .answer-a { font-size: 1rem; }

  /* Bigger tap targets */
  .btn { min-height: 46px; }
  .seg button { min-height: 42px; padding: .6rem .9rem; }
  .code-tab { padding: 12px 14px; }
  .site-footer ul { gap: 4px; }
  .site-footer ul a { display: inline-block; padding: 7px 0; }
  .f-legal a { padding: 6px 0; }
  .social a { width: 44px; height: 44px; }
  .faq-item summary { padding: 16px 18px; min-height: 56px; }

  /* iOS: 16px inputs prevent auto-zoom */
  .input, select.input, textarea.input, .num-stepper input, .child-rule select { font-size: 16px; }

  /* Tabs become a swipeable chip row */
  .tabs { width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 24px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; scroll-snap-align: start; padding: .8rem 1rem; }

  /* Testimonials / marquee sizing */
  .testi-track { grid-auto-columns: 86%; }
  .marquee-item { width: 120px; height: 54px; }

  /* Simulator & builder spacing */
  .sim-controls, .builder-form, .wl-controls { padding: 18px; }
  .builder-out pre.code { min-height: 220px; }
  .term-body { min-height: 220px; font-size: .76rem; }
  pre.code { font-size: .76rem; }
  .wl-app { min-height: 0; }
  .price-card { padding: 22px; }
  .price-tag .amt { font-size: 3.2rem; }
  .cta-inner { border-radius: 22px; text-align: left; }
  .cta-inner .btn-row, .cta-inner .eyebrow, .cta-points { justify-content: flex-start; }

  /* Comparison tables → stacked cards (labels added by JS) */
  .table-wrap.stack { overflow: visible; border: 0; background: none; }
  .stack table.cmp { min-width: 0 !important; border-collapse: separate; }
  .stack table.cmp thead { display: none; }
  .stack table.cmp tbody, .stack table.cmp tr, .stack table.cmp caption { display: block; }
  .stack table.cmp tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
  .stack table.cmp tbody th { display: block; padding: 12px 16px; background: rgba(255, 255, 255, .03); border-bottom: 1px solid var(--line); font-size: .95rem; }
  .stack table.cmp td { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: right; }
  .stack table.cmp tr td:last-child { border-bottom: 0; }
  .stack table.cmp td::before { content: attr(data-label); flex: 0 0 42%; text-align: left; color: var(--dim); font: 500 .72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
  .stack table.cmp td.hl { background: rgba(124, 227, 74, .06); }
  .stack table.cmp td .yes, .stack table.cmp td .no, .stack table.cmp td .part { justify-content: flex-end; }
  .stack table.cmp caption { padding: 4px 2px 0; border: 0; }
}

@media (max-width: 640px) {
  .answer-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
  .broker-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .broker-cell { font-size: .74rem; }
  .vz-order { grid-template-columns: 64px 1fr auto 16px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .broker-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-col.sources .node b { font-size: .72rem; }
  .hero-proof li { width: 100%; }
}
@media (max-width: 640px) {
  .card.fx.span-2 { flex-direction: column; }
}
@media (max-width: 700px) {
  .flow-col.accounts .node { flex-direction: column; align-items: stretch; gap: 6px; }
  .flow-col.accounts .node .n-lot { text-align: center; }
}
@media (max-width: 768px) {
  .steps { gap: 10px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .step-n { grid-row: span 2; margin: 0; }
  .step h3 { margin-bottom: .25em; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: nowrap; width: max-content; justify-content: flex-start; }
  .marquee-item[aria-hidden="true"] { display: none; }
}
[hidden] { display: none !important; }
.answer-card { grid-template-columns: minmax(0, 1fr); }
.answer-card > * { min-width: 0; }
@media (max-width: 960px) {
  .answer-facts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
@media (max-width: 640px) {
  .answer-facts { grid-template-columns: 1fr 1fr; }
}

/* Master / child representation in flow diagrams */
.flow-label { display: block; grid-column: 1 / -1; font: 600 .62rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 2px 2px; }
.flow-col.accounts .flow-label { text-align: left; }
.n-tag { display: inline-block; margin-bottom: 3px; padding: 2px 6px; border-radius: 5px; font: 700 .56rem/1.2 var(--font-mono); letter-spacing: .08em; font-style: normal; color: var(--cyan); background: rgba(79, 227, 208, .1); border: 1px solid rgba(79, 227, 208, .25); }
.n-tag.master-tag { color: #041004; background: var(--grad); border-color: transparent; }
.node.master { border-color: rgba(173, 255, 133, .45); background: linear-gradient(135deg, rgba(124, 227, 74, .12), rgba(10, 26, 30, .9) 60%); box-shadow: 0 0 0 1px rgba(124, 227, 74, .08), 0 10px 30px -14px rgba(124, 227, 74, .45); }
.node.child { border-left: 2px solid rgba(79, 227, 208, .45); }
@media (max-width: 700px) {
  .flow-col.sources { grid-template-columns: repeat(2, 1fr); }
  .flow-col.sources .node .n-tag { margin-inline: auto; }
}
@media (max-width: 700px) { .flow-col.sources .node:only-of-type { grid-column: 1 / -1; } }

/* =====================================================================
   v4 — refined scale: tighter type, spacing and components
   ===================================================================== */
:root { --wrap: 1140px; --header-h: 64px; --radius: 14px; --radius-sm: 10px; }
body { font-size: .96rem; line-height: 1.6; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
p, li, dd { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 3.3vw, 2.85rem); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.3vw, 2.05rem); letter-spacing: -.025em; }
h3, .h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.lead { font-size: 1.02rem; max-width: 620px; }
.eyebrow { font-size: .64rem; padding: .35rem .65rem; margin-bottom: .85rem; }
.section { padding: clamp(48px, 6vw, 88px) 0; }
.section-head { margin-bottom: clamp(26px, 3vw, 38px); max-width: 680px; }
.hero { padding: clamp(28px, 4.5vw, 60px) 0 clamp(36px, 5vw, 64px); }
.hero .lead { margin-bottom: 1.4rem; }
.hero-grid { gap: clamp(28px, 4vw, 52px); }
.pill { font-size: .78rem; margin-bottom: 1.1rem; padding: .3rem .75rem .3rem .35rem; }
.hero-proof { margin-top: 18px; font-size: .86rem; }

/* Header */
.brand img { height: 26px; }
.nav-link { font-size: .88rem; padding: .5rem .7rem; }
.mega { border-radius: 14px; }
.mega-item strong { font-size: .9rem; }
.mega-item small { font-size: .78rem; }
.mega-ico { width: 34px; height: 34px; border-radius: 9px; }

/* Buttons */
.btn { padding: .58rem 1rem; font-size: .88rem; border-radius: 10px; }
.btn-lg { padding: .74rem 1.2rem; font-size: .92rem; border-radius: 11px; }
.btn-primary { box-shadow: 0 6px 22px -10px rgba(124, 227, 74, .6), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* Cards & grids */
.grid-2, .grid-3, .grid-4 { gap: 16px; }
.card { padding: clamp(18px, 2vw, 22px); border-radius: var(--radius); }
.viz { height: 132px; margin: 8px 8px 0; padding: 12px; border-radius: 10px; font-size: .68rem; }
.span-2 .viz { min-height: 160px; margin: 8px 0 8px 8px; }
.fx-text { padding: 14px 18px 18px; }
.fx-text h3 { font-size: 1rem; }
.fx-text p { font-size: .89rem; }
.span-2 .fx-text h3 { font-size: 1.15rem; }
.aud { padding: 16px; gap: 12px; border-radius: 12px; }
.aud h3 { font-size: .96rem; }
.aud p { font-size: .87rem; }
.step { padding: 20px; border-radius: 12px; }
.step-n { width: 32px; height: 32px; border-radius: 9px; font-size: .9rem; margin-bottom: 12px; }
.step h3 { font-size: 1rem; }
.step p { font-size: .9rem; }
.related-card { padding: 16px; border-radius: 12px; }

/* Answer box */
.answer-card { padding: clamp(18px, 2.4vw, 24px); border-radius: 16px; gap: 12px; }
.answer-a { font-size: .99rem; }
.answer-facts > div { padding: 11px 13px; border-radius: 10px; gap: 4px; }
.answer-facts dt { font-size: .66rem; }
.answer-facts dd { font-size: .86rem; }

/* Stats */
.stat { padding: 20px; }
.stat-num { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.stat p { font-size: .84rem; }

/* Flow diagram */
.flow { padding: clamp(14px, 1.8vw, 20px); border-radius: 18px; }
.flow-cols { gap: clamp(20px, 3vw, 36px); }
.node { padding: 8px 10px; border-radius: 11px; gap: 8px; }
.node .n-ico { width: 28px; height: 28px; border-radius: 8px; }
.node b { font-size: .8rem; }
.node small { font-size: .68rem; }
.node .n-lot { font-size: .72rem; padding: .28rem .42rem; }
.core { width: clamp(92px, 9vw, 112px); }
.flow-head { margin-bottom: 12px; font-size: .66rem; }
.flow-log { height: 62px; font-size: .72rem; margin-top: 16px; padding-top: 10px; }
.flow-more { font-size: .68rem; padding: 7px 8px; border-radius: 11px; }

/* Tabs, tables, FAQ */
.tabs { margin-bottom: 28px; padding: 5px; border-radius: 13px; }
.tab { padding: .6rem .95rem; font-size: .88rem; border-radius: 9px; }
.pillar h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }
table.cmp { font-size: .88rem; }
table.cmp th, table.cmp td { padding: 12px 16px; }
table.cmp thead th { font-size: .72rem; }
.faq-item { border-radius: 12px; }
.faq-item summary { padding: 15px 18px; }
.faq-item summary h3 { font-size: .95rem; }
.faq-body { padding: 0 18px 16px; font-size: .92rem; }
.checklist { gap: 9px; margin: 1.1rem 0 1.4rem; font-size: .94rem; }

/* Interactive tools */
.builder, .sim, .wl { border-radius: 16px; }
.builder-form, .sim-controls, .wl-controls { padding: 20px; gap: 14px; }
.input, select.input, textarea.input { padding: .62rem .8rem; font-size: .9rem; border-radius: 10px; }
.seg button { padding: .45rem .7rem; font-size: .8rem; border-radius: 8px; }
.term, pre.code { font-size: .78rem; }
.term-body { min-height: 230px; padding: 14px 16px; }
.price-card { padding: clamp(22px, 2.8vw, 30px); border-radius: 18px; }
.price-tag .amt { font-size: clamp(2.8rem, 5vw, 3.8rem); }
.calc-total strong { font-size: 1.6rem; }
.testi { padding: 20px; border-radius: 14px; }
.testi blockquote { font-size: .92rem; }
.testi-track { grid-auto-columns: minmax(280px, 340px); }
.marquee-item { width: 132px; height: 54px; border-radius: 11px; }
.marquee-item img { max-height: 28px; }

/* CTA & footer */
.cta-inner { padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); border-radius: 20px; }
.site-footer { padding-top: 48px; }
.footer-brand p { font-size: .86rem; }
.site-footer ul a { font-size: .87rem; }
.f-head { font-size: .7rem; margin-bottom: 12px; }
.footer-bottom { margin-top: 36px; font-size: .8rem; }
.disclaimer { font-size: .74rem; }

/* Calmer ambient background */
body::before { background: radial-gradient(800px 420px at 78% -12%, rgba(92, 201, 39, .10), transparent 60%), radial-gradient(600px 360px at -10% 8%, rgba(79, 227, 208, .04), transparent 60%); }

@media (max-width: 768px) {
  h1 { font-size: clamp(1.85rem, 7.6vw, 2.3rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.75rem); }
  .btn { min-height: 44px; }
  .input, select.input, textarea.input, .num-stepper input, .child-rule select { font-size: 16px; }
}
.hero-grid { grid-template-columns: .9fr 1.1fr; }
.node small { white-space: normal; overflow: visible; line-height: 1.3; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Pricing: plan picker & plan cards */
.calc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.calc-cur button { padding: .35rem .6rem; font-size: .74rem; }
.plan-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.plan-pick button { position: relative; display: grid; gap: 2px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(5, 12, 14, .6); color: var(--muted); cursor: pointer; text-align: center; font: inherit; }
.plan-pick button b { color: #fff; font-size: .8rem; font-weight: 600; }
.plan-pick button small { font-size: .68rem; }
.plan-pick button i { position: absolute; top: -8px; right: -4px; font: 700 .58rem/1 var(--font-mono); font-style: normal; padding: 3px 5px; border-radius: 6px; background: var(--grad); color: #041004; }
.plan-pick button[aria-pressed="true"] { border-color: rgba(173, 255, 133, .55); background: var(--g-soft); }
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.plan.best { border-color: rgba(173, 255, 133, .45); background: radial-gradient(240px 120px at 50% 0, rgba(124, 227, 74, .12), transparent 70%), var(--card); }
.plan-top { display: flex; justify-content: space-between; align-items: center; }
.plan-top strong { font-size: .95rem; }
.plan-amt { font: 800 2rem/1 var(--font-head); letter-spacing: -.03em; margin-top: 8px; }
.plan-amt small { font: 500 .78rem/1 var(--font); color: var(--muted); letter-spacing: 0; }
.plan p { margin: 0; color: var(--muted); font-size: .82rem; }
.plan .btn { margin-top: auto; width: 100%; }
.plan .plan-flag { position: absolute; top: -10px; left: 16px; font: 700 .6rem/1 var(--font-mono); padding: 4px 7px; border-radius: 6px; background: var(--grad); color: #041004; letter-spacing: .06em; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } .plan-pick { grid-template-columns: 1fr 1fr; } }

/* Algo development requirement form */
.req-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.req-side { position: sticky; top: calc(var(--header-h) + 20px); }
.req-steps { list-style: none; display: grid; gap: 12px; margin: 22px 0; }
.req-steps li { display: flex; gap: 12px; align-items: flex-start; }
.req-steps li > span { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--g-soft); color: var(--g-hi); border: 1px solid rgba(173, 255, 133, .25); font: 700 .78rem/1 var(--font-mono); }
.req-steps b { display: block; font-size: .92rem; color: #fff; }
.req-steps small { color: var(--muted); font-size: .84rem; }
.req-tip { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); margin-bottom: 14px; }
.req-tip p { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.req-tip ul { padding-left: 1.1rem; display: grid; gap: 4px; color: var(--muted); font-size: .85rem; }
.req-card { padding: clamp(18px, 2.4vw, 26px); }
.algo-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.algo-form legend { padding: 0; margin-bottom: 8px; }
.chip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip-card { position: relative; display: grid; gap: 3px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 12, 14, .6); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.chip-card:hover { border-color: rgba(173, 255, 133, .35); }
.chip-card input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip-card b { color: #fff; font-size: .86rem; }
.chip-card small { color: var(--dim); font-size: .72rem; line-height: 1.35; }
.chip-badge { justify-self: start; font: 700 .62rem/1 var(--font-mono); padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); margin-bottom: 4px; }
.chip-card::after { content: ""; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line-2); }
.chip-card:has(input:checked) { border-color: rgba(173, 255, 133, .6); background: var(--g-soft); }
.chip-card:has(input:checked) .chip-badge { background: var(--grad); color: #041004; }
.chip-card:has(input:checked)::after { background: var(--g) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041004' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--g); }
.chip-card:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--g-hi); outline-offset: 2px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip span { display: inline-block; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: .82rem; cursor: pointer; transition: all .2s; }
.chip { position: relative; }
.chip:hover span { color: #fff; }
.chip:has(input:checked) span { background: var(--g-soft); border-color: rgba(173, 255, 133, .55); color: #fff; }
.field-err { color: var(--red); }
.file-drop { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(173, 255, 133, .3); background: rgba(124, 227, 74, .03); color: var(--muted); font-size: .84rem; cursor: pointer; }
.file-drop:hover { border-color: rgba(173, 255, 133, .6); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop .ico { color: var(--g-hi); flex: none; }
.file-drop.has-file { border-style: solid; color: #fff; }
.file-drop.bad { border-color: var(--red); color: var(--red); }

/* Home banner */
.algo-banner-wrap { padding: 8px 0 clamp(40px, 5vw, 64px); }
.algo-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 3vw, 32px); border-radius: 18px; border: 1px solid rgba(173, 255, 133, .22); background: radial-gradient(500px 200px at 0% 0%, rgba(124, 227, 74, .12), transparent 70%), linear-gradient(180deg, var(--card-2), var(--card)); }
.algo-banner h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: .35em; }
.algo-banner p.muted { margin: 0 0 12px; max-width: 560px; }
.algo-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.algo-langs li { padding: .3rem .6rem; border-radius: 8px; font: 600 .72rem/1 var(--font-mono); color: var(--g-hi); background: rgba(124, 227, 74, .08); border: 1px solid rgba(173, 255, 133, .2); }

@media (max-width: 960px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-side { position: static; }
  .chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .algo-banner { flex-direction: column; align-items: flex-start; }
}

/* Fast · Secure · Scalable pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pillar-card { display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card-2), var(--card)); overflow: hidden; transition: border-color .3s, transform .3s; }
.pillar-card:hover { border-color: rgba(173, 255, 133, .3); transform: translateY(-3px); }
.pillar-card .viz { height: 128px; }
.pillar-body { padding: 16px 20px 20px; }
.pillar-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 700 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--g-hi); }
.pillar-body h3 { font-size: 1.12rem; margin-bottom: .4em; }
.pillar-body > p { color: var(--muted); font-size: .9rem; margin: 0; }
.pillar-body .checklist { margin: 12px 0 0; gap: 6px; font-size: .86rem; }
.pillar-body .checklist .ico { margin-top: 4px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } .pillar-card { flex-direction: row; } .pillar-card .viz { flex: 0 0 42%; height: auto; min-height: 150px; margin: 8px 0 8px 8px; } }
@media (max-width: 640px) { .pillar-card { flex-direction: column; } .pillar-card .viz { flex: none; height: 128px; margin: 8px 8px 0; } }
.aka { margin-top: 14px; }
.aka p { margin: 0; font-size: .8rem; color: var(--dim); line-height: 1.6; }
.aka span { font: 600 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
