/* ==========================================================================
   Guide Block - Modern Technical Documentation Stylesheet (guideblock.co)
   Pure CSS3 with custom properties, zero external heavy dependencies
   ========================================================================== */

:root {
  --primary-navy: #0B192C;
  --secondary-navy: #1E3E62;
  --navy-dark: #070E18;
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-cyan: #0EA5E9;
  --brand-sky: #38BDF8;
  
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-code: #0D1117;
  --bg-code-header: #161B22;

  --text-main: #1E293B;
  --text-heading: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;
  --border-focus: #3B82F6;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 30px -10px rgba(15, 23, 42, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --header-height: 72px;
  --container-max: 100%;
  --doc-max: 100%;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-blue-hover);
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
.read-guide-btn,
.read-guide-btn:hover,
.read-guide-btn:focus,
.read-guide-btn:active {
  color: #FFFFFF !important;
  text-decoration: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: #334155;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  color: #334155;
}

li {
  margin-bottom: 0.5rem;
}

/* Layout Utilities - True Full Width Responsive Layout */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: clamp(1.25rem, 3.5vw, 4rem);
  padding-right: clamp(1.25rem, 3.5vw, 4rem);
  box-sizing: border-box;
}

.container-wide {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: clamp(1.25rem, 3.5vw, 4rem);
  padding-right: clamp(1.25rem, 3.5vw, 4rem);
  box-sizing: border-box;
}

.container-doc {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: clamp(1.25rem, 3.5vw, 4rem);
  padding-right: clamp(1.25rem, 3.5vw, 4rem);
  box-sizing: border-box;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

/* Header & Navbar - Full Width */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: clamp(1.25rem, 3.5vw, 4rem);
  padding-right: clamp(1.25rem, 3.5vw, 4rem);
  box-sizing: border-box;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
}

.brand-logo-img {
  height: 55px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--brand-blue);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-surface-subtle);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  background-color: #E2E8F0;
  color: var(--text-heading);
  border-color: var(--border-subtle);
}

.search-shortcut {
  font-size: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--text-light);
  font-family: var(--font-mono);
}

.mobile-toggle-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-heading);
}

/* Mobile Menu Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  padding: 1.5rem;
  z-index: 45;
  overflow-y: auto;
  border-top: 1px solid var(--border-light);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-list li {
  margin-bottom: 0.75rem;
}

.mobile-nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  border-radius: var(--radius-md);
}

.mobile-nav-list a.active,
.mobile-nav-list a:hover {
  background: var(--bg-surface-subtle);
  color: var(--brand-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-heading);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-subtle);
  color: var(--text-heading);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.nav-explore-btn {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.2rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.nav-explore-btn:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  color: #FFFFFF !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.badge-blue {
  background-color: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}

.badge-green {
  background-color: #F0FDF4;
  color: #15803D;
  border: 1px solid #DCFCE7;
}

.badge-purple {
  background-color: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #F3E8FF;
}

.badge-amber {
  background-color: #FFFBEB;
  color: #B45309;
  border: 1px solid #FEF3C7;
}

.badge-slate {
  background-color: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* Hero Banner Image Section (Full Width) */
.hero-banner-section {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  line-height: 0;
  overflow: hidden;
}

.hero-banner-wrap {
  width: 100%;
  margin: 0 auto;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #EFF6FF;
  color: var(--brand-blue);
  border: 1px solid #DBEAFE;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Abstract Blockchain SVG Hero Graphic */
.hero-visual-card {
  position: relative;
  background: radial-gradient(circle at 50% 50%, #0F284E 0%, #0B192C 100%);
  border-radius: var(--radius-lg);
  border: 1px solid #1E293B;
  box-shadow: var(--shadow-xl);
  padding: 2.25rem;
  color: #FFFFFF;
}

.hero-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #94A3B8;
  font-family: var(--font-mono);
}

.node-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #10B981;
}

.chain-visual-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chain-block-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.chain-block-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-sky);
}

