/* ============================================================
   CODEX·ID — Decentralized Identity & Trust Registry for AI Agents
   Design system: warm near-black canvas, signal-red accent,
   grotesk display + mono technical labels.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Core palette (from brand) */
  --ink:        #0d0808;  /* base canvas */
  --ink-2:      #120c0c;  /* raised */
  --ink-3:      #1a1010;  /* panels */
  --ink-4:      #221616;  /* hover panels */
  --line:       rgba(255,255,255,0.08);
  --line-2:     rgba(255,255,255,0.14);
  --white:      #ffffff;
  --grey-1:     #d9d9d9;
  --grey-2:     #9a9090;
  --grey-3:     #6b6363;
  --red:        #ff3541;  /* signal */
  --red-2:      #e63a2e;  /* fill */
  --red-deep:   #7a1518;
  --red-glow:   rgba(255,53,65,0.35);

  --accent:     var(--red);
  --accent-2:   var(--red-2);
  --accent-glow: var(--red-glow);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--grey-1);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Persistent ambient grid + grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 30%, transparent 80%);
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; z-index: 1; }
.section-pad { padding-block: clamp(80px, 12vw, 160px); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: '//'; color: var(--grey-3); }

h1, h2, h3 { font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; color: var(--white); }
.h-display { font-size: clamp(40px, 7vw, 92px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.98; }
.h-section { font-size: clamp(32px, 4.6vw, 60px); letter-spacing: -0.03em; }
.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--grey-2); line-height: 1.55; max-width: 60ch; }
.mono { font-family: var(--font-mono); }
.red { color: var(--red); }
.dim { color: var(--grey-2); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .h-section { margin-top: 18px; }
.section-head .lede { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .35s;
  white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px var(--red-glow), 0 0 24px -4px var(--red-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line-2);
  color: var(--grey-1);
}
.btn-ghost:hover { border-color: var(--red); color: #fff; background: rgba(255,53,65,0.06); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background .4s, border-color .4s, padding .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,8,8,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 30px; height: 30px; position: relative; flex: none; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 19px; color: #fff; }
.brand-name b { color: var(--red); font-weight: 600; }
.brand-name .dot { color: var(--grey-3); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono); font-size: 13px; color: var(--grey-2);
  letter-spacing: 0.01em; transition: color .2s; position: relative;
}
.nav-links a:hover { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--red); transition: width .3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 50% 50%, rgba(13,8,8,0.86) 0%, rgba(13,8,8,0.34) 45%, transparent 72%),
    radial-gradient(ellipse 90% 60% at 50% 120%, rgba(255,53,65,0.10), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 3;
  text-align: center; padding: 120px var(--gutter) 90px;
  display: flex; flex-direction: column; align-items: center;
  max-width: 920px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey-1);
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ee06a; box-shadow: 0 0 0 0 rgba(46,224,106,.6); animation: live 2s infinite; }
@keyframes live { 0%{box-shadow:0 0 0 0 rgba(46,224,106,.55);} 70%{box-shadow:0 0 0 7px rgba(46,224,106,0);} 100%{box-shadow:0 0 0 0 rgba(46,224,106,0);} }

