/* ==========================================================================
   SECTION - RESPONSIBLE AI PANEL STYLES
   ========================================================================== */
.governance-section {
  width: 100%;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: visible;
  background: radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.08) 0%, transparent 80%), #050811;
}
.governance-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
  /*padding: clamp(4.5rem, 3.5rem + 4vw, 6.5rem) var(--space-md);*/
  /*position: relative;*/
  /*overflow: visible;*/
  /*background: radial-gradient(circle at 50% 50%, rgba(29, 78, 216, 0.08) 0%, transparent 80%), #050811;*/
}



@media (min-width: 992px) {
   .governance-container {
    grid-template-columns: 50fr 50fr;
  
  }
}

/* ==========================================================================
   LEFT MARKETING CONTENT
   ========================================================================== */

.governance-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  z-index: 2;
}

.governance-badge {
  display: inline-flex;
  align-items: center;
  /* background: rgba(255, 255, 255, 0.03); */
  /* border: 1px solid rgba(255, 255, 255, 0.08); */
  /* border-radius: 9999px; */
  /* padding: 6px 14px; */
  margin-bottom: var(--space-md);
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
}

/* .governance-badge:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
} */

.governance-badge-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  margin-right: 8px;
  flex-shrink: 0;
  display: block;
  /*border: 3px solid #fff;*/
  /*box-shadow: 0 0 0px 2px var(--navy-900);*/
  border: 4px solid var(--navy-900);
  box-shadow: 0 0 0px 1px #585e6e;
}

.governance-badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1;
}

.governance-headline {
  margin-bottom: var(--space-md);
  color: #FFFFFF;
  font-weight: 500;
}

.governance-desc {
  color: #9ba9ce;
  margin-bottom: var(--space-xl);
  max-width: 520px;
  line-height: 1.6;
}

/* Checklist items */
.governance-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
}

.governance-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--font-body-large);
  color: var(--text-secondary);
  color: #9ba9ce;
  line-height: 1.5;
}

.gov-checkmark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease;
  will-change: transform, opacity;
}

.start-checklist-animation .gov-checkmark {
  animation: checkmark-governance-bounce 650ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.start-checklist-animation .governance-feature-item:nth-child(1) .gov-checkmark {
  animation-delay: 150ms;
}

.start-checklist-animation .governance-feature-item:nth-child(2) .gov-checkmark {
  animation-delay: 300ms;
}

.start-checklist-animation .governance-feature-item:nth-child(3) .gov-checkmark {
  animation-delay: 450ms;
}

.start-checklist-animation .governance-feature-item:nth-child(4) .gov-checkmark {
  animation-delay: 600ms;
}

@keyframes checkmark-governance-bounce {
  0% {
    transform: scale(0.8) rotate(-20deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.15) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.gov-checkmark:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--accent-orange-glow);
}

/* ==========================================================================
   RIGHT HERO GOVERNANCE DASHBOARD
   ========================================================================== */

.governance-dashboard-parallax {
  width: 100%;
  z-index: 2;
  position: relative;
  transition: transform 150ms ease-out;
  will-change: transform;
}

.governance-dashboard {
  width: 100%;
  background: #090D1A;
  border: 2px solid #000;
  border-radius: 28px;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: dashboard-shadow-breath 15s ease-in-out infinite;
  will-change: box-shadow;
}

.governance-dashboard.floating {
  animation:
    dashboard-float-animation 8s ease-in-out infinite,
    dashboard-shadow-breath 15s ease-in-out infinite;
}

@keyframes dashboard-float-animation {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes dashboard-shadow-breath {

  0%,
  100% {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  }

  50% {
    box-shadow: 0 30px 60px -15px rgba(59, 130, 246, 0.1);
  }
}

/* Shifting Ambient Highlight Sweeper */
.governance-dashboard-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  animation: dashboard-glow-drifting 30s ease-in-out infinite;
}

@keyframes dashboard-glow-drifting {

  0%,
  100% {
    background-image: radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  }

  50% {
    background-image: radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
  }
}

/* 2x2 cards layout */
.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  position: relative;
  z-index: 2;
  width: 100%;
}

@media (max-width: 575px) {
  .governance-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Dashboard Inner Card */
.governance-card {
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #1D243E;
  border-radius: 20px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  outline: none;
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 400ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 300ms ease;
  will-change: transform, box-shadow, border-color, opacity;
}

/* Dimming neighboring cards */
@media (min-width: 992px) {
  .governance-grid:hover .governance-card {
    opacity: 0.96;
  }

  .governance-grid .governance-card:hover {
    opacity: 1;
  }
}

.governance-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.governance-card:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 4px;
}

/* Stagger card Z-particle flash highlight */
.governance-card.highlight-flash {
  animation: governance-card-glow-pulse 600ms cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes governance-card-glow-pulse {
  0% {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
  }

  30% {
    border-color: #3B82F6;
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.25);
    transform: scale(1.02);
  }

  100% {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
    transform: scale(1);
  }
}

.gov-card-title {
  font-size: var(--font-body-large);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.gov-card-desc {
  font-size: 0.813rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

/* Status pills styling */
.gov-status-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.813rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 350ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 350ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 300ms ease,
    filter 300ms ease;
  flex-shrink: 0;
  will-change: opacity, transform;
}

.governance-card.pills-revealed .gov-status-pill {
  opacity: 1;
  transform: scale(1);
}

.governance-card:hover .gov-status-pill {
  filter: brightness(1.15);
}

/* Colored glow themes */
.status-pill-logged {
  background-color: rgba(59, 130, 246, 0.12);
  color: #60A5FA;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.status-pill-captured {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34D399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.status-pill-editable {
  background-color: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.status-pill-ready {
  background-color: rgba(239, 68, 68, 0.12);
  color: #F87171;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Random validator scanning pulse */
.gov-status-pill.random-pulse {
  animation: validator-glow-flash 800ms ease-out forwards;
}

@keyframes validator-glow-flash {
  0% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.4);
    transform: scale(1.05);
    box-shadow: 0 0 16px currentColor;
  }

  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

/* ==========================================================================
   SVG TRUST CONNECTOR & TRAVEL PARTICLE
   ========================================================================== */

.governance-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-path {
  stroke: rgba(59, 130, 246, 0.05);
  stroke-width: 1.5px;
  fill: none;
}

.flow-particle {
  fill: #3B82F6;
  opacity: 0;
  filter: drop-shadow(0 0 6px #3B82F6);
  will-change: opacity;
}

.flow-particle.active {
  opacity: 0.85;
}

/* ==========================================================================
   BOTTOM STATEMENT & REVEALS
   ========================================================================== */

.governance-statement {
  margin-top: var(--space-xl);
  text-align: left;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  /* ~16px -> 20px */
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms ease, transform 800ms ease;
  will-change: opacity, transform;
}

.governance-statement.revealed {
  opacity: 1;
  transform: translateY(0);
}

.governance-statement strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM OVERRIDES
   ========================================================================== */

@media (max-width: 991px) {
  .governance-flow-svg {
    display: none;
    /* Hide Z-path edge overlays on tablets & mobile stacking */
  }
}

@media (prefers-reduced-motion: reduce) {

  .gov-checkmark,
  .governance-dashboard,
  .governance-dashboard-glow,
  .governance-card,
  .gov-status-pill,
  .flow-path,
  .flow-particle,
  .governance-statement {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .gov-status-pill {
    opacity: 1 !important;
  }
}