/* BlackOps Market Links. One file, no external requests. System fonts only. */

:root {
  --bg:      #0f1317;
  --bg-2:    #12171d;
  --panel:   #171e26;
  --panel-2: #1d2631;
  --line:    #26303d;
  --line-2:  #35414f;
  --text:    #e7ecf1;
  --muted:   #9aa7b4;
  --muted-2: #6e7d8c;
  --accent:  #a8b06b;
  --accent-2:#c6cd8e;
  --red:     #e06c75;
  --green:   #63c581;
  --warn:    #e0a458;
  --gate-bg: #eef0f3;
  --gate-ink:#1a1f25;
  --gate-line:#d5dade;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 380px at 50% -120px, rgba(168, 176, 107, .07), transparent 70%),
    radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 26px 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(168, 176, 107, .35); }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

code, .mon { font-family: var(--mono); }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 22px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */

.hd { border-bottom: 1px solid var(--line); background: rgba(15, 19, 23, .6); }

.hd-in { display: flex; align-items: center; gap: 26px; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }

.brand-ico { width: 30px; height: 30px; border-radius: 6px; display: block; }

.brand-txt { display: flex; flex-direction: column; line-height: 1; }

.brand-word {
  font-size: 17px; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(180deg, #f2f5f8, #b9c3cc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.brand-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-top: 4px;
}

.nv { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; align-items: center; }

.nl {
  position: relative; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 13px; border-radius: 7px;
}
.nl::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.nl:hover { color: var(--text); text-decoration: none; }
.nl:hover::after { transform: scaleX(1); }
.nl.on { color: var(--accent-2); }
.nl.on::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- gate (mirrors) */

.gate {
  margin: 26px 0 8px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  position: relative;
  background: var(--gate-bg);
}

.gate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: gate-scan 1.3s ease .5s 1 both;
  mix-blend-mode: soft-light;
}
@keyframes gate-scan { to { transform: translateX(120%); } }

.gate-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px;
  flex-wrap: wrap; padding: 12px 16px 0;
}

.gate-word {
  font-weight: 800; font-size: 13px; letter-spacing: .16em; color: var(--gate-ink);
}

.gate-sub {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #79828c;
}

.gate-body { padding: 12px 16px 4px; display: flex; flex-direction: column; gap: 9px; }

.mrow { display: flex; align-items: stretch; gap: 9px; }

.mon {
  flex: 1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--gate-ink);
  background: #fff; border: 1px solid var(--gate-line); border-radius: 7px;
  padding: 9px 12px; word-break: break-all; cursor: text; user-select: all;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.mrow:hover .mon { border-color: #9aa2ab; }
.mrow.copied .mon {
  border-color: var(--green); background: #f4faf6;
  box-shadow: 0 0 0 3px rgba(99, 197, 129, .18);
}

.copy {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: var(--gate-ink); color: #fff; border: 1px solid var(--gate-ink);
  border-radius: 7px; padding: 0 14px; min-width: 86px; justify-content: center;
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: .03em; cursor: pointer;
  transition: background .18s, transform .12s, border-color .18s;
}
.copy:hover { background: #000; }
.copy:active { transform: scale(.96); }
.copy .ic { opacity: .85; }
.copy.done { background: var(--green); border-color: var(--green); color: #0d1a12; }

.gate-foot {
  background: var(--gate-ink); color: #98a1ab; font-size: 12px;
  padding: 9px 16px; letter-spacing: .01em;
}

/* ---------------------------------------------------------------- sections */

main { padding: 34px 0 60px; }

.sec { margin: 44px 0; }
.sec:first-child { margin-top: 4px; }

.kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}

h1 { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; margin: 0 0 14px; }

h1 .hl { color: var(--accent-2); }

.lede { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 70ch; margin: 0 0 6px; }

.sec h2 {
  font-size: 22px; font-weight: 750; letter-spacing: -.01em;
  margin: 34px 0 12px; position: relative; padding-left: 15px;
}
.sec h2::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px;
  border-radius: 2px; background: var(--accent); opacity: .85;
}

.sec p { font-size: 15.5px; line-height: 1.75; margin: 0 0 14px; max-width: 74ch; }

.sec ul, .sec ol { margin: 0 0 16px; padding-left: 22px; max-width: 74ch; }
.sec li { font-size: 15px; line-height: 1.7; margin: 6px 0; }
.sec li::marker { color: var(--accent); }

strong { color: var(--text); }

.sec b, .sec strong { font-weight: 650; }

/* callouts */

.callout {
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: 0 9px 9px 0;
  padding: 14px 17px; margin: 18px 0; max-width: 74ch;
}
.callout p { margin: 0; font-size: 14.5px; }
.callout + .callout { margin-top: 12px; }
.callout-warn { border-left-color: var(--warn); }
.callout-bad  { border-left-color: var(--red); }
.callout-ok   { border-left-color: var(--green); }
.callout .co-t { display: block; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; color: var(--muted); }
.callout-warn .co-t { color: var(--warn); }
.callout-bad .co-t  { color: var(--red); }
.callout-ok .co-t   { color: var(--green); }

/* tables */

.tbl { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; padding: 9px 12px; border-bottom: 1px solid var(--line-2);
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.tbl td.mono, .tbl code { font-family: var(--mono); font-size: 13px; color: var(--accent-2); word-break: break-all; }
.tbl tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(168, 176, 107, .05); }

/* steps */

.steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: step; max-width: 74ch; }
.steps li {
  counter-increment: step; position: relative; padding: 0 0 20px 52px;
  font-size: 15px; line-height: 1.7;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel);
  font: 700 12px var(--mono); color: var(--accent-2);
}
.steps li::after {
  content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }

