/* ══════════════════════════════════════════════════════════
   Pixelox RGB — landing page design system
   Dark, technical, high information density.
   ══════════════════════════════════════════════════════════ */

:root {
  --bg:        #06070a;
  --bg-2:      #0a0c11;
  --surface:   #0e1117;
  --surface-2: #131820;
  --line:      rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);

  --text:      #e8ecf3;
  --text-2:    #9aa4b8;
  --muted:     #5f6980;

  --btc:       #f7931a;   /* bitcoin orange — the chain */
  --btc-dim:   #c4720f;
  --ver:       #35d0a5;   /* verified green — validation passing */
  --link:      #7fb8ff;

  --r:   8px;
  --r-lg: 14px;
  --nav-h: 60px;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Inter, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* the RGB spectrum — used sparingly, as a divider and glow */
  --spectrum: linear-gradient(90deg, #ff4d6d 0%, #f7931a 25%, #ffd166 50%, #35d0a5 75%, #4d8dff 100%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── ambient background: faint grid + one warm glow ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}
body::after {
  content: '';
  position: fixed; top: -340px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(247,147,26,.11) 0%, transparent 62%);
  filter: blur(28px);
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -.021em; line-height: 1.18; }
p { margin: 0; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

/* ══════════════ NAV ══════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6,7,10,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 660; font-size: 15.5px; letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px; flex: none;
  background: var(--spectrum);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 2px 10px rgba(247,147,26,.28);
}
.brand-tag {
  font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 4px;
}
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  padding: 7px 11px; border-radius: 6px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }
.nav-cta {
  background: var(--btc) !important; color: #0a0704 !important; font-weight: 640 !important;
  padding: 8px 15px !important; margin-left: 8px;
}
.nav-cta:hover { background: #ffa733 !important; }

@media (max-width: 780px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { margin-left: 0; }
}

/* ══════════════ HERO ══════════════ */
.hero { padding: 92px 0 72px; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); padding: 7px 13px 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,.025);
  margin-bottom: 30px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ver); flex: none;
  box-shadow: 0 0 0 3px rgba(53,208,165,.16);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: -.032em; line-height: 1.1; font-weight: 680;
  max-width: 24ch; margin: 0 auto; text-wrap: balance;
}
.hero h1 em {
  display: block; margin-top: .08em;
  font-style: normal;
  background: linear-gradient(96deg, #f7931a, #ffd166 48%, #35d0a5);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub {
  margin: 26px auto 0; max-width: 60ch;
  font-size: clamp(15px, 1.9vw, 18px); line-height: 1.62; color: var(--text-2);
}
.hero-sub code {
  font-family: var(--mono); font-size: .9em; color: var(--text);
  background: rgba(255,255,255,.055); padding: 1.5px 5px; border-radius: 4px;
}

.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600; padding: 12px 22px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; transition: all .16s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--btc); color: #0a0704;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 22px rgba(247,147,26,.24);
}
.btn-primary:hover { background: #ffa733; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(247,147,26,.32); }
.btn-ghost { background: rgba(255,255,255,.045); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.22); }
.btn .arrow { font-size: 15px; opacity: .65; }

