/* ─── design system ───────────────────────────────────────────── */
:root {
  /* color */
  --bg: #0a0b0d;
  --bg-elev: #111114;
  --bg-elev-2: #18181b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #fafafa;
  --muted: #a1a1aa;
  --dim: #71717a;
  --faint: #52525b;

  --accent: #ef4444;
  --safe: #10b981;
  --watch: #f59e0b;
  --purple: #a78bfa;

  /* type */
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 9vw, 140px);

  /* radii — restrained */
  --r-card: 12px;
  --r-pill: 6px;
  --r-bar: 4px;
}

/* ─── reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
code, pre { font-family: var(--mono); }

/* ─── topbar (sticky mission-control header) ─────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--dim);
  text-transform: uppercase;
}
.topbar-id {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.topbar-id-name { font-weight: 700; }
.topbar-id-sep { color: var(--faint); }
.topbar-id-role { color: var(--dim); }
.topbar-protocol, .topbar-block { color: var(--muted); }
.text-ink { color: var(--ink); font-variant-numeric: tabular-nums; }
.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--safe);
  font-weight: 500;
}
@media (max-width: 900px) {
  .topbar-protocol, .topbar-block { display: none; }
}

/* ─── blink dot primitive ─────────────────────────────────────── */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-accent {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: blink-fast 1.4s ease-in-out infinite;
}
.dot-safe {
  background: var(--safe);
  box-shadow: 0 0 12px var(--safe);
  animation: blink-slow 2.2s ease-in-out infinite;
}
.dot-watch {
  background: var(--watch);
  box-shadow: 0 0 12px var(--watch);
  animation: blink-fast 1.6s ease-in-out infinite;
}
@keyframes blink-fast {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
@keyframes blink-slow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ─── grid backdrop ───────────────────────────────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(80px, 9vw, 140px);
  min-height: calc(100vh - 50px);
  overflow: hidden;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-rows: auto auto auto auto auto;
  gap: 22px 56px;
  align-items: start;
  position: relative;
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.2px;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
.meta-stamp { color: var(--accent); font-weight: 500; }
.meta-sep { color: var(--faint); }

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 220px);
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 6px 0 0;
  color: var(--ink);
  text-shadow:
    0 0 80px rgba(239, 68, 68, 0.25),
    0 0 24px rgba(239, 68, 68, 0.12);
  position: relative;
}
.wordmark::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin-top: 22px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.tagline {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.hero-blurb {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}
.hero-blurb code {
  color: var(--ink);
  background: var(--bg-elev);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--line-strong);
  background: var(--bg-elev-2);
  transform: translateY(-1px);
}
.btn-primary {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--accent);
}
.btn-primary:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: var(--accent);
}
.btn-ghost { color: var(--muted); }

/* hero transcript sidecar */
.hero-transcript {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  margin-top: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12px;
}
@media (max-width: 1024px) {
  .hero-transcript {
    grid-column: 1;
    grid-row: auto;
    margin-top: 16px;
    max-width: 480px;
  }
}
.transcript-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 1.8px;
  color: var(--dim);
  text-transform: uppercase;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.transcript-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.transcript-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
}
.t-block {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--faint);
  text-transform: uppercase;
}
.t-event {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.t-event.safe { color: var(--safe); font-weight: 500; }
.t-event.accent { color: var(--accent); }
.t-event.watch { color: var(--watch); }
.t-event.muted { color: var(--dim); }

/* ─── section frame ───────────────────────────────────────────── */
.section {
  padding: var(--section-y) var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line); }

.section-rule {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2.4px;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.section-rule::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--ink);
  max-width: 22ch;
}
.section-lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 48px;
}
.section-lede code {
  font-size: 0.92em;
  color: var(--ink);
}

