:root {
  --bg: #080b0d;
  --panel: #0d1114;
  --line: rgba(214, 228, 226, 0.085);
  --line-strong: rgba(214, 228, 226, 0.17);
  --btn-edge: rgba(236, 231, 218, 0.28);
  --text: #ece7da;
  --muted: oklch(0.68 0.018 195);
  --dim: oklch(0.52 0.018 195);
  --yes: oklch(0.83 0.135 174);
  --no: oklch(0.66 0.19 18);
  --warn: oklch(0.79 0.115 76);
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 4px;
  --gutter: clamp(20px, 4vw, 40px);
  --page: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font: 16px/1.55 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
}

/* Subtle atmospheric night-sky washes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    radial-gradient(62% 48% at 78% 12%, rgba(92, 229, 200, 0.052) 0%, transparent 72%),
    radial-gradient(56% 44% at 14% 38%, rgba(72, 128, 168, 0.045) 0%, transparent 74%),
    radial-gradient(48% 42% at 84% 78%, rgba(226, 191, 127, 0.03) 0%, transparent 72%);
}

/* Seamless coprime multi-layer water currents & eddies (C1-continuous periodic SVG waves) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='380' viewBox='0 0 520 380' fill='none'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M0 72 C 130 24, 130 24, 260 72 S 390 120, 520 72' stroke='%237cc9bc' stroke-opacity='0.068' stroke-width='1.35' stroke-dasharray='28 16 10 13.78'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-67.78' dur='9.5s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M0 248 C 130 284, 130 284, 260 248 S 390 212, 520 248' stroke='%237cc9bc' stroke-opacity='0.054' stroke-width='1.15' stroke-dasharray='22 18 12 14.58'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-66.58' dur='12.5s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='710' height='470' viewBox='0 0 710 470' fill='none'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M0 138 C 177.5 194, 177.5 194, 355 138 S 532.5 82, 710 138' stroke='%235ce5c8' stroke-opacity='0.062' stroke-width='1.2' stroke-dasharray='30 16 8 12.57'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-66.57' dur='11s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M0 342 C 177.5 298, 177.5 298, 355 342 S 532.5 386, 710 342' stroke='%237cc9bc' stroke-opacity='0.05' stroke-width='1.15' stroke-dasharray='20 18 14 13.81'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-65.81' dur='14s' repeatCount='indefinite'/%3E%3C/path%3E%3Ccircle cx='215' cy='218' r='34' stroke='%235ce5c8' stroke-opacity='0.058' stroke-width='1.15' stroke-dasharray='24 29.41'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-53.41' dur='10s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='215' cy='218' r='20' stroke='%23e2bf7f' stroke-opacity='0.048' stroke-width='1.05' stroke-dasharray='16 25.89'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-41.89' dur='7.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='890' height='590' viewBox='0 0 890 590' fill='none'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M0 236 C 222.5 164, 222.5 164, 445 236 S 667.5 308, 890 236' stroke='%23e2bf7f' stroke-opacity='0.048' stroke-width='1.15' stroke-dasharray='26 18 10 11.67'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-65.67' dur='15s' repeatCount='indefinite'/%3E%3C/path%3E%3Cpath d='M0 482 C 222.5 536, 222.5 536, 445 482 S 667.5 428, 890 482' stroke='%23ee5160' stroke-opacity='0.04' stroke-width='1.1' stroke-dasharray='18 20 12 14.76'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='-64.76' dur='13s' repeatCount='indefinite'/%3E%3C/path%3E%3Ccircle cx='612' cy='346' r='38' stroke='%23e2bf7f' stroke-opacity='0.048' stroke-width='1.1' stroke-dasharray='26 33.69'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='59.69' dur='12s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='612' cy='346' r='22' stroke='%235ce5c8' stroke-opacity='0.045' stroke-width='1.05' stroke-dasharray='16 30.08'%3E%3Canimate attributeName='stroke-dashoffset' from='0' to='46.08' dur='8.5s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 380px, 710px 470px, 890px 590px;
  background-position: 0 0, 140px 90px, 310px 180px;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(ellipse 96% 90% at 50% 42%, #000 50%, rgba(0, 0, 0, 0.28) 100%);
  mask-image: radial-gradient(ellipse 96% 90% at 50% 42%, #000 50%, rgba(0, 0, 0, 0.28) 100%);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, p, ul, pre { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
  background: linear-gradient(180deg, rgba(8, 11, 13, 0.42) 0%, rgba(8, 11, 13, 0.24) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.11) 18%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.11) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  opacity: 0.96;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand:hover {
  opacity: 1;
}

.brand-mark,
.brand-word {
  flex-shrink: 0;
  display: block;
  color: inherit;
}
.brand-mark { width: 22px; height: 22px; }
.brand-word { height: 18px; width: auto; }
.brand-mini .brand-mark { width: 16px; height: 16px; }
.brand-mini .brand-word { height: 13px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 24px rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.site-nav a:not(.cta) {
  color: rgba(236, 231, 218, 0.68);
  padding: 6px 13px;
  border-radius: 999px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav a:not(.cta):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-menu-btn .nav-menu-ico-close {
  display: none;
}
.nav-menu-btn.open .nav-menu-ico-open {
  display: none;
}
.nav-menu-btn.open .nav-menu-ico-close {
  display: block;
}
.mobile-nav-drawer {
  position: absolute;
  top: calc(100% + 6px);
  right: var(--gutter);
  min-width: 180px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 18, 21, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.mobile-nav-drawer[hidden] {
  display: none;
}
.mobile-nav-drawer a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(236, 231, 218, 0.85);
  transition: background-color 0.14s ease, color 0.14s ease;
}
.mobile-nav-drawer a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---- Buttons ---- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--btn-edge);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.cta:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
}

.cta.primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.cta.primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}

.site-nav .cta {
  margin-left: 4px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: linear-gradient(180deg, #ffffff 0%, #dfd9cb 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #080b0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 20px rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.site-nav .cta::after {
  content: "→";
  margin-left: 5px;
  font-size: 12px;
  opacity: 0.72;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-nav .cta:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ece7da 100%);
  border-color: #fff;
  color: #080b0d;
  box-shadow: inset 0 1px 0 #fff, 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 26px rgba(255, 255, 255, 0.22);
}

.site-nav .cta:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- ASCII ---- */