.block-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--brand-sky);
  margin-bottom: 0.4rem;
}

.block-hash-preview {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chain-link-connector {
  text-align: center;
  color: var(--brand-sky);
  line-height: 1;
  font-size: 1rem;
  opacity: 0.7;
}

/* Sections Common */
.section {
  padding: 5rem 0;
}

.section-subtle {
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 3.5rem;
}

.section-header-left {
  text-align: left;
  max-width: none;
  margin: 0 0 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Grid Layouts - Full Width Fluid Responsive */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Topic Category Cards */
.topic-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.topic-card:hover::before {
  background: var(--brand-blue);
}

.topic-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.topic-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--primary-navy);
}

.topic-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.topic-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-blue);
}

.topic-card:hover .topic-arrow svg {
  transform: translateX(4px);
  transition: var(--transition);
}

/* Guide Article Cards */
.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.guide-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-read-time {
  font-size: 0.78rem;
  color: var(--text-light);
}

.guide-card-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.guide-card-title a {
  color: var(--text-heading);
}

.guide-card-title a:hover {
  color: var(--brand-blue);
}

.guide-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* How Blockchain Works Visual Workflow Section */
.workflow-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  margin: 3rem 0;
  position: relative;
}

.workflow-step-card {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}

.workflow-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.workflow-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.workflow-step-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.workflow-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.workflow-step-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.workflow-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 1.25rem;
}

/* Documentation Layout (Guides Articles) */
.doc-wrapper {
  padding: 2.5rem 0 5rem;
}

.breadcrumb-nav {
  margin-bottom: 1.75rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--brand-blue);
}

.breadcrumb-separator {
  color: var(--text-light);
  user-select: none;
}

.doc-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(2rem, 3.5vw, 3.5rem);
  align-items: start;
  width: 100%;
}

.doc-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.article-title {
  font-size: clamp(2.2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  color: var(--primary-navy);
}

.article-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #334155;
  font-weight: 400;
}

/* Documentation Prose Typography */
.article-body h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  color: var(--primary-navy);
}

.article-body h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  color: var(--text-heading);
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 1.4rem;
}

.article-body ul, .article-body ol {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.article-body li {
  margin-bottom: 0.6rem;
}

/* Callout Info / Warning Boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  border-left: 4px solid;
}

.callout-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.callout-content {
  flex-grow: 1;
}

.callout-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.callout-body {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.callout-info {
  background: #EFF6FF;
  border-left-color: #2563EB;
  color: #1E3A8A;
}

.callout-info .callout-title { color: #1E40AF; }

.callout-tip {
  background: #F0FDF4;
  border-left-color: #16A34A;
  color: #14532D;
}

.callout-tip .callout-title { color: #15803D; }

.callout-warning {
  background: #FFFBEB;
  border-left-color: #D97706;
  color: #78350F;
}

.callout-warning .callout-title { color: #B45309; }

.callout-danger {
  background: #FEF2F2;
  border-left-color: #DC2626;
  color: #7F1D1D;
}

/* Code Blocks & Pre */
.code-container {
  background: var(--bg-code);
  border-radius: var(--radius-md);
  border: 1px solid #30363D;
  margin: 1.75rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-code-header);
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #8B949E;
  border-bottom: 1px solid #30363D;
}

.copy-btn {
  background: transparent;
  border: 1px solid #30363D;
  border-radius: 4px;
  color: #C9D1D9;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.copy-btn:hover {
  background: #21262D;
  color: #FFFFFF;
}

pre {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.925rem;
  line-height: 1.6;
  color: #E6EDF3;
}

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

p code, li code, td code {
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  border: 1px solid #E2E8F0;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

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

th {
  background: #F8FAFC;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--primary-navy);
  border-bottom: 1px solid var(--border-light);
}

td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #F8FAFC;
}

