/* ==========================================================================
   DRUGHUB // AUDIT PORTAL — DESIGN & MOTION SYSTEM (2026)
   Palette: Deep Obsidian Black + Vermilion/Monero Orange + Stark White Contrast + Technical Grey
   Architecture: Zero-Sidebar Wide Console (1180px) + Dual Horizontal HUD
   ========================================================================== */

:root {
  /* Core Backgrounds (Pure Black & Charcoal Hub Priority) */
  --bg-void: #000000;
  --bg-obsidian: #0E0E0E;
  --bg-panel: #151515;
  --bg-panel-glass: rgba(24, 24, 24, 0.86);
  --bg-elevated: #1F1F1F;
  --bg-terminal: #080808;

  /* High-Contrast Stark White Surfaces (Reference Image Motif) */
  --surface-white: #F5F5F7;
  --surface-white-pure: #FFFFFF;
  --text-on-white: #000000;
  --text-muted-on-white: #4B4B4B;
  --border-on-white: rgba(0, 0, 0, 0.12);

  /* Iconic Hub Orange Accents (#FF9000 / #FFA31A) */
  --accent-orange: #FF9000;
  --accent-orange-bright: #FFA31A;
  --accent-xmr: #FF9000;
  --accent-crimson-orb: #FF9000;
  --accent-glow-strong: rgba(255, 144, 0, 0.36);
  --accent-glow-soft: rgba(255, 144, 0, 0.15);
  --accent-glow-subtle: rgba(255, 163, 26, 0.08);

  /* Typography & Neutral Greys */
  --text-main: #FFFFFF;
  --text-secondary: #CCCCCC;
  --text-muted: #999999;
  --text-dim: #666666;

  /* Borders & Hairlines */
  --border-hairline: rgba(255, 255, 255, 0.10);
  --border-orange: rgba(255, 144, 0, 0.45);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Spot Semantic Accents (Точечные элементы) */
  --status-emerald: #10B981;
  --status-emerald-bg: rgba(16, 185, 129, 0.12);
  --danger-rose: #F43F5E;
  --danger-rose-bg: rgba(244, 63, 94, 0.12);
  --warning-amber: #F59E0B;
  --warning-amber-bg: rgba(245, 158, 11, 0.12);
  --crypto-cyan: #06B6D4;
  --crypto-cyan-bg: rgba(6, 182, 212, 0.12);

  /* Typography Families */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout Constants */
  --console-max-width: 1180px;
  --topbar-height: 64px;
  --hud-strip-height: 44px;

  /* Sculpted Asymmetric Radii (From Reference Design) */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-cut: 52px;
  --radius-pill: 9999px;

  /* Motion Tokens (/motion-design & /animation-systems) */
  --ease-out-quart: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring-pop: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --dur-micro: 150ms;
  --dur-ui: 240ms;
  --dur-card: 340ms;
  --dur-reveal: 620ms;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + var(--hud-strip-height) + 24px);
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -5%, rgba(255, 144, 0, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 40% at 50% 62%, rgba(255, 144, 0, 0.11), transparent 75%),
    radial-gradient(ellipse 60% 35% at 85% 95%, rgba(255, 163, 26, 0.08), transparent 70%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Ambient Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 25%, black 20%, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-orange-bright);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-in-out-smooth);
}

a:hover {
  color: var(--text-main);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 3px;
}

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

/* ==========================================================================
   1. GLOBAL TOPBAR (<header class="dh-topbar">)
   ========================================================================== */
.dh-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-height);
  background: rgba(7, 6, 6, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
}

.dh-topbar-inner {
  max-width: var(--console-max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-wordmark .hub-pill {
  background: var(--accent-orange);
  color: #000000;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 800;
  margin-left: 2px;
  line-height: 1.25;
}

.brand-lockup svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  transition: transform var(--dur-ui) var(--ease-out-quart);
}

.brand-lockup:hover svg {
  transform: rotate(-12deg) scale(1.06);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 144, 0, 0.15);
  border: 1px solid var(--border-orange);
  color: var(--accent-orange-bright);
  letter-spacing: 0.05em;
}

/* Center Navigation with Reference Dot Indicator */
.dh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dh-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color var(--dur-micro) var(--ease-in-out-smooth),
              background-color var(--dur-micro) var(--ease-in-out-smooth);
  white-space: nowrap;
}

.dh-nav-link .nav-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  transition: color var(--dur-micro) var(--ease-in-out-smooth);
}

.dh-nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.dh-nav-link:hover .nav-index {
  color: var(--accent-orange);
}