.ascii {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.25;
  font-variant-ligatures: none;
  color: var(--text);
  white-space: pre;
  overflow: hidden;
}

.ascii .dim { color: var(--dim); }
.ascii .lbl { color: var(--text); }
.ascii .yes { color: var(--yes); }
.ascii .no { color: var(--no); }

/* ---- Hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 56px);
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(40px, 6.5vw, 84px) var(--gutter) clamp(44px, 6.5vw, 80px);
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lede {
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.55;
  max-width: 32rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 26rem;
}

.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

.hero-stats dt {
  font-size: 12px;
  color: var(--muted);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero-trust a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-trust a:hover {
  color: var(--text);
}

.hero-sim { min-width: 0; }

.sim {
  font-size: clamp(11px, 1.15vw, 14px);
  min-height: calc(16 * 1.25em);
}

.sim-note {
  margin-top: 16px;
  color: var(--dim);
  font-size: 12px;
}

/* ---- Liquidation wick protection ---- */

.wick-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yes);
}

.wick-replay {
  font: inherit;
  cursor: pointer;
}

.wick-sim {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.wick-card {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@keyframes wick-liq-flash {
  0% {
    background: color-mix(in srgb, var(--no) 36%, var(--panel));
    box-shadow: 0 0 32px color-mix(in srgb, var(--no) 45%, transparent), inset 0 0 44px color-mix(in srgb, var(--no) 32%, transparent);
    transform: translateX(0);
  }
  12% { transform: translateX(-4px); }
  24% { transform: translateX(4px); }
  36% {
    background: color-mix(in srgb, var(--no) 12%, var(--panel));
    transform: translateX(-3px);
  }
  48% {
    background: color-mix(in srgb, var(--no) 28%, var(--panel));
    transform: translateX(2px);
  }
  65% { transform: translateX(0); }
  100% {
    background: color-mix(in srgb, var(--no) 14%, var(--panel));
    box-shadow: 0 0 20px color-mix(in srgb, var(--no) 22%, transparent), inset 0 0 28px color-mix(in srgb, var(--no) 16%, transparent);
    transform: translateX(0);
  }
}

.wick-card.is-liq {
  border-color: color-mix(in srgb, var(--no) 78%, var(--line));
  background: color-mix(in srgb, var(--no) 14%, var(--panel));
  box-shadow: 0 0 20px color-mix(in srgb, var(--no) 22%, transparent), inset 0 0 28px color-mix(in srgb, var(--no) 16%, transparent);
  animation: wick-liq-flash 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wick-card.is-liq .wk-liq-zone {
  opacity: 0.24;
}

@keyframes wick-win-pop {
  0% {
    background: color-mix(in srgb, var(--yes) 28%, var(--panel));
    box-shadow: 0 0 34px color-mix(in srgb, var(--yes) 42%, transparent), inset 0 0 42px color-mix(in srgb, var(--yes) 26%, transparent);
    transform: translateY(0) rotate(0deg);
  }
  15% { transform: translate(-3px, -2px) rotate(-0.7deg); }
  30% { transform: translate(3px, -1px) rotate(0.7deg); }
  45% { transform: translate(-2px, 0) rotate(-0.4deg); }
  62% { transform: translate(1.5px, 0) rotate(0.3deg); }
  100% {
    background: color-mix(in srgb, var(--yes) 9%, var(--panel));
    box-shadow: 0 0 22px color-mix(in srgb, var(--yes) 18%, transparent), inset 0 0 24px color-mix(in srgb, var(--yes) 12%, transparent);
    transform: translate(0, 0) rotate(0deg);
  }
}

.wick-card.is-win {
  border-color: color-mix(in srgb, var(--yes) 70%, var(--line));
  background: color-mix(in srgb, var(--yes) 9%, var(--panel));
  box-shadow: 0 0 22px color-mix(in srgb, var(--yes) 18%, transparent), inset 0 0 24px color-mix(in srgb, var(--yes) 12%, transparent);
  animation: wick-win-pop 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wick-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.wick-card-head > div {
  min-width: 0;
}

.wick-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wick-card-sub {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wick-badge {
  flex: 0 0 auto;
  min-width: 78px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wick-badge.open {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
}

.wick-badge.liq {
  color: var(--no);
  background: color-mix(in srgb, var(--no) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--no) 45%, transparent);
}

.wick-badge.win {
  color: var(--yes);
  background: color-mix(in srgb, var(--yes) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--yes) 45%, transparent);
}

.wick-svg {
  width: 100%;
  aspect-ratio: 360 / 165;
  height: auto;
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .hero .wick-card {
    padding: 12px 14px;
  }
}

@media (min-width: 901px) {
  .hero {
    align-items: stretch;
  }
  .hero-sim {
    display: flex;
    flex-direction: column;
  }
  .hero .wick-sim {
    flex: 1 1 auto;
  }
  .hero .wick-card {
    height: 100%;
  }
  .hero .wick-svg {
    flex: 1 1 auto;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    min-height: 280px;
  }
}

.wk-grid { stroke: var(--line); stroke-width: 1; }
.wk-axis { fill: var(--dim); font-family: var(--mono); font-size: 9.5px; }
.wk-target-dim { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.45; }
.wk-lbl-dim { fill: var(--dim); font-family: var(--mono); font-size: 9.5px; }
.wk-liq-line { stroke: var(--no); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: 0.85; }
.wk-liq-zone { fill: var(--no); opacity: 0.08; }
.wk-liq-lbl { fill: var(--no); font-family: var(--mono); font-size: 9.5px; font-weight: 500; }
.wk-target-line { stroke: var(--yes); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: 0.85; }
.wk-target-lbl { fill: var(--yes); font-family: var(--mono); font-size: 9.5px; font-weight: 500; }
.wk-noliq-lbl { fill: var(--dim); font-family: var(--mono); font-size: 9.5px; font-style: italic; opacity: 0.8; }

.wk-path-live { fill: none; stroke: var(--text); stroke-width: 1.85; stroke-linejoin: round; stroke-linecap: round; }
.wk-path-dead { fill: none; stroke: var(--dim); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: 0.55; stroke-linejoin: round; stroke-linecap: round; }
.wk-path-az { fill: none; stroke: var(--yes); stroke-width: 1.85; stroke-linejoin: round; stroke-linecap: round; }
.wk-dot { fill: var(--text); }
.wk-dot-dead { fill: var(--dim); opacity: 0.6; }
.wk-dot-az { fill: var(--yes); }

.wk-event { transition: opacity 0.2s ease; }
.wk-ping-no { fill: var(--no); opacity: 0.22; }
.wk-hit-no { fill: var(--no); }
.wk-tag-bg-no { fill: color-mix(in srgb, var(--no) 20%, var(--panel)); stroke: color-mix(in srgb, var(--no) 55%, transparent); stroke-width: 1; }
.wk-tag-txt-no { fill: var(--no); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; }

.wk-tag-bg-safe { fill: rgba(255, 255, 255, 0.06); stroke: var(--line-strong); stroke-width: 1; }
.wk-tag-txt-safe { fill: var(--text); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.04em; }

.wk-ping-yes { fill: var(--yes); opacity: 0.22; }
.wk-hit-yes { fill: var(--yes); }
.wk-tag-bg-yes { fill: color-mix(in srgb, var(--yes) 20%, var(--panel)); stroke: color-mix(in srgb, var(--yes) 55%, transparent); stroke-width: 1; }
.wk-tag-txt-yes { fill: var(--yes); font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; }

.wick-foot {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
}

.wick-foot strong { font-weight: 500; color: var(--text); }
.wick-foot .wk-pnl { font-weight: 600; margin-left: auto; text-align: right; }
.wick-foot .wk-pnl.up { color: var(--yes); }
.wick-foot .wk-pnl.down { color: var(--no); }

/* ---- Perpetual Hit spotlight ---- */

.perp-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yes);
}

.perp-ascii {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  font-size: clamp(10px, 1.05vw, 12.5px);
  overflow-x: auto;
}

/* ---- Highlights strip ---- */

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px var(--gutter);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  position: relative;
}

.spec-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.spec-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spec-strip span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yes);
  opacity: 0.85;
}

