/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  position: relative;
}
.logo-icon::after {
  content: '';
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.logo-img {
  display: block;
  height: 32px;
  width: auto;
}
.logo-text {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  color: var(--color-amber);
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 32px;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
  z-index: 99;
  pointer-events: none;
}
.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 0;
}
.mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-text { margin-bottom: 4px; }
.footer-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-amber);
  margin: 8px 0 4px;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}
.footer-col h4 {
  margin-bottom: 16px;
  font-size: 0.8125rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 4px 0;
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-amber); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(239, 68, 68, 0.15) 0%, transparent 50%),
    radial-gradient(rgba(251, 191, 36, 0.1) 0%, transparent 50%);
  z-index: 0;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content {
  text-align: left;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
}
.hero .tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero .lead {
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Concentric circles decoration with pulse animation */
.hero-circles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-circles .circle {
  position: absolute;
  border: 2px solid rgba(245, 158, 11, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}
.hero-circles .circle:nth-child(1) { width: 400px; height: 400px; }
.hero-circles .circle:nth-child(2) { width: 600px; height: 600px; animation-duration: 6s; }
.hero-circles .circle:nth-child(3) { width: 800px; height: 800px; animation-duration: 8s; }

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

/* Decorative circles on alternating sections */
.section-alt {
  overflow: hidden;
}
.section-alt::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 2px solid rgba(245, 158, 11, 0.12);
  border-radius: 50%;
  top: -200px;
  right: -200px;
  pointer-events: none;
  animation: pulse-glow-section 6s ease-in-out infinite;
}
.section-alt-circle-left::after {
  top: auto;
  right: auto;
  bottom: -200px;
  left: -200px;
}

@keyframes pulse-glow-section {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); }
}

/* ============================================
   ARCHITECTURE DIAGRAM (Vertical)
   ============================================ */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 400px;
}
.arch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.arch-entity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.arch-entity-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--color-amber-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arch-entity-icon svg {
  color: var(--color-amber);
}

/* Vertical flow lines */
.arch-lines-v {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 72px;
}
.arch-line-v {
  position: relative;
  display: flex;
  justify-content: center;
}
.arch-line-v::after {
  content: '';
  display: block;
  width: 1px;
  height: 100%;
  background: var(--color-border);
}

/* Animated flow dots (vertical) */
.flow-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-amber);
  left: 50%;
  transform: translateX(-50%);
  animation: flow-down 2.5s linear infinite;
  z-index: 1;
}
.flow-dot.flow-reverse {
  background: var(--color-red);
  animation-name: flow-up;
}
@keyframes flow-down {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}
@keyframes flow-up {
  0% { top: calc(100% - 6px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 0; opacity: 0; }
}

/* Praesidia Hub */
.arch-hub {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  position: relative;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.1);
}
.arch-hub::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--gradient-primary);
  z-index: -1;
}
.arch-hub-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-text);
}
.arch-hub-logo-img {
  height: 18px;
  width: auto;
  flex-shrink: 0;
}
.arch-hub-services {
  display: flex;
  flex-direction: row;
  gap: 6px;
}
.arch-service {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 5px 8px;
  background: rgba(245, 158, 11, 0.04);
  border-radius: 6px;
  white-space: nowrap;
  flex: 1;
}
.arch-service svg {
  color: var(--color-amber);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

/* ============================================
   FEATURE SPLIT LAYOUT
   ============================================ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-split-reverse .feature-visual {
  order: -1;
}
.feature-visual {
  display: flex;
  justify-content: flex-end;
}
.feature-split-reverse .feature-visual {
  justify-content: flex-start;
}
.feature-content h2 {
  margin-top: 12px;
}

/* ============================================
   HORIZONTAL FLOW DOTS
   ============================================ */
.flow-dot.flow-h {
  animation-name: flow-right;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
}
.flow-dot.flow-h-reverse {
  animation-name: flow-left;
  top: 50%;
  transform: translateY(-50%);
  left: auto;
  right: 0;
  background: var(--color-red);
}

@keyframes flow-right {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}
@keyframes flow-left {
  0%   { left: calc(100% - 6px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 0; opacity: 0; }
}

/* ============================================
   DISCOVERY DIAGRAM
   ============================================ */
.disc-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  width: 100%;
}
.disc-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.disc-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 32px;
}
.disc-line-h {
  height: 1px;
  background: var(--color-border);
  position: relative;
  width: 100%;
}
.disc-registry {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.1);
  flex-shrink: 0;
  text-align: center;
  min-width: 100px;
}
.disc-registry::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--gradient-primary);
  z-index: -1;
}
.disc-registry-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-amber-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: var(--color-amber);
}
.disc-registry-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.disc-registry-entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disc-entry {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  padding: 2px 6px;
  background: var(--color-amber-bg);
  border-radius: 4px;
  animation: disc-fade 6s ease infinite;
  white-space: nowrap;
}
.disc-entry:nth-child(2) { animation-delay: 2s; }
.disc-entry:nth-child(3) { animation-delay: 4s; }