.dh-nav-link[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

.dh-nav-link[aria-current="page"] .nav-index {
  color: var(--accent-orange);
}

/* Glowing Orange Dot Under Active Nav Link (Like Reference Image) */
.dh-nav-link[aria-current="page"]::after,
.dh-nav-dropdown.is-current > .dh-nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 10px 2px var(--accent-orange);
}

.dh-nav-dropdown.is-current > .dh-nav-link {
  color: var(--text-main);
  font-weight: 600;
}

/* Dropdown Menu in Global Topbar (.dh-nav-dropdown) */
.dh-nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-caret {
  font-size: 0.72rem;
  color: var(--accent-orange-bright);
  transition: transform var(--dur-micro) var(--ease-out-quart);
}

.dh-nav-dropdown:hover .dropdown-caret,
.dh-nav-dropdown:focus-within .dropdown-caret,
.dh-nav-dropdown.is-open .dropdown-caret {
  transform: rotate(180deg);
}

.dh-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 340px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: rgba(14, 14, 14, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-orange);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.88),
              0 0 28px rgba(255, 144, 0, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--dur-micro) var(--ease-out-quart),
              transform var(--dur-micro) var(--ease-out-quart),
              visibility var(--dur-micro);
  z-index: 120;
}

/* Invisible hover bridge so moving cursor from trigger to menu never drops hover */
.dh-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.dh-nav-dropdown:hover .dh-dropdown-menu,
.dh-nav-dropdown:focus-within .dh-dropdown-menu,
.dh-nav-dropdown.is-open .dh-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dh-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
  transition: background-color var(--dur-micro) var(--ease-in-out-smooth),
              border-color var(--dur-micro) var(--ease-in-out-smooth);
}

.dh-dropdown-item strong {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.dh-dropdown-item span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dh-dropdown-item:hover,
.dh-dropdown-item[aria-current="page"] {
  background: rgba(255, 144, 0, 0.11);
  border-color: var(--border-orange);
}

.dh-dropdown-item:hover strong,
.dh-dropdown-item[aria-current="page"] strong {
  color: var(--accent-orange-bright);
}

.dh-dropdown-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px 4px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-orange-bright);
}

.dh-dropdown-footer:hover {
  color: var(--text-main);
}

/* Right Status Pill */
.ingress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-emerald);
  box-shadow: 0 0 10px var(--status-emerald);
  animation: pulseLive 2.4s ease-in-out infinite;
}

.status-dot-archive {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

/* ==========================================================================
   2. HORIZONTAL SECTION HUD STRIP (<nav class="section-hud-strip">) — L1 PAGES
   ========================================================================== */
.section-hud-strip {
  position: sticky;
  top: var(--topbar-height);
  z-index: 90;
  min-height: var(--hud-strip-height);
  background: rgba(14, 11, 10, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

.section-hud-inner {
  max-width: var(--console-max-width);
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-chips-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.hud-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-orange);
  letter-spacing: 0.06em;
  margin-right: 4px;
}

.hud-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all var(--dur-micro) var(--ease-in-out-smooth);
}

.hud-chip:hover,
.hud-chip.is-active {
  color: #000000;
  font-weight: 600;
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.hud-return-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-white);
  color: var(--text-on-white);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  transition: transform var(--dur-micro) var(--ease-out-quart),
              background-color var(--dur-micro) var(--ease-in-out-smooth);
  white-space: nowrap;
}

.hud-return-link:hover {
  background: var(--accent-orange);
  color: #000000;
  transform: translateX(-2px);
}

/* ==========================================================================
   3. MAIN CONSOLE CONTAINER (<main class="dh-console">)
   ========================================================================== */
.dh-console {
  position: relative;
  z-index: 1;
  max-width: var(--console-max-width);
  margin: 0 auto;
  padding: 36px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Breadcrumb Bar (First Link Priority on L1 Pages) */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  align-self: flex-start;
  margin-bottom: -28px;
}

.breadcrumb a {
  color: var(--accent-orange-bright);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--text-dim);
}

/* ==========================================================================
   4. HERO & DIAGONAL EMBER LOUVERS (INSPIRED BY USER'S REFERENCE PHOTO)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-cut);
  background: linear-gradient(155deg, rgba(24, 20, 14, 0.94) 0%, rgba(10, 10, 10, 0.98) 100%);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Diagonal Glowing Louvers / Fins Behind Hero (Matches Attached Design in Hub Orange) */
.hero-fins-backdrop {
  position: absolute;
  top: -60px;
  left: 34%;
  width: 440px;
  height: 440px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  gap: 18px;
  transform: rotate(-36deg);
  opacity: 0.88;
}