/* ---- Facts strip ---- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 56px);
  max-width: var(--page);
  margin: 0 auto;
  padding: 20px var(--gutter) clamp(56px, 8vw, 96px);
}

.facts > div {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.facts h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.facts p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* ---- Sections ---- */

.block {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 40px clamp(40px, 6vw, 80px);
  align-items: start;
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  position: relative;
}

.block::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.block-head h2,
.closing h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.block-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.block-head p strong {
  color: var(--text);
  font-weight: 600;
}

.block-head .cta-row { margin-top: 24px; }

.block-body {
  display: grid;
  gap: 36px;
  min-width: 0;
}

.block h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.block h3 a:hover,
a.inline:hover { text-decoration: underline; text-underline-offset: 3px; }

a.inline {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.block li p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px clamp(24px, 4vw, 48px);
}

.item-grid.one { grid-template-columns: 1fr; }

/* Markets */

.kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 40px clamp(20px, 3vw, 32px);
}

.kind-grid .ascii {
  font-size: 12px;
  margin-bottom: 20px;
}

/* Timeframes: same hues as the exchange timeframe pills. */

.timeline { font-size: 14px; line-height: 1.7; }
.timeline .c-d { color: oklch(0.74 0.145 352.54); }
.timeline .c-w { color: oklch(0.74 0.145 267.55); }
.timeline .c-m { color: oklch(0.74 0.145 45.06); }
.timeline .c-q { color: oklch(0.74 0.145 97.59); }
.timeline .c-y { color: oklch(0.74 0.145 190); }
.timeline .c-p { color: oklch(0.74 0.145 310); }

