/* ==========================================================================
   JAMII SOVEREIGN OS - DESIGN SYSTEM & LAYOUT
   Corporate Sovereign Design Language:
   - Primary: Deep Enterprise Blue (hsl(224, 64%, 20%))
   - Surface: Pure stark white & light slate gray
   - Secondary Text: Slate Gray (hsl(215, 16%, 37%))
   - Accents: Electric Cyan (hsl(192, 95%, 45%)) & Amber (hsl(38, 92%, 50%))
   ========================================================================== */

/* Variables System */
:root {
  /* Light Theme Variables */
  --primary-base-h: 224;
  --primary-base-s: 64%;
  --primary-base-l: 25%;
  
  --primary: hsl(var(--primary-base-h), var(--primary-base-s), var(--primary-base-l)); /* #1E3A8A-ish */
  --primary-dark: hsl(var(--primary-base-h), var(--primary-base-s), 15%);
  --primary-light: hsl(var(--primary-base-h), var(--primary-base-s), 35%);
  --primary-dim: rgba(30, 58, 138, 0.08);

  --accent-cyan: hsl(192, 95%, 45%);
  --accent-cyan-dim: rgba(6, 182, 212, 0.1);
  --accent-amber: hsl(38, 92%, 50%);
  --accent-amber-dim: rgba(245, 158, 11, 0.1);
  --accent-red: hsl(350, 89%, 60%);
  --accent-red-dim: rgba(244, 63, 94, 0.08);
  --accent-green: hsl(142, 70%, 45%);
  --accent-green-dim: rgba(34, 197, 94, 0.08);

  /* Neutrals */
  --bg-main: hsl(210, 20%, 98%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-surface-dim: hsl(210, 20%, 96%);
  --text-main: hsl(215, 25%, 15%);
  --text-slate: hsl(215, 22%, 26%);
  --text-light: hsl(215, 18%, 38%);
  --border-color: hsl(214, 20%, 88%);
  --border-focus: var(--primary);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(30, 58, 138, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --glass-blur: 12px;

  /* Typography */
  --font-family-title: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-family-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  
  /* Grid & Spacing */
  --max-width: 1280px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables Override */
.dark-theme {
  --primary-base-l: 60%;
  --primary: hsl(var(--primary-base-h), var(--primary-base-s), 55%);
  --primary-dark: hsl(var(--primary-base-h), var(--primary-base-s), 45%);
  --primary-light: hsl(var(--primary-base-h), var(--primary-base-s), 70%);
  --primary-dim: rgba(99, 102, 241, 0.15);

  --bg-main: hsl(222, 47%, 11%);
  --bg-surface: hsl(222, 47%, 15%);
  --bg-surface-dim: hsl(222, 47%, 13%);
  --text-main: hsl(210, 40%, 98%);
  --text-slate: hsl(215, 25%, 80%);
  --text-light: hsl(215, 20%, 65%);
  --border-color: hsl(222, 30%, 22%);
  --border-focus: var(--primary-light);
  
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --glass-blur: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-family-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Glowing Accents */
.bg-glow {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.bg-glow-1 {
  top: 10%;
  left: -10%;
  background: var(--primary);
}

.bg-glow-2 {
  top: 60%;
  right: -10%;
  background: var(--accent-cyan);
}

.dark-theme .bg-glow {
  opacity: 0.25;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

p {
  color: var(--text-slate);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Button & UI Patterns */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-title);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.dark-theme .btn-primary {
  background-color: var(--primary);
  color: hsl(222, 47%, 11%);
}

.dark-theme .btn-primary:hover {
  background-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--border-radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dark-theme .text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-family-title);
}

.logo-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: 100%;
  color: var(--primary);
}

.logo-sub {
  font-weight: 400;
  color: var(--text-slate);
}

.nav-menu {
  display: flex;
}

.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-family-title);
  font-weight: 600;
  color: var(--text-slate);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

/* ==========================================================================
   DROPDOWN SUBMENU
   ========================================================================== */
.dropdown-chevron {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-light);
}

.nav-link:hover .dropdown-chevron,
.nav-item.dropdown:hover .dropdown-chevron,
.nav-item.dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 350px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-radius: var(--border-radius-md);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dark-theme .dropdown-menu {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  background-color: var(--bg-surface);
}

/* Show dropdown on hover or on class activation */
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  color: var(--text-slate);
}

.dropdown-item:hover {
  background-color: var(--primary-dim);
  color: var(--primary);
}

.dark-theme .dropdown-item:hover {
  background-color: rgba(6, 182, 212, 0.08); /* cyan-dim */
  color: var(--accent-cyan);
}

.dropdown-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.dark-theme .dropdown-icon {
  color: var(--accent-cyan);
}

.dropdown-item:hover .dropdown-icon {
  transform: scale(1.1);
}

.dropdown-item .item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item .item-title {
  font-family: var(--font-family-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropdown-item .item-desc {
  font-size: 0.75rem;
  color: var(--text-light);
  line-height: 1.35;
}

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

.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-slate);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background-color: var(--primary-dim);
  color: var(--primary);
}

.theme-toggle-btn .icon-sun {
  display: none;
}

.dark-theme .theme-toggle-btn .icon-moon {
  display: none;
}

.dark-theme .theme-toggle-btn .icon-sun {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle.open .icon-menu {
  display: none;
}

.mobile-menu-toggle.open .icon-close {
  display: block;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--bg-surface);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-nav {
  padding: 32px 24px;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
  display: block;
  padding: 8px 0;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* Mobile Dropdown Nested Styling */
.mobile-dropdown {
  position: relative;
}

.mobile-dropdown-toggle {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mob-dropdown-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-light);
}

.mobile-dropdown-toggle[aria-expanded="true"] .mob-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.mobile-dropdown-menu {
  list-style: none;
  padding-left: 20px;
  margin-top: 8px;
  display: none;
  flex-direction: column;
  gap: 12px;
  border-left: 2px solid var(--border-color);
  transition: var(--transition-smooth);
}

.mobile-dropdown-menu.open {
  display: flex;
}

.mobile-dropdown-link {
  font-family: var(--font-family-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-slate);
  display: block;
  padding: 6px 0;
  transition: var(--transition-smooth);
}

.mobile-dropdown-link:hover {
  color: var(--primary);
}

.dark-theme .mobile-dropdown-link:hover {
  color: var(--accent-cyan);
}

.mob-cta-li {
  margin-top: 16px;
}

.mobile-drawer-actions {
  padding: 0 24px 32px 24px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-dim);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(30, 58, 138, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 58, 138, 0); }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-slate);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-social-proof {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.proof-title {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.subsystem-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-subsystem {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-slate);
}

.badge-subsystem i {
  width: 14px;
  height: 14px;
}

/* ==========================================================================
   DYNAMIC TRUTH GRAPH SIMULATOR & INTERACTIVE SANDBOX
   ========================================================================== */
.truth-graph-canvas-container {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  height: 540px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.canvas-title-area {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-title);
  font-weight: 700;
}

.icon-canvas {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-slate);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* 2-Column Sandbox Layout */
.canvas-sandbox-body {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  gap: 24px;
  min-height: 0; /* Ensures scroll area inside behaves properly */
}

.truth-graph-simulator {
  position: relative;
  width: 55%;
  height: 100%;
  background-radial: radial-gradient(circle at center, rgba(30, 58, 138, 0.03) 0%, transparent 70%);
}

.center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(30, 58, 138, 0.3);
  z-index: 10;
  transition: var(--transition-smooth);
}

