/* ===========================================================
   TAKION SCAN ENGINE — site styles
   Amber-on-black is the oldest signifier in this business.
   Cyan is Takion's own window chrome (0xc08000 BGR).
   =========================================================== */

:root{
  --black:#000;
  --panel:#0a0a0c;
  --panel-2:#101116;
  --rule:#21232b;
  --rule-hot:#33363f;

  --amber:#ffa71c;
  --amber-deep:#a86a06;
  --cyan:#0e9ada;
  --cyan-deep:#0080c0;

  --up:#20d67e;
  --down:#f5484a;

  --bone:#eceef1;
  --dim:#8d939d;
  --dimmer:#5c626c;

  --face:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;

  --gut:clamp(1.15rem,4vw,4rem);
  --max:1280px;
  --narrow:920px;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  margin:0;background:var(--black);color:var(--bone);
  font-family:var(--face);font-size:16.5px;line-height:1.6;
  font-variation-settings:"wdth" 100;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:var(--amber);text-decoration:none}
a:hover{color:#ffc55e}
:focus-visible{outline:2px solid var(--amber);outline-offset:3px}

.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--gut)}
.narrow{max-width:var(--narrow)}

/* ---------- masthead ---------- */

.mast{
  position:sticky;top:0;z-index:60;
  background:rgba(0,0,0,.9);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--rule);
}
.mast-in{
  max-width:var(--max);margin:0 auto;padding:.55rem var(--gut);
  display:flex;align-items:center;gap:clamp(.9rem,3vw,2.4rem);flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:.75rem;margin-right:auto;min-width:0}
.brand img{height:26px;width:auto}
.brand-div{width:1px;height:20px;background:var(--rule-hot);flex:none}
.brand-txt{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;
  color:var(--dim);text-transform:uppercase;white-space:nowrap;
}
.mast nav{display:flex;gap:clamp(.9rem,2.4vw,1.9rem);flex-wrap:wrap}
.mast nav a{
  color:var(--dim);font-size:.87rem;font-weight:500;padding:.2rem 0;
  border-bottom:2px solid transparent;
}
.mast nav a:hover{color:var(--bone)}
.mast nav a[aria-current="page"]{color:var(--bone);border-bottom-color:var(--amber)}

/* ---------- buttons ---------- */