.hero-fin {
  flex: 1;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.1) 0%,
    rgba(184, 96, 0, 0.38) 62%,
    rgba(255, 144, 0, 0.82) 95%,
    rgba(255, 204, 102, 0.96) 100%
  );
  box-shadow: 12px 0 38px rgba(255, 144, 0, 0.28);
  animation: finBreathe 7s ease-in-out infinite alternate;
}

.hero-fin:nth-child(1) { height: 70%; margin-top: 15%; animation-delay: 0s; }
.hero-fin:nth-child(2) { height: 92%; margin-top: 4%; animation-delay: 0.9s; }
.hero-fin:nth-child(3) { height: 100%; animation-delay: 1.8s; }
.hero-fin:nth-child(4) { height: 78%; margin-top: 11%; animation-delay: 2.7s; }

@keyframes finBreathe {
  0% { opacity: 0.72; transform: translateY(0px); }
  100% { opacity: 1; transform: translateY(-10px); }
}

.hero-content-layer {
  position: relative;
  z-index: 1;
}

/* Split Cockpit on Index Hero (62% / 38%) */
.cockpit-split {
  display: grid;
  grid-template-columns: 1.58fr 1fr;
  gap: 32px;
  align-items: start;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
}

.pill-badge.orange {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #000000;
  font-weight: 700;
}

.pill-badge.white {
  background: var(--surface-white);
  color: var(--text-on-white);
  font-weight: 600;
}

/* Display Typography */
h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 18px;
}

h1 .accent-text,
h2 .accent-text {
  background: linear-gradient(95deg, #FF9000 0%, #FFB84D 55%, #FF7700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.article-lead {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 22px;
  max-width: 78ch;
}

.hero-lead p + p,
.article-lead p + p {
  margin-top: 12px;
}

.content-section > p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  max-width: 82ch;
}

.content-section > h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}

.orientir-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.orientir-list li {
  position: relative;
  padding-left: 16px;
}

.orientir-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

.lsi-strip {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lsi-strip span.lsi-token {
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

/* ==========================================================================
   6. VERIFIED V3 .ONION GATEWAY TERMINAL & SPEC LEDGER (INDEX BLOCK 1)
   ========================================================================== */
.gateway-terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75),
              0 0 35px rgba(255, 144, 0, 0.12);
}

.terminal-topbar {
  padding: 11px 16px;
  background: rgba(255, 144, 0, 0.12);
  border-bottom: 1px solid var(--border-orange);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.terminal-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--status-emerald);
  font-weight: 600;
}

.gateway-header-bar {
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.015);
}

.gateway-slot {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.gateway-slot-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.onion-address-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
}

.onion-hash {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-main);
  word-break: break-all;
  user-select: all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--surface-white);
  color: var(--text-on-white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--dur-micro) var(--ease-spring-pop),
              background-color var(--dur-micro) var(--ease-in-out-smooth),
              color var(--dur-micro) var(--ease-in-out-smooth);
}

.copy-btn:hover {
  background: var(--accent-orange);
  color: #000000;
  transform: translateY(-1px);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn.is-copied {
  background: var(--status-emerald);
  color: #04130D;
}

.mirror-footnote {
  padding: 12px 16px;
  background: rgba(255, 144, 0, 0.07);
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.mirror-footnote a {
  font-weight: 600;
  color: var(--accent-orange-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Homepage reference and directory modules */
.gateway-heading {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.gateway-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-orange-bright);
}

.spec-ledger-row a {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #834500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.spec-ledger-row a:hover {
  color: #000;
}

.guide-directory-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 24px;
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-md);
  background: linear-gradient(110deg, rgba(255, 144, 0, 0.18), rgba(255, 144, 0, 0.03));
}

.guide-directory-callout strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.guide-directory-callout p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-top: 5px;
}

.guide-directory-callout .bento-cta-link {
  flex-shrink: 0;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 16px;
  font-size: 0.77rem;
}

.topic-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.is-contrast-white .topic-links a {
  color: #774100;
}

.is-contrast-white .topic-links a:hover {
  color: #000;
}

/* Right Column Spec Ledger (Without <table> tag!) */
.spec-ledger {
  background: var(--surface-white);
  color: var(--text-on-white);
  border-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-cut);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-ledger-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-on-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--text-on-white);
}

.spec-ledger-row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-on-white);
}

.spec-ledger-key {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  color: #000000;
  background: var(--accent-orange);
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-ledger-val {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-on-white);
  margin-top: 2px;
}

.spec-ledger-sub {
  font-size: 0.77rem;
  color: var(--text-muted-on-white);
}

/* ==========================================================================
   7. SECTION CONTAINERS & WHITE CONTRAST SHOWCASE BAND (FROM REFERENCE IMAGE)
   ========================================================================== */