/* How we build */

.spec {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.45;
}

/* API */

.api-body {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px clamp(24px, 4vw, 48px);
  align-items: start;
}

.code-panel {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-x: auto;
}

.code-ep {
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.code-ep .method {
  color: var(--yes);
  font-weight: 500;
  margin-right: 6px;
}

.code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre;
}

.code .key { color: var(--muted); }
.code .num { color: var(--yes); }
.code .str { color: var(--warn); }

/* Community */

.flow { font-size: 14px; line-height: 2; }

/* FAQ */

.faq-list { border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1ch;
  text-align: center;
  font-family: var(--mono);
  font-weight: 400;
  color: var(--muted);
}

.faq-item[open] summary::after { content: "-"; }

.faq-item summary:hover { color: #fff; }

.faq-body {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 62ch;
}

.faq-body p + p,
.faq-body p + ul { margin-top: 12px; }

.faq-body ul {
  list-style: disc;
  padding-left: 1.2em;
}

.faq-body li + li { margin-top: 10px; }

.faq-body strong {
  color: var(--text);
  font-weight: 600;
}

.faq-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.faq-body a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.faq-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ---- Closing ---- */

.closing {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(64px, 9vw, 112px);
  position: relative;
}

.closing-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 6vw, 68px) clamp(22px, 5vw, 56px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(640px 260px at 50% -12%, rgba(255, 255, 255, 0.065), transparent 70%),
    linear-gradient(180deg, rgba(14, 19, 22, 0.96) 0%, rgba(11, 15, 18, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.closing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 22%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0.16) 78%,
    transparent 100%
  );
  pointer-events: none;
}