/* ─── PROBLEM ─ timeline ─────────────────────────────────────── */
.timeline {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 32px 22px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 240px 1fr 100px;
  gap: 22px;
  align-items: center;
  padding: 18px 0;
}
.timeline-row + .timeline-row {
  border-top: 1px solid var(--line);
}
.timeline-label { display: flex; flex-direction: column; gap: 4px; }
.timeline-actor {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.2px;
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 500;
}
.timeline-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.bar {
  height: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-bar);
  overflow: hidden;
  position: relative;
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: var(--r-bar);
  animation: bar-grow 1.2s ease-out forwards;
  transform: scaleX(0);
  transform-origin: left;
}
.bar-accent::before {
  background: linear-gradient(90deg, rgba(239,68,68,0.7), var(--accent));
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5);
}
.bar-watch::before {
  background: linear-gradient(90deg, rgba(245,158,11,0.7), var(--watch));
}
.bar-watch.bar-striped::before {
  background-image:
    repeating-linear-gradient(
      45deg,
      var(--watch),
      var(--watch) 6px,
      rgba(245, 158, 11, 0.7) 6px,
      rgba(245, 158, 11, 0.7) 12px
    );
}
.bar-pulse {
  position: absolute;
  inset: 0 0 0 var(--w);
  width: 14px;
  background: radial-gradient(circle at left, var(--accent), transparent 60%);
  animation: pulse-trail 1.4s ease-in-out infinite;
}
@keyframes bar-grow {
  to { transform: scaleX(1); }
}
@keyframes pulse-trail {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
.timeline-time {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.timeline-time.accent { color: var(--accent); }
.timeline-time.watch { color: var(--watch); }
.timeline-axis {
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--dim);
  text-transform: uppercase;
  padding-left: 240px;
  padding-right: 100px;
}
@media (max-width: 768px) {
  .timeline-row { grid-template-columns: 1fr; gap: 12px; }
  .timeline-time { text-align: left; }
  .timeline-axis { padding-left: 0; padding-right: 0; }
}

/* ─── SWARM ─ agent cards + AXL mesh ─────────────────────────── */
.swarm-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 80px;
}
@media (max-width: 768px) {
  .swarm-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 30px; }
}

.agent-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  z-index: 2;
}
.agent-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}
.agent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agent-letter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.badge-purple {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--purple);
}
.badge-safe {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: var(--safe);
  font-weight: 500;
}
.agent-body { display: flex; flex-direction: column; gap: 5px; }
.agent-addr {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.4px;
  color: var(--ink);
}
.agent-spec {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--muted);
  text-transform: uppercase;
}
.agent-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--dim);
  text-transform: uppercase;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-safe { color: var(--safe); font-weight: 500; }
.agent-port { color: var(--dim); }

/* AXL mesh overlay */
.axl-mesh {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  opacity: 0.85;
}
@media (max-width: 768px) { .axl-mesh { display: none; } }

.pulse {
  animation: pulse-x 4s linear infinite;
  filter: drop-shadow(0 0 1px var(--safe));
}
.pulse-1 { animation-delay: 0s; offset-path: path("M 17 7 L 50 7"); }
.pulse-2 { animation-delay: 1.3s; offset-path: path("M 50 7 L 83 7"); }
.pulse-3 { animation-delay: 2.6s; offset-path: path("M 17 7 Q 50 3 83 7"); }
@keyframes pulse-x {
  0% { offset-distance: 0%; opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.swarm-mesh-label {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--dim);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 4px;
}
@media (max-width: 768px) { .swarm-mesh-label { position: static; transform: none; margin-top: 16px; } }

/* ─── HOW IT WORKS ─ flow steps ──────────────────────────────── */
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}
.flow-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    var(--accent) 20%,
    var(--watch) 50%,
    var(--safe) 80%,
    transparent
  );
  opacity: 0.4;
  z-index: 0;
}
@media (max-width: 1024px) {
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .flow-steps::before { display: none; }
}
@media (max-width: 540px) {
  .flow-steps { grid-template-columns: 1fr; }
}
.flow-step {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.flow-num {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--muted);
}
.flow-step:nth-child(5) .flow-num {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--safe);
  color: var(--safe);
}
.flow-step:nth-child(1) .flow-num {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.5);
  color: var(--accent);
}
.flow-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.flow-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.flow-desc code {
  font-size: 0.92em;
  color: var(--ink);
}
.flow-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--dim);
  text-transform: uppercase;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ─── TRUST RECEIPT ──────────────────────────────────────────── */