.dark-theme .center-core {
  color: hsl(222, 47%, 11%);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
}

.core-logo {
  width: 22px;
  height: 22px;
}

.core-logo svg {
  color: currentColor;
}

.core-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Orbiting Nodes */
.sim-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle)));
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-smooth);
}

.node-icon-wrap {
  color: var(--text-slate);
  display: flex;
  align-items: center;
  justify-content: center;
}

.node-icon-wrap i {
  width: 18px;
  height: 18px;
}

.node-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-slate);
  background-color: var(--bg-surface-dim);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.sim-node:hover, .sim-node.selected-node {
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--radius)) rotate(calc(-1 * var(--angle))) scale(1.12);
  box-shadow: 0 0 16px var(--primary-dim);
  background-color: var(--bg-surface-dim);
}

.sim-node:hover .node-icon-wrap, .sim-node.selected-node .node-icon-wrap {
  color: var(--primary);
}

.sim-node:hover .node-label, .sim-node.selected-node .node-label {
  opacity: 1;
  margin-top: 6px;
}

/* Individual node border styles */
.node-healthcare:hover, .node-healthcare.selected-node { border-color: var(--accent-blue); color: var(--accent-blue); }
.node-logistics:hover, .node-logistics.selected-node { border-color: var(--accent-green); color: var(--accent-green); }
.node-emergency:hover, .node-emergency.selected-node { border-color: var(--accent-red); color: var(--accent-red); }
.node-smartcity:hover, .node-smartcity.selected-node { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.node-finance:hover, .node-finance.selected-node { border-color: var(--accent-amber); color: var(--accent-amber); }

/* SVG connections overlay */
.connections-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connection-line {
  stroke: var(--border-color);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  fill: none;
  transition: var(--transition-smooth);
}

.connection-line.active {
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 4px var(--primary));
  animation: line-pulse 2s infinite;
}