/* spec strip under hero */
.spec {
  margin-top: 54px; display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.008));
  overflow: hidden;
}
.spec-item { padding: 20px 18px; border-right: 1px solid var(--line); text-align: center; }
.spec-item:last-child { border-right: 0; }
.spec-k { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.spec-v { font-size: 19px; font-weight: 660; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.spec-v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.spec-v.ok { color: var(--ver); }

@media (max-width: 720px) {
  .spec { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2) { border-right: 0; }
  .spec-item:nth-child(1), .spec-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── spectrum divider ── */
.divider {
  height: 1px; border: 0; margin: 0;
  background: var(--spectrum); opacity: .3;
}

/* ══════════════ SECTIONS ══════════════ */
.section { padding: 88px 0; position: relative; z-index: 1; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: rgba(255,255,255,.012); }

.sec-head { max-width: 70ch; margin-bottom: 46px; }
.sec-kicker {
  font: 500 11px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--btc); margin-bottom: 14px; display: block;
}
.sec-head h2 { font-size: clamp(25px, 3.2vw, 34px); letter-spacing: -.028em; text-wrap: balance; max-width: 30ch; }
.sec-head p { margin-top: 14px; color: var(--text-2); font-size: 15.5px; line-height: 1.66; max-width: 64ch; }

/* ── three steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.step { background: var(--surface); padding: 28px 24px 30px; position: relative; }
.step-n {
  font: 600 11px/1 var(--mono); letter-spacing: .1em; color: var(--btc);
  margin-bottom: 18px; display: block;
}
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.62; }
/* inline reference inside prose — must stay in the text flow */
.step p code {
  font: 500 12px/1 var(--mono); color: var(--ver);
  background: rgba(53,208,165,.075); padding: 2px 5px; border-radius: 4px;
  white-space: nowrap;
}
/* the result chip pinned under each step */
.step .chip {
  display: block; margin-top: 16px; padding: 7px 10px;
  font: 500 11.5px/1.55 var(--mono); color: var(--ver);
  background: rgba(53,208,165,.075); border: 1px solid rgba(53,208,165,.18);
  border-radius: 5px; overflow-wrap: anywhere;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ── feature grid ── */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 26px 24px;
  transition: border-color .16s, background .16s;
}
.feat:hover { border-color: var(--line-strong); background: var(--surface-2); }
.feat-i {
  width: 34px; height: 34px; border-radius: 8px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 16px;
  background: rgba(247,147,26,.09); border: 1px solid rgba(247,147,26,.2);
}
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { color: var(--text-2); font-size: 14px; line-height: 1.62; }
@media (max-width: 720px) { .feats { grid-template-columns: 1fr; } }

/* ── honest table ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tbl th, .tbl td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th {
  font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: rgba(255,255,255,.028); padding: 12px 16px;
}
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255,255,255,.018); }
.tbl code { font-family: var(--mono); font-size: 12px; color: var(--text); }
.tbl .bad { color: #ff7a8a; font-weight: 560; }
.tbl .good { color: var(--ver); font-weight: 560; }
.tbl .fix { color: var(--text-2); }
/* On narrow screens the table becomes one card per row, so the fix column
   survives instead of being dropped. Labels are generated from position. */
@media (max-width: 720px) {
  .tbl { border: 0; }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr {
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--surface); margin-bottom: 12px; padding: 16px 2px;
  }
  .tbl tr:last-child { margin-bottom: 0; }
  .tbl td { border: 0; padding: 6px 16px; }
  .tbl td::before {
    content: ''; display: block;
    font: 500 10px/1 var(--mono); letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 6px;
  }
  .tbl td:nth-of-type(1)::before { content: 'Symptom'; }
  .tbl td:nth-of-type(2)::before { content: 'Actual cause'; }
  .tbl td:nth-of-type(3)::before { content: 'What we do'; color: var(--ver); }
  .tbl td:nth-of-type(3) { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
}

/* ── architecture diagram ── */
.arch { display: grid; gap: 10px; }
.arch-row {
  display: grid; grid-template-columns: 156px 1fr; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 15px 18px;
}
.arch-lbl {
  font: 500 11px/1.4 var(--mono); letter-spacing: .05em; color: var(--muted);
  text-transform: uppercase;
}
.arch-body { font-size: 13.5px; color: var(--text-2); }
.arch-body strong { color: var(--text); font-weight: 600; }
.arch-body code {
  font-family: var(--mono); font-size: 12.5px; color: var(--btc);
  background: rgba(247,147,26,.08); padding: 1.5px 5px; border-radius: 3px;
}
.arch-arrow { text-align: center; color: var(--muted); font-size: 12px; line-height: 1; padding: 1px 0; }
@media (max-width: 640px) { .arch-row { grid-template-columns: 1fr; gap: 8px; } }

/* ── code block ── */
.code {
  background: #05060a; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 22px; overflow-x: auto; margin: 0;
  font: 500 13px/1.72 var(--mono); color: #c8d2e0;
}
.code .c { color: #4f5a6e; }
.code .k { color: #e08bd0; }
.code .s { color: #9ede9e; }
.code .n { color: #ffcf7a; }
.code .f { color: #7fc8ff; }

/* ── agent cards ── */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.agent {
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  padding: 20px; transition: border-color .16s, transform .16s;
}
.agent:hover { border-color: rgba(53,208,165,.32); transform: translateY(-2px); }
.agent-k { font: 500 12px/1 var(--mono); color: var(--ver); margin-bottom: 10px; }
.agent p { font-size: 13px; color: var(--text-2); line-height: 1.58; }
@media (max-width: 820px) { .agents { grid-template-columns: 1fr; } }

/* ── CTA band ── */
.band {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse 70% 130% at 50% 0%, rgba(247,147,26,.10), transparent 70%),
    var(--surface);
  padding: 56px 32px; text-align: center;
}
.band h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.025em; margin-bottom: 14px; }
.band p { color: var(--text-2); max-width: 56ch; margin: 0 auto 28px; font-size: 15px; }

/* ── footer ── */
.foot {
  border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 0;
  position: relative; z-index: 1;
}
.foot-in { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 620; font-size: 14.5px; }
.foot-note { color: var(--muted); font-size: 12.5px; line-height: 1.7; max-width: 46ch; }
.foot-links { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--text-2); font-size: 13px; }
.foot-links a:hover { color: var(--text); }
@media (max-width: 720px) { .foot-links { margin-left: 0; width: 100%; } }

/* ── utility ── */
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.nowrap { white-space: nowrap; }