/* Diagram Boxes */
.diagram-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.diagram-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sidebar Styles */
.doc-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: calc(100vh - var(--header-height) - 3rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
  color: var(--brand-blue);
  font-weight: 600;
  padding-left: 0.25rem;
}

.related-guides-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-guide-item {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #F1F5F9;
}

.related-guide-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.related-guide-link {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.related-guide-link:hover {
  color: var(--brand-blue);
}

.related-guide-meta {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Article Navigation (Previous / Next) */
.article-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.article-nav-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
}

.article-nav-card:hover {
  background: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-nav-dir {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.article-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.article-nav-next {
  text-align: right;
}

/* Roadmap Specific Styles */
.roadmap-timeline {
  position: relative;
  max-width: 1150px;
  margin: 3rem auto;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36px;
  width: 3px;
  background: #E2E8F0;
}

.roadmap-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.roadmap-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--brand-blue);
  box-shadow: 0 0 0 6px #EFF6FF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
  color: var(--primary-navy);
  font-weight: 700;
}

.roadmap-node-number {
  font-size: 1.25rem;
  line-height: 1;
}

.roadmap-node-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.roadmap-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  flex-grow: 1;
  box-shadow: var(--shadow-sm);
}

.roadmap-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.roadmap-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.roadmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Glossary A-Z Navigation */
.glossary-nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.glossary-jump-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  text-decoration: none;
}

.glossary-jump-btn:hover {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
}

.glossary-group {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.glossary-group-letter {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-navy);
  border-bottom: 2px solid var(--brand-blue);
  display: inline-block;
  padding-bottom: 0.25rem;
  margin-bottom: 1.5rem;
}

.glossary-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.glossary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.glossary-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.glossary-card-term {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-navy);
}

.glossary-card-def {
  font-size: 0.925rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.glossary-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--brand-blue);
}

/* Filter Controls */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.filter-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  border: 1px solid var(--border-light);
  background: #F8FAFC;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
}

.filter-search-box {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  min-width: 260px;
}

.filter-search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-heading);
}

/* Modal Client-side Search */
.search-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  padding: 10vh 1.5rem 2rem;
  overflow-y: auto;
}

.search-modal-backdrop.open {
  display: block;
}

.search-modal-dialog {
  max-width: 680px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.search-input-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.search-modal-input {
  flex-grow: 1;
  border: none;
  outline: none;
  font-size: 1.15rem;
  color: var(--text-heading);
}

.search-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-muted);
}

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem;
}