@keyframes disc-fade {
  0%, 15%  { opacity: 0; transform: translateY(4px); }
  20%, 45% { opacity: 1; transform: translateY(0); }
  55%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* ============================================
   DEPLOY DIAGRAM
   ============================================ */
.deploy-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 440px;
  width: 100%;
}
.deploy-platform {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.1);
  flex-shrink: 0;
  min-width: 140px;
}
.deploy-platform::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--gradient-primary);
  z-index: -1;
}
.deploy-platform-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  white-space: nowrap;
}
.deploy-platform-header svg {
  color: var(--color-amber);
  flex-shrink: 0;
}
.deploy-entries {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deploy-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  background: var(--color-amber-bg);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  animation: deploy-pulse 3s ease-in-out infinite;
}
.deploy-entry:nth-child(2) {
  animation-delay: 1.5s;
}
.deploy-entry svg {
  color: var(--color-amber);
  flex-shrink: 0;
}
.deploy-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 48px;
  padding: 0 4px;
}
.deploy-line-h {
  height: 1px;
  background: var(--color-border);
  position: relative;
  width: 100%;
}
.deploy-targets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@keyframes deploy-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ============================================
   WORKFLOWS DIAGRAM
   ============================================ */
.wf-diagram {
  max-width: 440px;
  width: 100%;
}
.wf-chain {
  display: flex;
  align-items: flex-start;
}
.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.wf-step .arch-entity {
  flex-direction: column;
  text-align: center;
  padding: 8px 6px;
  gap: 4px;
  min-width: 60px;
}
.wf-step-label {
  font-size: 0.625rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.wf-connector {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 20px;
  padding-top: 12px;
}
.wf-line {
  height: 1px;
  width: 100%;
  background: var(--color-border);
  position: relative;
}
.wf-bar {
  margin-top: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.wf-bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: wf-shimmer 3s ease infinite;
}
.wf-bar-label {
  display: block;
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-amber);
  font-weight: 500;
  margin-top: 8px;
}

@keyframes wf-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============================================
   AUDIT DIAGRAM
   ============================================ */
.audit-diagram {
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.audit-connection {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.audit-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
  position: relative;
}
.audit-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 40px;
}
.audit-capture-line {
  width: 1px;
  height: 100%;
  background: var(--color-border);
  position: relative;
}
.audit-capture-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-amber-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-amber);
  margin-top: -1px;
}
.audit-log {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  position: relative;
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.1);
  width: 100%;
}
.audit-log::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--gradient-primary);
  z-index: -1;
}
.audit-log-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-text);
}
.audit-log-header svg {
  color: var(--color-amber);
}
.audit-log-entries {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.audit-entry {
  display: flex;
  gap: 8px;
  font-size: 0.6875rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  padding: 3px 0;
  color: var(--color-text-secondary);
  animation: audit-appear 8s ease infinite;
}
.audit-entry:nth-child(2) { animation-delay: 2s; }
.audit-entry:nth-child(3) { animation-delay: 4s; }
.audit-entry:nth-child(4) { animation-delay: 6s; }
.audit-ts {
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.audit-dir {
  flex-shrink: 0;
  font-weight: 600;
}
.audit-dir-out { color: var(--color-amber); }
.audit-dir-in { color: var(--color-red); }
.audit-dir-block {
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.6rem;
  line-height: 1.6;
}
.audit-msg {
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes audit-appear {
  0%, 8%   { opacity: 0; transform: translateY(4px); }
  12%, 85% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0.3; transform: translateY(0); }
}

/* Page hero (shorter, for inner pages) */
.page-hero {
  padding: 120px 24px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse at center top, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at right, rgba(239, 68, 68, 0.03) 0%, transparent 50%);
}
.page-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 12px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--gradient-primary);
  padding: 96px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255, 255, 255, 0.8); }
.cta-section .cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta-section .hero-ctas { justify-content: center; }