.content-section {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-panel-glass);
  border: 1px solid var(--border-hairline);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--accent-orange-bright);
  margin-bottom: 8px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 14px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text-main);
  margin-bottom: 10px;
}

/* Stark White Asymmetric Showcase Card (Directly modeled on "Why Businesses Choose Us" bar) */
.white-showcase-band {
  background: var(--surface-white);
  color: var(--text-on-white);
  border-radius: var(--radius-lg);
  border-top-right-radius: 56px;
  border-bottom-left-radius: 42px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  margin-top: 22px;
}

.showcase-visual-box {
  border-radius: 20px;
  background: linear-gradient(135deg, #140D00 0%, #8A4B00 45%, #FF9000 100%);
  padding: 22px;
  color: var(--surface-white-pure);
  position: relative;
  overflow: hidden;
  min-height: 185px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-on-white);
}

.metric-big-num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-on-white);
}

.metric-small-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted-on-white);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ==========================================================================
   8. SINGLE HTML TABLE PER PAGE (<table class="data-table">)
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-obsidian);
  margin-top: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table caption {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-orange-bright);
  background: rgba(255, 144, 0, 0.09);
  border-bottom: 1px solid var(--border-hairline);
}

.data-table th {
  padding: 13px 16px;
  background: var(--bg-elevated);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-strong);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(255, 144, 0, 0.05);
}

/* Semantic Status Pills Inside Tables & Cards */
.verdict-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.verdict-pill.pass {
  background: var(--status-emerald-bg);
  color: var(--status-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.verdict-pill.ban {
  background: var(--danger-rose-bg);
  color: var(--danger-rose);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.verdict-pill.warn {
  background: var(--warning-amber-bg);
  color: var(--warning-amber);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   9. ASYMMETRIC BENTO CARDS & STEP GRIDS (MATCHING REFERENCE SCREENSHOT)
   ========================================================================== */
.audit-steps-grid,
.three-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

.bento-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 20px;
}

.bento-card,
.audit-step-card {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  border-top-right-radius: 46px;
  background: radial-gradient(
    420px circle at var(--mouse-x, 80%) var(--mouse-y, 20%),
    rgba(255, 144, 0, 0.14),
    rgba(21, 21, 21, 0.92) 70%
  );
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform var(--dur-card) var(--ease-out-quart),
              border-color var(--dur-card) var(--ease-in-out-smooth),
              box-shadow var(--dur-card) var(--ease-out-quart);
}

.bento-card:hover,
.audit-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-orange);
  box-shadow: 0 22px 48px -12px rgba(0, 0, 0, 0.85),
              0 0 28px rgba(255, 144, 0, 0.16);
}

/* Stark White Contrast Card in Grid (Just like card #6 "Email-marketing" in Reference Photo!) */
.bento-card.is-contrast-white,
.audit-step-card.is-contrast-white {
  background: var(--surface-white);
  color: var(--text-on-white);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.bento-card.is-contrast-white h3,
.audit-step-card.is-contrast-white h3 {
  color: var(--text-on-white);
}

.bento-card.is-contrast-white p,
.bento-card.is-contrast-white li,
.audit-step-card.is-contrast-white p {
  color: var(--text-muted-on-white);
}

.bento-card.is-contrast-white .bento-cta-link {
  background: var(--text-on-white);
  color: var(--surface-white-pure);
}

.bento-card.is-contrast-white .bento-cta-link:hover {
  background: var(--accent-orange);
  color: #000000;
}

/* Circular Hub-Orange Icon Orb with Solid Black Bold Text */
.card-icon-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFA31A 0%, #FF9000 100%);
  box-shadow: 0 6px 18px rgba(255, 144, 0, 0.42);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: transform var(--dur-ui) var(--ease-spring-pop);
}

.bento-card:hover .card-icon-orb,
.audit-step-card:hover .card-icon-orb {
  transform: scale(1.1) rotate(6deg);
}

.bento-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 144, 0, 0.14);
  border: 1px solid var(--border-orange);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  margin-top: 6px;
  transition: all var(--dur-ui) var(--ease-out-quart);
}

.bento-cta-link:hover {
  background: var(--accent-orange);
  color: #000000;
  transform: translateX(3px);
}

/* ==========================================================================
   10. PAGE-SPECIFIC CUSTOM UI COMPONENTS (REPLACING EXTRA TABLES PER NUANCE 2)
   ========================================================================== */

/* L1 Page 2: Radix-64 ASCII Armor Inspector (.armor-inspector) */
.armor-inspector {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  margin-top: 16px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
}