.btn{
  display:inline-block;font-family:var(--mono);font-size:.8rem;
  letter-spacing:.06em;padding:.72rem 1.5rem;
  border:1px solid var(--amber);color:var(--amber);background:transparent;
  transition:background .12s ease,color .12s ease;
}
.btn:hover{background:var(--amber);color:#000}
.btn-solid{background:var(--amber);color:#000;font-weight:600}
.btn-solid:hover{background:#ffc55e;color:#000}
.btn-ghost{border-color:var(--rule-hot);color:var(--bone)}
.btn-ghost:hover{background:var(--panel-2);color:#fff;border-color:var(--dim)}
.btns{display:flex;gap:.85rem;flex-wrap:wrap;margin-top:2rem}

/* ---------- hero ---------- */

.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--rule)}
.hero-shot{position:absolute;inset:0;opacity:.30}
.hero-shot img{width:100%;height:100%;object-fit:cover;object-position:left top}
.hero-veil{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,#000 22%,rgba(0,0,0,.72) 58%,rgba(0,0,0,.35) 100%),
    linear-gradient(180deg,rgba(0,0,0,.85) 0%,rgba(0,0,0,.2) 45%,#000 100%);
}
.hero-in{position:relative;padding:clamp(3.5rem,9vw,7.5rem) 0 clamp(3rem,7vw,6rem)}

.kicker{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.16em;
  color:var(--amber);margin:0 0 1.4rem;text-transform:uppercase;
}
h1{
  font-family:var(--face);font-weight:700;
  font-size:clamp(2.4rem,6.4vw,4.7rem);
  line-height:1.02;letter-spacing:-.028em;
  margin:0 0 1.5rem;max-width:19ch;
}
.lede{
  font-size:clamp(1.04rem,1.9vw,1.26rem);line-height:1.62;
  color:var(--dim);max-width:60ch;margin:0;
}
.lede strong{color:var(--bone);font-weight:600}

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

section{padding:clamp(3rem,7vw,5.5rem) 0;border-bottom:1px solid var(--rule)}

h2{
  font-weight:700;font-size:clamp(1.75rem,3.7vw,2.75rem);
  line-height:1.08;letter-spacing:-.022em;margin:0 0 .75rem;max-width:22ch;
}
h3{font-weight:600;font-size:1.2rem;letter-spacing:-.01em;margin:0 0 .5rem}
h4{font-weight:600;font-size:1.02rem;margin:0 0 .4rem}
.sub{color:var(--dim);max-width:66ch;margin:0 0 2.4rem;font-size:1.02rem}
p{max-width:68ch}

/* ---------- terminal figure ---------- */

figure.term{margin:0;border:1px solid var(--rule-hot);background:var(--panel)}
.term-bar{
  background:linear-gradient(180deg,#0e9ada 0%,#00567f 100%);
  padding:.3rem .75rem;display:flex;gap:.7rem;align-items:center;
  font-family:var(--mono);font-size:.68rem;color:#fff;
}
.term-bar em{font-style:normal;color:#bce6fa;margin-left:auto}
figure.term figcaption{
  padding:.8rem .95rem;border-top:1px solid var(--rule);
  font-size:.84rem;color:var(--dim);
}
figure.term figcaption b{color:var(--bone);font-weight:600}

/* ---------- feed manifest ---------- */

.manifest{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));
  gap:0;border-top:1px solid var(--rule);border-left:1px solid var(--rule);
  margin:0 0 1.6rem;
}
.feed{
  border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding:.7rem .85rem;font-family:var(--mono);font-size:.78rem;
  color:var(--bone);display:flex;gap:.6rem;align-items:baseline;
}
.feed::before{content:"";width:5px;height:5px;background:var(--amber);flex:none;transform:translateY(-2px)}
.feed.key{background:#140e02}
.feed.key::before{background:var(--up);box-shadow:0 0 8px var(--up)}
.feed.key span{color:var(--amber);font-size:.66rem;margin-left:auto}

/* ---------- comparison ---------- */

.cmp-scroll{overflow-x:auto;border:1px solid var(--rule)}
table.cmp{width:100%;border-collapse:collapse;font-size:.88rem;min-width:640px;background:var(--panel)}
table.cmp th,table.cmp td{padding:.7rem .9rem;border-bottom:1px solid var(--rule);text-align:left}
table.cmp thead th{
  background:var(--panel-2);font-size:.78rem;font-weight:600;
  letter-spacing:.03em;color:var(--bone);border-bottom:1px solid var(--rule-hot);
}
table.cmp thead th:nth-child(2){color:var(--amber)}
table.cmp td:first-child{color:var(--bone);font-weight:500}
table.cmp td{color:var(--dim)}
table.cmp .yes{color:var(--up);font-family:var(--mono);font-size:.82rem}
table.cmp .no{color:var(--dimmer);font-family:var(--mono);font-size:.82rem}
table.cmp tbody tr:hover td{background:#0e0f13}

/* ---------- cells grid ---------- */

.cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.cell{border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding:1.5rem 1.4rem 1.7rem;background:var(--panel)}
.cell-tag{font-family:var(--mono);font-size:.67rem;letter-spacing:.08em;
  color:var(--amber);margin-bottom:.6rem}
.cell p{font-size:.9rem;color:var(--dim);margin:0;line-height:1.6}

/* ---------- split ---------- */

.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
  gap:clamp(1.8rem,4vw,3.2rem);align-items:start}
.split-tight{gap:clamp(1.4rem,3vw,2.4rem)}

/* ---------- pull stat ---------- */

.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  border-top:1px solid var(--rule);border-left:1px solid var(--rule)}
.stat{border-right:1px solid var(--rule);border-bottom:1px solid var(--rule);
  padding:1.4rem 1.3rem;background:var(--panel)}
.stat b{display:block;font-family:var(--mono);font-weight:500;
  font-size:clamp(1.6rem,3.4vw,2.2rem);color:var(--amber);line-height:1;margin-bottom:.5rem}
.stat span{font-size:.83rem;color:var(--dim);display:block;line-height:1.45}

/* ---------- ledger (scans) ---------- */

.ledger-scroll{overflow-x:auto;border:1px solid var(--rule);background:var(--panel)}
table.ledger{width:100%;border-collapse:collapse;font-size:.83rem;min-width:940px}
table.ledger thead th{
  background:var(--panel-2);font-weight:600;font-size:.79rem;text-align:left;
  padding:.6rem .75rem;color:var(--bone);border-bottom:1px solid var(--rule-hot);
  position:sticky;top:46px;z-index:2;
}
table.ledger td{padding:.65rem .75rem;border-bottom:1px solid var(--rule);
  vertical-align:top;color:var(--dim);line-height:1.5}
table.ledger tbody tr:hover td{background:#0e0f13}
tr.band td{
  background:#150f03;border-top:1px solid var(--amber-deep);
  border-bottom:1px solid var(--amber-deep);
  font-weight:600;font-size:.9rem;color:var(--amber);padding:.55rem .75rem;
}
.num{font-family:var(--mono);font-size:.76rem;color:var(--dimmer)}
.scan-name{color:var(--bone);font-weight:600;white-space:nowrap}
.scan-name b{display:block;font-family:var(--mono);font-size:.72rem;
  color:var(--cyan);font-weight:400;margin-top:.15rem}
.filters{font-family:var(--mono);font-size:.72rem;line-height:1.8;color:var(--dim)}
.cols{font-size:.78rem;color:var(--dimmer)}
.sortcol{display:block;margin-top:.3rem;font-family:var(--mono);
  font-size:.73rem;color:var(--up)}
.tf{font-family:var(--mono);font-size:.73rem;color:var(--amber);white-space:nowrap}

/* ---------- steps ---------- */

.steps{counter-reset:s;margin:0;padding:0;list-style:none;border-top:1px solid var(--rule)}
.steps li{counter-increment:s;border-bottom:1px solid var(--rule);
  padding:1.6rem 0 1.6rem 3.5rem;position:relative}
.steps li::before{content:counter(s,decimal-leading-zero);position:absolute;
  left:0;top:1.65rem;font-family:var(--mono);font-size:.82rem;color:var(--amber)}
.steps p{margin:0 0 .55rem;color:var(--dim);font-size:.94rem}
.steps p:last-child{margin-bottom:0}

/* ---------- checklist ---------- */

.check{list-style:none;margin:1.2rem 0;padding:0;border-top:1px solid var(--rule)}
.check li{border-bottom:1px solid var(--rule);padding:.85rem 0 .85rem 1.9rem;
  position:relative;color:var(--dim);font-size:.93rem;max-width:70ch}
.check li::before{content:"";position:absolute;left:.25rem;top:1.3rem;
  width:6px;height:6px;border:1px solid var(--amber)}
.check li b{color:var(--bone);font-weight:600}

/* ---------- note ---------- */

.note{border-left:3px solid var(--amber);background:var(--panel);
  padding:1.05rem 1.25rem;margin:1.7rem 0;font-size:.92rem;color:var(--dim);max-width:74ch}
.note b{color:var(--amber);font-weight:600}
.note.warn{border-left-color:var(--down)}
.note.warn b{color:var(--down)}
.note.cool{border-left-color:var(--cyan)}
.note.cool b{color:var(--cyan)}

/* ---------- kv ---------- */

.kv{display:grid;grid-template-columns:auto 1fr;border-top:1px solid var(--rule);
  font-size:.89rem;margin:1.5rem 0}
.kv dt{font-family:var(--mono);font-size:.76rem;color:var(--amber);
  padding:.65rem 1.5rem .65rem 0;border-bottom:1px solid var(--rule);white-space:nowrap}
.kv dd{margin:0;padding:.65rem 0;border-bottom:1px solid var(--rule);color:var(--dim)}

/* ---------- cta band ---------- */

.band-cta{background:var(--panel);border-top:1px solid var(--amber-deep);
  border-bottom:1px solid var(--amber-deep)}
.band-cta h2{max-width:20ch}

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

footer{padding:3rem 0 4rem;color:var(--dimmer);font-size:.84rem}
footer p{max-width:76ch;margin:0 0 1rem}
footer .foot-top{display:flex;justify-content:space-between;gap:2rem;
  flex-wrap:wrap;margin-bottom:2rem;align-items:center}
footer img{height:22px;opacity:.65}
footer nav{display:flex;gap:1.4rem;flex-wrap:wrap}
footer nav a{color:var(--dim);font-size:.85rem}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media (max-width:680px){
  table.ledger thead th{position:static}
  h1{max-width:none}
  .hero-shot{opacity:.16}
}
