/* ==============================================================================
   PUMPCARDS PROTOCOL — MONOLITHIC MATTE TITANIUM & PRECISION FINANCIAL TERMINAL
   Bespoke luxury crypto-fintech interface. Zero generic templates, zero box-soup.
   Deep Obsidian Void · Brushed Titanium · Laser Emerald · Tabular Data Density
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ─── COLOR PALETTE ──────────────────────────────────────────────────────── */
  --void: #050608;                 /* Absolute deepest background */
  --void-plate: #090B0E;           /* Base elevation plate */
  --surface-subtle: #0E1217;       /* Terminal deck surface */
  --surface-hover: #14181F;        /* Interactive highlight */
  --surface-raised: #1A202A;       /* Modals & floating dockets */

  /* Hairlines & Precision Edges */
  --border-hairline: rgba(255, 255, 255, 0.06);
  --border-muted: rgba(255, 255, 255, 0.10);
  --border-active: rgba(0, 229, 153, 0.35);

  /* Typography Colors */
  --text-pure: #EDEDED;            /* Crisp primary titanium */
  --text-secondary: #94A3B8;       /* Slate muted metadata */
  --text-tertiary: #526071;        /* Low-priority labels */

  /* Accent Accents */
  --emerald: #00E599;              /* Laser emerald: positive cashflow */
  --emerald-soft: rgba(0, 229, 153, 0.08);
  --emerald-glow: rgba(0, 229, 153, 0.25);

  --warn-amber: #F59E0B;           /* Warning amber: 24h grace countdown */
  --warn-soft: rgba(245, 158, 11, 0.08);
  --warn-border: rgba(245, 158, 11, 0.3);

  --danger: #EF4444;               /* Forfeited / MEV Bot */
  --danger-soft: rgba(239, 68, 68, 0.08);
  --danger-border: rgba(239, 68, 68, 0.3);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Layout Constants */
  --max-width: 1200px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 15px;
  background-color: var(--void);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--void);
  color: var(--text-pure);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Architectural Grid Texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.shell {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ─── TYPOGRAPHY & LINKS ───────────────────────────────────────────────────── */

h1, h2, h3, h4, h5 {
  color: var(--text-pure);
  letter-spacing: -0.025em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

.val-emerald { color: var(--emerald) !important; }
.val-amber { color: var(--warn-amber) !important; }
.val-danger { color: var(--danger) !important; }
.font-mono { font-family: var(--font-mono); }

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s var(--ease-smooth);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.button-primary {
  background: var(--emerald);
  color: #03140A;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 15px var(--emerald-glow);
}
.button-primary:hover {
  background: #14F4A5;
  transform: translateY(-1px);
}
.button-primary:active {
  transform: translateY(0);
}

.button-secondary {
  background: var(--surface-subtle);
  color: var(--text-pure);
  border-color: var(--border-hairline);
}
.button-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-muted);
}

.button-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
}

.button-lg {
  padding: 0.85rem 1.65rem;
  font-size: 0.92rem;
}

.button-full {
  width: 100%;
}

/* ─── FLOATING MINIMALIST COMMAND BAR ──────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-monogram {
  width: 26px;
  height: 26px;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--emerald);
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  border: 1px solid var(--border-hairline);
  display: block;
}

.brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-title span {
  color: var(--emerald);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding-left: 0.5rem;
  border-left: 1px solid var(--border-hairline);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.14s ease;
}
.nav-link:hover {
  color: var(--text-pure);
}

.nav-link-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--emerald);
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 229, 153, 0.08);
  border: 1px solid rgba(0, 229, 153, 0.22);
  border-radius: var(--radius-pill);
  transition: all 0.16s ease;
}

.nav-link-highlight:hover {
  color: #fff;
  background: rgba(0, 229, 153, 0.16);
  border-color: rgba(0, 229, 153, 0.4);
  box-shadow: 0 0 12px rgba(0, 229, 153, 0.2);
}

.highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.btn-header-app {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
}

/* ─── ASYMMETRIC MONOLITH HERO ─────────────────────────────────────────────── */