.armor-code-preview {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #050505;
  border: 1px solid var(--border-orange);
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.65;
  color: var(--text-secondary);
  overflow-x: auto;
}

.armor-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.armor-rule-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent-orange);
  font-size: 0.85rem;
}

/* L1 Page 2: Authentic vs MITM Clone Board (.vs-comparison-board) */
.vs-comparison-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 16px;
}

.vs-column {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vs-column.authentic {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.vs-column.phishing {
  background: rgba(244, 63, 94, 0.06);
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.vs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

/* L1 Page 3: Config Flags Panel (.config-flags-panel) & OS Tier Cards (.os-tier-cards) */
.config-flags-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.config-flag-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1.3fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
}

.os-tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.os-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* L1 Pages 4 & 5: Governance Ledger */
.governance-ledger {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.governance-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--accent-orange);
}

/* Terminal Code Window */
.terminal-window {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #050505;
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #E4E4E7;
  overflow-x: auto;
}

.terminal-window .cmd-prompt {
  color: var(--accent-orange);
  user-select: none;
}

/* ==========================================================================
   11. FAQ ACCORDIONS (<details class="faq-item">) & FOOTER GATE
   ========================================================================== */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-obsidian);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  transition: border-color var(--dur-micro) var(--ease-in-out-smooth);
}

.faq-item[open] {
  border-color: var(--border-orange);
  background: rgba(22, 22, 22, 0.96);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
}

.faq-chevron {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 144, 0, 0.14);
  color: var(--accent-orange-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--dur-ui) var(--ease-out-quart),
              background-color var(--dur-micro) var(--ease-in-out-smooth);
}

.faq-item[open] .faq-chevron {
  transform: rotate(45deg);
  background: var(--accent-orange);
  color: #000000;
}

.faq-body {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* Bottom Dual Navigation Gate (.article-footer-gate) */
.article-footer-gate {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, rgba(255, 144, 0, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid var(--border-orange);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform var(--dur-ui) var(--ease-out-quart),
              box-shadow var(--dur-ui) var(--ease-out-quart);
}

.gate-btn.primary-return {
  background: var(--surface-white);
  color: var(--text-on-white);
}

.gate-btn.primary-return:hover {
  background: var(--surface-white-pure);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.18);
}

.gate-btn.secondary-next {
  background: var(--accent-orange);
  color: #000000;
}

.gate-btn.secondary-next:hover {
  background: var(--accent-orange-bright);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 144, 0, 0.45);
}

/* ==========================================================================
   12. GLOBAL FOOTER (<footer class="dh-footer">)
   ========================================================================== */
.dh-footer {
  border-top: 1px solid var(--border-hairline);
  background: #050404;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.dh-footer-inner {
  max-width: var(--console-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.footer-brand-static {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-disclaimer {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-orange-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
}

.footer-nav-list a {
  color: var(--text-secondary);
}

.footer-nav-list a:hover {
  color: var(--accent-orange-bright);
}

/* ==========================================================================
   13. SCROLL REVEAL CHOREOGRAPHY (/animation-systems)
   ========================================================================== */
/* no-js: content visible by default for crawlers and non-JS environments */
.no-js .reveal-block {
  opacity: 1;
  transform: none;
}

.js .reveal-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-reveal) var(--ease-out-quart),
              transform var(--dur-reveal) var(--ease-out-quart);
}

.js .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   14. RESPONSIVE & REDUCED MOTION
   ========================================================================== */
@media (max-width: 980px) {
  .cockpit-split,
  .white-showcase-band,
  .armor-inspector,
  .vs-comparison-board,
  .dh-footer-inner {
    grid-template-columns: 1fr;
  }

  .audit-steps-grid,
  .three-col-grid,
  .bento-grid-2x2,
  .governance-ledger {
    grid-template-columns: 1fr;
  }

  .config-flag-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dh-topbar-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .dh-dropdown-menu {
    left: auto;
    right: 0;
    width: min(310px, calc(100vw - 28px));
  }

  .ingress-pill {
    display: none;
  }
}

@media (max-width: 680px) {
  .dh-topbar {
    height: auto;
    min-height: var(--topbar-height);
  }

  .dh-topbar-inner {
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .dh-nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .section-hud-strip {
    position: static;
  }

  .dh-console {
    padding: 24px 14px 56px;
    gap: 28px;
  }

  .hero-section,
  .content-section {
    padding: 24px 18px;
  }

  .onion-address-bar,
  .guide-directory-callout {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-btn {
    align-self: flex-start;
  }
}

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

  .js .reveal-block {
    opacity: 1 !important;
    transform: none !important;
  }
}