.closing-wm {
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: clamp(190px, 26vw, 290px);
  height: auto;
  color: #fff;
  opacity: 0.032;
  pointer-events: none;
}

.closing-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.closing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yes);
  box-shadow: 0 0 8px color-mix(in srgb, var(--yes) 75%, transparent);
}

.closing h2 {
  position: relative;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
}

.closing-sub {
  position: relative;
  max-width: 560px;
  margin: 14px 0 0;
  font-size: clamp(14.5px, 1.6vw, 16px);
  line-height: 1.6;
  color: var(--muted);
}

.closing-points {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 28px;
}

.closing-points li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.028);
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(236, 231, 218, 0.78);
}

.closing-actions {
  position: relative;
  justify-content: center;
  margin-top: 28px;
}

.closing-primary {
  padding: 11px 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #dfd9cb 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: #080b0d;
  box-shadow: inset 0 1px 0 #fff, 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 255, 255, 0.12);
}

.closing-primary::after {
  content: "→";
  margin-left: 7px;
  font-size: 13px;
  opacity: 0.75;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.closing-primary:hover {
  background: linear-gradient(180deg, #ffffff 0%, #ece7da 100%);
  color: #080b0d;
  box-shadow: inset 0 1px 0 #fff, 0 6px 22px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 255, 255, 0.22);
}

.closing-primary:hover::after {
  transform: translateX(2px);
  opacity: 1;
}

.closing-secondary {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}

.closing-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
}

/* ---- Footer ---- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 40px max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter))) calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 112px;
}

.footer-col h3 {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }

.muted { color: var(--muted); }

/* ---- Professional orders ---- */

.order-grid li { display: flex; flex-direction: column; align-items: flex-start; }

.order-tag {
  margin-top: 12px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.order-tag b { font-weight: 500; color: var(--text); }
.order-tag b.fair { color: oklch(0.72 0.19 305); }

.block li p strong { color: var(--text); font-weight: 600; }

.ed-tip {
  position: relative;
  display: inline-block;
  color: var(--text);
  border-bottom: 1px dotted rgba(236, 231, 218, 0.42);
  cursor: help;
}

.ed-tip-box {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translate(-50%, 4px);
  width: min(290px, 78vw);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #12171b;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
  z-index: 30;
}

.ed-tip-box strong {
  color: var(--text);
  font-weight: 600;
}

.ed-tip:hover .ed-tip-box,
.ed-tip:focus-visible .ed-tip-box {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---- Fair value live simulation ---- */

.fair-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.fair-lab.fair-lab-single {
  grid-template-columns: 1fr;
}
.fair-live-metrics {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.fair-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fair-no-val {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fv-swatch {
  display: inline-block;
  width: 10px;
  height: 2.5px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}
.fv-swatch.spot { background: #e2bf7f; }
.fv-swatch.fair { background: oklch(0.72 0.19 305); }

.fair-display,
.fair-chart-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fair-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.fair-spot-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  color: #e2bf7f;
  font-variant-numeric: tabular-nums;
}

.fair-chart-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.fv-svg {
  width: 100%;
  height: auto;
  display: block;
  flex: 1;
  min-height: 155px;
}

.fv-grid { stroke: var(--line); stroke-width: 1; }
.fv-strike { stroke: rgba(236, 231, 218, 0.42); stroke-width: 1.1; stroke-dasharray: 2.5 3.5; }
.fv-axis-lbl { fill: var(--dim); font-family: var(--mono); font-size: 10.5px; }
.fv-axis-spot { fill: rgba(226, 191, 127, 0.8); }
.fv-axis-fair { fill: oklch(0.72 0.19 305 / 0.85); }
.fv-strike-lbl { fill: rgba(236, 231, 218, 0.65); font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.fv-path { fill: none; stroke: #e2bf7f; stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }
.fv-area { fill: url(#fv-grad); }
.fv-dot { fill: #e2bf7f; }
.fv-dot-ring { fill: rgba(226, 191, 127, 0.24); }
.fv-candle-up { fill: var(--yes); opacity: 0.36; }
.fv-candle-dn { fill: var(--no); opacity: 0.36; }
.fv-mid-path { fill: none; stroke: oklch(0.72 0.19 305); stroke-width: 2.1; stroke-linejoin: round; stroke-linecap: round; }
.fv-mid-dot { fill: oklch(0.72 0.19 305); }
.fv-hline-spot { stroke: #e2bf7f; stroke-width: 1.15; stroke-dasharray: 2.5 3; opacity: 0.8; }
.fv-hline-fair { stroke: oklch(0.72 0.19 305); stroke-width: 1.15; stroke-dasharray: 2.5 3; opacity: 0.8; }
.fv-badge-bg-spot { fill: #e2bf7f; }
.fv-badge-bg-fair { fill: oklch(0.72 0.19 305); }
.fv-badge-txt { fill: #080b0d; font-family: var(--mono); font-size: 9.5px; font-weight: 700; }

.fair-lbl {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.fair-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: oklch(0.72 0.19 305);
  font-variant-numeric: tabular-nums;
}

.fair-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fair-foot strong { font-weight: 500; color: var(--text); }
.fair-foot .up { color: var(--yes); }
.fair-foot .down { color: var(--no); }

.fair-fine {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .sim { font-size: clamp(10px, 2.9vw, 14px); }

  .block { grid-template-columns: 1fr; }
  .api-body { grid-template-columns: 1fr; }
  .fair-lab { gap: 10px; }
  .wick-sim { gap: 10px; }
}

@media (max-width: 640px) {
  .site-header {
    gap: 10px;
  }
  .site-nav {
    padding: 3px;
    gap: 0;
  }
  .site-nav .nav-link {
    display: none;
  }
  .site-nav .cta {
    margin-left: 0;
    padding: 6px 13px;
    font-size: 12.5px;
  }
  .nav-menu-btn {
    display: inline-flex;
  }
  .hero .wick-sim {
    gap: 8px;
  }
  .hero .wick-card {
    padding: 8px 8px 9px;
  }
  .hero .wick-svg {
    max-height: 104px;
  }
  .wick-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
  }
  .wick-card-head > div {
    width: 100%;
  }
  .wick-card-title {
    font-size: 11.5px;
  }
  .wick-card-sub {
    font-size: 9px;
  }
  .wick-badge {
    min-width: 0;
    padding: 2px 6px;
    font-size: 8.5px;
  }
  .wick-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 6px;
    padding-top: 6px;
    font-size: 9.5px;
  }
  .wick-foot .wk-pnl {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .block {
    padding: 36px var(--gutter);
    gap: 20px;
  }

  .item-grid,
  .kind-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 10px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .item-grid::-webkit-scrollbar,
  .kind-grid::-webkit-scrollbar {
    display: none;
  }

  .item-grid > li,
  .kind-grid > li {
    flex: 0 0 82%;
    max-width: 310px;
    scroll-snap-align: start;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }

  .fair-lab {
    gap: 8px;
  }

  .fair-lab > .fair-chart-panel,
  .fair-lab > .fair-display {
    padding: 10px;
    min-width: 0;
  }

  .fv-svg {
    min-height: 0;
    height: auto;
    flex: 0 0 auto;
  }

  .fair-live-metrics {
    gap: 8px 16px;
  }

  .fair-chart-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 8px;
  }

  .fair-lbl {
    font-size: 9.5px;
  }

  .fair-spot-val,
  .fair-val {
    font-size: 16px;
  }

  .fair-chart-meta {
    font-size: 9.5px;
  }

  .fair-fine,
  .fair-foot {
    display: none;
  }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .closing-actions { width: 100%; }
  .closing-actions .cta { flex: 1 1 180px; }
  .timeline,
  .flow,
  .spec { font-size: clamp(9.5px, 2.9vw, 13px); }
  .site-nav a[href="#faq"] { display: none; }
}

.safety-media {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.monolith-media {
  margin: 0 0 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090d10;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.monolith-media img,
.monolith-svg {
  display: block;
  width: 100%;
  height: auto;
}

.safety-media img,
.safety-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--bg);
}

.safety-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dim);
}

.cta.audit-diy-cta {
  border-color: rgba(92, 229, 200, 0.48);
  background: rgba(92, 229, 200, 0.14);
  color: #5ce5c8;
}
.cta.audit-diy-cta:hover {
  border-color: rgba(92, 229, 200, 0.78);
  background: rgba(92, 229, 200, 0.22);
  color: #fff;
}
body:has(dialog.audit-diy-dialog[open]) {
  overflow: hidden;
}
.audit-diy-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  max-width: min(640px, calc(100vw - 24px));
  width: 100%;
  margin: auto;
  overscroll-behavior: contain;
}
.audit-diy-dialog::backdrop {
  background: rgba(6, 9, 11, 0.76);
  backdrop-filter: blur(4px);
}
.audit-diy-panel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101519;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
.audit-diy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.audit-diy-head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.audit-diy-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.audit-diy-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.audit-diy-close:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.audit-diy-body {
  padding: 16px 20px;
}
.audit-diy-prompt {
  margin: 0;
  padding: 14px 16px;
  max-height: 320px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0a0e11;
  color: #dfd9cb;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.audit-diy-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

/* ---- What Arizal is (Glass-Box Anatomy) ---- */

.anatomy-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

.anatomy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.anatomy-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.anatomy-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--yes);
  background: rgba(92, 229, 200, 0.1);
  border: 1px solid rgba(92, 229, 200, 0.28);
  padding: 2px 9px;
  border-radius: 999px;
}

.anatomy-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  padding: 18px;
}

.anatomy-step {
  padding: 14px 15px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.anatomy-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--yes);
  margin-bottom: 6px;
}

.anatomy-step h3 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.anatomy-step p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.anatomy-step strong {
  color: var(--text);
  font-weight: 600;
}

.anatomy-step strong.yes { color: var(--yes); }
.anatomy-step strong.no { color: var(--no); }

.anatomy-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 15px;
  padding: 0 2px;
}

.anatomy-eq {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
  font-family: var(--mono);
  font-size: 12px;
}

.eq-chip {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.eq-yes {
  color: var(--yes);
  background: rgba(92, 229, 200, 0.12);
  border: 1px solid rgba(92, 229, 200, 0.25);
}

.eq-no {
  color: var(--no);
  background: rgba(242, 107, 120, 0.12);
  border: 1px solid rgba(242, 107, 120, 0.25);
}

.eq-usd {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
}

.eq-op {
  color: var(--dim);
}

.eq-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 11.5px;
}

@media (max-width: 900px) {
  .anatomy-flow {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .anatomy-arrow {
    transform: rotate(90deg);
    padding: 0;
    line-height: 1;
  }
  .eq-meta {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta { transition: none; }
  body::after { display: none; }
}
