/* FLUX NEURAL COMPUTE — 2026 design system (self-contained, no external assets) */
:root {
  --bg: #05070c; --bg2: #0a0d16; --bg3: #10141f;
  --panel: rgba(16, 20, 31, 0.72); --border: rgba(120, 160, 255, 0.14); --border2: rgba(140, 180, 255, 0.22);
  --text: #eef1f8; --muted: #9aa3b5; --dim: #5f6878;
  --cyan: #00e5ff; --violet: #8b5cf6; --green: #22e58a; --red: #ff3860; --amber: #ffb800;
  --grad: linear-gradient(135deg, #00e5ff 0%, #7b5cff 100%);
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --r: 16px; --r-sm: 10px;
  --ease: cubic-bezier(.22,.61,.36,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

/* ── Aurora background ─────────────────────────────── */
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
  line-height: 1.6; min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 18% -12%, rgba(0, 229, 255, .13), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 8%, rgba(139, 92, 246, .12), transparent 60%),
    radial-gradient(ellipse 60% 45% at 50% 115%, rgba(34, 229, 138, .06), transparent 60%);
  animation: aurora 26s var(--ease) infinite alternate;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(160,200,255,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes aurora {
  0%   { transform: translate(0,0) scale(1); opacity: .9; }
  50%  { transform: translate(2%, -2%) scale(1.06); opacity: 1; }
  100% { transform: translate(-2%, 1%) scale(1.02); opacity: .92; }
}
a { color: var(--cyan); text-decoration: none; transition: color .2s var(--ease); }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ───────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); background: rgba(5, 7, 12, .72); border-bottom: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.35); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--text); }
.logo svg { display: block; filter: drop-shadow(0 0 10px rgba(0,229,255,.45)); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #000; font-weight: 900; box-shadow: 0 0 18px rgba(0,229,255,.35); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 550; position: relative; padding: 6px 2px; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: right .25s var(--ease); }
.nav-links a:hover { color: var(--text); } .nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--cyan); } .nav-links a.active::after { right: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border-radius: 12px; font-weight: 650; font-size: 14.5px; cursor: pointer; border: none; transition: transform .18s var(--ease), box-shadow .25s var(--ease), filter .2s; font-family: inherit; }
.btn-primary { background: var(--grad); color: #031018; box-shadow: 0 4px 20px rgba(0, 229, 255, .30), inset 0 1px 0 rgba(255,255,255,.25); }
/* nav link rules (.nav-links a) out-specify .btn-primary — force CTA colors */
.nav-links a.btn-primary, .nav a.btn-primary { color: #031018; }
.nav-links a.btn-primary:hover, .nav a.btn-primary:hover { color: #031018; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 229, 255, .45), inset 0 1px 0 rgba(255,255,255,.3); filter: brightness(1.08); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(0, 229, 255, .05); color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(0, 229, 255, .09); box-shadow: 0 0 16px rgba(0,229,255,.15); }
.btn-sm { padding: 8px 15px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ── Hero ──────────────────────────────────────────── */
.hero { padding: 104px 0 80px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(36px, 6.5vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; }
.hero h1 .grad { background: var(--grad); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 24px rgba(0,229,255,.25)); }
.hero p.sub { color: var(--muted); font-size: clamp(15px, 2.2vw, 19px); max-width: 640px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero .orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; }
.hero .orb.o1 { background: rgba(0,229,255,.5); top: -160px; left: -120px; animation: drift 18s var(--ease) infinite alternate; }
.hero .orb.o2 { background: rgba(139,92,246,.5); top: -120px; right: -140px; animation: drift 22s var(--ease) infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(40px, 30px); } }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: rgba(16,20,31,.6); border: 1px solid var(--border2); font-size: 12.5px; color: var(--muted); font-weight: 550; backdrop-filter: blur(8px); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 4px var(--green); } 50% { box-shadow: 0 0 14px var(--green); } }

/* ── Stats ─────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; padding: 44px 0 8px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; text-align: center; backdrop-filter: blur(12px); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.stat:hover { transform: translateY(-3px); border-color: var(--border2); box-shadow: 0 12px 36px rgba(0,0,0,.4); }
.stat .num { font-size: 28px; font-weight: 800; font-family: var(--mono); background: var(--grad); background-clip: text; -webkit-background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 12px; margin-top: 5px; text-transform: uppercase; letter-spacing: 1.2px; }

/* ── Sections & cards ──────────────────────────────── */
.section { padding: 76px 0; }
.section h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 10px; }
.section .lead { color: var(--muted); max-width: 660px; margin-bottom: 36px; font-size: 16.5px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .25s, transform .25s var(--ease), box-shadow .3s; }
.card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.45), 0 0 0 1px rgba(0,229,255,.06); }
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .icon { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(0,229,255,.14), rgba(139,92,246,.14)); border: 1px solid var(--border2); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }

/* ── Tables ────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); backdrop-filter: blur(12px); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.2px; border-bottom: 1px solid var(--border2); white-space: nowrap; }
td { padding: 14px 18px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .18s; }
tr:hover td { background: rgba(0, 229, 255, .04); }
.mono { font-family: var(--mono); font-size: 13px; }
.pill { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 650; }
.pill-green { background: rgba(34, 229, 138, .1); color: var(--green); border: 1px solid rgba(34, 229, 138, .3); }
.pill-violet { background: rgba(139, 92, 246, .12); color: #a78bfa; border: 1px solid rgba(139, 92, 246, .35); }
.pill-red { background: rgba(255, 56, 96, .1); color: var(--red); border: 1px solid rgba(255, 56, 96, .3); }
.pill-amber { background: rgba(255, 184, 0, .1); color: var(--amber); border: 1px solid rgba(255, 184, 0, .3); }
.pill-cyan { background: rgba(0, 229, 255, .09); color: var(--cyan); border: 1px solid rgba(0, 229, 255, .3); }
.strike { color: var(--dim); text-decoration: line-through; }

/* ── Steps / flow ──────────────────────────────────── */
.steps { display: flex; gap: 0; flex-wrap: wrap; counter-reset: step; }
.step { flex: 1; min-width: 220px; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); position: relative; margin: 8px; backdrop-filter: blur(10px); }
.step::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 16px 16px 0 0; background: var(--grad); opacity: .5; }
.step .n { font-family: var(--mono); font-size: 13px; color: var(--cyan); font-weight: 700; }
.step h3 { font-size: 16px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ── Chain picker ──────────────────────────────────── */
.chains { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0; }
.chain { padding: 16px; border-radius: 12px; border: 1px solid var(--border2); background: var(--bg3); cursor: pointer; text-align: center; font-weight: 600; font-size: 14px; color: var(--text); transition: border-color .2s, box-shadow .25s, transform .18s var(--ease); }
.chain:hover { border-color: var(--cyan); transform: translateY(-2px); }
.chain.selected { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 24px rgba(0, 229, 255, .18); }
.chain .conf { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 5px; }

/* ── QR + status ladder ────────────────────────────── */
.qr-box { width: 190px; height: 190px; margin: 20px auto; border: 1px solid var(--border2); border-radius: 14px; background: repeating-conic-gradient(#10141f 0% 25%, #181d2e 0% 50%) 0 0 / 22px 22px; position: relative; overflow: hidden; }
.qr-box::after { content: 'QR'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); font-family: var(--mono); font-size: 18px; letter-spacing: 2px; }
.addr { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; padding: 12px 16px; word-break: break-all; max-width: 480px; margin: 16px auto; cursor: pointer; }
.ladder { display: flex; justify-content: center; gap: 0; margin: 30px 0; flex-wrap: wrap; }
.rung { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border2); background: var(--bg3); font-size: 13px; color: var(--dim); font-weight: 600; margin: 6px; }
.rung.on { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 14px rgba(0,229,255,.2); }
.rung.done { color: var(--green); border-color: rgba(34, 229, 138, .4); }
.rung .arrow { color: var(--dim); margin-left: 8px; }

/* ── Forms ─────────────────────────────────────────── */
.form { max-width: 440px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 36px; backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.form h2 { margin-bottom: 6px; }
.form .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; font-weight: 650; }
.field input { width: 100%; padding: 12px 15px; border-radius: 11px; border: 1px solid var(--border2); background: rgba(10,13,22,.8); color: var(--text); font-size: 14.5px; outline: none; font-family: inherit; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 229, 255, .14); }
.form .btn { width: 100%; margin-top: 6px; }
.form .alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.note { font-size: 12.5px; color: var(--dim); margin-top: 14px; text-align: center; }
.note .ok { color: var(--green); }
.tabs { display: flex; gap: 6px; background: rgba(10,13,22,.7); border: 1px solid var(--border); padding: 5px; border-radius: 12px; margin-bottom: 24px; }
.tabs button { flex: 1; padding: 10px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; font-size: 14px; cursor: pointer; transition: all .2s; font-family: inherit; }
.tabs button.active { background: var(--grad); color: #031018; box-shadow: 0 2px 12px rgba(0,229,255,.3); }

/* ── Dashboard ─────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.dash-nav { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; position: sticky; top: 92px; backdrop-filter: blur(12px); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(0,229,255,.07); color: var(--text); }
.dash-nav a.active { color: var(--cyan); }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); font-size: 14px; }
.kv .v { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.bal { font-size: 36px; font-weight: 800; font-family: var(--mono); background: var(--grad); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 16px rgba(0,229,255,.2)); }
.chart { height: 220px; border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); padding: 20px; display: flex; align-items: flex-end; gap: 8px; }
.chart .bar { flex: 1; background: var(--grad); border-radius: 6px 6px 0 0; opacity: .8; min-height: 4px; position: relative; transition: opacity .2s; }
.chart .bar:hover { opacity: 1; }

/* ── Code blocks ───────────────────────────────────── */
.code-block { background: rgba(8, 10, 18, .92); border: 1px solid var(--border2); border-radius: 13px; padding: 18px; font-family: var(--mono); font-size: 12.5px; overflow-x: auto; color: #c8c8e0; line-height: 1.7; position: relative; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.code-block .cm { color: #5a6480; } .code-block .kw { color: #a78bfa; } .code-block .str { color: var(--green); } .code-block .fn { color: var(--cyan); }
.copy-btn { position: absolute; top: 10px; right: 10px; font-size: 11px; padding: 4px 11px; border-radius: 7px; background: rgba(16,20,31,.9); border: 1px solid var(--border2); color: var(--muted); cursor: pointer; font-family: inherit; transition: color .2s, border-color .2s; }
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── Docs ──────────────────────────────────────────── */
.doc-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; position: sticky; top: 76px; z-index: 50; background: rgba(5, 7, 12, .88); backdrop-filter: blur(14px); padding: 10px 0; border-bottom: 1px solid var(--border); }
.doc-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border2); background: rgba(16,20,31,.7); color: var(--muted); font-size: 12.5px; font-weight: 600; transition: all .2s; }
.doc-nav a:hover { color: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px rgba(0,229,255,.15); }
.endpoint { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.endpoint .m { font-family: var(--mono); font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px; color: #000; }
.m-post { background: var(--cyan); box-shadow: 0 0 12px rgba(0,229,255,.4); } .m-get { background: var(--green); box-shadow: 0 0 12px rgba(34,229,138,.4); }
.endpoint .p { font-family: var(--mono); font-size: 14.5px; color: var(--text); font-weight: 700; }
.err-table td:first-child { font-family: var(--mono); color: var(--cyan); }

/* ── Status page ───────────────────────────────────── */
.svc { display: flex; align-items: center; justify-content: space-between; padding: 17px 21px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); margin-bottom: 10px; backdrop-filter: blur(10px); transition: border-color .2s; }
.svc:hover { border-color: var(--border2); }
.svc .name { font-weight: 600; font-size: 14.5px; }
.svc .group { color: var(--dim); font-size: 12px; margin-top: 2px; }

/* ── Footer ────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 48px 0 64px; margin-top: 64px; background: linear-gradient(180deg, transparent, rgba(10,13,22,.5)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.8px; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; color: var(--dim); font-size: 13.5px; margin-bottom: 9px; transition: color .2s; } .footer a:hover { color: var(--cyan); }
.footer .fine { color: var(--dim); font-size: 12px; margin-top: 30px; }

/* ── Toast ─────────────────────────────────────────── */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: rgba(16,20,31,.95); border: 1px solid var(--cyan); color: var(--text); padding: 12px 22px; border-radius: 11px; font-size: 13.5px; transition: transform .35s var(--ease); z-index: 200; box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(0,229,255,.15); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Rate ticker ───────────────────────────────────── */
.rate-strip { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.rate-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border2); font-size: 13px; font-weight: 600; color: var(--muted); backdrop-filter: blur(8px); }
.rate-chip b { color: var(--text); font-family: var(--mono); font-weight: 700; }
.rate-chip .sym { color: var(--cyan); font-weight: 800; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: rgba(5,7,12,.98); border-bottom: 1px solid var(--border); flex-direction: column; padding: 18px 24px 26px; gap: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  .nav-links.open { display: flex; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; }
  .dash-nav a { white-space: nowrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 0 48px; }
  .hero .orb { display: none; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .container { padding: 0 16px; } .form { padding: 26px 22px; } }

/* ── Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