.hero-section {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.hero-heading {
  font-size: 3.25rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-heading .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
}
.hero-description strong {
  color: var(--text-pure);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.hero-trust-bar span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-trust-bar span strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ─── MONOLITHIC MATTE TITANIUM PHYSICAL CARD ──────────────────────────────── */

.card-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.matte-titanium-card {
  width: 100%;
  max-width: 380px;
  height: 236px;
  border-radius: 14px;
  position: relative;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, #18202b 0%, #0a0d13 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 0 0 1px rgba(0, 229, 153, 0.16),
    0 30px 60px -12px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(0, 229, 153, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  user-select: none;
  overflow: hidden;
}

/* Metallic hairline texture */
.matte-titanium-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.card-tier-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--emerald);
  background: rgba(0, 229, 153, 0.08);
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(0, 229, 153, 0.28);
  border-radius: var(--radius-xs);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-hardware-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

/* Micro-Circuit Precision EMV Chip */
.emv-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 25%, #ca8a04 60%, #854d0e 100%);
  border-radius: 5px;
  border: 1px solid #78350f;
  position: relative;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.emv-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, transparent 14px, #070a0e 14px, #070a0e 16px, transparent 16px, transparent 26px, #070a0e 26px, #070a0e 28px, transparent 28px),
    linear-gradient(0deg, transparent 14px, #070a0e 14px, #070a0e 16px, transparent 16px);
  opacity: 0.72;
}
.emv-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #070a0e;
  background: rgba(0, 229, 153, 0.35);
}

.contactless-waves {
  color: rgba(255, 255, 255, 0.5);
}

.card-pan-display {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  letter-spacing: 0.24em;
  color: #F1F5F9;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), 0 -1px 2px rgba(0, 0, 0, 0.95);
  margin-top: 0.75rem;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.meta-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #CBD5E1;
}

/* Sleek Luxury Visa Wordmark */
.card-network-visa {
  font-family: var(--font-sans);
  font-size: 1.45rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.05em;
  color: #FFFFFF;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.2);
  user-select: none;
  line-height: 1;
}

/* Streaming Edge Pill */
.card-edge-dock {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.card-edge-dock .dock-stream {
  color: var(--emerald);
  font-weight: 700;
}

/* ─── LIVE STREAMING TELEMETRY (Financial Terminal Strip) ─────────────────────── */

.telemetry-section {
  padding: 0 0 3.5rem;
  border-bottom: 1px solid var(--border-hairline);
  position: relative;
  z-index: 5;
}

.telemetry-dock {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.telemetry-cell {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: background 0.15s ease;
}

.telemetry-cell:last-child {
  border-right: none;
}

.telemetry-cell:hover {
  background: rgba(255, 255, 255, 0.02);
}

.tel-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.tel-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tel-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tel-val.val-emerald {
  color: var(--emerald);
}

.tel-val.val-amber {
  color: var(--warn-amber);
}

.tel-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── THE HOLDERS LEDGER (High-Density Financial Terminal) ─────────────────── */

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  display: block;
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 620px;
}

/* Terminal Ledger Container */
.terminal-ledger {
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.terminal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  gap: 1rem;
  flex-wrap: wrap;
}

.terminal-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--void);
  padding: 0.2rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
}

.terminal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.14s ease;
}

.terminal-tab-btn.is-active {
  background: var(--surface-subtle);
  color: var(--text-pure);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.terminal-tab-btn.is-active .pill-count {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.terminal-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--void);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 0.4rem 0.75rem;
  width: 100%;
  max-width: 320px;
}

.terminal-search input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-pure);
  width: 100%;
}
.terminal-search input::placeholder {
  color: var(--text-tertiary);
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  border: 1px solid var(--border-hairline);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  background: var(--surface-subtle);
}

/* 24h Community Reclaim Banner in Ledger */
.reclaim-pool-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  flex-wrap: wrap;
}

.reclaim-pool-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.reclaim-pool-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--warn-amber);
  text-transform: uppercase;
}

.reclaim-pool-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.reclaim-pool-amount {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--emerald);
  letter-spacing: -0.02em;
}

.reclaim-pool-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.reclaim-pool-note {
  max-width: 540px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

/* Table Architecture */
.terminal-scroll {
  overflow-x: auto;
  max-height: 580px;
  overflow-y: auto;
}

.terminal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.terminal-table th {
  background: var(--surface-subtle);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-hairline);
  position: sticky;
  top: 0;
  z-index: 5;
}

.terminal-table td {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-pure);
}

.terminal-table tbody tr.row-earner {
  cursor: pointer;
  transition: background 0.12s ease;
}
.terminal-table tbody tr.row-earner:hover {
  background: rgba(255, 255, 255, 0.025);
}

.align-right { text-align: right; }

/* Inline Expandable Audit Docket (Zero Scroll Jump) */
tr.row-docket-open {
  background: rgba(255, 255, 255, 0.02) !important;
}

tr.row-docket td {
  padding: 0;
  background: #0B0E13;
  border-bottom: 1px solid var(--border-muted);
}