@keyframes line-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Right Panel: Sandbox Interactive Controls */
.sandbox-control-panel {
  width: 45%;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  padding-left: 24px;
  gap: 12px;
  min-height: 0;
  justify-content: space-between;
}

.sandbox-info-card {
  background-color: var(--bg-surface-dim);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-smooth);
}

.sandbox-node-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.node-badge {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  background-color: var(--primary-dim);
  color: var(--primary);
  letter-spacing: 0.5px;
  border: 1px solid var(--glass-border);
}

.node-badge.healthcare { background-color: var(--accent-blue-dim); color: var(--accent-blue); }
.node-badge.logistics { background-color: var(--accent-green-dim); color: var(--accent-green); }
.node-badge.emergency { background-color: var(--accent-red-dim); color: var(--accent-red); }
.node-badge.smartcity { background-color: var(--accent-cyan-dim); color: var(--accent-cyan); }
.node-badge.finance { background-color: var(--accent-amber-dim); color: var(--accent-amber); }

#sandbox-node-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-family-title);
}

.sandbox-node-description {
  font-size: 0.8rem;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.5;
}

.sandbox-action-area {
  margin-top: 4px;
}

/* Dark command console readout styles */
.sandbox-console-log {
  background-color: hsl(222, 47%, 8%);
  border: 1px solid hsl(222, 30%, 16%);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.72rem;
  color: hsl(210, 40%, 88%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
  min-height: 150px;
  max-height: 190px;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: hsl(215, 20%, 60%);
  font-weight: 600;
  border-bottom: 1px solid hsl(222, 30%, 16%);
  padding-bottom: 6px;
  flex-shrink: 0;
}

.console-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-light);
}

.console-body {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

/* Custom scrollbar for console */
.console-body::-webkit-scrollbar {
  width: 4px;
}
.console-body::-webkit-scrollbar-track {
  background: transparent;
}
.console-body::-webkit-scrollbar-thumb {
  background: hsl(222, 30%, 20%);
  border-radius: 4px;
}

.console-line {
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}

.console-line.system-line {
  color: hsl(215, 15%, 50%);
}

.console-line.success-line {
  color: var(--accent-green);
}

.console-line.action-line {
  color: var(--accent-cyan);
}

.canvas-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  text-align: center;
  flex-shrink: 0;
}

.sim-instruction {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Responsive adjustments for 2-column sandbox */
@media (max-width: 991px) {
  .truth-graph-canvas-container {
    height: auto;
    min-height: 700px;
  }
  .canvas-sandbox-body {
    flex-direction: column;
    gap: 16px;
  }
  .truth-graph-simulator {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
  }
  .sandbox-control-panel {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding-left: 0;
    padding-top: 16px;
    gap: 16px;
  }
  .sandbox-console-log {
    min-height: 130px;
    max-height: 160px;
  }
}

/* Landing Page Simplified Fabric Card */
.simplified-fabric-card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-smooth);
}

.fabric-badge {
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-dim);
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: 1px solid var(--glass-border);
}

.simplified-fabric-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-family-title);
  line-height: 1.3;
}

.simplified-fabric-card p {
  font-size: 0.9rem;
  color: var(--text-slate);
  margin: 0;
  line-height: 1.6;
}

.sector-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0;
}

.sector-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-surface-dim);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-md);
}

.sec-icon {
  width: 20px;
  height: 20px;
}

.sec-icon.hc { color: var(--accent-blue); }
.sec-icon.lg { color: var(--accent-green); }
.sec-icon.em { color: var(--accent-red); }
.sec-icon.sc { color: var(--accent-cyan); }

.sec-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sec-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.sec-status {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-green);
}

.sandbox-cta-wrap {
  margin-top: 8px;
}

.sandbox-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-weight: 700;
}

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

/* ==========================================================================
   FEDERATION & CARD GRID PATTERNS
   ========================================================================== */
.section-padding {
  padding: 100px 0;
}

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

.max-w-3xl {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-slate);
}

.section-margin-top {
  margin-top: 60px;
}