.search-result-item {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.search-result-item:hover,
.search-result-item:focus {
  background: #EFF6FF;
}

.search-result-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.search-result-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-modal-footer {
  padding: 0.75rem 1.5rem;
  background: #F8FAFC;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Footer - Clean White */
.site-footer {
  background-color: #FFFFFF;
  color: #64748B;
  padding: 4rem 0 2rem;
  border-top: 1px solid #E2E8F0;
  font-size: 0.925rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-bottom: 3.5rem;
  width: 100%;
}

.footer-brand p {
  color: #94A3B8;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 420px;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94A3B8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.825rem;
  line-height: 1.55;
  color: #94A3B8;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #94A3B8;
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* Feature Cards & Anatomy Styles */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #38BDF8;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #38BDF8;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: #EFF6FF;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.feature-card-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.highlight-banner {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

/* Block Anatomy Visual - Full Width */
.block-anatomy-diagram {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.anatomy-block-card {
  background: #0B192C;
  border: 2px solid #1E3E62;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.anatomy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  background: #0F284E;
  border-bottom: 1px solid #1E3E62;
}

.anatomy-fields {
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid #1E293B;
}

.anatomy-field-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.field-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.field-val {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38BDF8;
  font-weight: 600;
  margin-bottom: 0.35rem;
  word-break: break-all;
}

.field-desc {
  font-size: 0.775rem;
  color: #CBD5E1;
  line-height: 1.4;
}

.anatomy-body {
  padding: 1.5rem 1.75rem;
  background: #070E18;
  border-bottom: 1px solid #1E293B;
}

.tx-list-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tx-row {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #E2E8F0;
}

.tx-row span {
  color: #F59E0B;
  font-weight: 700;
  margin-right: 0.5rem;
}

.anatomy-hash-result {
  padding: 1.25rem 1.75rem;
  background: #0B192C;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Simplified Full Width Footer */
.footer-simple-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 3rem;
  width: 100%;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-brand-text {
  color: #94A3B8;
  font-size: 0.925rem;
  line-height: 1.65;
  max-width: 480px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .doc-layout-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .doc-sidebar {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .workflow-arrow-divider {
    transform: rotate(90deg);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .doc-article {
    padding: 1.75rem 1.25rem;
  }

  .doc-sidebar {
    grid-template-columns: 1fr;
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-nav-links {
    grid-template-columns: 1fr;
  }

  .article-nav-next {
    text-align: left;
  }

  .roadmap-timeline::before {
    left: 20px;
  }

  .roadmap-step {
    gap: 1rem;
  }

  .roadmap-node {
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 4px #EFF6FF;
  }

  .roadmap-node-number {
    font-size: 0.95rem;
  }

  .roadmap-node-label {
    display: none;
  }
}

@media (max-width: 425px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-search-box {
    width: 100%;
  }
}

/* ==========================================================================
   ENHANCED FULL-WIDTH EDUCATIONAL COMPONENTS
   ========================================================================== */

/* 1. Pillars Ribbon */
.pillars-ribbon-section {
  background: #0B192C;
  color: #FFFFFF;
  padding: 1.75rem 0;
  border-bottom: 1px solid #1E293B;
  width: 100%;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.2rem;
}

.pillar-desc {
  font-size: 0.825rem;
  color: #94A3B8;
  line-height: 1.45;
  margin: 0;
}

/* 2. Interactive 3-Block Cryptographic Chain */
.chain-demo-wrapper {
  background: #0B192C;
  border: 2px solid #1E3E62;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  color: #FFFFFF;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.chain-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #1E293B;
}

.chain-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.chain-status-badge.tampered {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.chain-blocks-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
}

.chain-block-box {
  background: #070E18;
  border: 1px solid #1E3E62;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.chain-block-box.tampered-block {
  border-color: #EF4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  background: #18080C;
}

.chain-block-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #38BDF8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chain-block-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.8rem;
}

.chain-block-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.05em;
}

.chain-block-value {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  color: #E2E8F0;
  word-break: break-all;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.chain-block-value.hash-highlight {
  color: #38BDF8;
  font-weight: 700;
  border-color: rgba(56, 189, 248, 0.2);
}

.chain-block-value.error-highlight {
  color: #F87171 !important;
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #EF4444 !important;
  font-weight: 700;
}

.chain-connector-arrow {
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.chain-connector-arrow.broken {
  color: #EF4444;
}

.chain-actions-bar {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1E293B;
}

/* 3. Comprehensive Comparison Tables */
.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #FFFFFF;
  margin: 2rem 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  min-width: 650px;
}

.comparison-table th {
  background: #F1F5F9;
  color: var(--primary-navy);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--border-light);
  white-space: nowrap;
}

.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
  vertical-align: middle;
  line-height: 1.5;
}

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

.comparison-table tr:hover td {
  background: #F8FAFC;
}

.comparison-table .feature-col {
  font-weight: 600;
  color: var(--primary-navy);
  background: #F8FAFC;
  width: 24%;
}

/* 4. Hash Presets */
.hash-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.hash-preset-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: var(--transition);
}

.hash-preset-btn:hover {
  background: #EFF6FF;
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

/* 5. FAQ Cards */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.faq-card:hover {
  border-color: #93C5FD;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.faq-q svg {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.faq-a {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* 6. Decision Box */
.decision-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-top: 2rem;
  width: 100%;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chain-blocks-grid {
    grid-template-columns: 1fr;
  }

  .chain-connector-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}