/* Decorative circles on CTA */
.cta-circle {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.cta-circle-1 { width: 300px; height: 300px; top: -100px; left: -100px; }
.cta-circle-2 { width: 400px; height: 400px; bottom: -150px; right: -100px; }

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.blog-card-img {
  height: 200px;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
}
.blog-card-body { padding: 24px; }
.blog-card-title {
  font-size: 1.125rem;
  margin: 12px 0 8px;
  line-height: 1.4;
}
.blog-card-title a { color: var(--color-text); text-decoration: none; }
.blog-card-title a:hover { color: var(--color-amber); }
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.meta-dot {
  width: 3px;
  height: 3px;
  background: var(--color-text-muted);
  border-radius: 50%;
}

/* Blog filters */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-white);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover { border-color: var(--color-amber); color: var(--color-amber); }
.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
}

/* Blog post page */
.article-hero {
  padding: 120px 0 48px;
}
.article-header {
  max-width: 880px;
}
.article-header h1 {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}
.article-layout {
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 48px;
  align-items: start;
}
.article-body {
  min-width: 0;
}
.article-sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--color-bg-white);
}
.sidebar-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.sidebar-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-toc-link {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
}
.sidebar-toc-link:hover {
  color: var(--color-amber);
  background: var(--color-amber-bg);
  border-left-color: var(--color-amber);
}
.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-related-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--transition-fast);
}
.sidebar-related-link:hover {
  background: var(--color-amber-bg);
}
.sidebar-related-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
}
.sidebar-related-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.sidebar-cta p {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   DOCS
   ============================================ */
.docs-layout {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 44px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
}

.docs-nav-section {
  margin-bottom: 20px;
}
.docs-nav-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 8px 8px;
}
.docs-nav-link {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.docs-nav-link:hover {
  color: var(--color-text);
  background: var(--color-amber-bg);
}
.docs-nav-link.active {
  color: var(--color-amber);
  background: var(--color-amber-bg);
  font-weight: 500;
}

.docs-content { min-width: 0; }
.docs-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.docs-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.docs-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* Docs card grid */
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 8px;
}
.docs-card {
  display: block;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-white);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.docs-card:hover {
  border-color: var(--color-amber);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
  color: inherit;
}
.docs-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 12px;
}
.docs-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.docs-card p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Mobile sidebar toggle */
.docs-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  margin-bottom: 24px;
  text-align: left;
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.team-card {
  text-align: center;
}
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.875rem;
  color: var(--color-amber);
  font-weight: 500;
  margin-bottom: 12px;
}
.team-bio {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.team-linkedin:hover { color: var(--color-amber); }

/* ============================================
   ENTITY CARDS (How it works)
   ============================================ */
.entity-card {
  text-align: center;
  padding: 40px 32px;
}
.entity-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.entity-icon svg { width: 28px; height: 28px; color: #fff; }

/* Steps */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

/* Alternating section background */
.section-alt {
  position: relative;
  background:
    radial-gradient(at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(at 20% 80%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
}

/* Gradient section background */
.section-gradient {
  position: relative;
  background:
    radial-gradient(at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(at 60% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 60%);
}

/* Page hero with stronger gradient (blog, etc.) */
.page-hero-gradient {
  background:
    radial-gradient(ellipse at center top, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at right, rgba(239, 68, 68, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at left bottom, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] .hero::before {
  background:
    radial-gradient(at 20% 30%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(rgba(251, 191, 36, 0.05) 0%, transparent 50%);
}
[data-theme="dark"] .hero-circles .circle {
  border-width: 2px;
  border-color: rgba(245, 158, 11, 0.35);
}
[data-theme="dark"] .section-alt::after {
  border-width: 2px;
  border-color: rgba(245, 158, 11, 0.25);
}
[data-theme="dark"] .arch-entity {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .arch-hub {
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.06);
}
[data-theme="dark"] .section-alt {
  background:
    radial-gradient(at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(at 20% 80%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(at 50% 50%, rgba(251, 191, 36, 0.05) 0%, transparent 60%),
    #141a22;
}
[data-theme="dark"] .section-gradient {
  background:
    radial-gradient(at 20% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
    radial-gradient(at 60% 40%, rgba(251, 191, 36, 0.05) 0%, transparent 60%),
    #141a22;
}
[data-theme="dark"] .page-hero {
  background:
    radial-gradient(ellipse at center top, rgba(245, 158, 11, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at right, rgba(239, 68, 68, 0.02) 0%, transparent 50%);
}
[data-theme="dark"] .site-footer {
  background: var(--color-bg);
}
[data-theme="dark"] .card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .blog-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .disc-registry,
[data-theme="dark"] .audit-log,
[data-theme="dark"] .deploy-platform {
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.06);
}
[data-theme="dark"] .wf-bar-label {
  color: #fbbf24;
}