.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* Feature Cards */
.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 32px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.card-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.color-blue { background-color: var(--primary-dim); color: var(--primary); }
.color-cyan { background-color: var(--accent-cyan-dim); color: var(--accent-cyan); }
.color-amber { background-color: var(--accent-amber-dim); color: var(--accent-amber); }

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* ==========================================================================
   HOW IT WORKS - STEPS
   ========================================================================== */
.bg-light {
  background-color: var(--bg-surface-dim);
}

.how-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-badge {
  position: absolute;
  top: -16px;
  left: 32px;
  width: 36px;
  height: 36px;
  background-color: var(--primary);
  color: #ffffff;
  font-family: var(--font-family-title);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-dim);
}

.dark-theme .step-badge {
  color: hsl(222, 47%, 11%);
}

.how-card-header {
  margin-bottom: 24px;
}

.how-card-header h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

.how-card-benefit {
  font-size: 0.95rem;
  margin-top: 24px;
  flex-grow: 1;
}

/* Visual Mockups inside Cards */
.how-visual-mockup {
  height: 180px;
  background-color: var(--bg-surface-dim);
  border-radius: var(--border-radius-md);
  border: 1px dashed var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Custom Visual Blueprint Card (Step 1) */
.blueprint-visual-card {
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.blueprint-core-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--primary-dim);
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-sm);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.blueprint-core-hub .hub-icon {
  width: 24px;
  height: 24px;
  animation: rotate-hub 8s infinite linear;
}

@keyframes rotate-hub {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.blueprint-branches {
  display: flex;
  justify-content: space-around;
  width: 100%;
  gap: 8px;
}

.branch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-slate);
}

.branch-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue { background: rgba(30, 58, 138, 0.08); color: var(--primary); }
.icon-cyan { background: rgba(6, 182, 212, 0.08); color: var(--accent-cyan); }
.icon-amber { background: rgba(245, 158, 11, 0.08); color: var(--accent-amber); }

/* Visual Image Display Controls */
.visual-img-container {
  width: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-panel-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-panel-img:hover {
  transform: scale(1.03);
}

/* Dynamic Proximity Lease Mockup */
.lease-key-visual {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.glowing-key-container {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--accent-cyan-dim) 0%, rgba(255,255,255,0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-key {
  color: var(--accent-cyan);
  width: 32px;
  height: 32px;
  animation: bounce-key 3s infinite ease-in-out;
}

@keyframes bounce-key {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(15deg); }
}

.lease-timer-box {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lease-timer-title {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-light);
}

.lease-countdown {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.lease-status-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}

/* Map Grid Mockup */
.map-grid-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-grid-mesh {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
}

.grid-cell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  position: relative;
}

.active-cell {
  border-color: var(--accent-red);
  background-color: var(--accent-red-dim);
}

.ping-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.ping-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  animation: map-ping 1.5s infinite;
}