.receipt-panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1.6px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}
.receipt-meta {
  font-weight: 500;
  font-size: 12px;
}
.receipt-meta.safe { color: var(--safe); }
.receipt-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.receipt-row {
  display: grid;
  grid-template-columns: 220px 240px 1fr 200px;
  gap: 18px;
  align-items: center;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.receipt-row:first-child { border-top: none; }
.receipt-row:hover { border-left-color: var(--safe); }
.receipt-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--safe);
  text-transform: uppercase;
}
.receipt-source {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.receipt-hash {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--r-bar);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.receipt-meaning {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 1024px) {
  .receipt-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .receipt-meaning { display: none; }
}

.receipt-foot {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  background: var(--bg);
}
.receipt-bond { display: flex; flex-direction: column; gap: 12px; }
.bond-label, .bond-total {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--dim);
  text-transform: uppercase;
}
.bond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bond-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-bar);
  font-family: var(--mono);
}
.bond-letter { color: var(--accent); font-weight: 700; font-size: 14px; }
.bond-amt { color: var(--ink); font-size: 13px; }

/* ─── STACK ──────────────────────────────────────────────────── */
.stack-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 1024px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .stack-grid { grid-template-columns: 1fr; } }
.stack-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 14px;
  padding: 22px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.stack-card:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.stack-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--ink);
  grid-column: 1;
  grid-row: 1;
}
.stack-role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
  grid-column: 1;
  grid-row: 2;
}
.stack-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--faint);
  transition: color 0.22s ease, transform 0.22s ease;
}
.stack-card:hover .stack-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* ─── ARCHITECTURE ───────────────────────────────────────────── */
.architecture-frame {
  display: block;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.22s ease;
}
.architecture-frame:hover {
  border-color: rgba(239, 68, 68, 0.5);
}
.architecture-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.architecture-zoom {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(10, 11, 13, 0.85);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

/* ─── DEMO VIDEO ─────────────────────────────────────────────── */
.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* ─── GET STARTED ────────────────────────────────────────────── */
.codeblock {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 28px;
  margin: 0 0 36px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  overflow-x: auto;
}
.codeblock code { white-space: pre; }
.cb-comment { color: var(--dim); }

.contracts {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 26px;
}
.contracts-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--dim);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.contracts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contracts-list li {
  display: grid;
  grid-template-columns: 240px auto 1fr;
  gap: 14px;
  align-items: center;
  font-family: var(--mono);
  font-size: 13px;
}
.contracts-name { color: var(--ink); font-weight: 500; }
.contracts-meta {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--dim);
  text-transform: uppercase;
}
.contracts-addr {
  color: var(--muted);
  text-decoration: none;
  text-align: right;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.contracts-addr:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
@media (max-width: 768px) {
  .contracts-list li { grid-template-columns: 1fr; gap: 4px; }
  .contracts-addr { text-align: left; }
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px var(--gutter);
  margin-top: 60px;
  background: var(--bg-elev);
}
.footer-row {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.footer-row + .footer-row { margin-top: 14px; }
.footer-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.footer-tag {
  font-style: italic;
  color: var(--muted);
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--dim);
  text-transform: uppercase;
}
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--accent); }

/* ─── reveal-on-scroll ───────────────────────────────────────── */
.section {
  opacity: 1;
  transform: none;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── selection ──────────────────────────────────────────────── */
::selection {
  background: rgba(239, 68, 68, 0.3);
  color: var(--ink);
}

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