.hero h1 { margin-top: 30px; }
.hero h1 .agentword { position: relative; color: var(--red); white-space: nowrap; }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 1.6vw, 20px); color: var(--grey-2); max-width: 54ch; }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-chips { margin-top: 46px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-family: var(--font-mono); font-size: 12px; color: var(--grey-2);
  padding: 7px 13px; border-radius: 7px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.018);
  transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.chip:hover { color: #fff; border-color: var(--red); background: rgba(255,53,65,0.06); transform: translateY(-2px); }
.chip b { color: var(--grey-1); font-weight: 500; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-3);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .bar { width: 1px; height: 38px; background: linear-gradient(var(--grey-3), transparent); position: relative; overflow: hidden; }
.scroll-hint .bar::after { content:''; position:absolute; top:-40%; left:0; width:100%; height:40%; background: var(--red); animation: scrolldown 2.2s var(--ease) infinite; }
@keyframes scrolldown { 0%{top:-40%;} 60%,100%{top:120%;} }

/* Hero centerpiece swap (Tweaks) */
.hero-piece { display: none; }
body[data-hero="card"] .hero-inner .hero-default-block { display: none; }
body[data-hero="feed"] .hero-inner .hero-default-block { display: none; }

/* Agent ID card variation */
.agent-card {
  width: min(440px, 86vw); margin: 30px auto 0; text-align: left;
  border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(160deg, rgba(34,22,22,0.85), rgba(13,8,8,0.9));
  padding: 26px; position: relative; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.agent-card::before { content:''; position:absolute; inset:0; background: radial-gradient(circle at 80% -10%, rgba(255,53,65,0.18), transparent 55%); pointer-events:none; }
.agent-card .ac-top { display:flex; justify-content:space-between; align-items:flex-start; }
.agent-card .ac-id { font-family: var(--font-mono); font-size: 12px; color: var(--grey-2); letter-spacing:.05em; }
.agent-card .ac-token { font-size: 34px; color:#fff; font-weight:600; letter-spacing:-0.02em; margin-top:4px; }
.ac-status { font-family: var(--font-mono); font-size: 11px; color:#2ee06a; border:1px solid rgba(46,224,106,.4); background:rgba(46,224,106,.08); padding:5px 10px; border-radius:100px; display:flex; align-items:center; gap:7px; }
.ac-status .live-dot{ background:#2ee06a; }
.agent-card .ac-score { margin-top: 22px; }
.ac-score-row { display:flex; align-items:baseline; gap:10px; }
.ac-score-row .v { font-size: 46px; font-weight:600; color:#fff; letter-spacing:-0.03em; }
.ac-score-row .o { font-family: var(--font-mono); color: var(--grey-3); font-size: 16px; }
.ac-score-label { font-family: var(--font-mono); font-size: 11px; letter-spacing:.16em; text-transform:uppercase; color: var(--grey-3); }
.ac-bar { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.08); margin-top:12px; overflow:hidden; }
.ac-bar > i { display:block; height:100%; width:0; border-radius:100px; background: linear-gradient(90deg, var(--red-2), var(--red)); box-shadow: 0 0 14px var(--red-glow); transition: width 1.4s var(--ease); }
.ac-meta { margin-top: 22px; display:grid; gap:10px; }
.ac-meta div { display:flex; justify-content:space-between; gap:14px; font-family: var(--font-mono); font-size:12px; white-space:nowrap; }
.ac-meta div span:first-child{ color: var(--grey-3); }
.ac-meta div span:last-child{ color: var(--grey-1); }

/* Live feed variation */
.feed {
  width: min(560px, 90vw); margin: 30px auto 0; text-align:left;
  border:1px solid var(--line-2); border-radius:14px; overflow:hidden;
  background: rgba(8,5,5,0.82); backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8);
}
.feed-bar { display:flex; align-items:center; gap:8px; padding:11px 14px; border-bottom:1px solid var(--line); background: rgba(255,255,255,0.02); }
.feed-bar .d { width:10px; height:10px; border-radius:50%; background: var(--ink-4); }
.feed-bar .d.r{ background:#ff5f57;} .feed-bar .d.y{background:#febc2e;} .feed-bar .d.g{background:#28c840;}
.feed-bar .t { margin-left:8px; font-family: var(--font-mono); font-size:12px; color: var(--grey-3); }
.feed-body { padding: 12px 16px 18px; font-family: var(--font-mono); font-size: 12.5px; min-height: 230px; }
.feed-line { display:flex; gap:10px; padding:7px 0; animation: feedIn .45s var(--ease) both; white-space:nowrap; }
@keyframes feedIn { from { opacity:0; transform: translateY(7px); } to { opacity:1; transform:none; } }
.feed-line .fn { color: var(--red); }
.feed-line .arg { color: var(--grey-2); }
.feed-line .ok { color:#2ee06a; margin-left:auto; }

/* ---------- Problem ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  padding: 30px; transition: border-color .35s, transform .35s var(--ease), background .35s;
  overflow: hidden;
}
.card::after { content:''; position:absolute; inset:0; border-radius:inherit; padding:1px; background: linear-gradient(180deg, transparent, transparent); pointer-events:none; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); background: linear-gradient(180deg, var(--ink-4), var(--ink-3)); }
.card .num { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing:.1em; }
.card h3 { font-size: 22px; margin: 16px 0 12px; letter-spacing:-0.01em; }
.card p { color: var(--grey-2); font-size: 15.5px; line-height:1.6; }
.problem-card:hover { border-color: var(--red); box-shadow: 0 30px 60px -34px var(--red-glow); }
.problem-card .glyph { width: 40px; height: 40px; color: var(--red); }

.stat-banner {
  margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 50%, rgba(255,53,65,0.10), transparent 50%),
    var(--ink-2);
  padding: clamp(26px, 4vw, 42px);
  display:flex; align-items:center; gap: 24px; flex-wrap: wrap;
}
.stat-banner .big { font-size: clamp(26px, 3.4vw, 40px); color:#fff; letter-spacing:-0.02em; line-height:1.1; max-width: 22ch; }
.stat-banner .big b { color: var(--red); }
.stat-banner .zero { font-family: var(--font-mono); font-size: clamp(56px, 9vw, 120px); color: var(--red); line-height:.8; font-weight:600; margin-left:auto; opacity:.92; }

/* ---------- Solution: registries ---------- */
.reg-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.reg {
  border:1px solid var(--line); border-radius: var(--radius); padding: 0; overflow:hidden;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color .35s, transform .35s var(--ease);
}
.reg:hover { transform: translateY(-5px); border-color: var(--red); box-shadow: 0 36px 70px -40px var(--red-glow); }
.reg-head { padding: 26px 26px 22px; border-bottom:1px solid var(--line); position:relative; }
.reg-head .ix { font-family:var(--font-mono); font-size:12px; color:var(--grey-3); letter-spacing:.1em; }
.reg-head h3 { font-size: 25px; margin-top: 14px; display:flex; align-items:center; gap:12px; }
.reg-icon { width: 26px; height:26px; color: var(--red); flex:none; }
.reg-tag { display:inline-block; margin-top:10px; font-family:var(--font-mono); font-size:11px; color:var(--red); border:1px solid var(--red-deep); background:rgba(255,53,65,.07); padding:4px 9px; border-radius:6px; }
.reg-list { padding: 22px 26px 28px; display:grid; gap:14px; }
.reg-list li { list-style:none; display:flex; gap:12px; align-items:flex-start; font-size:14.5px; color: var(--grey-1); }
.reg-list li .tick { color: var(--red); font-family:var(--font-mono); flex:none; margin-top:2px; }
.reg-list li code { font-family:var(--font-mono); font-size:12.5px; color:var(--grey-2); }

.trust-strip {
  margin-top: 28px; text-align:center; font-family:var(--font-mono);
  font-size: clamp(16px, 2.4vw, 26px); color: var(--grey-2); letter-spacing:.02em;
}
.trust-strip b { color:#fff; }
.trust-strip .sep { color: var(--red); margin:0 6px; }

/* ---------- Architecture ---------- */
.arch { display:grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items:center; }
.arch-diagram {
  position: relative; aspect-ratio: 1/1; width: 100%;
  border:1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,53,65,0.06), transparent 60%),
    var(--ink-2);
  overflow: hidden;
}
.arch-diagram svg { position:absolute; inset:0; width:100%; height:100%; }
.arch-link { stroke: rgba(255,255,255,0.10); stroke-width: 0.4; transition: stroke .3s, stroke-width .3s; vector-effect: non-scaling-stroke; }
.arch-link.active { stroke: var(--red); stroke-width: 1.4; filter: drop-shadow(0 0 3px var(--red-glow)); }
.arch-node {
  position:absolute; transform: translate(-50%,-50%);
  border:1px solid var(--line-2); background: var(--ink-3);
  border-radius: 12px; padding: 12px 16px; text-align:center;
  font-family:var(--font-mono); font-size:12px; color:var(--grey-1);
  transition: border-color .3s, box-shadow .3s, background .3s; cursor: default;
  min-width: 112px;
}
.arch-node .t { font-size: 13px; color:#fff; display:block; }
.arch-node .s { font-size: 10.5px; color: var(--grey-3); margin-top:3px; display:block; }
.arch-node.core { border-color: var(--red); background: linear-gradient(180deg, #2a1414, #1a0d0d); box-shadow: 0 0 0 1px var(--red-deep), 0 0 40px -6px var(--red-glow); }
.arch-node.core .t { color: var(--red); font-weight:600; font-size:15px; }
.arch-node.active { border-color: var(--red); box-shadow: 0 0 30px -6px var(--red-glow); background: var(--ink-4); }
.arch-points { display:grid; gap: 22px; }
.arch-points .ap { border-left: 2px solid var(--line); padding: 4px 0 4px 20px; transition: border-color .3s; cursor:pointer; }
.arch-points .ap:hover, .arch-points .ap.active { border-color: var(--red); }
.arch-points .ap h4 { font-size: 19px; color:#fff; display:flex; align-items:center; gap:10px; }
.arch-points .ap h4 .k { font-family:var(--font-mono); font-size:12px; color:var(--red); }
.arch-points .ap p { color: var(--grey-2); font-size: 15px; margin-top:7px; }
.arch-quote { margin-top: 30px; font-size: clamp(18px,2vw,24px); color:#fff; letter-spacing:-0.01em; line-height:1.35; }
.arch-quote b { color: var(--red); }

/* ---------- Standards ---------- */
.std-grid { display:grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.std {
  border:1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--ink-2); transition: border-color .3s, transform .3s var(--ease), background .3s;
  display:flex; flex-direction:column; gap: 12px; position:relative; overflow:hidden;
}
.std:hover { border-color: var(--red); transform: translateY(-4px); background: var(--ink-3); }
.std .std-top { display:flex; align-items:center; justify-content:space-between; }
.std .code { font-family:var(--font-mono); font-size: 18px; color:#fff; letter-spacing:-0.01em; }
.std .ok { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; background: rgba(255,53,65,.12); color: var(--red); border:1px solid var(--red-deep); font-size:12px; }
.std p { font-size: 13.5px; color: var(--grey-2); line-height:1.5; }
.std .meter { margin-top:auto; font-family:var(--font-mono); font-size:12px; color: var(--red); }
.std.col-7 { grid-column: span 7; } .std.col-5 { grid-column: span 5; }
.std.col-4 { grid-column: span 4; } .std.col-6 { grid-column: span 6; }
.std-foot {
  margin-top: 22px; font-family:var(--font-mono); font-size: 14px; color: var(--grey-2);
  border-top:1px solid var(--line); padding-top: 22px;
}
.std-foot b { color: #fff; }

/* ---------- Deployment ---------- */
.deploy-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.contract {
  border:1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  transition: border-color .3s, transform .3s var(--ease);
}
.contract:hover { border-color: var(--red); transform: translateY(-4px); }
.contract .cname { font-size: 18px; color:#fff; display:flex; align-items:center; gap:10px; }
.contract .cname .dotmark { width:9px;height:9px;border-radius:2px;background:var(--red); flex:none; box-shadow:0 0 10px var(--red-glow); }
.contract .ctype { font-family:var(--font-mono); font-size:12px; color:var(--grey-3); margin-top:4px; }
.addr {
  margin-top:18px; display:flex; align-items:center; gap:10px;
  font-family:var(--font-mono); font-size:12.5px; color:var(--grey-1);
  background: rgba(0,0,0,0.35); border:1px solid var(--line); border-radius: 9px; padding: 10px 12px;
}
.addr .a { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.copy-btn { margin-left:auto; flex:none; background:none; border:0; color: var(--grey-3); padding:4px; border-radius:6px; transition: color .2s, background .2s; display:grid; place-items:center; }
.copy-btn:hover { color:#fff; background: rgba(255,255,255,0.06); }
.copy-btn.done { color: #2ee06a; }
.contract .clink { margin-top:14px; display:inline-flex; align-items:center; gap:7px; font-family:var(--font-mono); font-size:12.5px; color:var(--red); transition: gap .25s; }
.contract .clink:hover { gap: 11px; }

.tx-list { margin-top: 22px; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background: var(--ink-2); }
.tx-row { display:flex; align-items:center; gap: 16px; padding: 16px 22px; border-bottom:1px solid var(--line); font-family:var(--font-mono); font-size:13.5px; transition: background .25s; }
.tx-row:last-child { border-bottom:0; }
.tx-row:hover { background: rgba(255,53,65,0.04); }
.tx-row .fn { color: var(--red); min-width: 200px; }
.tx-row .desc { color: var(--grey-2); flex:1; }
.tx-row .badge { font-size:11px; color:#2ee06a; border:1px solid rgba(46,224,106,.35); background:rgba(46,224,106,.08); padding:3px 9px; border-radius:100px; flex:none; }

/* ---------- Why opBNB ---------- */
.opbnb { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.opbnb .card h3 { display:flex; align-items:center; gap:12px; }
.metric-huge { font-size: clamp(36px, 5vw, 60px); font-weight:600; color:#fff; letter-spacing:-0.03em; line-height:1; }
.metric-huge .u { font-size: .42em; color: var(--grey-3); font-family:var(--font-mono); }
.opbnb-foot { margin-top:22px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-family:var(--font-mono); font-size:13px; color:var(--grey-2); border:1px solid var(--line); border-radius:var(--radius); padding:18px 22px; background:var(--ink-2); }
.opbnb-foot .pin { display:inline-flex; gap:5px; }
.opbnb-foot .pin i { width:9px;height:9px;border-radius:2px;background:var(--red); display:block; }
.opbnb-foot .pin i:nth-child(2){opacity:.6;} .opbnb-foot .pin i:nth-child(3){opacity:.3;}

/* ---------- Use cases ---------- */
.uc-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.uc { border:1px solid var(--line); border-radius:var(--radius); background:var(--ink-2); padding:30px; transition: border-color .35s, transform .35s var(--ease); }
.uc:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 36px 70px -42px var(--red-glow); }
.uc .uc-ic { width: 34px; height:34px; color: var(--red); }
.uc h3 { font-size: 21px; margin: 18px 0 12px; }
.uc p { color: var(--grey-2); font-size: 15px; }
.uc .uc-fns { margin-top: 16px; display:flex; flex-wrap:wrap; gap:8px; }
.uc .uc-fns code { font-family:var(--font-mono); font-size:11.5px; color:var(--grey-1); border:1px solid var(--line); border-radius:6px; padding:4px 8px; background: rgba(0,0,0,.3); }

/* ---------- Braincoders ---------- */
.bc { display:grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px,5vw,64px); align-items:center; }
.bc-list { display:grid; gap: 2px; border-top:1px solid var(--line); }
.bc-item { display:flex; gap: 18px; padding: 22px 4px; border-bottom:1px solid var(--line); transition: padding-left .3s, background .3s; }
.bc-item:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(255,53,65,0.05), transparent); }
.bc-item .k { font-family:var(--font-mono); font-size:12px; color: var(--red); flex:none; width: 44px; padding-top:3px; }
.bc-item h4 { font-size:18px; color:#fff; }
.bc-item p { color: var(--grey-2); font-size:14.5px; margin-top:4px; }

/* ---------- Final CTA ---------- */
.final { position:relative; overflow:hidden; text-align:center; }
.final .h-display { max-width: 16ch; margin: 0 auto; }
.final .quote { margin: 30px auto 0; max-width: 60ch; font-size: clamp(17px,2vw,22px); color: var(--grey-1); line-height:1.5; }
.final .quote .q { color: var(--red); font-family: var(--font-mono); }
.final-links { margin-top: 44px; display:flex; gap: 16px; justify-content:center; flex-wrap:wrap; }
.final-card {
  display:flex; flex-direction:column; align-items:flex-start; gap: 6px; text-align:left;
  border:1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; min-width: 210px;
  background: var(--ink-2); transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.final-card:hover { border-color: var(--red); transform: translateY(-4px); background: var(--ink-3); }
.final-card .l { font-family:var(--font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--grey-3); }
.final-card .v { font-size: 16px; color:#fff; display:flex; align-items:center; gap:8px; }
.final-card .v .red { color: var(--red); }

/* ---------- Footer ---------- */
.footer { border-top:1px solid var(--line); padding: 40px var(--gutter); display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.footer .f-l { display:flex; align-items:center; gap:12px; color: var(--grey-3); font-family:var(--font-mono); font-size:12.5px; }
.footer .f-r { font-family:var(--font-mono); font-size:12px; color: var(--grey-3); }
.footer .f-r b { color: var(--grey-1); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s; } .reveal[data-d="2"]{ transition-delay:.16s; }
.reveal[data-d="3"]{ transition-delay:.24s; } .reveal[data-d="4"]{ transition-delay:.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* Live "reduce motion" tweak — calm decorative loops */
body.reduce-motion .live-dot,
body.reduce-motion .scroll-hint .bar::after { animation: none; }
body.reduce-motion .reveal { transition-duration: .3s; }

/* ---------- Section divider label ---------- */
.sec-index { position:absolute; top: clamp(40px,7vw,90px); right: var(--gutter); font-family:var(--font-mono); font-size:12px; color: var(--grey-3); letter-spacing:.1em; z-index:1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .arch { grid-template-columns: 1fr; }
  .arch-diagram { max-width: 460px; margin: 0 auto; }
  .bc { grid-template-columns: 1fr; }
  .std.col-7,.std.col-5,.std.col-4,.std.col-6 { grid-column: span 6; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items:center; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 100%; left:0; right:0; padding: 24px var(--gutter);
    background: rgba(13,8,8,0.96); backdrop-filter: blur(20px); border-bottom:1px solid var(--line);
  }
  .grid-3, .reg-grid, .deploy-grid, .opbnb, .uc-grid { grid-template-columns: 1fr; }
  .std-grid { grid-template-columns: 1fr; }
  .std.col-7,.std.col-5,.std.col-4,.std.col-6 { grid-column: span 1; }
  .stat-banner { flex-direction: column; align-items: flex-start; }
  .stat-banner .zero { margin-left: 0; }
  .tx-row { flex-wrap: wrap; gap: 8px; }
  .tx-row .fn { min-width: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-chips { gap: 8px; }
  .reg-grid { gap: 14px; }
  .final-card { min-width: 0; width: 100%; }
}