@keyframes map-ping {
  0% { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.map-activity-card {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
}

.map-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-red {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: blink 1s infinite;
}

.map-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
}

.map-card-desc {
  font-size: 0.6rem;
  color: var(--text-slate);
}

/* ==========================================================================
   SCENARIOS - DRILL-DOWN CONTAINER
   ========================================================================== */
.scenario-card {
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.scenario-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.scenario-card.active-card {
  border-color: var(--primary);
  background-color: var(--primary-dim);
}

.scenario-card.active-card p {
  color: var(--primary-dark);
  font-weight: 500;
}

.scenario-card.active-card .scenario-category {
  color: var(--primary-dark);
}

.scenario-card.active-card .delve-deeper-btn {
  color: var(--primary-dark);
  font-weight: 700;
}

.scenario-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.border-red { border-color: var(--accent-red-dim); }
.border-green { border-color: var(--accent-green-dim); }
.border-blue { border-color: var(--primary-dim); }

.color-red { color: var(--accent-red); }
.color-green { color: var(--accent-green); }
.color-blue { color: var(--primary); }

.scenario-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.scenario-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.scenario-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.scenario-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.delve-deeper-btn {
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.delve-deeper-btn i {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.scenario-card:hover .delve-deeper-btn i {
  transform: translateX(4px);
}

/* Expanded Drilldown Panels */
.drilldown-panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  padding: 40px;
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.drilldown-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-left: 4px solid transparent;
  padding-left: 20px;
}

.border-red-left { border-left-color: var(--accent-red); }
.border-green-left { border-left-color: var(--accent-green); }
.border-blue-left { border-left-color: var(--primary); }

.scenario-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.bg-red-dim { background-color: var(--accent-red-dim); color: var(--accent-red); }
.bg-green-dim { background-color: var(--accent-green-dim); color: var(--accent-green); }
.bg-blue-dim { background-color: var(--primary-dim); color: var(--primary); }

.drilldown-header h2 {
  font-size: 2rem;
}

.close-drilldown-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.close-drilldown-btn:hover {
  background-color: var(--bg-surface-dim);
  color: var(--text-main);
}

.drilldown-copy h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.margin-top {
  margin-top: 32px;
}

.playbook-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.playbook-steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 28px;
  height: 28px;
  background-color: var(--primary-dim);
  color: var(--primary);
  font-family: var(--font-family-title);
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Drilldown Visual Columns */
.drilldown-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-panel-card {
  width: 100%;
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.bg-dark {
  background-color: #0f172a;
  color: #ffffff;
}

.visual-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: #94a3b8;
}

.active-pulse {
  width: 6px;
  height: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

/* Pipeline styles */
.pipeline-flow {
  display: flex;
  flex-direction: column;
}

.pipeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 8px;
  background-color: #1e293b;
  border: 1px solid #334155;
  transition: var(--transition-smooth);
}

.pipeline-item.success {
  border-left: 4px solid var(--accent-green);
}

.pipe-icon {
  color: var(--primary);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pipe-icon i {
  width: 18px;
  height: 18px;
}

.pipe-details {
  display: flex;
  flex-direction: column;
}

.pipe-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
}

.pipe-time {
  font-family: monospace;
  font-size: 0.65rem;
  color: #64748b;
}

.pipeline-connector {
  width: 2px;
  height: 16px;
  background-color: #334155;
  margin-left: 24px;
}

.pipeline-connector.active {
  background-color: var(--accent-green);
}

/* Shipping Simulator Visuals */
.shipping-simulator {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ship-route {
  position: relative;
  height: 60px;
  border-bottom: 2px dashed #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.dock {
  background-color: #1e293b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}

.ship-container-sim {
  position: absolute;
  top: -12px;
  left: 10px;
  background-color: var(--accent-green);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.container-icon {
  width: 14px;
  height: 14px;
}

.shipping-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trade-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.trade-step {
  flex-grow: 1;
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  opacity: 0.4;
  transition: var(--transition-smooth);
}

.trade-step i {
  width: 20px;
  height: 20px;
  color: var(--text-light);
}

.trade-step span {
  font-size: 0.65rem;
  font-weight: 700;
}

.trade-step.active-trade {
  opacity: 1;
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.trade-step.active-trade i {
  color: var(--accent-green);
}

/* Healthcare Decryption Simulator */
.medical-sim-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 160px;
  padding: 0 24px;
}

.med-device {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.device-icon {
  width: 28px;
  height: 28px;
  color: #94a3b8;
}

.med-device span {
  font-size: 0.7rem;
  font-weight: 700;
}

.key-flow-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flying-key-wrap {
  position: absolute;
  top: 40%;
  left: 20%;
  color: var(--accent-cyan);
}

.glow-key-pulse {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 8px var(--accent-cyan));
}

.allergy-display {
  position: absolute;
  top: -64px;
  width: 140px;
  background-color: #ef4444;
  color: #ffffff;
  padding: 6px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-smooth);
}

.allergy-title {
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.allergy-content {
  font-size: 0.65rem;
  font-weight: 800;
}

/* ==========================================================================
   PARTNERS VALUE PROPOSITIONS & AI ASSISTANT SIMULATOR
   ========================================================================== */
.text-light h2, .text-light h3, .text-light h4 {
  color: #ffffff;
}

.text-slate-300 {
  color: #cbd5e1;
}

.partners-value-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.partners-value-content h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.partners-value-content p {
  color: #94a3b8;
  font-size: 1.05rem;
}

.value-item {
  display: flex;
  gap: 16px;
}

.value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon i {
  width: 20px;
  height: 20px;
}

.value-text h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.value-text p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* AI assistant simulator inside card */
/* AI assistant simulator inside card */
.ai-console-card {
  background: rgba(15, 23, 42, 0.95);
  border: 2px solid #475569;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 400px;
}

.ai-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #334155;
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.ai-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-bot-icon {
  color: #38bdf8;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
}

.ai-console-title {
  display: block;
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.ai-console-status {
  font-size: 0.7rem;
  color: #38bdf8;
  font-weight: 600;
  display: block;
}

.badge-role {
  font-size: 0.7rem;
  font-weight: 800;
  background-color: rgba(56, 189, 248, 0.2);
  color: #cffafe;
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
}

.ai-chat-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 0.85rem;
}

.chat-message {
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.5;
}

.chat-system {
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-left: 4px solid #38bdf8;
}

.chat-user {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  align-self: flex-end;
  border: 1px solid #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  font-weight: 500;
}

.chat-bot {
  background-color: #0b1329;
  color: #ffffff;
  border: 2px solid #38bdf8;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.15);
}

.chat-bot strong {
  color: #38bdf8;
  font-weight: 700;
}

.chat-bot code {
  background-color: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bot-thinking {
  display: flex;
  gap: 6px;
  padding: 6px 0;
}

.bot-thinking .dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  animation: typing-dots 1.4s infinite;
}

.bot-thinking .dot:nth-child(2) { animation-delay: 0.2s; }
.bot-thinking .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dots {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

.tool-execution {
  background-color: #022c22;
  color: #34d399;
  border: 2px dashed #10b981;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.tool-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tool-tag i {
  width: 14px;
  height: 14px;
}

.tool-result {
  font-family: var(--font-family-body);
  font-size: 0.8rem;
  color: #a7f3d0;
  line-height: 1.4;
}

.ai-console-footer {
  margin-top: 16px;
}

/* ==========================================================================
   COMPREHENSIVE SOCRATIC FAQ SECTION
   ========================================================================== */
.faq-search-wrap {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.search-input-container {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--text-light);
  width: 20px;
  height: 20px;
}

#faq-search-input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  border-radius: var(--border-radius-md);
  font-family: var(--font-family-body);
  font-size: 1rem;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: var(--transition-smooth);
}

#faq-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 4px 16px var(--primary-dim);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-trigger {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.faq-trigger span {
  padding-right: 16px;
}

.faq-arrow {
  color: var(--text-light);
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.faq-item.active-faq .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 0.95rem;
  color: var(--text-slate);
  border-top: 1px solid transparent;
  animation: fadeIn 0.3s ease;
}

.faq-item.active-faq .faq-answer {
  border-top-color: var(--border-color);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-no-results {
  color: var(--text-light);
  font-size: 1rem;
  padding: 40px;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
}

/* ==========================================================================
   FOOTER / CONTACT FOR EARLY ACCESS (CTA)
   ========================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-content-side h2 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.cta-content-side p {
  color: #cbd5e1;
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.cta-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-family-title);
  font-weight: 700;
  font-size: 0.95rem;
}

.highlight-item i {
  width: 20px;
  height: 20px;
}

/* Early Access Glassmorphic Form */
.glass-form {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
}

.form-title {
  color: #ffffff !important;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.glass-form label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.glass-form input, 
.glass-form select, 
.glass-form textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: #ffffff;
  font-family: var(--font-family-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.glass-form input::placeholder, 
.glass-form textarea::placeholder {
  color: #64748b;
}

.glass-form input:focus, 
.glass-form select:focus, 
.glass-form textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.glass-form select option {
  background-color: #0f172a;
  color: #ffffff;
}

.btn-submit {
  border-color: var(--accent-cyan);
  background-color: var(--accent-cyan);
  color: #0f172a;
  font-size: 1.1rem;
  margin-top: 12px;
}

.btn-submit:hover {
  background-color: hsl(192, 95%, 60%);
  border-color: hsl(192, 95%, 60%);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.4);
}

/* Success Overlay */
.form-success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0f172a;
  border-radius: var(--border-radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: fadeIn 0.4s ease;
  z-index: 5;
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  background-color: var(--accent-green-dim);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon-wrap i {
  width: 40px;
  height: 40px;
}

.form-success-message h4 {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.form-success-message p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 320px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding: 80px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
}

.footer-logo .logo-svg {
  color: var(--accent-cyan);
}

.footer-desc {
  font-size: 0.95rem;
  max-width: 440px;
  line-height: 1.6;
}

.footer-links-group h4 {
  color: #ffffff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li a {
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.footer-links li a i {
  width: 14px;
  height: 14px;
  color: #64748b;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: #64748b;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: #ffffff;
}

.footer-socials a i {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

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

  .cta-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .btn-nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

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

  .drilldown-body {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-content-side h2 {
    font-size: 2rem;
  }

  .glass-form {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   GENESIS STORY & MANDATES
   ========================================================================== */
.genesis-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.genesis-story-content h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.genesis-story-content p {
  font-size: 1.05rem;
  color: var(--text-slate);
  margin-bottom: 20px;
  line-height: 1.6;
}

.genesis-story-content p strong {
  color: var(--text-main);
  font-weight: 600;
}

.mandates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mandate-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  transition: var(--transition-smooth);
}

.mandate-card:hover {
  transform: translateX(4px);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.mandate-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: var(--primary-dim);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mandate-card-icon i {
  width: 20px;
  height: 20px;
}

.mandate-card-details h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.mandate-card-details p {
  font-size: 0.9rem;
  color: var(--text-slate);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   WHAT YOU CAN BUILD - CAPABILITIES & CASCADE SHOWCASE
   ========================================================================== */
.capabilities-section {
  position: relative;
  overflow: hidden;
  background-color: var(--bg-surface-dim);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.dark-theme .capabilities-section {
  background-color: hsl(222, 47%, 9%);
}

.capabilities-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.capability-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
  text-align: left;
}

.capability-tab:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
}

.capability-tab.active-tab {
  background: var(--primary-dim);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.08);
}

.capability-tab-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-dim);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.capability-tab.active-tab .capability-tab-icon {
  background: var(--accent-cyan);
  color: #fff;
}

.capability-tab-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-main);
}

.capability-tab-details span {
  font-size: 0.75rem;
  color: var(--text-light);
  display: block;
}

.capability-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.capability-copy h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--text-main);
}

.capability-copy p {
  font-size: 1.05rem;
  color: var(--text-slate);
  margin-bottom: 24px;
}

.capability-key-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.key-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.key-metric-card .metric-label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.key-metric-card .metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.key-metric-card .metric-desc {
  font-size: 0.85rem;
  color: var(--text-slate);
}

/* Interactive Mockups & Terminals */
.capability-visual-wrapper {
  position: relative;
  width: 100%;
}

.terminal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.terminal-header {
  background: #1e293b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f43f5e;
}

.terminal-dot.warning {
  background: #f59e0b;
}

.terminal-dot.success {
  background: #10b981;
}

.terminal-title {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
}

.terminal-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.terminal-body {
  padding: 20px;
  line-height: 1.5;
  max-height: 380px;
  overflow-y: auto;
}

.terminal-body pre {
  margin: 0;
  white-space: pre-wrap;
}

.code-keyword { color: #f472b6; }
.code-string { color: #38bdf8; }
.code-number { color: #fbbf24; }
.code-comment { color: #64748b; font-style: italic; }
.code-boolean { color: #34d399; }
.code-accent { color: var(--accent-cyan); }

/* Billing Simulation Terminal */
.billing-console-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 8px 0;
}

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

.billing-ticker {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.billing-ticker-label {
  color: #94a3b8;
}

/* Tab 2 Interface Contracts Graphic */
.interface-contracts-diagram {
  position: relative;
  background: #0f172a;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

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

.scope-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.contract-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contract-card-inner {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 16px;
}

.contract-card-inner h5 {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contract-card-inner ul {
  list-style: none;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.contract-card-inner li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contract-card-inner li i {
  color: var(--accent-cyan);
  width: 14px;
  height: 14px;
}

.contract-status-line {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Tab 3 Health and Logistics Synthesis Map */
.synthesis-map-diagram {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  position: relative;
  height: 360px;
  overflow: hidden;
}

.synthesis-nodes-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.synthesis-node {
  position: absolute;
  width: 68px;
  height: 68px;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-smooth);
}

.synthesis-node:hover {
  transform: scale(1.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.synthesis-node.node-active {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
}

.synthesis-node.node-revoked {
  border-color: var(--accent-red);
  background: rgba(244, 63, 94, 0.15);
}

.synthesis-node i {
  color: #fff;
  width: 22px;
  height: 22px;
}

.synthesis-node span {
  font-size: 0.65rem;
  color: #cbd5e1;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
  white-space: nowrap;
}

.synthesis-node.n-afiyalink  { top: 15%; left: 15%; }
.synthesis-node.n-security   { top: 15%; right: 15%; }
.synthesis-node.n-customs    { bottom: 15%; left: 15%; }
.synthesis-node.n-escrow     { bottom: 15%; right: 15%; }
.synthesis-node.n-truth      { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 85px; height: 85px; background: #0b1329; border-color: var(--accent-cyan); }
.synthesis-node.n-truth:hover { transform: translate(-50%, -50%) scale(1.08); }

.synthesis-svg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.synthesis-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2;
  transition: var(--transition-smooth);
}

.synthesis-line.line-pulse {
  stroke: var(--accent-cyan);
  stroke-dasharray: 8 6;
  animation: svgDashPulse 25s linear infinite;
}

.synthesis-line.line-revoked {
  stroke: var(--accent-red);
  stroke-dasharray: 4 4;
}

@keyframes svgDashPulse {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Tab 4 Smart City Map Indicator */
.smart-city-map {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  position: relative;
  height: 360px;
  overflow: hidden;
}

.map-radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(245, 158, 11, 0.2);
  pointer-events: none;
}

.map-radar-circle::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent-amber);
  opacity: 0;
  animation: radarScanPulse 3s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

@keyframes radarScanPulse {
  0% {
    transform: scale(0.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.map-weather-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--accent-amber);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.map-weather-node i {
  color: var(--accent-amber);
  width: 20px;
  height: 20px;
  animation: rotationLoop 12s linear infinite;
}

@keyframes rotationLoop {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.map-dispatcher-node {
  position: absolute;
  top: 20%;
  left: 15%;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.map-dispatcher-node.technician {
  top: 65%;
  left: 60%;
}

.map-dispatcher-node.warning {
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.map-dispatcher-node .pulse-orange {
  width: 8px;
  height: 8px;
  background: var(--accent-amber);
  border-radius: 50%;
  animation: pulseGlowingAmber 1.5s infinite;
}

@keyframes pulseGlowingAmber {
  0% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Unravel the Chaos Master Panel */
.unravel-chaos-wrapper {
  margin-top: 56px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dark-theme .unravel-chaos-wrapper {
  background: hsl(222, 47%, 7%);
  border-color: rgba(255, 255, 255, 0.04);
}

.unravel-chaos-wrapper::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.chaos-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.chaos-copy h3 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.chaos-copy p {
  color: #94a3b8;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.chaos-trigger-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.btn-chaos {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-chaos-revoke {
  background: var(--accent-amber);
  color: #0f172a;
}

.btn-chaos-revoke:hover {
  background: hsl(38, 92%, 45%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-chaos-audit {
  background: transparent;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
}

.btn-chaos-audit:hover {
  background: rgba(6, 182, 212, 0.05);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-chaos:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.audit-logs-card {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  max-height: 180px;
  overflow-y: auto;
  color: #94a3b8;
}

.audit-logs-card p {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 0.8rem;
}

.audit-logs-card p:last-child {
  margin-bottom: 0;
}

/* Bundled Claims Interactive Graph Layout */
.chaos-visualizer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.claims-graph-card {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  position: relative;
  height: 380px;
  overflow: hidden;
}

.claims-graph-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.graph-claim-node {
  position: absolute;
  width: 135px;
  background: #1e293b;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  text-align: center;
  z-index: 10;
  transition: var(--transition-smooth);
}

.graph-claim-node h5 {
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.graph-claim-node span {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.graph-claim-node.status-valid {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.graph-claim-node.status-valid span {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.graph-claim-node.status-revoked {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
  animation: borderShake 0.4s ease-in-out;
}

.graph-claim-node.status-revoked h5 {
  text-decoration: line-through;
  opacity: 0.6;
}

.graph-claim-node.status-revoked span {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-red);
}

.graph-claim-node.status-audit-highlight {
  border-color: var(--accent-amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
  transform: scale(1.05);
}

@keyframes borderShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.graph-claim-node.cn-root      { top: 15%; left: 8%; }
.graph-claim-node.cn-identity  { top: 15%; left: 45%; transform: translateX(-50%); }
.graph-claim-node.cn-health    { bottom: 15%; left: 18%; }
.graph-claim-node.cn-license   { bottom: 15%; left: 65%; transform: translateX(-50%); }
.graph-claim-node.cn-escrow    { top: 50%; right: 8%; transform: translateY(-50%); }

.claims-svg-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
}

.claims-edge-line {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 2.5;
  transition: var(--transition-smooth);
}

.claims-edge-line.pulse-cyan {
  stroke: var(--accent-cyan);
  stroke-dasharray: 6 4;
  animation: svgDashPulse 15s linear infinite;
}

.claims-edge-line.pulse-revoked {
  stroke: var(--accent-red);
  stroke-dasharray: 4 4;
}

.claims-edge-line.pulse-amber {
  stroke: var(--accent-amber);
  stroke-dasharray: 6 4;
  animation: svgDashPulse 10s linear infinite;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .capabilities-tabs-nav {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .capability-panel-grid,
  .chaos-panel-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .capabilities-tabs-nav {
    grid-template-columns: 1fr;
  }
  
  .capability-key-metrics {
    grid-template-columns: 1fr;
  }
  
  .contract-grid {
    grid-template-columns: 1fr;
  }
}