.docket-container {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.docket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.docket-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.docket-item {
  background: var(--void);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
}

.docket-k {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.docket-v {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
}

.docket-warning-banner {
  background: var(--warn-soft);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-xs);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #FDE68A;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-hairline);
  background: var(--surface-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* ─── PLATINUM CARD PROTOCOL RAIL ──────────────────────────────────────────── */

.workstation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.workstation-visual-panel {
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.workstation-pricing-panel {
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ─── WORKSTATION PRICING & SPECS (Clean & Calm) ────────────────────────── */
.pricing-spec-list {
  display: flex;
  flex-direction: column;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0;
  margin-bottom: 1.25rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.spec-detail {
  font-size: 0.85rem;
  color: var(--text-pure);
  font-weight: 500;
  text-align: right;
}

.pill-free {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  margin-right: 4px;
}

/* Activation Meter */
.activation-meter {
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.activation-meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.meter-title {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.meter-numbers {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-pure);
  font-weight: 600;
}

.activation-meter-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.activation-meter-fill {
  height: 100%;
  background: #10b981;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

/* Privacy Note */
.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 340px;
  color: var(--text-secondary);
}

.privacy-note svg {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.privacy-note p {
  font-size: 0.78rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text-secondary);
}

/* ─── WALLET MODAL SECURITY PILL ─────────────────────────────────────────── */
.wallet-modal-security-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: var(--surface-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  margin-top: 0.85rem;
  text-align: left;
}

/* ─── WALLET CONNECTION & SECURITY AUDIT SPEC ────────────────────────────── */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.audit-invariants-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audit-card {
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease;
}

.audit-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.audit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.audit-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
}

.audit-badge.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.audit-badge.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.audit-badge.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.audit-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-pure);
}

.audit-card p {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* Code Inspector Terminal */
.code-inspector-terminal {
  background: #090a0d;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d0f14;
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.5rem 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.code-inspector-tabs {
  display: flex;
  gap: 0.35rem;
}

.code-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.14s ease;
}

.code-tab-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.04);
}

.code-tab-btn.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--emerald);
}

.code-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.code-tab-btn.is-active .code-tab-dot {
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
}

.code-copy-btn {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.code-copy-btn:hover {
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.25);
}

.code-inspector-body {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #e2e8f0;
  flex: 1;
}

.code-inspector-body pre {
  margin: 0;
  white-space: pre;
}

.code-comment { color: #64748b; font-style: italic; }
.code-keyword { color: #c084fc; font-weight: 600; }
.code-func { color: #38bdf8; }
.code-string { color: #34d399; }
.code-prop { color: #f59e0b; }

/* ─── THE AUTONOMOUS PIPELINE (Circuit Architecture) ───────────────────────── */

.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pipeline-node {
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.node-step-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.1em;
}

.pipeline-node h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.pipeline-node p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── PROTOCOL DOCUMENTATION (Engineering Journal) ─────────────────────────── */

.journal-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  background: var(--void-plate);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.journal-nav {
  background: var(--surface-subtle);
  border-right: 1px solid var(--border-hairline);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.journal-nav-btn {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
}
.journal-nav-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.02);
}
.journal-nav-btn.is-active {
  background: var(--void);
  color: var(--text-pure);
  border: 1px solid var(--border-hairline);
}

.journal-article {
  padding: 2.5rem 3rem;
  display: none;
}
.journal-article.is-active {
  display: block;
}

.journal-article h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.journal-article h4 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.journal-article p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.journal-article ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.journal-article li {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.45rem;
}

.journal-callout {
  background: var(--surface-subtle);
  border-left: 3px solid var(--emerald);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.84rem;
  color: #D1FAE5;
  line-height: 1.6;
  margin: 1.5rem 0;
}

/* ─── SITE FOOTER ──────────────────────────────────────────────────────────── */

.site-footer {
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-hairline);
  background: var(--void-plate);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-pure);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.12s ease;
}
.footer-col a:hover {
  color: var(--text-pure);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

/* ─── MODALS ───────────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-card {
  background: var(--void-plate);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .telemetry-dock { grid-template-columns: repeat(2, 1fr); }
  .telemetry-cell:nth-child(2) { border-right: none; }
  .telemetry-cell:nth-child(1),
  .telemetry-cell:nth-child(2) { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .workstation-grid { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .journal-container { grid-template-columns: 1fr; }
  .journal-nav { border-right: none; border-bottom: 1px solid var(--border-hairline); flex-direction: row; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .telemetry-dock { grid-template-columns: 1fr; }
  .telemetry-cell { border-right: none !important; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .telemetry-cell:last-child { border-bottom: none; }
  .tel-sub { white-space: normal; }
  .pipeline-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-heading { font-size: 2.4rem; }
}