/* cards grid */

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 18px 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 18px 0; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px;
  padding: 17px 18px;
  transition: border-color .22s, transform .22s, background .22s;
}
.card:hover { border-color: var(--line-2); background: var(--panel-2); transform: translateY(-2px); }
.card h4 { margin: 0 0 7px; font-size: 15px; font-weight: 700; letter-spacing: -.005em; }
.card p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.card .card-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; margin-bottom: 11px;
  background: rgba(168, 176, 107, .12); color: var(--accent-2); border: 1px solid rgba(168, 176, 107, .25);
}

/* faq */

details.faq {
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px;
  margin: 10px 0; overflow: hidden;
  transition: border-color .2s;
}
details.faq[open] { border-color: var(--line-2); }
details.faq summary {
  cursor: pointer; list-style: none; padding: 15px 46px 15px 17px;
  font-size: 15px; font-weight: 650; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 17px; top: 50%; transform: translateY(-50%);
  font: 600 18px/1 var(--mono); color: var(--accent);
  transition: transform .25s;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq .faq-a { padding: 0 17px 16px; }
details.faq .faq-a p { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
details.faq .faq-a p:last-child { margin-bottom: 0; }

/* misc */

.divider { border: 0; border-top: 1px dashed var(--line-2); margin: 36px 0; }

.pill {
  display: inline-block; font: 700 10.5px var(--mono); letter-spacing: .08em;
  color: var(--accent-2); border: 1px solid rgba(168, 176, 107, .35);
  background: rgba(168, 176, 107, .08); border-radius: 999px; padding: 3px 10px;
  text-transform: uppercase;
}

.pill-red  { color: #f0a2a8; border-color: rgba(224, 108, 117, .4); background: rgba(224, 108, 117, .08); }
.pill-green{ color: #9ad8ac; border-color: rgba(99, 197, 129, .4); background: rgba(99, 197, 129, .08); }

/* reveal on scroll */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gate::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- footer */

.ft { border-top: 1px solid var(--line); background: var(--bg-2); }

.ft-in { padding-top: 38px; padding-bottom: 26px; }

.ft-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }

.ft-word { font-size: 15px; font-weight: 800; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.ft-brand p { font-size: 13.5px; line-height: 1.65; color: var(--muted-2); margin: 0; max-width: 36ch; }

.ft-col { display: flex; flex-direction: column; gap: 8px; }
.ft-h { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.ft-col a { color: var(--muted); font-size: 13.5px; width: fit-content; }
.ft-col a:hover { color: var(--accent-2); text-decoration: none; }

.ft-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 17px;
  font-size: 12px; color: var(--muted-2);
}
.ft-bottom a { color: var(--muted-2); }
.ft-bottom a:hover { color: var(--accent-2); }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  h1 { font-size: 27px; }
  .lede { font-size: 16px; }
  .hd-in { gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .nv { margin-left: 0; width: 100%; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 22px; }
  .mon { font-size: 11.5px; padding: 8px 10px; }
  .mrow { flex-direction: row; gap: 8px; }
  .copy { min-width: 0; padding: 8px 12px; font-size: 11px; }
  .sec h2 { font-size: 19px; }
}
